Adobe Dreamweaver Forums



Last 10 THreads :         Confused - Color control with multiple utilities available (Last Post : chris_farrell@adobeforums.com - Replies : 1 - Views : 2 )           »          Re: SFW and date created (Last Post : Neil_N@adobeforums.com - Replies : 0 - Views : 1 )           »          Em Dash (Last Post : Jiva Mukta - Replies : 0 - Views : 1 )           »          changeWatcher of variable? (Last Post : David Repas - Replies : 0 - Views : 1 )           »          ZEND STUDIO ! does it work on any php capable server orneed some sepcialized? (Last Post : LuigiL - Replies : 5 - Views : 6 )           »          How to turn IMAGE into MOVIECLIP??? (Last Post : LuigiL - Replies : 20 - Views : 21 )           »          Help with button sounds (Last Post : JDMD - Replies : 2 - Views : 3 )           »          Problem initialising quicktime (Last Post : eoinie - Replies : 0 - Views : 1 )           »          Table cell - text formatting question (Last Post : JRStaf4ord - Replies : 3 - Views : 4 )           »          Online Catalog (Last Post : chris.cavage - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:39 AM
rmorgan
 
Posts: n/a
Diggs:
Default dynamic states

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.




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:39 AM
rmorgan
 
Posts: n/a
Diggs:
Default Re: dynamic states

Any ideas?
Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 04:39 AM
Greg Lafrance
 
Posts: n/a
Diggs:
Default Re: dynamic states

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.



Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:26 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk