| Welcome to Brackenwood. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Buttons | |
|---|---|
| Tweet Topic Started: Jun 14 2005, 05:14 PM (91 Views) | |
| Deleted User | Jun 14 2005, 05:14 PM Post #1 |
|
Deleted User
|
I've created a button for my website, it links to the flash section. I wanted to make it look cool so i did this rollout and rollin thing. It worked for the buttons on these...Mouths Down The Bottom But i did it for this button and it didnt work for some retarted reason..HELP ME VECTOR!!!.. (or neone else that knows how to do this) The actionscript is...
And it is on the first frame of the movieclip but it dusnt stop it just plays through I also have a stop action on the last frame THANKYOU! |
|
|
| Vector | Jun 14 2005, 08:25 PM Post #2 |
|
Resident Actionscript Guru ♂
![]()
|
hehe... saw it first thing... stop(); this.onEnterFrame = function(){ if(rewind == true){ prevFrame(); } } this.onRollOver = function(){ rewind = false; play(); } this.onRollOut = function(){ rewind = true; [size=14]STOP();[/size] } this.onRelease = function(){ getURL("http://users.tpg.com.au/adslej8v/tom/flash.htm","_blank"); } And if you want it to stop at the end frame, just whack in a stop action there too. That'll stop the clip from going past the end. |
![]() |
|
| Deleted User | Jun 15 2005, 07:38 PM Post #3 |
|
Deleted User
|
hmmm nup sorry Vec your WRONG! omg u were wrong! lol i cant belive u were actually wrong. *mgh cough* now im over that.. got ne other ideas why it just plays when i havent even rolled over it yet? |
|
|
| Vector | Jun 15 2005, 08:10 PM Post #4 |
|
Resident Actionscript Guru ♂
![]()
|
You did make the object a movieclip and not a button, didn't you? (and the stop was important anyway
)
|
![]() |
|
| Deleted User | Jun 15 2005, 08:42 PM Post #5 |
|
Deleted User
|
lol yeh it must have been, now that i look at it i can see that too, not that i know actionscript, but its kinda logical. Also yes it is a movieclip |
|
|
| Vector | Jun 15 2005, 08:47 PM Post #6 |
|
Resident Actionscript Guru ♂
![]()
|
Ah i just had a thought... I hate flash in the sense of scoping... try making all of the stop(), prevFrame() and play() statements this.stop(), this.prevFrame() and this.play(). I think it might be talking to the main flash window rather than internally (ie within the button itsself). hope that works.. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Actionscript · Next Topic » |







12:27 AM Jul 12