A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Next boundry to overcome

  1. #1
    Senior Member
    Join Date
    Feb 2001
    Posts
    114
    Hi again today...

    It seems my Actionscript skills have become a bit rusty duringthe latest project... but thats not why i started this thread.

    Ok' here we go,
    In My SWF i have a 1clip that loads some XML into button labels (Not verry complicated) When a buttom is pressed a clip which loads a Content fields starts .. (not the problem also, (Now its getting interresting)somewhere in the 1clip a close button can be pressed to go back to the root of the SWF (this is done by tweening the clip background border)
    The same close button should make shure the content clip is finished ... (tweened into invisseble)

    Then the 1Clip has to close itself....

    -------------------CODE
    on (release) {
    if (_root.Forumlist.Forums._currentframe = 34) {
    tellTarget ("_root.Forumlist.Forums") {
    gotoAndPlay(35);
    }
    } else if (_root.Forumlist.Forums._currentframe = 1) {
    tellTarget ("_root.Forumlist") {
    gotoAndStop(1);
    }
    }
    }
    ---------------------CODE


    Please help me out here
    Thanx....


  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    467
    I think you need to set the if statements like this
    (_root.Forumlist.Forums._currentframe == 34)

  3. #3
    Senior Member
    Join Date
    Feb 2001
    Posts
    114
    Originally posted by ^1letser
    I think you need to set the if statements like this
    (_root.Forumlist.Forums._currentframe == 34)
    Yhnx anyway

    i tried this befor but it resulted in an no go script..(the script didn't work.)

    What im looking for should be verry simple (as it is in vbscript) but it seems flash doesn't understand that it should look at the frame displayed... rather than just go on to the next ine of actionscript.

    norman

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