. aka The Helmsman
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rifled
Cloaca
Sent: Wednesday, July 19, 2006 5:29 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How to embed metadata in SWF files?
Are you simply opening the SWF file directly
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rifled
Cloaca
Sent: Wednesday, July 19, 2006 5:29 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How to embed metadata in SWF files?
Are you simply opening the SWF file directly, or loading it into a wrapper
SWF?
If you're
Are you simply opening the SWF file directly, or loading it into a wrapper
SWF?
If you're loading it directly... it's just
_root.var1
_root.var2
...
If you're loading it into a wrapper, like so:
_root.myClip.loadMovie(path/to/my/movie.swf);
once it loads, you'll be able to access the data
Or you could create a SWF using MTASC or the Flash IDE, and replace the
variables after it is published like this guy does:
http://www.neurofuzzy.net/2005/01/27/swf-recombination/
On 7/16/06, Mike Britton [EMAIL PROTECTED] wrote:
I would build a wrapper MovieClip class extension for your
I don't have any problems getting variable assignments into the SWF
file.
I have problems accessing their values when I'm playing the movie.
The SWF contains some ActionScript in frame 1 which sets variables
like title=My First Movie, year=2006.
But how can my Flash player access those
Mike et al -
I'm targeting the current Flash player releases on Linux, Windows,
and Mac, so that would be Flash 7 through 9.
I'm generating the SWF's using a SWF compiler that I wrote, so I have
total control over the SWF file that I generate.
Hopes this helps,
-jeff
On Jul 15, 2006,
I would sudgest the following.
1. you can simply define variables by creating an AS file the complier
parses. you can declare the vars in there
2. There is an existing open source complier called MTASC (osflash.org has
lots of info on this)
hope that helps
On 7/16/06, Jeff Stearns [EMAIL
That's basically what I'm doing now. (I used a different compiler
instead of MTASC, but the difference seems irrelevant here.)
But how do I read those variables from my UI running in the Flash
player? I want to load my movie and then read the variables. How do
you folks do that?
I would build a wrapper MovieClip class extension for your compiled
SWF, and use LocalConnection to send/receive the values. That is, use
LocalConnection in both the compiled swfs and in the wrapper. The
wrapper is the receiver and the compiled clips are the broadcasters.
A couple questions for you Jeff:
1. What version of Flash player are you targeting?
2. How are you generating the swfs?
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
10 matches
Mail list logo