Passing variables to loading SWF

20 views
Skip to first unread message

Hristo

unread,
Aug 29, 2010, 2:59:07 PM8/29/10
to BulkLoader users
Hi;

I need to do an flash AS3 application that will have to load load SWF
with a lot of params. The app then will be exported as a projecor and
all the reading will be from the CD. So how exactly I can pass the
variables to the loading SWF, when I'm not using server, but just
normal OS file system?

Sawrb

unread,
Aug 30, 2010, 11:52:52 PM8/30/10
to BulkLoader users
I'm trying to figure this one out too. Looked through the
documentation.
Searched the Google group. Nothing decisive yet.

Lars Schwarz

unread,
Sep 1, 2010, 5:46:16 AM9/1/10
to bulkload...@googlegroups.com
simple example: create a new swf, add a textfield name "mytextfield"
to it, export it as "testbulk.swf".
then use this to load the swf and parse a variable/set the textfield contents:

function onAllItemsLoaded(evt:BulkProgressEvent):void{
var content : * = loader.getContent("testswf");
addChild(content);
Object(content).mytextfield.text = "hello world";
}

loader = new BulkLoader("main");
loader.add("testbulk.swf",{id:"testswf"});
loader.addEventListener(BulkLoader.COMPLETE, onAllItemsLoaded);
loader.start();

hth: lars

> --
> You received this message because you are subscribed to the Google Groups "BulkLoader users" group.
> To post to this group, send email to bulkload...@googlegroups.com.
> To unsubscribe from this group, send email to bulkloader-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/bulkloader-users?hl=en.
>
>

--
Lars Schwarz
Heiligengeist Höfe 2
26121 Oldenburg
T +49(0)441 36110338
M +49(0)151 1727 8127
W www.bitrocker.com
FB www.facebook.com/bitrocker
TWTTR: www.twitter.com/bitrocker

Reply all
Reply to author
Forward
0 new messages