attribute, but it is used for something else.
--- In [email protected], "oktay nba" <[EMAIL PROTECTED]> wrote:
>
> thnx Geoffrey, it ran. but still i dont get it why "target" didn't
answer
>
> oktay caglar
>
>
>
> On 5/25/06, Geoffrey Williams <[EMAIL PROTECTED]> wrote:
> >
> > Use relativeTo instead of target:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="*"
> > layout="absolute"
> > creationComplete="initData()">
> > <mx:Script>
> > <![CDATA[
> >
> > private var welcomeScreen:denemeci;
> > private function initData():void{
> > currentState='first';
> > }
> >
> > ]]>
> > </mx:Script>
> > <mx:states>
> > <mx:State name="first">
> > <mx:AddChild relativeTo="{targetBox}">
> > <mx:Label text="hello world" />
> > </mx:AddChild>
> > </mx:State>
> > <mx:State name="second">
> > <mx:AddChild relativeTo="{targetBox}">
> > <mx:Label text="byebye world" />
> > </mx:AddChild>
> > </mx:State>
> > </mx:states>
> > <mx:HBox width="100%">
> > <mx:VBox id="targetBox" height="100" width="100"/>
> > <mx:Button click="currentState='first'" />
> > <mx:Button click="currentState='second'" />
> > </mx:HBox>
> > </mx:Application>
> >
> > --- In [email protected], "oktay nba" <iamthelf@> wrote:
> > >
> > > hi everyone;
> > > i can't change states. i write a simple code, but i can't work
it
> > too. is it
> > > a bug of flex or flash player?
> > > here is the code:(in flex 2 beta2 it is done well but in beta
3 it
> > sucks)
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

