A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Target path problem

  1. #1
    Member
    Join Date
    Jun 2006
    Location
    Leeds UK
    Posts
    84

    Target path problem

    Hi

    I am loading a swf to a container mc like this:

    _root.container.loadMovie("my.swf");

    the problem is all the fuctions that I have in "my.swf" stop working becuase target path changes to something like this for example:

    _root.container.mc1 (before it was _root.mc1!).

    therefore I was wondering is there a way to fix this problem without having to change all my paths in "my.swf".

    Thanks

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    can you apply - this._lockroot = true; - to my.swf ??

  3. #3
    Member
    Join Date
    Jun 2006
    Location
    Leeds UK
    Posts
    84
    Hey modified dog!

    thanks for your reply, but where do i exactly put the this._lockroot=true;?
    should be on the first keyframe of my action script layer?

    many thanks

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    have a look at -
    ActionScript 2.0 Best Practices
    http://www.adobe.com/devnet/flash/ar...ctices_04.html

  5. #5
    Member
    Join Date
    Jun 2006
    Location
    Leeds UK
    Posts
    84
    ok will do.

    Thanks

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