Question
sharing a netconnection or netstream between multiple swf
Hi,
I posted this question in the actionscript forum, but couldn't get an answer.
Is it possible to create a NetConnection in one swf and access/use that object in another swf file on the same page?
My goal is to have multiple media components on a web page that the user could enable or disable. I don't want to have to create a new NetConnection for each one, as this is expensive.
According to the docs, LocalConnection can be used to pass objects between two swf files.
Is it possible to send a NetConnection or NetStream object from one swf file to another to redirect a connection / stream without creating a second one? I tried doing this with arbitrary objects, and it works. But when I try to pass in a NetConnection object, it always shows up as undefined on the receiving end.
Thanks.
I posted this question in the actionscript forum, but couldn't get an answer.
Is it possible to create a NetConnection in one swf and access/use that object in another swf file on the same page?
My goal is to have multiple media components on a web page that the user could enable or disable. I don't want to have to create a new NetConnection for each one, as this is expensive.
According to the docs, LocalConnection can be used to pass objects between two swf files.
Is it possible to send a NetConnection or NetStream object from one swf file to another to redirect a connection / stream without creating a second one? I tried doing this with arbitrary objects, and it works. But when I try to pass in a NetConnection object, it always shows up as undefined on the receiving end.
Thanks.
