Thanks so much.
getChildAt(0) is perfectly what i wanted !
getChildAt(0).getStyle("fontSize") worked correctly, and
getChildAt(0).setStyle("moveEffect", "b") also worked.
Thanks again.
Keishichi
--- In [email protected], "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> try
>
> mx.core.Application.application.canvas1.viewstack1.panel1.viewstack2.
> selectedChild.getChildAt(0).getStyle("fontSize");
>
>
> -- In [email protected], "keishichi2001"
> <[EMAIL PROTECTED]> wrote:
> >
> > Actually, 'viewstack2' has defined as following.
> >
> > <mx:ViewStack id="viewstack2" width="100%" height="100%"
> > selectedIndex="{ModelLocator.currentPageNum - 1}" >
> > <mx:Canvas id="cv_1" width="100%" height="100%" >
> > <mx:Image x="0" y="0" source="assets/img01.jpg"
> moveEffect="b" />
> > </mx:Canvas>
> > <mx:Canvas id="cv_2" width="100%" height="100%" >
> > <mx:Image x="0" y="0" source="assets/img02.jpg"
> moveEffect="b" />
> > </mx:Canvas>
> > ...
> > </mx:ViewStack>
> >
> > Therefore your recommendation would pick one of <mx:Canvas>, not
> > <mx:Image> that I really want to pick and change the moveEffect at
> > runtime.
> >
> > Anyway, i tested your recommendation with changing "moveEffect" to
> > "fontSize" which is very style property.
> > and I got correct answer.
> > Also I set "fontSize" property on the <mx:Image>, and tried with
> > following code.
> >
> >
> mx.core.Application.application.canvas1.viewstack1.panel1.viewstack2.
> selectedChild.childDescriptors[0].getStyle("fontSize");
> >
> > It returns 'undefined'.
> > I presume my reference to the <mx:Image> might be wrong...
> > Shouldn't use '.childDescriptors[0]' ?
> > Could you please let me know how i should pick <mx:Image>
> correctly...
> >
> >
> > Best Regards,
> > Keishichi
> >
> >
> > --- In [email protected], "bhaq1972" <[EMAIL PROTECTED]> wrote:
> > >
> > > > trace
> > >
> (mx.core.Application.application.canvas1.viewstack1.panel1.viewstack2
> .s
> > > electedChild.childDescriptors[0].getStyle("moveEffect");
> > > >
> > >
> > > shouldn't that be
> > > trace
> > >
> mx.core.Application.application.canvas1.viewstack1.panel1.viewstack2.
> se
> > > lectedChild.getStyle("moveEffect")
> > > ??
> > >
> >
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/