View Full Version : TweenLite error
pixielex
02-05-2008, 07:51 PM
I'm trying to use TweenLite. I've installed it, and I'm importing into my clas properly, but whenever I try to use it I get multiple errors of the type:
"Type was not found or was not a compile-time constant: Void"
Why is it having an issue with the Void data type in the TweenLite script itself? And why does nobody else seem to have the same problem?
neznein9
02-05-2008, 07:55 PM
Sounds like there is some AS2 code in there somewhere...make sure youve got the right version.
pixielex
02-05-2008, 07:56 PM
Aaahhh, somehow I didn't realize that the default download was an AS2 version. Thank you!
elaniobro
05-04-2008, 08:33 PM
Hey, I too am having difficulty importing TweenerLite. Here is the code I have:
import gs.TweenLite;
TweenLite.to(mcCircle, 1, {alpha:0});
I have gone into the publish settings and targeted my folder labled, 'as' that has all my classes in it in sub folders.
looks like this:
AS
TWEENERLITE
gs
TweenerLite.AS
driving me bonkers. any help would be appreciated, and yes it is the AS3.0 class I am using.:confused:
elaniobro
05-04-2008, 08:55 PM
Alright, I got it to work, ONLY IF i save the .fla in the same folder as the gs folder that contains the .as file.
I'd still like to know what the reason for not being able to target the class in a diffrenct directory is.
My next question is how would I implent using the code to propagate into a sub movieclip?
Here's my code:import gs.TweenLite;
folder_group.addEventListener(MouseEvent.MOUSE_OVE R, onFolderOver);
folder_group.addEventListener(MouseEvent.MOUSE_OUT , onFolderOut);
function onFolderOver(evt:MouseEvent):void{
evt.target.alpha = 1;
//how to I add: TweenLite.to(mc, 1, {alpha:1}); to affect all the sub movies //inside the evt.target??
}
function onFolderOut(evt:MouseEvent):void{
evt.target.alpha = .5;
//how to I add: TweenLite.to(mc, 1, {alpha:1}); to affect all the sub movies //inside the evt.target??
}
//folder_group.mouseChildren = false;
Cheers!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.