Hello, I am trying to have many actions on one button. So you can click it once it goes to a frame then again it goes to another frame.
on (release) {
gotoAndStop(1350);
}
on (release) {
gotoAndStop(2610);
}
Hello, I am trying to have many actions on one button. So you can click it once it goes to a frame then again it goes to another frame.
on (release) {
gotoAndStop(1350);
}
on (release) {
gotoAndStop(2610);
}
If it's just two, you can do something like this:
Is it just two actions? Or are there more?Code:var clicked:Boolean = false; button.onRelease = function() { if(clicked == true) { gotoAndStop(1350); } else { gotoAndStop(2610) } }
Their is many I have fore buttons that are suppose to go to frames on the timeline. Then about six buttons that attach a MC to the stage then on the next click I need them to play the nextframe in the MC.
This is what is on the MC'sCode:on (release) { this.canvas6_mc.attachMovie("hair","hairforward_btn",36); }
This is the script for the timeline which is in the actions layer on the timeline. I have more than one button that will need to work the timeline, so my problem is that I can't reuse this script for each button. Did that make sense I hope so.Code:var frame_arr:Array=[1,1350,2190]; var c3:Number=0; function frameCount3():Void{ gotoAndStop(frame_arr[c3]); c3++; }; bodyForward_btn.onPress=function(){ // Calls the function defined above... frameCount3(); };![]()
I think I understand what you are doing here. By the names of your buttons I am guessing you have a character and are adding things to him/her like hair, clothes, etc.. Like a Flash paper doll. You want to click a button to add a hair-do to the doll and then continue to click the button to change the hair-do over and over.
There are ways to do this with more than 2 options as Medy has suggested, but I ask this... is single tap button the best way for your movie? It is possible, but I bet there is a better way. It would depend on the entire movie set up. If you care to share the .fla or more detailed information I (or Medy) can offer even more suggestions.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Here is a link to my fla file.
http://rapidshare.com/files/162840844/boocrew5.fla.html
Thank you for all your help.
I will download and have a look in a few hours when I get home. will let you know something tonight.![]()
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Thank you
Okay, I was correct. Now a few things to know... is this going to be part of a larger movie or is it just dress up and export?
I think you would be better suited here with single frame, multi-MC with external AS here. There is no need to have 1500+ frames.
I will work on an example over the next little bit (if you have the time to wait) but knowing the larger scale of the project will help the direction that goes.
of course you can always change the attachMovie to on(press) and then have the on(release) be the mc._currentframe += 1; code.You will just need a place holder in Frame one of each item (hair, body, etc) because as soon as they press and release it will jump to frame 2.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Thank you for taking the time to look at my project and help me out I will do the on(press)/on(release) thing today. But today is my last day to work I will have to deliver the project tomorrow morning.
okay so tell me about the entire project. What is it supposed to do, how should it work, end result, etc...
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Bookmarks