Adobe Dreamweaver Forums



Last 10 THreads :         Making constraints on a symbol... (Last Post : sirkibble2 - Replies : 0 - Views : 1 )           »          Creating a boundry in the stage... (Last Post : fazstp - Replies : 2 - Views : 3 )           »          Director or Flash? (Last Post : Sean Wilson - Replies : 1 - Views : 2 )           »          DW8 Activation not working (Last Post : moonliner - Replies : 0 - Views : 1 )           »          Re: Mouse capture won't activate (Last Post : robertnagle - Replies : 0 - Views : 1 )           »          help! my FB3 has gone insane! (Last Post : peteandrus - Replies : 0 - Views : 1 )           »          help! my FB3 has gone insane! (Last Post : peteandrus - Replies : 0 - Views : 1 )           »          How come the html is being displayed, and not the link (Last Post : Skaterstu - Replies : 0 - Views : 1 )           »          Another way to accomplish this (Last Post : Andy-K - Replies : 2 - Views : 3 )           »          HELP! Cannot upload files in DW CS4 (Last Post : dan@hoppernet.org - Replies : 6 - Views : 7 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , , ,



Reply
  #1 (permalink)  
Old 09-08-2008, 02:34 AM
SiHoop
 
Posts: n/a
Diggs:
Default Writing mxml transition in as3

How do I write the following mxml code in AS3? Thanks!


<mx:transitions>
<mx:Transition fromState="addState" toState="*">
<mx:Fade duration="300" target="{addTeacherButton}"/>
</mx:Transition>
</mx:transitions>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-08-2008, 04:14 AM
CrazyAlabmianLlama
 
Posts: n/a
Diggs:
Default Re: Writing mxml transition in as3

I hope this helps

Chris

private function init():void{
addEventListener(StateChangeEvent.CURRENT_STATE_CH ANGING, myStateChange);
}

private function myStateChange(event:StateChangeEvent):void{

if(event.oldState == "addState" && event.newState == "*"){
var myFade:Fade = new Fade(addTeacherButton);
myFade.duration = 300;
myFade.alphaFrom = 1;
myFade.alphaTo = 0;
myFade.play()
}

}

Reply With Quote
  #3 (permalink)  
Old 09-08-2008, 04:14 AM
CrazyAlabmianLlama
 
Posts: n/a
Diggs:
Default Re: Writing mxml transition in as3

I hope this helps

Chris

private function init():void{
addEventListener(StateChangeEvent.CURRENT_STATE_CH ANGING, myStateChange);
}

private function myStateChange(event:StateChangeEvent):void{

if(event.oldState == "addState" && event.newState == "*"){
var myFade:Fade = new Fade(addTeacherButton);
myFade.duration = 300;
myFade.alphaFrom = 1;
myFade.alphaTo = 0;
myFade.play()
}

}

Reply With Quote


  #4 (permalink)  
Old 09-08-2008, 04:14 AM
CrazyAlabmianLlama
 
Posts: n/a
Diggs:
Default Re: Writing mxml transition in as3

I hope this helps

Chris

private function init():void{
addEventListener(StateChangeEvent.CURRENT_STATE_CH ANGING, myStateChange);
}

private function myStateChange(event:StateChangeEvent):void{

if(event.oldState == "addState" && event.newState == "*"){
var myFade:Fade = new Fade(addTeacherButton);
myFade.duration = 300;
myFade.alphaFrom = 1;
myFade.alphaTo = 0;
myFade.play()
}

}

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 02:32 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk