Hey, sorry, haven't been paying attention to flashcoders much as things
have been busy the past couple days.....so I'm picking this thread up at
the end, and don't really know what's going on. But I'm hearing you
want JSFL examples, and specifically external XML file to animation.
Among a few examples on my webpage, I have a Director executable which
contains a ball which you drag around. It creates a text file, which
then when you run the JSFL script it will prompt you to open the text
file containing your animation and then writes the motion to the timeline.
If this is what you're after feel free to look!
http://www.yellow5labs.com/demos/
ben
Muzak wrote:
You're not gonna find much JSFL examples out there I'm afraid.
Not that many people really use it (extensively).
There used to be a jsfl mailing list..
Ah, found it:
http://www.flashguru.co.uk/extending-flash-mailing-list/
I used to be on it, but there wasn't much activity and I left a while ago.
Might be worth looking into.. In any case, people there will be able to help
you out (as it's all about jsfl).
The things you mentioned all are possible through jsfl AFAIK.
For instance, the following will show a 'browse for file' dialog and then read
it and display the contents in the Output panel:
var fileURL = fl.browseForFileURL("open", "Select file");
fl.trace(fileURL);
var str = FLfile.read( fileURL);
fl.trace(str);
Note that file content is returned as a String.
regards,
Muzak
----- Original Message -----
From: "Roy Pardi" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, June 07, 2007 4:42 PM
Subject: Re: [Flashcoders] examples of scripting the Flash application?
At 11:53 AM +0200 6/7/07, Muzak wrote:
And wich part are you having problems with?
Well, I've been digging around for examples (for instance, of opening a
file picker) so I can see JSFL in action along with info on any dead ends
or other issues that would indicate that what I want to do isn't possible.
Guess I was too vague about what I want to try to do- basically, within the
Flash app:
1. user opens a template movie that contains a Library of movieClips
2. user selects my command from the menu
3. the command opens a file picker dialog box where they can select a
previously created XML file
4. my command parses the XML file and instances the appropriate movieClip
from the librbary, setting name & text props from the XML data
5. my command opens a "save as" dialog so the file can be saved
6. user can adjust/tweak positions of added MCs and then publish the swf.
(just thinking out loud here)
_______________________________________________
[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
_______________________________________________
[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