A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: referencing lirbary graphics from an external swf

  1. #1
    curiouser and curiouser LittleRed's Avatar
    Join Date
    Mar 2004
    Location
    Nottingham
    Posts
    335

    referencing lirbary graphics from an external swf

    sorry - I'm sure this has been asked before, I've tried searching but couldn't find it.

    I'm loading an external swf for each map level which holds the graphics for that level. Each of the external swfs has a movieclip set with a linkage name of 'tile'.
    How can I reference that movieclip from the main swf though?
    I've tried using the path of the MC that the external swf is loaded into and then the linkage identifer (ie. path.tile) but that's not worked.

  2. #2
    Untitled-2.fla
    Join Date
    Jul 2002
    Posts
    391
    *I think* you'll have to load your external .swf tileset into a new movieclip. that movieclip becomes your library so you can only attach tiles within that e.g

    Code:
    world = createEmptyMovieClip ( 'world', 1 )
    world.loadMovie ( 'myswf' )
    // when loaded
    tile = world.attachMovie ( 'tile', 'name', depth )
    you can't attach your tile clip to any other clip apart from the movieclip you have loaded the tileset into. (hope that made sense)

    I think xmcnuggetx posted some .flas years ago

    hope it helps

  3. #3
    curiouser and curiouser LittleRed's Avatar
    Join Date
    Mar 2004
    Location
    Nottingham
    Posts
    335
    ahh - I get it - 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