A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [CS3] Importing .swf into flash Question

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Location
    Dallas, TX
    Posts
    7

    [CS3] Importing .swf into flash Question

    I am working on a website and I am trying to import an existing .swf file of mine into the flash project I have been creating for the web. When I import the .swf file it does not function like it is supposed to because all the functionality is gone. All the files in its existing library is imported and so is the movie but the timeline is down to nothing. Any ideas??
    http://board.flashkit.com/board/imag...s/confused.gif

  2. #2
    Just so I understand correctly: Are you trying to dynamically load the existing SWF into the new one at runtime, or are you working in the FLA of the new SWF and you're trying to import the existing SWF in?

    Best,

    --eric

  3. #3
    Flash Developer
    Join Date
    Jul 2008
    Location
    Scotland
    Posts
    106
    Are you trying to modify an old swf file? Once the fla file has been compiled, it is very difficult to properly decompile it to its normal state. There are a few decompilers around but i dont think that they work very well.

    If you are loading it in to the new flash file, use loadMovie() or loadMovieClip()

  4. #4
    Junior Member
    Join Date
    Jul 2008
    Location
    Dallas, TX
    Posts
    7
    I am not trying to decompile or modify it. I just want to simply have it run in my new flash project. Like I said, when I import it, it imports all wacky. My main goal is to make a website in flash and have on different pages, existing swf files embedded within. They are interactive but when I import them they lose the timeline frame properties and its basically just symbols grouped together.

  5. #5
    Hey there!

    I think you may be a little confused on "importing". Typically if you want to use an existing swf inside a parent swf, you won't import it using File>Import>Import to Stage. Instead, you would create a holder movie clip and then load the swf into that holder clip using MovieClip.loadMovie() or MovieClipLoader.loadClip() in AS2 or Loader.load() in AS3. The reason you do this is exactly what you're running into: once Flash creates a SWF, it compiles it, so if you import it into another FLA using File>Import>Import to Stage, it acts all screwy because Flash is trying to read a compiled SWF and treat it like an FLA.

    For a quick intro on loading clips in AS2, check out this link: http://livedocs.adobe.com/flash/8/ma...=00001562.html

    For a quick intro on loading clips in AS3, check out this link: http://livedocs.adobe.com/flash/9.0/...=00000216.html

    Rock on!

    --eric

  6. #6
    Junior Member
    Join Date
    Jul 2008
    Location
    Dallas, TX
    Posts
    7
    thanx!

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