<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - main - 00000066.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T18:57:13</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000066.html#82257" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000066.html#73302" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000066.html#82257">
		<title>flash/9.0/main/00000066.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000066.html#82257</link>
		<description>In Flash CS3&lt;br /&gt;I have a library.swf with a movie clip Background_mc in the library I am trying to embed from this swf into another through a class.&lt;br /&gt;In this  document class I do:&lt;br /&gt;[Embed(source='library.swf'  symbol='Backgroud_mc')] Private var Background_mc:Class; Private var _myBG:MovieClip&lt;br /&gt;&lt;br /&gt;Function init():void{&lt;br /&gt;	myBG = new  Background_mc();&lt;br /&gt;	addChild(myBG)&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;This throws an error:&lt;br /&gt;TypeError: Error #1007: Instantiation attempted on a non-constructor.&lt;br /&gt;&lt;br /&gt;What am I doing wrong?</description>
		<dc:creator>Cor van Dooren</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-03-24T06:00:39</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000066.html#73302">
		<title>flash/9.0/main/00000066.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000066.html#73302</link>
		<description>This embedding assets question gives my workflow a hickup.&lt;br /&gt;Some people I cooperate with use the &quot;Embed tag&quot; to embed asssets:&lt;br /&gt;[Embed ( source='myimage.png' ) ]&lt;br /&gt;var Texture:Class;&lt;br /&gt;The result of instantiating Texture is a Bitmap object, which is then used.&lt;br /&gt;&lt;br /&gt;When I take their code to CS3 and try to compile, it doesn't like it at all.&lt;br /&gt;I have to import the image to the fla library, export to AS and give it a class name Texture. When i want to use the image, I instantiate Texture, but this time I get a BitmapData object, so I have to rewrite the code that uses the image too.&lt;br /&gt;&lt;br /&gt;There's inconcistancy in the asset handling between Flex and CS3 at compile time.&lt;br /&gt;&lt;br /&gt;Further, and this has to be a bug, when you instantiate the class representing the image, youhave to give it fake height and width values, like this:&lt;br /&gt;var pic:BitmapData = new Texture( 10, 10 );&lt;br /&gt;These values can be anything. They are never used and should not be, as the real image values are used.</description>
		<dc:creator>petit</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-09-05T15:11:46</dc:date>
	</item>
	</rdf:RDF>

