Skip navigation
Currently Being Moderated

Newbie question

Jan 27, 2011 12:21 AM

Unsure if this is FB or Flex question:

 

I'm pretty new to FB/Flex (coming from Flash/AS3), and the workflow I'm in is FCatalyst -> FB.

 

Is there a way to "embed" all assets (i.e. other swfs), in the "main output swf"? The rationale for this is to somewhat "package" a self-contained swf for distribution (instead of making sure the 'assets' folder is where it should be, etc.). I've looked at prefs and project properties, and can't find a setting (if one exists).

 

Thanks for any input.

 

If this is the wrong forum, apologies....

 

Ed

 
Replies
  • Currently Being Moderated
    Jan 27, 2011 9:19 AM   in reply to Ed@SF

    I just found this from the docs

     

    >>By default the images you add to your application are embedded and published as part of the SWF file.<<

     

    http://help.adobe.com/en_US/flashcatalyst/cs/using/WSe0363cf428f0b465f fa9edb1273635cfd7-8000.html

     

    Hope this helps.

     

    Thanks

    -Sunil

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 30, 2011 11:02 PM   in reply to Ed@SF

    Hi Ed,

     

    I created a project in Panini (the upcoming version of FC) and added an image and exported the fxp and imported that in Burrito (upcoming version of FB). This is what I got in the main.mxml.

     

              <s:BitmapImage x="257" y="13" smooth="true"

                                source="@Embed('/assets/images/ai124794742037.png')"/>

     

     

    Basically all the images by default are embedded in the swf that gets compiled.

    After adding my own event handlers, I exported the project from FB and imported in FC and ran the project without any issues.

     

    Is there anything I missed?

     

    Thanks

    -Sunil

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points