[flexcoders] getting to the selected Tree node

2005-10-09 Thread David Aden



I have been trying to get access to the item selected in a tree from
the change event. I've tried the suggestion from the documentation of: 

 evt.target.selectedItem.label
 evt.target.selectedItem.data  

I've also tried to go through the treeDataProvider: 

 evt.target.treeDataProvider.getProperty(foo) [[[or getData()]]]

with no luck -- it comes back as undefined. I seem to be gettign to the object as I can output: 

  mx.controls.Alert.show(evt.target.id );
  mx.controls.Alert.show(evt.type );

but selectedItem doesn't seem to be available. 

The tree itself is pretty straightforward: 

  mx:Tree id=securityTopNavSub width=100% height=0 
   backgroundColor=0x3A4147 borderColor=0x3A4147 
   change=topNavViewHelper.showSecurity( event );
   mx:dataProvider
mx:Array
  
  mx:Object data=""
label=Systems /
  
  mx:Object data=""
label=Documents /
  
  mx:Object data=""
label=Incidents /
  
 /mx:Array
  
   /mx:dataProvider
  /mx:Tree
I'm geting to the showSecurity() method, but as mentioned above, selectedItem is not avaialble. 

It seems like it must be something ridiculously simple, but I'm missing it. Any suggestions welcome! 

d
-- --David AdenWebworld Technologies






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: getting to the selected Tree node

2005-10-09 Thread David Aden



Oh, also tried: 

evt.target.selectedNode 

That does have a child backingObject which does have a child data but that's empty. 

dOn 10/9/05, David Aden [EMAIL PROTECTED] wrote:
I have been trying to get access to the item selected in a tree from
the change event. I've tried the suggestion from the documentation of: 

 evt.target.selectedItem.label
 evt.target.selectedItem.data  

I've also tried to go through the treeDataProvider: 

 evt.target.treeDataProvider.getProperty(foo) [[[or getData()]]]

with no luck -- it comes back as undefined. I seem to be gettign to the object as I can output: 

  mx.controls.Alert.show(evt.target.id );
  mx.controls.Alert.show(evt.type );

but selectedItem doesn't seem to be available. 

The tree itself is pretty straightforward: 

  mx:Tree id=securityTopNavSub width=100% height=0 
   backgroundColor=0x3A4147 borderColor=0x3A4147 
   change=topNavViewHelper.showSecurity( event );
   mx:dataProvider
mx:Array
  
  mx:Object data=""
label=Systems /
  
  mx:Object data=""
label=Documents /
  
  mx:Object data=""
label=Incidents /
  
 /mx:Array
  
   /mx:dataProvider
  /mx:Tree
I'm geting to the showSecurity() method, but as mentioned above, selectedItem is not avaialble. 

It seems like it must be something ridiculously simple, but I'm missing it. Any suggestions welcome! 

d
-- --David AdenWebworld Technologies

-- --David AdenWebworld Technologies






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] attaching a programmatically defined Effect to a component

2005-10-08 Thread David Aden



I'm trying to programmatically define an Effect and then assign that Effect to an existing component. Something like: 

   var showEff2:mx.effects.Fade = new mx.effects.Fade(panelWorkspace);
   showEff2.duration = 750;
   showEff2.alphaFrom = 100;
   showEff2.alphaTo = 0;

   panelWorkspace.setStyle(showEffect, inactivateEff2);

but this doesn't seem to work. I'm trying to do this because I need to
customize some of the Effect's attributes based on the state of the
application -- and the MXML way to define effects doesn't allow data
binding to its attributes. 

Has anyone found a way to programmatically define an Effect based and
then assign it to an existing component -- or is that even possible? 

thanks! 

d-- --David AdenWebworld Technologies






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] a bunch of similar warnings

2005-10-03 Thread David Aden



I'm getting a bunch of warnings in the flashlog.txt file the following.
Are these an issue? If not, is there a way to turn them off? (I did a
search of these in the list, but didn't find any other postings about
this): 

Warning: getWidthFlex is not a function
 at measure()
Warning: getHeightFlex is not a function
 at measure()
Warning: getPreferredWidth is not a function
 at measure()
Warning: getPreferredHeight is not a function
 at measure()
Warning: getPercentWidth is not a function
 at measure()
Warning: getPercentHeight is not a function
 at measure()
Warning: getWidthFlex is not a function
 at measure()
Warning: getHeightFlex is not a function
 at measure()
Warning: getPreferredWidth is not a function
 at measure()
Warning: getPreferredHeight is not a function
 at measure()
Warning: getPercentWidth is not a function
 at measure()
Warning: getPercentHeight is not a function
 at measure()


-- --David AdenWebworld Technologies






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: Tree dataProviders backingObject

2005-06-22 Thread David Aden
 PROTECTED] On
Behalf Of Jeff Beeman
Sent: Friday, June 03, 2005 2:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree dataProviders  backingObject

 

Is there any sort of documentation on the way the Tree component 
   deals
with it's dataProvider?  

Using the Object Inspector from
http://www.coenraets.com/viewarticle.jsp?articleId=83
 I can see 
  that
binding my dataProvider for the tree to an object creates a 
   subobject
called backingObject that actually holds the data.

So, I've got 2 additional questions - Why does it do this?  And, a
related question is, how do I limit how many nodes of an object 
  the 
   tree
actually uses for it's display?  (For example, I only want it to 
  go 
   2
levels into a dataProvider)


/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/







Yahoo! Groups Links

*  To visit your group on the web, go to:
  http://groups.yahoo.com/group/flexcoders/

*  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
  subject=Unsubscribe 

*  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms/ .
   
   
   
   

   Yahoo! Groups Links
  
  
  
  
  
  
  Yahoo! Groups Links
  
  
  
  
  
  
  
  
  
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Cairngorm 0.99

2005-05-17 Thread David Aden
stephen, 

great and thanks! 

One thing before the pub (if you're not already gone) -- could you
check the release notes PDF -- I'm getting a message that it is
corrupt and can't be repaired. The install directions are fine.

ta, 

d

On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote:
  
 http://www.iterationtwo.com/open_source_cairngorm.html 
   
 Any questions, we'll answer them tomorrow ... team iteration::two are off to
 the bar :-) 
   
 We shall have a drink at the bar on behalf of the rest of the Cairngorm
 Project Team 
 as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where
 to send 
 our bar bills...?) who also played their ever important roles in pulling
 this release 
 together. 
   
 Enjoy :) 
   
 Steven 
   
  
  
 -- 
 Steven Webster
 Technical Director 
 iteration::two 
   
 This e-mail and any associated attachments transmitted with it may contain
 confidential information and must not be copied, or disclosed, or used by
 anyone other than the intended recipient(s). If you are not the intended
 recipient(s) please destroy this e-mail, and any copies of it, immediately.
  
 Please also note that while software systems have been used to try to ensure
 that this e-mail has been swept for viruses, iteration::two do not accept
 responsibility for any damage or loss caused in respect of any viruses
 transmitted by the e-mail. Please ensure your own checks are carried out
 before any attachments are opened. 
   
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Cairngorm 0.99

2005-05-17 Thread David Aden
never mind -- downloading and opening it worked fine, just opening
from within Firefox didn't work.

d

On 5/17/05, David Aden [EMAIL PROTECTED] wrote:
 stephen,
 
 great and thanks!
 
 One thing before the pub (if you're not already gone) -- could you
 check the release notes PDF -- I'm getting a message that it is
 corrupt and can't be repaired. The install directions are fine.
 
 ta,
 
 d
 
 On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote:
 
  http://www.iterationtwo.com/open_source_cairngorm.html
 
  Any questions, we'll answer them tomorrow ... team iteration::two are off to
  the bar :-)
 
  We shall have a drink at the bar on behalf of the rest of the Cairngorm
  Project Team
  as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where
  to send
  our bar bills...?) who also played their ever important roles in pulling
  this release
  together.
 
  Enjoy :)
 
  Steven
 
 
 
  --
  Steven Webster
  Technical Director
  iteration::two
 
  This e-mail and any associated attachments transmitted with it may contain
  confidential information and must not be copied, or disclosed, or used by
  anyone other than the intended recipient(s). If you are not the intended
  recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
  Please also note that while software systems have been used to try to ensure
  that this e-mail has been swept for viruses, iteration::two do not accept
  responsibility for any damage or loss caused in respect of any viruses
  transmitted by the e-mail. Please ensure your own checks are carried out
  before any attachments are opened.
 
   
   Yahoo! Groups Links
 
 
  To visit your group on the web, go to:
  http://groups.yahoo.com/group/flexcoders/
 
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
 
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 
 --
 --
 David Aden
 Webworld Technologies
 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Using HitCount with a 100% BarChart

2005-05-09 Thread David Aden
Matt, 

Thanks! This got me to the right place. 

I'm using an array of Objects to feed the 100% bar chart that looks like: 

 var SecDash_Data = [   {area: Calendar, green:25, yellow:25, red:50},
{area: Plan, green:5, yellow:15, 
red:80},
{area: App, green:20, yellow:80, 
red:20},
{area: ISSO, green:35, yellow:30, 
red:35}]

'area' holds the name of each Bar that will be displayed; 'green',
'yellow' and 'red contain the figures that  are used to determine the
length of each section of the bar.

From the dumps, it looks like hitData.item contains the data in the
row corresponding to the bar that was clicked -- so contains an object
with the keys 'area', 'green', 'yellow' and 'red' and their values.

hitData.element contains a bunch of info, but included in it is: 

hitData.element.index: this contains the index to the item that was
clicked. If the green section is clicked, it will contain 0; if
yellow, 1, etc.

hitData.element.xField contains the name of the property that
corresponds to the section clicked. So, if a green area is clicked,
then it contains green.

d



On 5/8/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 The HitData should have all the info you need.  The item is the actual
 item that is being clicked and the element I think will be the series that
 you're clicking on. 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of David Aden
  Sent: Sunday, May 08, 2005 6:20 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Using HitCount with a 100% BarChart 
  
 
   
 
 I'm using a 100% BarChart  and have three different values stacked
  into each bar.
  
  I'm using the mouseClickData event when someone clicks on one of the
  sections of a bar and am getting HitData back with the event, but I'm
  not sure how to find out which of the three items in the bar was
  clicked.
  
  I know the data must be available because the ToolTip knows what has
  been moused over -- anyone have a quick suggestion on how to determine
  exactly what was clicked?
  
  thanks! 
  
  d
  
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Using HitCount with a 100% BarChart

2005-05-08 Thread David Aden
I'm using a 100% BarChart  and have three different values stacked
into each bar.

I'm using the mouseClickData event when someone clicks on one of the
sections of a bar and am getting HitData back with the event, but I'm
not sure how to find out which of the three items in the bar was
clicked.

I know the data must be available because the ToolTip knows what has
been moused over -- anyone have a quick suggestion on how to determine
exactly what was clicked?

thanks! 

d


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Disappearing struct from CFC using RemoteObject

2005-04-26 Thread David Aden

Tim, 

out of curiosity what version of CF are you using? 

I had a similar mind-loosing experience recently, though the structs
were disappearing only when I was trying to retrieve an array of
structs. When just getting a struct, the data came through; when
getting only an array, the data came through. (I'm on CF 7, btw)

I still haven't debugged the problem I was having. 

d

On 4/26/05, Tim Blair [EMAIL PROTECTED] wrote:
 Hello,
 
 I'm slowly going crazy here.  I'm trying to make a simple RemoteObject
 call to a ColdFusion CFC using Flash Remoting.  Nothing exciting -- pass
 a couple of vars, get a structure containing user data back.
 
 Whenever I try and return a type of struct (and only struct, as far as I
 can see) from the CFC, things go a little strange and I don't get the
 results I expect back (an object containing thye keys: sessionid, userid
 and valid).  In the net conection debugger I get back the following,
 which looks correct to me:
 
 DebugId: 0
 EventType: Result
 MovieUrl: http://localhost:/flex/test.mxml.swf;
 Protocol: http
 Source: Client
 Time: 1114533397451
 Date (object #1)
 .Tue Apr 26 17:36:37 GMT+0100 2005
 Result (object #2)
 .SESSIONID: 7F3D91BB-8A11-29EE-1B5963898741A372
 .USERID: 1
 .VALID: TRUE
 
 However, the network monitor only shows this:
 
 [array] : 
 length[Number] : 0
 
 From some further poking, when checking the return data, event.result is
 undefined;  the private member data __result *does* contain the correct
 data, but I can't access this using event.result.
 
 Does anyone have an idea what's going on here?
 
 Thanks,
 
 Tim.
 
 --
 ---
 Badpen Tech - CF and web-tech: http://tech.badpen.com/
 ---
 RAWNET LTD - independent digital media agency
 We are big, we are funny and we are clever!
  New site launched at http://www.rawnet.com/
 ---
 This message may contain information which is legally
 privileged and/or confidential.  If you are not the
 intended recipient, you are hereby notified that any
 unauthorised disclosure, copying, distribution or use
 of this information is strictly prohibited. Such
 notification notwithstanding, any comments, opinions,
 information or conclusions expressed in this message
 are those of the originator, not of rawnet limited,
 unless otherwise explicitly and independently indicated
 by an authorised representative of rawnet limited.
 ---
 
 
 Yahoo! Groups Links
 
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Transferring an array of structs from CF 7 to Flex

2005-04-25 Thread David Aden

I'm trying to return an array of structs from a CF 7 CFC to Flex
(using the Cairngorm framework).

The CFC works (tested on the CF side), the Flex call is completing and
the onResult method of the Command class is firing.

I am not making any translation to a Flex VO, just want to get the
array of structs back and assign it as the dataprovider for a
DataGrid.

When I return an array, it arrives fine and the single row of data
shows up in the datagrid.

When I return a struct, it arrives fine and the single row of data
shows up in the datagrid.

But when I return an array of structs, the data doesn't appear to
arrive (I've tried to dump the returned data and it appears to be an
empty array).

I did a search on the forum, but didn't see anyone else with this
problem -- any ideas on what might be going on?

d

-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Sequence Diagram

2005-04-25 Thread David Aden
Agha, 

I posted it, though the best version I have of it is in SVG -- you'll
need to get the Adobe SVG reader (or another one) to view it.

Someone did convert this adequately to another format I believe,
though I don't seem to have it.

In any case, the SVG is attached. 

d

On 4/25/05, Mehdi, Agha [EMAIL PROTECTED] wrote:
 Hi all,
  
 Someone a while ago posted a sequence diagram for cairngorm. Where can I
 find it?
  
 Thanks
 
 - 
 Agha Mehdi 
 web developer 
 Littler Mendelson P.C. 
 work:   415-288-6362 
 cell: 415-987-7104 
 - 
  
 
 Yahoo! Groups Links
 
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
 
 
 This email may contain confidential and privileged material for the sole use
 of the intended recipient(s). Any review, use, distribution or disclosure by
 others is strictly prohibited. If you are not the intended recipient (or
 authorized to receive for the recipient), please contact the sender by reply
 email and delete all copies of this message.
 
 To reply to our email administrator directly, send an email to
 [EMAIL PROTECTED]
 
 Littler Mendelson, P.C.
 http://www.littler.com
 
 
 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
attachment: MicroArchitecture.SVG