-
-
Dam yours got a lot of questions?
I’m not rely understanding your 1st question, you want to know haw to animate an object with action script?
Passwords are easy in flash you just make a text field the user can type in and a button that run an “if statement” like if (login eq password) then let them in!
A flash chat room would require some server back end work, and I am not so good at that.
Acutely I don’t know haw to poot a flash object in my signature? I think I will go and find out!
Good luck and have fun! Meow!
-
-
Senior Member
1. Password. dont store the passwords in Flash. There is a decompiler out there and the swf in my cache .
2. MultyPlyere and FlashChat
http://www.kessels.com/FlashDB/
3. About the first question I dont now yet. Ill try to figure it out.
Mad_sci
-
Just a little time left… o I got to go soon but I will give you a more in depth response this evening. K
Go to: http://www.moock.org/webdesign/flash/index.html he has some riley good tutorials on animating with action script, and take a good look at the tutorials on collision detection, you will need to know this stuff!
Purrr
-
Well I am not having much luck, whit figuring out what it tacks to put a flash banner in to your signature! Sorry I could not figure it out, but maybe some one else knows the secrets of this board?
-
Signature
Hi ChriSell,
Regarding the signature, try this:
[Posted in another thread by Akane]
put the swf on your personnal server, or anywhere on the web
just add this code :
[*swf width="220" height="40" background="#FFDDBB"]http://flashkit.com/graphics/banners/footer.swf[/swf*]
remove the "*", and change the adress the file name and the attributes !
I haven't tried it myself, give it a go!
-
The password question.....
Well you will need a cgi,asp or php3 scirp that will write the users usernames and passwords to a text file so that theyu can use it again.
The Chat Server Question....
To make the game muliplayer or use chat you will need another cgi,asp,php3 script for the backend!!!
So you will be able to find these script at http://www.hotscripts.com if not i have the php3 versions and fla's for chat and write to a text file!!!(Remember you will need php3 enabled webspace!!)Hope that helps!!
Regards FlashGuru!!
p.s i will answer the first question in my next post!!!
-
-
Right create a movieclip and name it: "mouse"
(this will be your target movielcip)
then on the first frame of your main timeline put:
Start Drag ("/mouse", L=10, T=10, R=390, B=390, lockcenter)
Stop
next create the movieclip for your paintball:
Call this "player"
then Inside the movielcip called mouse put a frame and inside create the graphic for your target,now you have the target graphic turn it into a button,ont he button actions put:
On (Release)
Set Variable: "/player:x" = GetProperty ("",_x )
Set Variable: "/player:y" = GetProperty ("",_y )
Begin Tell Target ("/player")
Go to and Play (5)
End Tell Target
End On
next for the movielcip called player.
Inside this movielcip on the first frame put:
stop
Next frame put:
Set Variable: "x" = Int(GetProperty ( "/mouse" , _x))
Set Variable: "y" = Int(GetProperty ( "/mouse" , _y))
Set Variable: "distx" = x - GetProperty ("", _x)
Set Variable: "disty" = GetProperty ( "" , _y) - y
Set Variable: "input" = distx*distx+disty*disty
Call ("sqrt")
Set Variable: "distance" = output/speed
Set Variable: "movex" = distx/distance
Set Variable: "movey" = disty/distance
the frame after that put:
If (distance <= 0)
Go to and stop (1)
Else
Set Variable: "newx" = GetProperty ("" , _x) + movex
Set Variable: "newy" = GetProperty ("", _y) - movey
Set Property ("", X Position) = newx
Set Property ("", Y Position) = newy
Set Variable: "distance" = distance - 1
End If
and on the frame after that put:
Call ("3")
Go to and Play (3)
Now label the next frame: "sqrt" and for the actions put:
Set Variable: "z" = 1
Set Variable: "iterations" = 20
Set Variable: "i" = 0
Loop While (i<iterations)
Set Variable: "z" = z - ((z*z - input) / (2*z))
Set Variable: "i" = i+1
End Loop
Set Variable: "output" = z
this will tell the target movielcip to move to the place where the user clicks his mouse!!!
Hope that helps!!Regards FlashGuru
p.s if you can get it to work then just ask me for the .fla file!!
[Edited by FlashGuru on 07-14-2000 at 07:34 PM]
-
Storm, you Rock! You would not believe how stooped I feel, after seeing your post. I was just a little off but know I have got it thanks! I am your friend now!
-
No problemo FlashCat. Nice footer by the way..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|