Adobe Dreamweaver Forums



Last 10 THreads :         Code that can effect two movie clips (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          pop up blocker jacking my login (Last Post : reelhero - Replies : 6 - Views : 7 )           »          RoboHelp 7 Skins (Last Post : HelpDev - Replies : 7 - Views : 35 )           »          Clock .getUTC not working (Last Post : kglad - Replies : 3 - Views : 4 )           »          problems linking PDFs (Last Post : Alan - Replies : 1 - Views : 2 )           »          Changing RadioButton Label (Last Post : justintoflex - Replies : 2 - Views : 5 )           »          Table Borders MIssing in JavaHelp (Last Post : soxmann - Replies : 3 - Views : 8 )           »          cfimage error (Last Post : masoud_amen - Replies : 2 - Views : 3 )           »          Dragging components (Last Post : hsfrey - Replies : 2 - Views : 5 )           »          Is file too large? (Last Post : tweaked_eye - 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 > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-25-2008, 12:14 AM
spacehog
 
Posts: n/a
Diggs:
Default States and components

I am trying to figure out how I can get buttons in a component perform a state
change. My base state has 3 MXML components. Each one is based on a vBox
(vBox1, vBox2, vBox3). vBox1 has three buttons in it created using a repeater.
On the click method I would like vBox1...3 to become invisible and I want a
chart and hSlider to appear.

This all works if vBox1 is part of the main MXML file. But when I make it
it's own MXML component the states no longer work. Do I need to reference the
states differently since they are in a different MXML file? I tried copying
the states to the vBox1 MXML file and that did not help either.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-25-2008, 12:32 AM
*gsb*
 
Posts: n/a
Diggs:
Default Re: States and components

Import mx.core.Application;
Application.application.currentstate = "whatever";


Reply With Quote
  #3 (permalink)  
Old 11-25-2008, 04:13 PM
spacehog
 
Posts: n/a
Diggs:
Default Re: States and components

Thanks gsb. I attached the code:

click="Application.application.currentState='step2 ';"

to the click event of the button I repeated and it works great.


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 12:04 AM.


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