Jason Merrill
Bank of America Global Learning
Shared Services Solutions Development
Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dav
Sent: Wednesday, April 15, 2009 8:14 AM
To: [email protected]
Subject: [Flashcoders] Access objects in embedded swf
Hi guys!
I'm having a problem accessing movieclips within an embedded SWF.
Here is some code:
...
[Embed(source = 'portfolio.swf')]
public var Portfolio:Class;
public function Main()
{
var portfolio:* = new Portfolio();
addChild(portfolio);
portfolio.x = 0;
portfolio.y = 0;
portfolio.a1.x = 150; // Fails
}
...
portfolio.a1.x fails, even though there is a movieclip inside
portfolio.swf
called a1.
ReferenceError: Error #1069: Property a1 not found on Main_Portfolio and
there is no default value. at Main()[D:\Flash\NewProject\Main.as:19]
Any ideas?
Thanks in advance!
Dav
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders