This is a discussion on "how to change button action into a movieclip button action" within the Flash & Multimedia Forum section. This forum, and the thread "how to change button action into a movieclip button action are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
how to change button action into a movieclip button action
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
how to change button action into a movieclip button action
Can anyone help with this simple problem
How do I edit this button action AS on (release) { if(_root.currMovie != "collectionsb"){ _root.currMovie = "collectionsb"; containerone_mc.loadMovie("collectionsb.swf"); }else{ if (containerone_mc._currentframe >= containerone_mc.midframe) { containerone_mc.play(); } AS so I can put it onto a frame in a movieclip button which starts off like this AS stop(); this.onEnterFrame = function(){ if(rewind == true){ prevFrame(); } } this.onRollOver = function(){ rewind = false; play(); } this.onRollOut = function(){ rewind = true; } AS Thankyou to anyone who can help me |
|
|
|
||||
|
Re: how to change button action into a movieclip button action
if you could send the .fla file it will be better to help you...
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
how to change button action into a movieclip button action
Thanks here is an example of the problem attached
so I need to replace this movieclip action on the first frame of the actionscript layer in MC Collections AS this.onRelease = function(){ getURL("http://www.kirupa.com","_blank"); } AS with this button action AS on (release) { if(_root.currMovie != "collectionsb"){ _root.currMovie = "collectionsb"; containerone_mc.loadMovie("collectionsb.swf"); }else{ if (containerone_mc._currentframe >= containerone_mc.midframe) { containerone_mc.play(); } AS Thanks |
|
||||
|
Re: how to change button action into a movieclip button action
can you describe more for what you want to do ?
still i didnt get what you want
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||||
|
Re: how to change button action into a movieclip button action
I just need to edit the script which opens external file
Quote:
Quote:
Quote:
It starts Quote:
Quote:
|
|
||||
|
Re: how to change button action into a movieclip button action
You mean something like this :
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
Re: how to change button action into a movieclip button action
Yes I think something like that Thankyou the only problem is that the external file does not load in the container
There is a output syntax error telling me that the function name is expected on this line this.onRelease = function{ Do you know what I should do next? I could just give up and use normal buttons but I'd still like to learn how to do this properly Cheers |
|
||||
|
Re: how to change button action into a movieclip button action
maybe putting _root before containerone_mc solve the problem...
the problem is that i could not see this in action, and its hard to understand which part is not working properly
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Image button triggers <form> action | rcflyer2005 | JavaScript Forum | 1 | Apr 18th, 2008 07:21 |
| preserve the back button action when doing AJAX calls | pesho318i | JavaScript Forum | 2 | Nov 28th, 2007 12:37 |
| [SOLVED] Movieclip button active state problem !! Help Please !! | alladeen | Flash & Multimedia Forum | 6 | Oct 25th, 2007 14:40 |
| BUTTON will not take an action script | griffonwing | Flash & Multimedia Forum | 2 | Jun 8th, 2007 12:33 |
| Condition on button action | artdog | Flash & Multimedia Forum | 1 | Sep 14th, 2006 19:45 |