A Flash Developer Resource Site

Search:

Type: Posts; User: Vadersapien

Page 1 of 3 1 2 3

Search: Search took 0.12 seconds.

  1. Replies
    1
    Views
    457

    enter_btn.onRelease = function() { ...

    enter_btn.onRelease = function() {
    sendData();
    }

    function sendData() {
    trace(name_txt.text);
    trace(email_txt.text);
    trace(message_txt.text);
    ...
  2. I'm guessing "missile" is a previously created...

    I'm guessing "missile" is a previously created object, right?

    EDIT: What about doing something like this(javascript)


    cat.prototype.changeName = function(name) {
    this.name = name;
    }
    ...
  3. Replies
    1
    Views
    692

    Flash8 For the sound, shouldn't you change your function...

    For the sound, shouldn't you change your function to look like this?


    Play.onRelease = function() {
    mix1.start();
    }

    Then add this function to the same frame is your existing sound code
  4. [AS2] How do I Create Object-Orientated Functions?

    Hello to all,
    I would like to know how to create an object-orientated functions in Actionscript 2. I'm actually not sure if that is what it's called...please correct me if I'm wrong. Anyway here's...
  5. Replies
    5
    Views
    539

    I got it working eventually...it had to be: ...

    I got it working eventually...it had to be:


    for(x in spiderArray){
    if (this.hitTest(_root.spiders[spiderArray[x]])) {
    ...
  6. Replies
    5
    Views
    539

    Tried it, but still no go...

    Tried it, but still no go...
  7. Replies
    5
    Views
    539

    Trouble hitTesting an array.

    Hey everyone,
    I am having trouble hitTesting items in an array...here is my full code:


    stop();

    var gameStarted:Boolean = false;
    var gamePaused:Boolean = false;
    var generateSpeed:Number =...
  8. Come on...this is really important

    Come on...this is really important
  9. Position movieclip on top attached movie clips

    Hello,
    I would like to have one movieclip over the top of other attached ones. I have tried getNextHighestDepth on the movieclip, but it still doesn't work.

    Here is my code for attaching the...
  10. Replies
    1
    Views
    442

    Playing backwards is not possible from what I...

    Playing backwards is not possible from what I know...as a workaround you could try making a copy of the frames, reverse them, and then use gotoAndPlay() to go to the required reversed frame. another...
  11. Replies
    0
    Views
    475

    Sound.onLoad not working...

    Hello all,
    I have made a preloader which checks if the movie and all sounds are loaded...here's the code:


    stop();

    loadedItems = 0;
    dialogSoundCanStart = true;

    dialogSound = new Sound();
  12. Replies
    2
    Views
    1,736

    followed the tut but the car still turns while...

    followed the tut but the car still turns while it's still(speed = 0)...code:


    onClipEvent (load) {
    var speed:Number = new Number(0);
    }

    onClipEvent (enterFrame) {
    if (Key.isDown (Key.UP) &...
  13. Replies
    2
    Views
    1,736

    Realistic Car movement in AS2

    How would I get realistic car movement in AS2. Needs to include acceleration, deceleration and proper turning...found some great examples but they were AS1 only or didn't have acceleration...
  14. Replies
    6
    Views
    587

    Scenes are a load of trouble...try labeling the...

    Scenes are a load of trouble...try labeling the frame instead. You can do this by going to your game over scene, then clicking on the required frame. In the properties panel there should be the text...
  15. Replies
    6
    Views
    642

    Tried it and while it works...the movements are...

    Tried it and while it works...the movements are really messed up
  16. Replies
    6
    Views
    587

    I suggest you take a look at this thread:...

    I suggest you take a look at this thread: http://board.flashkit.com/board/showthread.php?t=688580 or this page: http://www.foundation-flash.com/tutorials/turretpart2/
  17. It has to do with the component skins. I know you...

    It has to do with the component skins. I know you can change them using the library in AS3, but I'm not sure how to do this in AS2
  18. Replies
    6
    Views
    587

    How exactly are you generating the apples(it...

    How exactly are you generating the apples(it helps to know)
  19. Replies
    6
    Views
    642

    Hmm...good point..."this.onLoad = function()"...

    Hmm...good point..."this.onLoad = function()" isn't necessary after all. I'll try without that.
    It'll probably work since using the "this.onLoad = function()" didn't give the variables their...
  20. Replies
    6
    Views
    642

    I'm using Actionscript 2. I also found none of my...

    I'm using Actionscript 2. I also found none of my onLoad code is executing, same with the onEnterFrame code. However if I add trace('Working') under the onEnterFrame section, it works, but no other...
  21. Replies
    6
    Views
    642

    CS4 Code not working in movieclip

    Hello,
    I can place the following code on a movieclip:


    onClipEvent(load) {
    gravity = 0.2;
    yspeed = 0;
    speed = 2;
    }
    onClipEvent(enterFrame) {
  22. That shouldn't matter...nut you never know...just...

    That shouldn't matter...nut you never know...just give it a try :)
  23. Here's your problem...all your code is correct,...

    Here's your problem...all your code is correct, but you need to give each button an instance name
    Portfolio - portfolio_btn
    Bio - bio_btn
    Contact - contact_btn
    Links - links_btn
    CV -...
  24. Flash8 just a tip: it's much better to code these sorts...

    just a tip: it's much better to code these sorts of things since doing so can seriously reduce the megabyte count....
  25. Flash8 Here is the fixed file [Download]...

    Here is the fixed file [Download] which includes all you asked for AND some minor improvements (removed unused frame labels, stopped actionscript errors)...look carefully at everything this time...
    ...
Results 1 to 25 of 62
Page 1 of 3 1 2 3




Click Here to Expand Forum to Full Width

HTML5 Development Center