Adobe Dreamweaver Forums



Last 10 THreads :         FlashVars help (Last Post : Cgull - Replies : 3 - Views : 4 )           »          Cleaning up background images in version 3 (Last Post : DennisTheTrainer - Replies : 0 - Views : 1 )           »          simple way display image in panel bar (Last Post : ntsiii - Replies : 1 - Views : 7 )           »          Unable to show menu within panels (Last Post : ntsiii - Replies : 6 - Views : 7 )           »          Could not find the included template (Last Post : azuro28 - Replies : 0 - Views : 1 )           »          Handling RichText Area with Javascript (Last Post : SushiSnacks - Replies : 0 - Views : 1 )           »          ColdFusion = "old technology" (Last Post : getziggy - Replies : 4 - Views : 5 )           »          cfexecute and special characters (Last Post : -==cfSearching==- - Replies : 2 - Views : 3 )           »          CF8 Help in Dreamweaver CS3 (Last Post : danilocelic AdobeCommunityExpert - Replies : 1 - Views : 2 )           »          Can't upload selected pdf's to remote server (Last Post : DontTazeMeBro - Replies : 3 - Views : 4 )           »         


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 10-01-2008, 02:59 PM
kcotton
 
Posts: n/a
Diggs:
Default Evaulating Variables

I have a very simple, 4 State, page. Each State is called Pie, Bar, Line, and
Grid. Each has ONE child with a canvas tag having the same ID as the state.
Exampe Attached.
All I want to be able to do it print the appropriate state by evaulating the
'currentState' to know which chart (canvas id) to print as in:
printChart.addObject(currentState);
In coldfusion I would have used Evaulate("currentState"). It's obviously not
cold fusion but it's what I know. I am sure there should be an easy way to
accomplish the same.
thanks for much for any input.
Best,
Kevin C.

<mx:State name="Bar">
<mx:AddChild>
<mx:Canvas id="Bar" width="100%" height="100%">
code
</mx:canvas>
</mx:State>

same for pie, line, and grid.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-01-2008, 02:59 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: Evaulating Variables

I don't like states and don't do much printing, but it sounds like you need
bracket notation.

To get a reference to any runtime component with an id, you do:
parent["myIdValue"]

So if you nave a canvas in the main app with an id="Bar" you can do:
var sId:String = "Bar";
var myCanvas:Canvas = this[sId]; //"Bar is a child/prpperty of the main app,
'this'
Alert.show(myCanvas.whatever.)

Tracy


Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 02:59 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: Evaulating Variables

I don't like states and don't do much printing, but it sounds like you need
bracket notation.

To get a reference to any runtime component with an id, you do:
parent["myIdValue"]

So if you nave a canvas in the main app with an id="Bar" you can do:
var sId:String = "Bar";
var myCanvas:Canvas = this[sId]; //"Bar is a child/prpperty of the main app,
'this'
Alert.show(myCanvas.whatever.)

Tracy


Reply With Quote


  #4 (permalink)  
Old 10-01-2008, 02:59 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: Evaulating Variables

I don't like states and don't do much printing, but it sounds like you need
bracket notation.

To get a reference to any runtime component with an id, you do:
parent["myIdValue"]

So if you nave a canvas in the main app with an id="Bar" you can do:
var sId:String = "Bar";
var myCanvas:Canvas = this[sId]; //"Bar is a child/prpperty of the main app,
'this'
Alert.show(myCanvas.whatever.)

Tracy


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 06:07 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