A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: _root/_lockroot

  1. #1
    Junior Member
    Join Date
    Feb 2000
    Location
    Dural, Australia
    Posts
    22

    _root/_lockroot

    Hey there
    Need some help here. I'm doing a site where I've adapted an image gallery swf with a complicated AS and loading into the main swf at level 1. Is there a simple means of getting the main swf to refer to the external content the gallery is loading as being on the _root level? I thought i could use _lockroot but my understanding of it is pretty scanty and I'm unsure as to where I should place the code anyways

    The site with the non-loading images is currently at
    http://www.dalliancedesigns.com/vwcountry/cars.html
    if anyone would care to take a look

    Many thanks
    tonto

  2. #2
    Senior Member
    Join Date
    May 2003
    Location
    New Jersey
    Posts
    291
    _lockroot is to lock any references to _root within the external SWF to the _root of the external SWF, not the _root of the containing SWF.

    Once you have loaded the external SWF, you should be able to walk down its path. If you are having trouble figuring it out, place this line of code in the external SWF

    trace(this);

    That will give you the path to the _root layer of the external SWF.

  3. #3
    Junior Member
    Join Date
    Feb 2000
    Location
    Dural, Australia
    Posts
    22
    Ahh ok. Thanks Marvyn.. I always seem to have problems with levels.. particularly if they involve loading jpgs into the swfs at level1.. I might just post the whole swf and see if someone can come to my rescue..

    Many 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