Re: InsertPngFileCommand
Dmitry Skavish <[email protected]> Mon, 06 Oct 2003 22:40:57 -0400
| Newsgroups | gmane.comp.java.jgenerator.devel |
|---|---|
| Organization | JZox, Inc. |
| Message-ID | <[email protected]> |
> InsertPngFileCommand (or any other command for that matter) takes in a > Context object. Where does this context object come from. Is it > automagically created or do I have to manually create it and set the > properties? Which brings me to my next question -- where does this > command get the name of the png file to insert? Context object gets created for any command. It usually represents so called Generator Environment in Flash authoring tool. For example if you put some name/variable datasources into Generator Environment (either inline or through some file) on some timeline and then place Generator object on that same timeline then this Generator object will receive context created from that datasource. Note that context are linked from child to parent, so for example if you query some context for some variables and there is no such variable then the context will ask its parent and so on. If you put xml datasources into Generator environment then XML Context will be created. Such context can be queried using xpath expressions. -- Dmitry Skavish ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf