Friday, January 8, 2010

ActionScript?

I'm making a maze game but I want a code that makes it start over when you RIGHT click so it is cheat proof.ActionScript?
i made a game just like this and had the same problem i finally cam up with a code... it was





_root.onEnterFrame = function() {


if (Key.isDown(2)) {


if (!this.wasDown) {


this.wasDown = true;


rightClick();


}


rightClickDown();


} else if (this.wasDown) {


this.wasDown = false;


rightClickUp();


}


};


function rightClickDown() {


trace(';you right clicked!';)


}

In Flash actionscript 2, after movie clip is over how do you make the MAIN timeline continue?

I don't want the clip to loop so I added a stop action at the end. I don't want tohave to push a button to go to the next frame I just want it to continue on with the timeline, probably another movie clip.In Flash actionscript 2, after movie clip is over how do you make the MAIN timeline continue?
If you want the main timeline play and the movie clip to stop, in the frame of your movie clip under your stop(); action, type ';_root.play();'; withouth the quotes.


good luckIn Flash actionscript 2, after movie clip is over how do you make the MAIN timeline continue?
Use the root goto and play code the root is the main timeline just go to the frame you want it to continue. Hold on ill get the code.This should work _root.nextFrame()

How to make a function in actionscript to add a number 1 to a value each time a button is pressed?

How do I make a function in actionscript 2 that would add/subtract the value 1 to/from a value each time a button is pressed?


E.g. 1+1=2; 2+1=3; 3+1 =4 ect...


Thank you!!!How to make a function in actionscript to add a number 1 to a value each time a button is pressed?
Say your variable need to be changed based on button click is x


onClipEvent(load){x=0;} //initialize variable x





Actionscript to put on button 1


onClipEvent(mouseUp){add1();}





Actionscript to put on button 2


onClipEvent(mouseUp){sub1();}


function add1(){_root.x++;}


function sub1(){_root.x--;}

Is Actionscript 3 and Flex a language for newbie or not?

I am currently learning Flex 3 + AS3 and find that VERY difficult.Is Actionscript 3 and Flex a language for newbie or not?
Languages aren't for a newbie - learn programming first. If you learn what's in http://www-old.oberon.ethz.ch/WirthPubl/鈥?/a> you'll be a lot better prepared to learn any language.Is Actionscript 3 and Flex a language for newbie or not?
Flex and AS people will tell you that it is fine for a newbie as you would expect :).





The reality is if you want to start learning flex etc. get a basic grounding in programming concepts first using a more mainstream language. Most introductory programming courses will start you off with C or Java so that is definitely a good place to start.





Once you have a basic understanding of one of those you will find learning Flex or AS much easier. And of course understanding basic web programming things like HTML, CSS, Javascript would also go a long way to make you feel more comfortable.

How do I make a five minute timer using flash actionscript?

Help plzHow do I make a five minute timer using flash actionscript?
http://www.oman3d.com/tutorials/flash/vi鈥?/a>





http://www.flash.0tutor.com/archive/107/鈥?/a>





http://www.webdesign.org/web/flash-%26amp;-swi鈥?/a>

I have adobe flash CS4 and i am trying to give a button a function using actionscript?

but whenever i open up actionscript while the button is selected the actonscript panel says that ';current selection cannot have actions applied to it'; this dosent seem to make sense what am i doing wrong?I have adobe flash CS4 and i am trying to give a button a function using actionscript?
This is because you are working in ActionScript3.0.





If you change the Publish Settings (that's what it was called in CS3) to AS2.0, you will then be able to apply the AS onto the button directly.
  • facial peels
  • cleanses
  • serum cream
  • numbering
  • I need help in getting tutorial for programming(actionscript) in flash?

    I am going to build a snake and ladder game.I need some tutorial that have actionscript that is relevant to build that game. Any actionscript websites out there?I need help in getting tutorial for programming(actionscript) in flash?
    Check out flashkit.com they have a ton of open source games for you to learn from. **Depending on how experienced you are with flash you may want to just read up on the subject**.





    Try:


    http://www.flashkit.com/movies/Games/





    **Or you might want to read up here:


    http://animation.about.com/od/flashanima鈥?/a>


    http://flashkit.com/tutorials/I need help in getting tutorial for programming(actionscript) in flash?
    no need to just go to clonestop.com it's kind of new but there add all the time