Tween Class Help Please
- Started
- Last post
- 12 Responses
- tymeframe
Here's my code. Innovations is my instance name. For some reason, I can't get the alpha to work. Flash 8....AS2.
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myTween:Tween = new Tween (innovations,"_x",Strong.easeOut...
var myTween:Tween = new Tween (innovations, "_alpha", None.easeNone, 0, 100, 2, true);
- zaq0
var myTween2:Tween = new Tween (innovations, "_alpha", None.easeNone, 0, 100, 2, true);
- tymeframe0
alpha still doesn't work. my original code didn't past right though. hopefully this will show everything...
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myTween:Tween = new Tween (innovations,"_x",Strong.easeOut...
var myTween2:Tween = new Tween (innovations, "_alpha", None.easeNone, 0, 100, 2, true);- I copied and pasted code, and it works fine for me. Alpha and _x move
joyride
- I copied and pasted code, and it works fine for me. Alpha and _x move
- zaq0
try mc_twee2n.as http://hosted.zeh.com.br/mctween…
- flashbender0
throw your code up at pastebin.se/
That way people can see all of it and easily post revised code.
- visualplane_0
When I have one tween here it works, but when I have 4 sets of tweens nothing happens. What's wrong here?:
import fl.transitions.Tween;
import fl.transitions.easing.*;buttonSectionA.addEventListener... , SectionA);
function SectionA(event:MouseEvent):void
{
var myTweenA:Tween = new Tween(mainBox, 'x', Strong.easeOut, 0, 65, 1, true);
}buttonSectionB.addEventListener... , SectionA);
function SectionB(event:MouseEvent):void
{
var myTweenB:Tween = new Tween(mainBox, 'x', Strong.easeOut, 0, -831, 1, true);
}buttonSectionC.addEventListener... , SectionA);
function SectionC(event:MouseEvent):void
{
var myTweenC:Tween = new Tween(mainBox, 'x', Strong.easeOut, 0, -1731, 1, true);
}buttonSectionE.addEventListener... , SectionA);
function SectionE(event:MouseEvent):void
{
var myTweenD:Tween = new Tween(mainBox, 'x', Strong.easeOut, 0, -2631, 1, true);
}
- uan0
i have no idea...but the ...,SectionA) in all of your sections looks weird, as you have defined SectionB, SectionC, SectionD
- Oh yeah, you're right. I made the changes, but it still doesnt' workvisualplane_
- mcLeod0
i have had trouble with the ease portion of the code before. try Regular.easeNone
- visualplane_0
The error message I get referring to the function and tween lines are repeated 4 times:
The class or interface 'MouseEvent' could not be loaded.
The class or interface 'fl.transitions.Tween' could not be loaded.
- lvl_130
you sure you have the external AS files in the right spot?
you sure that you are not trying to export as AS3?
- I have the codes in the main flash movie rather than a external .as filevisualplane_