A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: MC level help!!

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    9

    MC level help!!

    Hello everyone! Am building a flash website for my Warcraft3 clan, in which there is a main page that will load external .swf file. Now the thing is, in one of the .swf file, I simulate rain, and I use the function: " duplicateMovieClip ("_root.drop", c, c); "
    to duplicate the rain drop animation. The thing is it works great if I view News.swf which is the .swf file with rain simulation. However if view the main .swf and when I click a button to load News.swf, my rain simulation disappear. Now I heard someone mention about the fact that when I load a .swf file into an empty movieclip, that .swf will be consider as a movieclip and the _root isnt the same anymore.

    So knowing about the problem, can anyone tell me a way to fix this ? To make my rain simulation works when I use my main .swf . Thank in advance.

    http://www.sospublicidad.com/sgl/News.swf

    http://www.sospublicidad.com/sgl/Header.swf which is the main .swf
    anhstar

  2. #2
    Senior Member
    Join Date
    Apr 2003
    Posts
    138
    You need to use _parent. It isn't at the _root level anymore so if you use _parent it should work.

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    9
    I tried _parent.drop doenst work.
    anhstar

  4. #4
    Junior Member
    Join Date
    Dec 2000
    Posts
    9
    nevermind I got it to work, instead of using _root.drop, I simply remove the _root and it works.
    anhstar

  5. #5
    Senior Member
    Join Date
    Apr 2003
    Posts
    138
    Is the rain supposed to move? On my screen it is there but not moving.

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