|
Sorry for the delay, I have tried your suggestions and
other things but can't make it happen.
It seems ok to import the transitions package, no error
pops up, I can't declare var new my_tween = new Tween() but it allows me to do
var my_tween = new mx.transitions.Tween() which seems quite strange to me,
because I import
mx.transitions.*
As it fails silently I have no clue on what's going on
here :(((((
Here's my code with trace actions:
<?xml version="1.0"
encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" creationComplete="myTween()"> <mx:Script> <![CDATA[ import mx.transitions.*;
var dummy:Object = {val:''}; function myTween(){ //mx.core.Application.alert('starting'); dummy = {val:''}; var my_tween = new mx.transitions.Tween(dummy, 'val', null, 0, 100, 10, true); my_tween.> mx.core.Application.alert('onMotionChanged'); } my_tween. { mx.core.Application.alert('onMotionFinished'); }; } ]]> </mx:Script> </mx:Application> Philippe
Maegerman
PS: I have tested this in flashMX2004 (except for the trace
statements) and it works perfectly well
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: dimanche 11 septembre 2005 6:13 To: [email protected] Subject: RE: [flexcoders] Tween classes Try not using _level0, go through Application.application. And see if you should be using Delegates too J
Matt
From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Maegerman
I think the mx.transitions.Tween and mx.transitions.easing.* classes are not present in Flex, is there a way to use them? I tried the following that works in Flash but not Flex:
var dummy =
{val:''};
Regards,
Philippe Maegerman
------------------------------------------------------------------ This e-mail and any attached files are confidential
and intended solely for the use of the individual to whom it is addressed. If
you have received this email in error please send it back to the person that
sent it to you. Any views or opinions presented are solely those of author and
do not necessarily represent those the Emakina Company. Unauthorized
publication, use, dissemination, forwarding, printing or copying of this email
and its associated attachments is strictly prohibited. We also inform you that we have checked that this
message does not contain any virus but we decline any responsability in case of
any damage caused by an a non detected
virus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|

