![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
I am trying to create dynamic states. I am not sure if I am going about it the
correct way or not but I am certainly open to more efficient ways of doing this. The problem as far as I can tell is the click attribute in the radio button. I have this for a starting point: <mx:Panel x="26" y="10" layout="absolute" id="affiliatepanel" height="200" title="Select Affiliation"> <mx:VBox y="10" height="140" width="173" x="10" id="vbox1"> <mx:RadioButtonGroup id="affiliation" /> <mx:Repeater id="rp" dataProvider="{acArtists}"> <mx:RadioButton label="{rp.currentItem.grouptype}" groupName="affiliation" click="currentState='{rp.currentItem.grouptype}+Se lectState'"/> </mx:Repeater> </mx:VBox> </mx:Panel> The starting point seems to do fine, except for calling the appropriate state. At the moment I have a total of 5 different states with different options depending on which radio button is selected from the starting point. |
| Sponsored Links |
|
|||
|
I just solved a similar problem for someone who wanted to use a Repeater to
create multiple VideoDisplay controls, each with its own set of Play, Stop, Pause buttons. Create a component with one radio button, and then create several instances of the component. See this post on the VideoDisplay issue and you might be able to use some of the code. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise