[osflash] Importing a Flash Movie
beno -
flashmebaby at gmail.com
Sat Nov 14 02:55:52 PST 2009
Hi;
The following code throws this error:
Call to a possibly undefined method LibraryItem
Here's the code, attached through the Document Class in the Properties:
package
{
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.plugins.*;
import com.greensock.easing.*;
TweenPlugin.activate([AutoAlphaPlugin]);
public class Main extends MovieClip
{
private var mcHatAndFace:MovieClip;
public function Main():void
{
mcHatAndFace = new LibraryItem();
mcHatAndFace.x = 100;
mcHatAndFace.y = 100;
mcHatAndFace.alpha = 0;
addChild(mcHatAndFace);
}
}
TweenLite.to(mcHatAndFace, 1, {autoAlpha:1}); // 2nd param in seconds; 3rd
in % alpha
}
Do I have to import the flash movie itself? Please advise.
TIA,
beno
PS I posted this to Adobe a day ago and not a nibble. I sure wish I could
find an active exclusively Flash AS3 list to ask these questions!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/osflash_osflash.org/attachments/20091114/6b273bc4/attachment.html>
More information about the osflash
mailing list