[flexcoders] how to access assets in RSL file

2006-11-30 Thread jgraham_us
Not sure what I am doing wrong here, I would think this would work.

I have a Flex Library project called that builds to TestLib.swc, this 
swc has several components and some common assets which are SWF 
files.  

So for example in this swc I have com/x/y/z/MyTest.swf.

I then have a Flex project which uses this SWC file.  I attempt to use 
SWFLoader with URL=com/x/y/MyTest.swf

This doesn't work, I have tried a ton of other ways to access the SWF 
thats in the SWC file.  

Whats the correct way to access assets in the SWC file?

Thanks



[flexcoders] assets used in SWC file

2006-11-30 Thread jgraham_us
I have several component which use various assets, images, and some 
SWF's for several components.  These are all build into a Flex 
Library project, for example TestLib.swc

I access the assets like this for example.

TestComp.mxml

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% 
height=100% backgroundImage=assets/backgrounds/application-
background.jpg 
.
.
.
mx:SWFLoader verticalCenter=0 left=0 right=0
source=com/login/assets/login_animation.swf scaleContent=false 
autoLoad=true/
.
.
.
mx:Canvas/


Both of the application-background.jpg and the login-animation.swf 
are included in the SWC file.  

The problem arises if I use TestComp in an application that includes 
the SWC file.  It never loads the assets correctly.  I can get this 
to work if I Embed the assets, but in some cases I cannot do this 
because I don't know the image names for specific components until 
runtime.  

Anyway to get this to work without using the Embed tag?



[flexcoders] Re: how to access assets in RSL file

2006-11-30 Thread jgraham_us
To give more details on the problem.

Basically I have a Flex Library Project called for example 
TestLib.swc this has a flex component in it called MyComp.mxml.

In this component I have a SWFLoader that points to an asset in the 
same SWC file.  I refer to it via url=com/bmc/assets/myimage.png

When I create a Flex project that includes TestLib.swc and uses 
MyComp.mxml, myimage.png is never found.  


I have a component which needs to dynamically load images at runtime 
and this component is in a SWC file.  I want to use this component 
in my flex applications, but alas the images just don't show up.

Any ideas?


--- In flexcoders@yahoogroups.com, Roger Gonzalez [EMAIL PROTECTED] 
wrote:

 SWC files are used at compile time.  SWFLoader is runtime.  Won't 
work.
  
 (Note that if you caused MyTest.swf to be embedded instead of 
included
 when you built TestLib.swc, you can then refer to it as a class 
from
 your main project, and just instantiate an object of type 
SpriteAsset,
 MovieClipAsset, or MovieClipLoaderAsset, depending on how you 
embedded
 it.)
  
 -rg
 
 
 
 
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of jgraham_us
   Sent: Thursday, November 30, 2006 12:15 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] how to access assets in RSL file
   
   
 
   Not sure what I am doing wrong here, I would think this would
 work.
   
   I have a Flex Library project called that builds to 
TestLib.swc,
 this 
   swc has several components and some common assets which are 
SWF 
   files. 
   
   So for example in this swc I have com/x/y/z/MyTest.swf.
   
   I then have a Flex project which uses this SWC file. I 
attempt
 to use 
   SWFLoader with URL=com/x/y/MyTest.swf
   
   This doesn't work, I have tried a ton of other ways to access
 the SWF 
   thats in the SWC file. 
   
   Whats the correct way to access assets in the SWC file?
   
   Thanks





[flexcoders] Re: Panel Windows Title Icon

2006-09-14 Thread jgraham_us
You can also extend the Panel class that will give you access to the 
protected titleBar component of Panel, you can then do something like 
this.

titleBar.addChild( yourTitleIcon );

You might also have to override layoutChrome and position the icon 
within the titleBar.


--- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] 
wrote:

 I am working on styling my application, and I have searched throught
 the live docs/help files for flex. But I cant seem to find how to set
 the titleIcon to the right side of the window. Is there anyway to do 
this?







--
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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Stacked Series and Interpolation effects exceptions

2006-09-10 Thread jgraham_us
Anyone know if there is a fix for this yet, or a workaround?

I am getting this problem as well.  








--
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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Custom containers in Flex 2

2006-08-23 Thread jgraham_us
Any tips, tutorials or examples on creating custom containers anyone 
can point me to?  

Looks like the main methods to override are updateDisplayList() and 
measure().


Anything else?

Basically I am looking at doing some sort of canvas then implementing 
an autolayout feature for it.






--
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

* 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] Re: Extending the List Component: Sticky Selection

2006-08-23 Thread jgraham_us
Sound to me like you will need to handle the mouse click events on 
the List and manage the selection yourself.  Not positive though 
there might be an easier way to get around this, I haven't actually 
looked at the List source to tell.
--- In flexcoders@yahoogroups.com, lostinrecursion [EMAIL PROTECTED] 
wrote:

 Ok,
 
 I have a client of mine who is stuck (no pun intended) on the idea 
of
 having a List component to which he does not have to hold CTRL 
down to
 do multiple selections.
 
 Essentially, he wants to be able to click on items and have them be
 selected and if they have already been selected, then deselect 
them.
 
 As if he was holding the CTRL key down the entire time.
 
 Could anyone help me with at least a starting point? I am totally
 freaked out about this for some reason. LOL
 
 -K








--
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

* 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] Re: drag and drop from a grid to an image..

2006-08-21 Thread jgraham_us
So you want to drag from the grid onto an image?  

I would think it would work just like any other component.  

Just define handlers for dragEnter, dragDrop, dragExit, etc.

On dragEnter just check the DragSource format and use the DragManager 
to accept the drop.  

You can find many examples of this by looking at the samples source 
and probably by searching here even.

--- In flexcoders@yahoogroups.com, ldyhwke24 [EMAIL PROTECTED] wrote:

 Hi all.
 
 I figured out how to drag and drop between grids, that was rather 
 simple.  But, I'm having difficulty getting the drag 'n drop between 
a 
 grid and an image.  
 
 On the grid side of things, it seems rather simple; but on the image 
 side of things, I'm not quite sure how to implement this.
 
 Ideas?  Should I use DragManager for this?
 
 thanks!








--
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

* 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] Drag Drop / addChild question on containers

2006-08-20 Thread jgraham_us
I have the following setup 2 VBox's inside a Application, I have 
Panels in vBox1, I want to drag n drop those panels to vBox2.  

The only way I can see to do this across containers is to destroy the 
object and recreate it in the other container.  

I really would like to be able to do just addChild and removeChild 
between containers on the same instance of the Panel.  

Anyone know if this is doable without destroying and recreating the 
Panel on the drop?

Thanks






--
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

* 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] Re: Drag Drop / addChild question on containers

2006-08-20 Thread jgraham_us
I got this working kind of.  For some reason the removedEffect I 
had specified on my Panel was causing some weirdness and the panel 
wouldn't always get moved everytime. I guess there was some timing 
issues between calling removeChild and the addChild on the other 
container when the effect played.

--- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] 
wrote:

 I have the following setup 2 VBox's inside a Application, I have 
 Panels in vBox1, I want to drag n drop those panels to vBox2.  
 
 The only way I can see to do this across containers is to destroy 
the 
 object and recreate it in the other container.  
 
 I really would like to be able to do just addChild and removeChild 
 between containers on the same instance of the Panel.  
 
 Anyone know if this is doable without destroying and recreating 
the 
 Panel on the drop?
 
 Thanks







--
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

* 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] Re: Yahoo Maps questions

2006-07-18 Thread jgraham_us
I need this to work in Flex 1.5, is there a similar way to get it to 
work?  Basically I just need to know when the link was clicked or 
for that matter the marker was clicked.  

--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:

 Learn from the master.  Nahuel's app won in his category in the 
Flex Derby. 
 As a judge, I gave him mad props for getting this to work.  Here's 
how he 
 did it:
 
 http://www.asfusion.com/blog/entry/inserting-yahoo-maps-in-a-flex-
2-application
 
 - Original Message - 
 From: jgraham_us [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 18, 2006 1:32 AM
 Subject: [flexcoders] Yahoo Maps questions
 
 
 1)  I have a marker CustomPOIMarker, I want to embed a link and 
call
 an actionscript function in my flex code.  I have tried this with
 and without _parent,parent and it never works.  If I put a link to
 an HTML page it works fine.  But I need to notify my application
 when the click has occured.  Any ideas?  or a better way to do 
this?
 
 Example.
 
 var markerArgs = {index:marker 1,description:a
 href='asfunction:parent.cpiClicked'print something/a,
 title:a
 href='asfunction:_parent.cpiClicked'print something/a,
 markerColor:0x990099, strokeColor:0x00};
 .
 .
 .
 function cpiClicked() : Void
 {
   Echo.debug(Marker 1 clicked);
 }
 
 
 
 
 
 
 
 
 
 
 
 
 --
 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








 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* 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] Yahoo Maps questions

2006-07-17 Thread jgraham_us
1)  I have a marker CustomPOIMarker, I want to embed a link and call 
an actionscript function in my flex code.  I have tried this with 
and without _parent,parent and it never works.  If I put a link to 
an HTML page it works fine.  But I need to notify my application 
when the click has occured.  Any ideas?  or a better way to do this?

Example.

var markerArgs = {index:marker 1,description:a 
href='asfunction:parent.cpiClicked'print something/a, 
title:a 
href='asfunction:_parent.cpiClicked'print something/a,
markerColor:0x990099, strokeColor:0x00};
.
.
.
function cpiClicked() : Void
{
  Echo.debug(Marker 1 clicked);
}   











 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* 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] Flex 1.5 LineChart question

2006-06-08 Thread jgraham_us
I have a LineChart, I want to hide the horizontal and vertical axis, 
and basically just show the line.  

Whats the easiest way to do this?  I haven't found anything that seems 
straightforward.





 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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

* 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] Flex Builder 1.5 problem with debugging

2006-05-15 Thread jgraham_us



I have a rather large project in Flex Builder 1.5, I am attempting to 
debug, but when I click files and select the name in the list of the 
file I need sometimes it just opens random files. Rarely the correct 
file. 

Example, I click files in debug, select MyFile.as and 
mx.containers.ViewStack opens. 

This is becoming very problematic as most everyone on our team is 
having the same problems, and can't reliable debug anything.

Any help?

Thanks










--
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] Re: Flex 1.5 - Possible BarChart bug?

2006-05-11 Thread jgraham_us



Yes, sorry its a stacked series. The first item in the series is 
always undefined. 

--- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] 
wrote:

 
 
 Are you stacking the series?
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of jgraham_us
 Sent: Wednesday, May 10, 2006 9:33 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 1.5 - Possible BarChart bug?
 
 Here is an example of the problem I am seeing. 
 
 1) I have a BarChart with 4 BarSeries, the order of the BarSeries
 matters here.. So the xField values on the BarSeries are set
 value1,value2,value3,value4
 
 2) The dataProvider for the BarChart comes from a remote object. 
 
 3) There are cases where one of the xField values is not in the 
remote
 object being used to populate the charts data.
 
 4) When there is no value for value1, being the first value in 
the list
 the chart still renders the value and the tooltip shows undefined, 
but
 it only does this when the value is missing for the first 
BarSeries.
 
 5) Just to make this clear if value1=10,value4=20 ,but nothing was
 returned for value2 and value3 the chart renders fine. If 
value2=20,
 value3=30, value4=50 but nothing was returned for value1, the chart
 still renders value1 but shows undefined for the value and only 
really
 shows the flyover, there is no visual representation other than 
that.
 
 Does anyone have any ideas or has anyone seen this bug?
 
 
 
 
 
 
  Yahoo! Groups Sponsor 
~--
 Get to your groups with one click. Know instantly when new email 
arrives
 http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
 ---
-~- 
 
 --
 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











--
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: Flex 1.5 - Possible BarChart bug?

2006-05-11 Thread jgraham_us



That is of course if the first item in the stacked series is not in 
the dataprovider for the chart.

--- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] 
wrote:

 Yes, sorry its a stacked series. The first item in the series is 
 always undefined. 
 
 --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ 
 wrote:
 
  
  
  Are you stacking the series?
  
  Ely.
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of jgraham_us
  Sent: Wednesday, May 10, 2006 9:33 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 - Possible BarChart bug?
  
  Here is an example of the problem I am seeing. 
  
  1) I have a BarChart with 4 BarSeries, the order of the 
BarSeries
  matters here.. So the xField values on the BarSeries are set
  value1,value2,value3,value4
  
  2) The dataProvider for the BarChart comes from a remote 
object. 
  
  3) There are cases where one of the xField values is not in the 
 remote
  object being used to populate the charts data.
  
  4) When there is no value for value1, being the first value in 
 the list
  the chart still renders the value and the tooltip shows 
undefined, 
 but
  it only does this when the value is missing for the first 
 BarSeries.
  
  5) Just to make this clear if value1=10,value4=20 ,but nothing 
was
  returned for value2 and value3 the chart renders fine. If 
 value2=20,
  value3=30, value4=50 but nothing was returned for value1, the 
chart
  still renders value1 but shows undefined for the value and only 
 really
  shows the flyover, there is no visual representation other than 
 that.
  
  Does anyone have any ideas or has anyone seen this bug?
  
  
  
  
  
  
   Yahoo! Groups Sponsor --
--
 ~--
  Get to your groups with one click. Know instantly when new email 
 arrives
  http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
  -
--
 -~- 
  
  --
  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
 











--
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] Flex 1.5 - Possible BarChart bug?

2006-05-10 Thread jgraham_us



Here is an example of the problem I am seeing. 

1) I have a BarChart with 4 BarSeries, the order of the BarSeries 
matters here.. So the xField values on the BarSeries are set 
value1,value2,value3,value4

2) The dataProvider for the BarChart comes from a remote object. 

3) There are cases where one of the xField values is not in the 
remote object being used to populate the charts data.

4) When there is no value for value1, being the first value in the 
list the chart still renders the value and the tooltip shows 
undefined, but it only does this when the value is missing for the 
first BarSeries.

5) Just to make this clear if value1=10,value4=20 ,but nothing was 
returned for value2 and value3 the chart renders fine. If value2=20, 
value3=30, value4=50 but nothing was returned for value1, the chart 
still renders value1 but shows undefined for the value and only really 
shows the flyover, there is no visual representation other than that.

Does anyone have any ideas or has anyone seen this bug?
 









--
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: mx:TitleWindow -- SizeGrip?

2006-02-26 Thread jgraham_us
Check here.  I don't think it's complete, but you might be able to 
finish it with a little work.

http://www.flexdaddy.info/2005/03/06/resizable-and-collapsable-
titlewindow-flex-15/



--- In flexcoders@yahoogroups.com, sigges25 [EMAIL PROTECTED] 
wrote:

 Hi!
 
 Does anybody know how to add a size-grip to Title-Windows?
 I want the user to be able to resize a window like in other
 windowing-systems.
 
 
 Regards
 Sascha Sigges







--
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

* 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] HTML in TextArea

2006-02-13 Thread jgraham_us
I want to use the htmlText to populate a TextArea, but I want to get 
the HTML from a external html file on my server.  

Whats the easiest way to load a HTML file in a String object?  

I have looked around and haven't found a straight foreward way to do 
this as of yet.


Thanks






--
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

* 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] Flex flip effect source

2006-02-10 Thread jgraham_us
http://www.richinternetapps.com/archives/000108.html

Is the source to accomplish this effect anywhere out there?  The date 
of the article is May 05, so I wasn't sure.






--
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

* 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] Flex 1.5 HorizontalList scrolling question

2006-02-01 Thread jgraham_us
I have some thumbnails (image and text) in a HorizontalList, I am 
scrolling these programmatically to focus in on an item is there a way 
to smooth the scrolling effect?  Right now the scrolling just jumps to 
the next item, I want to maybe apply an inertia or just smooth out the 
scrolling.

Any ideas?  I haven't seen anything provided by the horizontal list 
that would do this.

I am scrolling by calling this.  Where list is my HorizontalList 
instance.



list.hPosition = list.hPosition+1;







--
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

* 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] Re: DividedBox question - divider position

2006-01-31 Thread jgraham_us
I tried explicitMinHeight, it doesn't appear to be a valid property 
and if I set it, for example panel[explicitMinHeight], it doesn't 
have any effect when I resize the dividedbox container.  

Anyone know another way to do this?

--- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] 
wrote:

 Is there an easy way to set a minimum position for a divider in a 
 DividedBox?  For example.  I have three panels in a VDividedBox 
when I 
 drag divider 0 up I want it to stop and not size past the 
headerHeight 
 of the panel, in essence not cover the panel header up.  
 
 I assume this can be done by overriding the DividedBox, but was 
 wondering if there was an easier way.
 
 I have tried setting the minHeight on the panel but that appears 
to 
 have no effect.
 
 Thanks








--
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

* 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] Re: DividedBox question - divider position

2006-01-31 Thread jgraham_us
Well I could of sworn I tried minHeight and it didn't work, but I 
put it in the panel's creationComplete and it works good.  Not sure 
what was happening before.

--- In flexcoders@yahoogroups.com, Sreejith Unnikrishnan 
[EMAIL PROTECTED] wrote:

 I believe what he meant was to specify the minHeight explicitly.
 
 You can calculate it programatically as well. On creation complete 
calculate the height of the individual components and set and reset 
them.
 
 This defenitely looks interesting. I am trying it out. I'll post 
the code IF i am sucessful.
 
 Sree
   - Original Message - 
   From: jgraham_us 
   To: flexcoders@yahoogroups.com 
   Sent: Tuesday, January 31, 2006 9:23 PM
   Subject: [flexcoders] Re: DividedBox question - divider position
 
 
   I tried explicitMinHeight, it doesn't appear to be a valid 
property 
   and if I set it, for example panel[explicitMinHeight], it 
doesn't 
   have any effect when I resize the dividedbox container.  
 
   Anyone know another way to do this?
 
   --- In flexcoders@yahoogroups.com, jgraham_us 
[EMAIL PROTECTED] 
   wrote:
   
Is there an easy way to set a minimum position for a divider 
in a 
DividedBox?  For example.  I have three panels in a 
VDividedBox 
   when I 
drag divider 0 up I want it to stop and not size past the 
   headerHeight 
of the panel, in essence not cover the panel header up.  

I assume this can be done by overriding the DividedBox, but 
was 
wondering if there was an easier way.

I have tried setting the minHeight on the panel but that 
appears 
   to 
have no effect.

Thanks
   
 
 
 
 
 
 
 
   --
   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 
 
 a..  Visit your group flexcoders on the web.
   
 b..  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
 c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of Service. 
 
 
 ---
---







--
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

* 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] Vertical Text on a button

2006-01-31 Thread jgraham_us
I have found examples on doing vertical text on a Label but I would 
like to put vertical text on a button.  

Is there an example of doing this?

The label just takes a String.  





--
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

* 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] DividedBox question - divider position

2006-01-30 Thread jgraham_us
Is there an easy way to set a minimum position for a divider in a 
DividedBox?  For example.  I have three panels in a VDividedBox when I 
drag divider 0 up I want it to stop and not size past the headerHeight 
of the panel, in essence not cover the panel header up.  

I assume this can be done by overriding the DividedBox, but was 
wondering if there was an easier way.

I have tried setting the minHeight on the panel but that appears to 
have no effect.

Thanks






--
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

* 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] Horizontal Accordian?

2006-01-27 Thread jgraham_us
Anyone seen a horizontal accordian control anywhere?  Just wondering 
before I implement my own.  I searched around some and found a blog 
entry here : 

http://blog.funciton.com/aggregator/index.php?blog=86

The link for the blog entry seems to be broke.










--
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

* 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] modalTransparency and color question in Flex 1.5

2006-01-25 Thread jgraham_us
I am able to set the modalTransparency and get a fade like effect when 
my modal dialogs popup, right now its a white fade, I read a post on 
JesterXL's from a while back on this and he said you can set 
the 'Modal' color property in the halo.fla or the 
StandardComponents.fla.  How can this be done in Flex 1.5?  

I want to make the modal transparency color something darker.

I tried to set modalTransparencyColor but I think thats only supported 
in the Flash 8.5 player

Thanks








--
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

* 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] Re: Sending Updated Data Back to Java

2006-01-25 Thread jgraham_us
Make sure the objects in your ArrayList don't contain any static 
public final fields on the java side.  There is a bug that when the 
object gets sent to flash the static fields get serialized along 
with the object, then when you send it back to java it tries to 
create that static field.

I had the same problem a while back and fixed it by basically 
stripping my object down to nothing and adding pieces back in piece 
by piece until it broke with that error you mention.  

--- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote:

 So here's my situation: On the Flex side, I have received a result 
set
 from the database, made changes to a few of its attributes, and
 am trying to send it back to Java so that the changes can be saved 
to
 the database. I looked at Hari's thread on the matter
 (http://groups.yahoo.com/group/flexcoders/message/14164), but that
 doesn't seem to be my problem, because I don't mind saving my data 
as
 a generic Array (in Flex)/ArrayList (in Java).
 
 The problem occurs when I try to send the Array back to Java... 
 
 I assign it to an eventObject and broadcast the event:
 
 var eventObject:Object = new Object();
 eventObject.writtenDescription = writtenDescription; //
 writtenDescription is a local variable that holds the result set
 returned from the database on a prior remote object call
 EventBroadcaster.getInstance().broadcastEvent(
 RegistryController.EVENT_SAVE_WRITTEN_DESCRIPTION, eventObject );
 
 I then pass the eventObject through a Command to the Delegate:
 
 public function saveWrittenDescription() : Void {
 var call =
 service.saveWrittenDescription(event.data.writtenDescription);
 call.resultHandler = Delegate.create( responder, 
responder.onResult );
 call.faultHandler = Delegate.create( responder, 
responder.onFault );
 }
 
 The Java method waiting on the other end looks like this:
 
 public void saveWrittenDescription(ArrayList writtenDescription)
 throws Exception {
 // code removed to conserve space
 }
 
 The error I see in the Network Monitor when trying to invoke the 
Java
 method looks like this:
 
 [object] : 
 code[String] : Server.Processing
 description[String] : Cannot invoke 
method 'saveWrittenDescription'.
 details[String] : The expected argument types are
 (java.util.ArrayList) but the supplied types were
 (flashgateway.io.ASObject) and converted to (null).
 level[String] : error
 rootcause[object] : 
 code[null] : null
 description[String] : Type RecordSet not found
 details[String] : 
 level[String] : error
 type[String] : 
 type[String] : 
 
 So, to attempt to fix what looked to be a type-cast error, I cast
 writtenDescription to an Array, keeping all other code as it was 
before:
 
 eventObject.writtenDescription = Array(writtenDescription);
 
 That did not fix the problem, as the Network Monitor still showed:
 
 [object] : 
 code[String] : Server.Processing
 description[String] : Cannot invoke 
method 'saveWrittenDescription'.
 details[String] : The expected argument types are
 (java.util.ArrayList) but the supplied types were
 (java.util.ArrayList) and converted to (null).
 level[String] : error
 rootcause[object] : 
 code[null] : null
 description[String] : Type RecordSet not found
 details[String] : 
 level[String] : error
 type[String] : 
 type[String] : 
 
 I don't understand why it is still breaking if the expected 
argument
 equals the supplied argument. Can anyone provide some insight, 
please?
 
 Thank you,
 YJ







--
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

* 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] Re: Flex 2 mx.controls.Alert vs. Flex 1.5

2006-01-23 Thread jgraham_us
So whats the trick to capturing the bitmap data?  I haven't found a 
way to do this yet in Flex 1.5.


--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:

 You could probably capture the bitmap data before you open the 
alert, blur 
 the bitmapData, and then open up a MovieClip via PopUpManager 
behind the 
 alert (basically call it before Alert), and draw the bitmapData 
into that 
 movieclip.
 
 Basically, when you shutdown Windows XP, it does a screen capture 
of your 
 desktop, and then brings up a modal dialogue.  If you wait 5 
seconds, it'll 
 fade that background to gray.  It looks like your desktop is 
fading, but 
 it's really just a screen capture, so they are fading one image.
 
 You are basically doing the same thing, except blurring it.
 
 - Original Message - 
 From: jgraham_us [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Saturday, January 21, 2006 3:06 PM
 Subject: [flexcoders] Flex 2 mx.controls.Alert vs. Flex 1.5
 
 
 The Flex 2 version of this control does and effect on the entire
 background app when the Alert.show is called, it does a fade/blur
 effect.
 
 Is there a way to get this to work in Flex 1.5?
 
 Thanks
 
 
 
 
 
 --
 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







--
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

* 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] Flex 2 mx.controls.Alert vs. Flex 1.5

2006-01-21 Thread jgraham_us
The Flex 2 version of this control does and effect on the entire 
background app when the Alert.show is called, it does a fade/blur 
effect.  

Is there a way to get this to work in Flex 1.5?  

Thanks





--
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

* 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] Re: best way to handle this ViewStack situation when loading

2006-01-15 Thread jgraham_us
Well I came up with a solution.   

Basically when the viewstack in initialized I create just the view 
containers for each view in the viewstack, setting an initialization 
flag to false.

Then when the change event gets fired on the viewstack I check that 
flag and dynamically create the children in the view at that point.  

So in a nutshell the creation of a view in the viewstack is delayed 
until the user actually switches to a given view for the first time.  

Seems to work fine and the load time is very fast now. 

--- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] 
wrote:

 I have a linkbar with a viewstack, the viewstacks children are 
VBox'es 
 that have rather complicated layouts that are done dynamically.  The 
 initial load time takes too long.  I want to create the views when 
 they are requested for the first time, from a click on the linkbar, 
 instead of them all being loaded initially.
 
 I have tried to place a creationPolicy=queued on the VBox'es that 
 are being put in the viewstack but since I am creating the rest of 
the 
 VBox dynamically it isn't working correctly.
 
 Anyone have a suggestion on how to handle something like this?








--
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

* 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] best way to handle this ViewStack situation when loading

2006-01-14 Thread jgraham_us
I have a linkbar with a viewstack, the viewstacks children are VBox'es 
that have rather complicated layouts that are done dynamically.  The 
initial load time takes too long.  I want to create the views when 
they are requested for the first time, from a click on the linkbar, 
instead of them all being loaded initially.

I have tried to place a creationPolicy=queued on the VBox'es that 
are being put in the viewstack but since I am creating the rest of the 
VBox dynamically it isn't working correctly.

Anyone have a suggestion on how to handle something like this?  





--
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

* 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] Re: creation effect on dynamically created child

2006-01-01 Thread jgraham_us
I tried that and it didn't work.  

--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:

 Have you tried:
 
 creationCompleteEffect: WipeDown
 
 Instead?
 
 - Original Message - 
 From: jgraham_us [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, December 30, 2005 11:27 PM
 Subject: [flexcoders] creation effect on dynamically created child
 
 
 I have a View in which I am creating children dynamically like 
this:
 
 myView.createChild(eval(mytest.MyTestPanelClass), 
undefined,
{ creationCompleteEffect:WipeDown } );
 
 It works fine, just I don't get any effects.  I also tried 
 showEffect:WipeDown
 
 Any ideas how to do this correctly?
 
 THanks
 
 
 
 
 
 
 --
 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







--
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

* 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] creation effect on dynamically created child

2005-12-31 Thread jgraham_us
I have a View in which I am creating children dynamically like this:

myView.createChild(eval(mytest.MyTestPanelClass), 
   undefined,
   { creationCompleteEffect:WipeDown } );

It works fine, just I don't get any effects.  I also tried 
showEffect:WipeDown

Any ideas how to do this correctly?

THanks





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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

* 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] Re: passing Map from Flex to server side

2005-12-16 Thread jgraham_us
Well I have narrowed it down, it wasn't any of the collections stuff 
as I previously thought.  

It appears to be a public static final variable that I had defined 
in my class.

class x {

...
public static final String TEST_KEY = test;
...

}

With the above class I can retrieve it from the server and its fine 
in flex but if I send that same instance back, I get the error about 
the type being flashgateway.io.ASObject but it was expecting type X.

Is there a way around this, or do my objects just need to avoid 
having these?

Thanks for the responses so far.

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:

 This may be a long shot, but another issue to consider is whether
 Object.registerClass was called before any instances of that type 
were
 received from the server. Can you try creating a new dummy 
instance of
 the testuser.Test type on the client _before_ making the 
RemoteObject
 call?
 
 Are you using the /WEB-INF/flex/gateway-config.xml logging level 
Debug
 method to trace server logging, or relying on a client debugging 
tool?
 
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of jgraham_us
 Sent: Thursday, December 15, 2005 3:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: passing Map from Flex to server side
 
   public static var regClass = 
   Object.registerClass(testuser.Test,  views.testuser.Test);
 
 Thats the actual line.  I just made a mistake when typing in the 
psuedo
 code below.
 
 The weird part is, if I build the Object on the client side and 
send it
 across to the server it appears to work.  
 
 I can look at the objects in the debugger and compare them and I 
can't
 see any difference between them.  
 
 Is there a way to figure out more details as to which object it is
 failing on when sending back to the server?
 
 The error message is not very detailed, I get two different errors 
on
 the client side.
 
 One is an error about converting the input type, and the other is 
it was
 expecting type testuser.Test but was trying to send
 flashgateway.io.ASObject.
 
 Thanks
 
 --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED]
 wrote:
 
  Can you double check your usage of Object.registerClass?
  
  Object.registerClass(testuser.Test,Test);
  
  Should be
  
  Object.registerClass(testuser.Test, Test);
   
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of jgraham_us
  Sent: Thursday, December 15, 2005 2:25 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: passing Map from Flex to server side
  
  Going from server to client appears to be working fine.  My 
server 
  classes do not implement Map or Collection.  I have tried very
 simple
  cases, and the Maps are not empty.
  
  Here is an example.
  
  Test.java
  --
  package testuser;
  
  public class Test{
  
 MapString, User users;
  
 MapString, User getUsers() {
   ...
 }
  
 void setUsers(MapString, Users users) {
   ...
 }
  
  }
  ---
  
  Test.as
  ---
  class Test
  {
  Object.registerClass(testuser.Test,Test);
  
  var users : Array;
  
  ... 
  }
  
  So are you saying that my object on the server side, users must 
be
 of
  type ASObject, or do I have to implement some intermediate type
 then
  build my server side Test object from this intermediate type that
 is an
  ASObject?
  
  Basically I need to get the Test object on the client side 
possibly 
  update it and then send that same object back and have it be a 
Test 
  (server side object) when I get it back on the server.
  
  Thanks
  --- In flexcoders@yahoogroups.com, Peter Farland 
[EMAIL PROTECTED]
  wrote:
  
   
   Note that while you can register classes using ActionScript on
 the 
   client for serialization... there's no way to register a Java
  class on
   the server. Your server type must not implement Map or 
Collection
  as
   these types already have firm rules for server to client
  serialization.
   
   This may be something to log for consideration for Flex 2.0.
   
   
   Alternatively, any chance are you returning empty Maps in any 
of
  the
   properties? 
   
   I ask because the following special case may occur:
   
   Empty Java Map - Empty AS Associative Array - Empty Java List
   
   This is because there's no distinction between an empty dense,
  ordinal,
   i.e. normal AS Array and an empty AS Associative Array (i.e. 
  they're the
   thing, just an empty Array) and thus Array - List.
   
   I'd contact Flex Support if you need a solution to the latter 
for
  Flex
   1.5. We've worked with customers on this problem.
   
   (NB: After several customer requests, Flex 1.5 reverted back to
  match
   the legacy behavior from Flash

[flexcoders] passing Map from Flex to server side

2005-12-15 Thread jgraham_us
Using remote objects stuff, I am able to pass my object which contains 
a Map object from server to flex, but when I try to send that object 
back it doesn't work.   

Set objects work, but Map objects don't.


On the AS side my Map is defined as an Array in the AS object.

On the server side it is a Map object.

I have a registerClass call to map the AS object to the java object.

Can anyone help me out or point me to any examples of how to do this?  

Thanks






 Yahoo! Groups Sponsor ~-- 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
~- 

--
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

* 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] Re: passing Map from Flex to server side

2005-12-15 Thread jgraham_us
Going from server to client appears to be working fine.  My server 
classes do not implement Map or Collection.  I have tried very 
simple cases, and the Maps are not empty.

Here is an example.

Test.java
--
package testuser;

public class Test{

   MapString, User users;

   MapString, User getUsers() {
 ...
   }

   void setUsers(MapString, Users users) {
 ...
   }

}
---

Test.as
---
class Test
{
Object.registerClass(testuser.Test,Test);

var users : Array;

... 
}

So are you saying that my object on the server side, users must be 
of type ASObject, or do I have to implement some intermediate type 
then build my server side Test object from this intermediate type 
that is an ASObject?

Basically I need to get the Test object on the client side possibly 
update it and then send that same object back and have it be a Test 
(server side object) when I get it back on the server.  

Thanks
--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:

 
 Note that while you can register classes using ActionScript on the
 client for serialization... there's no way to register a Java 
class on
 the server. Your server type must not implement Map or Collection 
as
 these types already have firm rules for server to client 
serialization.
 
 This may be something to log for consideration for Flex 2.0.
 
 
 Alternatively, any chance are you returning empty Maps in any of 
the
 properties? 
 
 I ask because the following special case may occur:
 
 Empty Java Map - Empty AS Associative Array - Empty Java List
 
 This is because there's no distinction between an empty dense, 
ordinal,
 i.e. normal AS Array and an empty AS Associative Array (i.e. 
they're the
 thing, just an empty Array) and thus Array - List.
 
 I'd contact Flex Support if you need a solution to the latter for 
Flex
 1.5. We've worked with customers on this problem.
 
 (NB: After several customer requests, Flex 1.5 reverted back to 
match
 the legacy behavior from Flash Remoting's convention of returning 
a Java
 Map as an associative Array instead of an Object... which 
historically
 stems from ColdFusionStructs being return as AS Associative Arrays
 (...and note Flex 1.0 had Maps returned as Objects). 
 
 In Flex 2.0 we've again moved to have Java Maps returned as AS 
Objects
 by default (with a configuration option for people who wish to go 
back
 to the old Arrays... but note this something that we would 
discourage in
 Flex 2.0 due to the issue described above).
 
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of jgraham_us
 Sent: Thursday, December 15, 2005 12:23 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] passing Map from Flex to server side
 
 Using remote objects stuff, I am able to pass my object which 
contains a
 Map object from server to flex, but when I try to send that object 
 back it doesn't work.   
 
 Set objects work, but Map objects don't.
 
 
 On the AS side my Map is defined as an Array in the AS object.
 
 On the server side it is a Map object.
 
 I have a registerClass call to map the AS object to the java 
object.
 
 Can anyone help me out or point me to any examples of how to do 
this?  
 
 Thanks
 
 
 
 
 
 
  Yahoo! Groups Sponsor 
~--
 Most low income homes are not online. Make a difference this 
holiday
 season!
 http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
 ---
-~- 
 
 --
 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







 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

--
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

* 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] Re: passing Map from Flex to server side

2005-12-15 Thread jgraham_us
  public static var regClass = 
Object.registerClass(testuser.Test,  views.testuser.Test);

Thats the actual line.  I just made a mistake when typing in the 
psuedo code below.

The weird part is, if I build the Object on the client side and send 
it across to the server it appears to work.  

I can look at the objects in the debugger and compare them and I 
can't see any difference between them.  

Is there a way to figure out more details as to which object it is 
failing on when sending back to the server?

The error message is not very detailed, I get two different errors 
on the client side.

One is an error about converting the input type, and the other is it 
was expecting type testuser.Test but was trying to send 
flashgateway.io.ASObject.

Thanks

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:

 Can you double check your usage of Object.registerClass?
 
 Object.registerClass(testuser.Test,Test);
 
 Should be
 
 Object.registerClass(testuser.Test, Test);
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of jgraham_us
 Sent: Thursday, December 15, 2005 2:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: passing Map from Flex to server side
 
 Going from server to client appears to be working fine.  My server
 classes do not implement Map or Collection.  I have tried very 
simple
 cases, and the Maps are not empty.
 
 Here is an example.
 
 Test.java
 --
 package testuser;
 
 public class Test{
 
MapString, User users;
 
MapString, User getUsers() {
  ...
}
 
void setUsers(MapString, Users users) {
  ...
}
 
 }
 ---
 
 Test.as
 ---
 class Test
 {
 Object.registerClass(testuser.Test,Test);
 
 var users : Array;
 
 ... 
 }
 
 So are you saying that my object on the server side, users must be 
of
 type ASObject, or do I have to implement some intermediate type 
then
 build my server side Test object from this intermediate type that 
is an
 ASObject?
 
 Basically I need to get the Test object on the client side possibly
 update it and then send that same object back and have it be a Test
 (server side object) when I get it back on the server.  
 
 Thanks
 --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED]
 wrote:
 
  
  Note that while you can register classes using ActionScript on 
the 
  client for serialization... there's no way to register a Java
 class on
  the server. Your server type must not implement Map or Collection
 as
  these types already have firm rules for server to client
 serialization.
  
  This may be something to log for consideration for Flex 2.0.
  
  
  Alternatively, any chance are you returning empty Maps in any of
 the
  properties? 
  
  I ask because the following special case may occur:
  
  Empty Java Map - Empty AS Associative Array - Empty Java List
  
  This is because there's no distinction between an empty dense,
 ordinal,
  i.e. normal AS Array and an empty AS Associative Array (i.e. 
 they're the
  thing, just an empty Array) and thus Array - List.
  
  I'd contact Flex Support if you need a solution to the latter for
 Flex
  1.5. We've worked with customers on this problem.
  
  (NB: After several customer requests, Flex 1.5 reverted back to
 match
  the legacy behavior from Flash Remoting's convention of returning
 a Java
  Map as an associative Array instead of an Object... which
 historically
  stems from ColdFusionStructs being return as AS Associative 
Arrays 
  (...and note Flex 1.0 had Maps returned as Objects).
  
  In Flex 2.0 we've again moved to have Java Maps returned as AS
 Objects
  by default (with a configuration option for people who wish to go
 back
  to the old Arrays... but note this something that we would
 discourage in
  Flex 2.0 due to the issue described above).
  
  
   
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of jgraham_us
  Sent: Thursday, December 15, 2005 12:23 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] passing Map from Flex to server side
  
  Using remote objects stuff, I am able to pass my object which
 contains a
  Map object from server to flex, but when I try to send that 
object 
  back it doesn't work.   
  
  Set objects work, but Map objects don't.
  
  
  On the AS side my Map is defined as an Array in the AS object.
  
  On the server side it is a Map object.
  
  I have a registerClass call to map the AS object to the java
 object.
  
  Can anyone help me out or point me to any examples of how to do
 this?  
  
  Thanks
  
  
  
  
  
  
   Yahoo! Groups Sponsor --
--
 ~--
  Most low income homes are not online. Make a difference this
 holiday
  season!
  http://us.click.yahoo.com

[flexcoders] passing Map in remote object

2005-12-08 Thread jgraham_us
I have a server side POJO that has a HashMap, my actionscript call 
makes a call to the server using remote objects.  When I get the 
object on the flex side the Map is represented as Object or an Array I 
guess.  The length is always zero, yet my items are in the object.

Why is the length always zero?  I need to iterate through these.

Thanks








 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

--
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

* 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] newb question - get object for id

2005-11-29 Thread jgraham_us
In my mxml file I have something like the following.

mx:Panel id=myPanel ... 
... 
/mx:Panel

I am storing this id off in a String object for example and would 
like to get the actual Panel object instance for the id in an 
actionscript class I have.

How would I go about doing this?  Is there a utility method or 
anything that would allow me to do this?

I know I can refer directly to myPanel in the actionscript and that 
will refer directly to the object, but what I am doing is dynamic 
and I need to be able to get the object just from the id itself.

Thanks









 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

--
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

* 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/