A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: jumping to a new SWF and playing an MC

  1. #1
    Hi

    what i have at the minute is a scene called 'tradcasestudies' with a button in there that links to a corporate ID section.

    what i want to happen is for when you click the corporate ID button, it loads 'traditional.swf' AND then plays 'corpid' MC. I can make it load the SWF but i cannot make it play the MC afterwards

    I have the following script on the button, please excuse the awful code, this is me guessing at what it should be!;


    on (press) {
    loadMovie ("traditional.swf", _root.corpid.gotoandplay (2));
    }


    what is the best way around this problem?

    thanks

    gav

  2. #2
    FK Doubt Killer hufersil's Avatar
    Join Date
    Apr 2001
    Location
    São Paulo, Brazil
    Posts
    186
    Originally posted by phukkin_username
    Hi

    what i have at the minute is a scene called 'tradcasestudies' with a button in there that links to a corporate ID section.

    what i want to happen is for when you click the corporate ID button, it loads 'traditional.swf' AND then plays 'corpid' MC. I can make it load the SWF but i cannot make it play the MC afterwards

    I have the following script on the button, please excuse the awful code, this is me guessing at what it should be!;


    on (press) {
    loadMovie ("traditional.swf", _root.corpid.gotoandplay (2));
    }


    what is the best way around this problem?

    thanks

    gav
    hi

    you can't put _root.corpid.gotoandplay (2) into loadMovie action!
    Where you placed it, is the parameter that indicate where
    the movie will be load (myMovieClip, for example)
    So, you can do it:
    on (press) {
    loadMovie ("traditional.swf", _root.corpid);
    _root.corpid.gotoAndPlay(2)
    }


    I hope this helps

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