This is a discussion on Embed variable must not have an existing value within the advanced Actionscript 3.0 forums, part of the Flash English category; GoodMorning! guys i have a document class(Main) calling another class(Sub). So inside of "Main" we have: Code: sub:Sub=new Sub(); addChild(sub); ...
GoodMorning!
guys i have a document class(Main) calling another class(Sub).
So inside of "Main" we have:
In "Main" class we have "Arial" font embedded like this:Code:sub:Sub=new Sub(); addChild(sub);
In "sub " we have several textFields with "arial"(device font) as well.Code:[Embed(source="c:/windows/fonts/arial.ttf", fontFamily = "_Arial")] private var _Arial:Class;
So if I call "sub" inside of "Main" i receive this error message:
"Main.as An Embed variable must not have an existing value. "
Where's the problem?
And if i would like to use embedded "arial" in both classes what should i do??
thanx!
Bookmarks