Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
flash component in flex issue   Message List  
Reply | Forward Message #145328 of 149550 |
 


I got another problem.
In flex I can only reference the flash button by its ID property.
Most of the time I can't know its ID. I need cover it to a super class like MovieClip Instead of that.
How can I fix this ?
 
 <mx:Script>
  <![CDATA[
   private function clickHandler(event:MouseEvent):void
   {
      /* not work */
    MovieClip(event.target).gotoAndPlay(MovieClip(event.target).currentLabel);
     /* only this way can run */
    query.gotoAndPlay(query.currentLabel);
   }
  ]]>
 </mx:Script>
 <local:intergratedQueryButton id="query" click="clickHandler(event)" x="305" y="500"/>





200ÍòÖÖÉÌÆ·,×îµÍ¼Û¸ñ,·è¿ñÓÕ»óÄã



200ÍòÖÖÉÌÆ·,×îµÍ¼Û¸ñ,·è¿ñÓÕ»óÄã


Sun Jul 12, 2009 11:28 pm

j2me_soul@...
Send Email Send Email

Forward
Message #145328 of 149550 |
Expand Messages Author Sort by Date

I got another problem. In flex I can only reference the flash button by its ID property. Most of the time I can't know its ID. I need cover it to a super class...
j2me_soul
j2me_soul@...
Send Email
Jul 12, 2009
11:29 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help