I still don't understand.  You want to create a completely new SWF?  Why not 
just modify the display list of the SWF at runtime?  Find the tempIMage, remove 
it, replace it with flash.display.Loader and load the jpg.

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of yk96290
Sent: Thursday, August 28, 2008 6:38 AM
To: [email protected]
Subject: [flexcoders] Re: Need help about generating swf from template flash 
file


Alex,

This is a custom header for a page. The header is a swf from a flash
template. Suppose the template swf file is there. I'll dynamically
use the swf. For instance, I have a movie clip tempImage in the swf,
in my flex, I'll replace tempImage with a1.jpg, a2.jpg, ... etc on
different scenarios.

Young

--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, "Alex 
Harui" <[EMAIL PROTECTED]> wrote:
>
> You're going to generate a SWF file from within a running Flex app?
> That's a lot of work. Why not use the SWF from the FLA as a
library of
> assets and dynamically use them in your Flex UI?
>
>
>
> From: [email protected]<mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On
> Behalf Of yk96290
> Sent: Wednesday, August 27, 2008 8:55 PM
> To: [email protected]<mailto:flexcoders%40yahoogroups.com>
> Subject: [flexcoders] Need help about generating swf from template
flash
> file
>
>
>
> I have a template flash file (.fla) that contains image, text and
> links. In the flex application, at run time, a swf file will be
> generated from this template. All place holders will be replaced by
the
> real data. Any suggestions?
>
> Young
>

Reply via email to