Welcome Guest [Log In] [Register]
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:

Username:   Password:
Add Reply
Buttons
Topic Started: Jun 14 2005, 05:14 PM (91 Views)
Deleted User
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...

Code:
 

stop();
           
this.onEnterFrame = function(){
if(rewind == true){  
 prevFrame();      
}
}

this.onRollOver = function(){
rewind = false;
play();  
}

this.onRollOut = function(){
rewind = true;  
}

this.onRelease = function(){
getURL("http://users.tpg.com.au/adslej8v/tom/flash.htm","_blank");
}


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!
Quote Post Goto Top
 
Vector
Member Avatar
Resident Actionscript Guru ♂
Admin
tommo
Jun 14 2005, 05:14 PM
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...

Code:
 

stop();
           
this.onEnterFrame = function(){
if(rewind == true){  
 prevFrame();      
}
}

this.onRollOver = function(){
rewind = false;
play();  
}

this.onRollOut = function(){
rewind = true;  
}

this.onRelease = function(){
getURL("http://users.tpg.com.au/adslej8v/tom/flash.htm","_blank");
}


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!

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");
}


:P

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.
Offline Profile Quote Post Goto Top
 
Deleted User
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?
Quote Post Goto Top
 
Vector
Member Avatar
Resident Actionscript Guru ♂
Admin
You did make the object a movieclip and not a button, didn't you? (and the stop was important anyway :P )
Offline Profile Quote Post Goto Top
 
Deleted User
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
Quote Post Goto Top
 
Vector
Member Avatar
Resident Actionscript Guru ♂
Admin
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..
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply