header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
cf_flex
Points:160
Posts:0

7/29/2010 10:47:17 PM

Title: Events...


Hi all,

i have a custom accordion header in which i need to place combo box and i was using this combo box in the body of the accordion.

the combo box provides no.of days and on selection it would draw the calendar

Now the problem is that whenever there is change in combo box i need to send the change event with the value that is selected to the custom component

plz help me on this,

thanks



1
Tyler
Points: 230
Posts:0
7/30/2010 12:02:46 AM



declare a public function inside your custom function so that its accessible form out side.

Say cusComponent is your custom component and comboVal is function inside which receives the combo selection value as parameter. which should be accessible from anywhere in application using Application Object. You can call the following code from combo change handler to pass value

Application.application.cusComponent.comboVal(myComoValue)



2
cf_flex
Points: 160
Posts:0
7/30/2010 12:23:19 AM



hi tyler, thanks for the reply

this is not working as both are custom components,request you provide sample eg's with this scenario,if possible

thanks

3
Tyler
Points: 230
Posts:0
7/30/2010 12:45:05 AM



for the above code to work your custom component should be on Application root and should have ID cusComponent. Its simple code enough. Any component whether flex or custom component can be accessed using the Application.application which points to root. You can trace the function inside your custom component and see if its being called.Call it from anywhere in application not just from combo listener . The function should be public.

4
Prestine
Points: 180
Posts:0
8/16/2010 2:15:58 AM



Hello cf_flex

Can you provide your code(s), in which you have problems.

regards,

5
cf_flex
Points: 160
Posts:0
8/16/2010 2:49:06 AM



hi prestine,


problem got fixed

thanks a lot


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 8+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions