Hi, Nell, thanx for ur strict comment on some thread just earlier...............
 
 I am interested to know , does your code worked well for Flex-2 beta-1 .???
 
coz i have coded one state and transition application that works fine for flex-2 beta-1 but when i upgrade to flex-2 beta-2 it just stop working... I did relevent changes accordingly in code but still hunting for appropiate docs that may work for flex-2 beta-2.........
 
 
 


 
On 3/29/06, Johannes Nel <[EMAIL PROTECTED]> wrote:
hi all

I am able to create states fine programatically, even assign transitions to the view, but my transitions don't trigger when i switch from one state to another

    var stateArray:Array = (__view.states != null)?__view.states.concat(): new Array();
            var nState:State = new State();
            nState.name = "Open";
            var propw:SetProperty = new SetProperty(__view,"percentWidth",100);
            var proph:SetProperty = new SetProperty(__view,"percentHeight",100);;
            nState.overrides.push(propw);
            nState.overrides.push(proph);
            stateArray.push(nState);
           
            nState = new State();
            nState.name = "Closed";
            var propw:SetProperty = new SetProperty(__view,"width",__collapsedSize);
            var proph:SetProperty = new SetProperty(__view,"height",__collapsedSize);;
           
            nState.overrides.push(propw);
            nState.overrides.push(proph);
            stateArray.push(nState);
           
            var nTransition:Transition = new Transition();
            //nTransition.fromState = "Open";
            //nTransition.toState = "Close";
           
            var res:Resize = new Resize();
            res.target = __view;
            res.duration  = 400;
         
            nTransition.effect = res;
            __view.transitions = __view.transitions || new Array();
            __view.transitions.push(nTransition);
           
            __view.states = stateArray;


thanks in advance for any help.
j
--
j:pn
http://www.lennel.org


--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
jignesh dodiya


--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to