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?
thanks!
-jeff
On Jul 16, 2006, at 9:53 AM, James Deakin wrote:
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 Jul 15, 2006, at 10:27 PM, Jeff Stearns wrote:
> I hope that you'll take pity on a Flash novice. I'm an experienced
> programmer, but Flash is very new to me.
>
> I need to generate SWF movie files containing embedded data such as
> title, production year, etc. The Flash player needs to be able to
> read these values when it starts playing the movie.
>
> I'd really appreciate advice on how best to do this.
>
> I wrote the program which generates the SWF files, so I have
> complete control over their content. I tried embedding variable
> assignments in the first frame of my SWF files by generating the
> bytecodes to perform variable assignments (ActionPush "year",
> ActionPush 2006, ActionSetVariable). But I can't figure out how to
> access these variables from the Flash player. Hints?
>
> Or is there a better way to approach this? All I want is for the
> player to be able to extract a few values from each movie file.
>
> Thanks for your help! -jeff
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com