|
-
Blur Effect Won't Play
Hello! Research has turned up zip, so I've come for aid!
I've put a blur effect on the hit state of a button, but the script for the button is On Release Go to and Play the scene I wan't it to skip to. So as soon as the button is clicked it does what it's told and the blur effect (16 frames long) doesn't get to play.
Any suggestions would be much appreciated, cheers!!
-
Remove the script from the clip and add it to the last frame of your animation.
-
No Dice
Hi, thanks so much for replying.
The blur is actually an effect flash offers inside of a button, not an animation that I made.
I've tried cutting the frames of the blur from inside the button and putting it at the end of the main time line, with an On Release Go To and Play "sketchwork", 965. But the button doesn't work at all, no blur plays. and at the end of the blur I wrote Go to and Play "Homepage", 1 to get it to go to the scene I wanted. No dice.
I also tried leaving the blur inside the button and just extended the main timeline to give it time to play if the release order cutting it off was the problem. Likewise the button now said to Go Play frame 965 with an action at the end of the time to Go Play Homepage.
Nothing. I can get the button to work fine without the blur effect, so it's just a matter of getting the button to take effect after the blur plays within the button.
Thanks for any ideas
-
Hm. If it does it based on frames, you could use something like:
PHP Code:
button._currentframe == button._totalframes
To test whether it has gonethrough all of it's frames. This is quite a unique problem.
-
:)
Thanks again for your help!
I'm not exactly sure where this script would be placed in regards to mine. I've tried before, after and in the middle. None of it makes the blur play, but it doesn't at all distrupt the button from working
on (release) {
button._currentframe == button._totalframes
gotoAndPlay("Homepage", 1);
No error is stated, so your code is sound. I think I might just give it up for dead.
Cheers for your advice, very appreciated!
-
No, that isn't how it is used at all. Put this code in your main timeline:
PHP Code:
_root.clicked = false;
_root.onEnterFrame = function(){
if(_root.clicked){
if(button._currentframe == button._totalframes){
gotoAndPlay("Homepage", 1);
}
}
}
And put this in your button:
PHP Code:
on(release){
_root.clicked = true;
}
This is assuming your button is named button. Change the line:
PHP Code:
if(button._currentframe == button._totalframes){
So your button instance name is there instead of the word button. That code will work provided the blur is done with frames and not with AS.
Tags for this Thread
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
|