-
i made a movieclip which is dynamic moving because of an actionscript. (its a button which´s moving like it´s on a spring)
include that movieclip is another movie, who changes the color of the button on mousover.
i ask in this board how to link to the next scene with that movieclip.
the answer was:
onClipEvent (mouseDown) {
_level0.gotoAndPlay("pro");
}
...and so on. that work fine for me, but:
i have three of these buttons in the same scene, and every one links now to the same scene i gave the first button!
i dont know how i setup every button to link to a own scene....
i tried
onPress () {
_level0.gotoAndPlay("pro");
}
but then the included movie isnt playing! (which changes the color)
any solutions maybe?
i would be very thankful...
-
Senior Member
give each button an instance name to make them individuals.
now add this script to the frame (not the buttons themselves)
lets say your buttons are named - btn1, btn2, and btn3.
btn1.onRelease = function(){
gotoAndPlay("first_scene_name", 1);
}
btn2.onRelease = function(){
gotoAndPlay("second_scene_name", 1);
}
btn3.onRelease = function(){
gotoAndPlay("third_scene_name", 1);
}
and so on.
See if that works and let me know.
-
hey EQ Flash,
it works! but:
the movie in the movie (that one how should change the color ) is not playin yet...
thats another solution, and aim very thankful for ur help!
another ideas?
-
Senior Member
Could you give me a little more detail as to what you want to happen.
I'm still a little sleep this morning
-
sleepy? where u come from? in berlin its 16:44... ;o)
It concerns the following ...
button1 (movieclip named guitar)
buttonguitar (push-button named buttonguitar)
on up -> grafic
on over -> movieclip (named b1,changes the color)
on push ->grafic
on activ ->grafic
that shall be the hierarchy...
on button1 is an actionscript, who needs a movieclip to work. (this script generated the spring-effect,
its a component (called Sticky!? i think))
buttonguitar should play the movieclip b1 on mouseover
button1 should link to the next scene, including the playing of b1 on mouseover.
i tried ur actions and the actions from another member, and the linking was working well.
BUT, on mouseover the movieclip b1 is NOT playin...
is this a insolvable problem in flash? maybe...
thanks, should i give u a cup of coffee??? ;o)
-
-
hey why don't you justcreate a movie clip of this button (F8),inside which you create a color effect cycling, then another on-framed movieclip of itself (for the coding) ?
You know it would appears to be like this hierarchy :
_root > colorfx_movieclip > button_movieclip (with only one frame) > buttonitself
Then in the _root you create the colorfx_movieclip bouncing animation, and then in the button_movieclip you do the code (with onmouseDown and others)...
I think this should work well
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
|