A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Weird ActionScript not working or just Fault?

  1. #1
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870

    Weird ActionScript not working or just Fault?

    The title explains it:

    [CODE]on (release) {
    _parent.gotoAndPlay("AuroraCo", 1);
    }
    CODE]

    Now I checked the syntax and everything else, but this AS is not working. Its set on a MC inside a MC.
    And I tried using _root.gotoAndBLAH.. didn't work either.

    So why a'int this working?
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    gotoAndPlay accepts ONE parameter i.e frame number or frame label:
    so try:

    on (release) {
    _parent.gotoAndPlay("AuroraCo");
    }

    dont know why you put a 1 as well(if its because you are trying to access a level1 then use

    on (release) {
    _level1.gotoAndPlay("AuroraCo");
    }
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    AuroraCo is a scene and I have no idea how levels work.
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  4. #4
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    oops my bad in that case ur syntax is ok .... and i never use scenes lol...hopefully someone else can point u in the right direction.. try _root.gotoAndPlay...

    i gotta run now..PARTYYYYY time lol
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  5. #5
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    OK but I already said that don't work

    Thanks Anyway.
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  6. #6
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    *bump*
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  7. #7
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    it most probably a scope problem, do you get the hand cursor when you hover over the mc? if you do then its a scope problem,

    try using "on frame" code:
    Code:
    myClip.innerClip.onRelease = function(){
        this._parent.gotoAndPlay("AuroraCo", 1);
    };
    New sig soon

  8. #8
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    Yes I do actually, Thanks I'll try that out.
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center