A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Confusing... Relative vs. Absolute movie references in loadMovie() and loadClip()?!

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    15

    Confusing... Relative vs. Absolute movie references in loadMovie() and loadClip()?!

    CS4/AS2

    Movie_B.swf run on it's own loads all of it's .swf files fine.

    Movie A has:

    loadMovie("flash/Movie_B.swf",intro_mc);

    Movie_B does NOT show up, but it DOES kick out trace messages in the Output window when I start Movie A as: File -> Publish Preview -> Flash

    I think the problem could be with how I control the loaded movies (Movie Cs) in Movie B:

    _level0[movieIn].gotoAndPlay(1);

    Movie A -> Movie B -> Movies C (rotates through them)

    This makes sense, as if I use this kind of reference (absolute, or _level0...) in Movie B stand-alone, it loads each Movie C fine.

    I don't know how to test this, but how can I load and control Movie C from Movie B, when Movie B is loaded by Movie A?

    a. Should this behave as it is for me?
    b. If so, how can I make relative references to loaded movies?
    c. Is ther ea better way other than relative references?

    TIA!

    pat

  2. #2
    Junior Member
    Join Date
    Jun 2006
    Posts
    15
    I may have solved this... (All it takes is to post to a group/forum)

    I changes all instances in Movie B (middle movie) of: _level0 to this

    Basically, ass I had suspected, converting my stand-alone absolute target/reference code to relative.

    pat

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