Yup, thanks. This work fine for me, too.
 
But, I get another problem, when I refresh my page that when application has
run /create , I see a component show at first ( but it fast, like blink ),
and do a transition function again. Try and see, you will see too.
 
 I think it happen cause I locate the function on creationComplete ( not
onCreate ), so the presentation must be create and complete before do the
function.
 
When I try to use transition with mxml style, the result is different.
 
Can we solve this problem ? I want to use actionscript style to my effect
transition.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joan_lynn
Sent: Saturday, February 16, 2008 2:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Adding parallel transition effect or filter to
target when create on Base St
 
Your code works fine for me. I tried it in Flex 3 and Flex 2.0.1. What
build are you using. Please be sure that you have the panLogin object
in your application. Here is the entire application that I compiled:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="vertical" creationComplete="createEffect(event)">
<mx:Script>
<![CDATA[
import mx.effects.*;

public var myZoomShow:Zoom;
public var myRotateShow:Rotate;
public var ZRShow:Parallel;

private function createEffect(eventObj:Event):void {
// Create a Zoom effect.
myZoomShow=new Zoom(panLogin);
myZoomShow.zoomHeightFrom=0.0;
myZoomShow.zoomWidthFrom=0.0;
myZoomShow.zoomHeightTo=1.0;
myZoomShow.zoomWidthTo=1.0;
// Initialize a Rotate effect.
myRotateShow=new Rotate(panLogin);
// Initialize a Parallel effect.
ZRShow=new Parallel();
ZRShow.addChild(myZoomShow);
ZRShow.addChild(myRotateShow);
ZRShow.play();
}
]]>
</mx:Script>

<mx:TitleWindow id="panLogin" title="blue moon" showCloseButton="true">
<mx:Button label="open popup"/>
<mx:TextInput />
</mx:TitleWindow>
</mx:Application>



 

Reply via email to