Re: [flexcoders] Flex AMFPHP and VOs

2006-07-25 Thread Andrea Varga
Oriol,

You must have missed something. It works for me.
Take a look at my ServiceCapture screenshot:
http://virtualro.cluj.astral.ro/andi/screenshot.jpg

Also, both the below expressions have  true for result.
(event.result.users[0] is UserVO)
(model.users.getItemAt(0) is UserVO)


Andi

Oriol Gual wrote:

 Hi Andy,

 I finally tested your example, but it's still the same, it is 
 receiving simple objects, not UserVO's, can you check this?

 Also, Robert, could you please provide a working sample?

 Thank you,

 Oriol.




 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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/
 




Re: [flexcoders] VideoPlayer.metadataReceived - were'd it go?

2006-07-25 Thread franto



I'm using it through Video class...stream = new NetStream(connection); stream.client = new CustomClient(this);
and then CustomClient Classclass CustomClient {
 import kremsa.CustomVideo;  private var _video:CustomVideo;
  public function CustomClient(video:CustomVideo)
 {  _video = video;  }
 public function onMetaData(info:Object,... args):void { trace(metadata: duration= + 
info.duration +  width= + info.width +  height= + info.height +  framerate= + info.framerate); _video.duration = 
info.duration; } public function onCuePoint(info:Object):void {
 trace(cuepoint: time= + info.time +  name= + info.name +  type= + info.type);
 } 
 public function onTransition(info:Object,... args):void { trace(onTransition: time= + info.time +  name= + 
info.name +  type= + info.type); }}I just need to have ... args because I'm parsing google video and there are 63 input parameters :)
Hope this helps...search for client propertyFrantoOn 7/25/06, John Grden 
[EMAIL PROTECTED] wrote:












  



I did a search on the archives and through gmail/google and can't seem to find the infoany clues, much appreciated -- John Grden

  













-- -
Frantohttp://blog.franto.comhttp://www.flashcoders.sk

__._,_.___





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



  






__,_._,___



Re: [flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-25 Thread Pan Troglodytes



How about an example result from your RemoteObject?On 7/25/06, michrx7 [EMAIL PROTECTED] wrote:
mx:Script![CDATA[import mx.controls.Text;import 
mx.collections.ArrayCollection;import mx.utils.ObjectUtil;import mx.rpc.events.*;import mx.controls.Alert;import flash.net.*;[Bindable]
public var activeMembers:ArrayCollection;public function initApp():void{myService.getActive();}public function clickHandler():void
{var myvalueName =myGrid.selectedItem.cvcontactID;Alert.show(myvalueName);}private function resultHandler
(event:ResultEvent):void {activeMembers = event.result asArrayCollection;}]]/mx:Scriptmx:RemoteObject id=myService destination=ColdFusion
source=admin_rpt_AllMembers showBusyCursor=truemx:method name=getActive result=resultHandler(event) fault=Alert.show(event.fault.message
)//mx:RemoteObjectmx:DataGrid name=myActiveMembers id=myGrid width=100%height=90% dataProvider={activeMembers} click=clickHandler()
mx:columns mx:DataGridColumn headerText=ID dataField=cvcontactIDvisible=false/ mx:DataGridColumn headerText=Company
dataField=cvcompanyName/ mx:DataGridColumn headerText=Last NamedataField=cvcontactLast/ mx:DataGridColumn headerText=First Name
dataField=cvcontactFirst/ mx:DataGridColumn headerText=CitydataField=cvcontactCity/ mx:DataGridColumn headerText=StatedataField=cvstateAB/
 mx:DataGridColumn headerText=ZipdataField=cvcontactZip/ mx:DataGridColumn headerText=CountrydataField=cvcountryName/ mx:DataGridColumn headerText=Reg
dataField=cvcontactmemberReg/ mx:DataGridColumn headerText=ExpiresdataField=cvcontactmemberExp//mx:columns/mx:DataGrid
--- In flexcoders@yahoogroups.com, Pan Troglodytes[EMAIL PROTECTED] wrote: That doesn't make a lot of sense to me.SelectedItem will be the
item in the dataprovider, which knows nothing about the grid and whichfields are visible or not. Can you post your code? Yahoo! Groups Sponsor ~--
Yahoo! Groups gets a make over. See the new email design.http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM~-
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/-- Jason

__._,_.___





--
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 AMFPHP and VOs

2006-07-25 Thread Stefan Schmalhaus
 I just sent a private mail to you with the code.

I'm also interested in your code sample. Would you mind sharing your
code here on the list? If it's too much code please send me an email,
too. Thanks in advance.

Stefan Schmalhaus
[EMAIL PROTECTED]






 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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/
 




Re: [flexcoders] Re: SWF Volume

2006-07-25 Thread franto



I have problem to set volume on streamed FLV from net...does someone know how can i do that?Thank for your helpFrantoOn 7/21/06, flexnewbie06
 [EMAIL PROTECTED] wrote:













  



I did see that example, but got confused because the sound in my swf 
is included in the swf not seperate.  

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


 Bottom of the page there is an example:
 
 

http://livedocs.macromedia.com/flex/2/langref/flash/media/SoundTransfo
rm.html
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, July 21, 2006 9:08 AM
 Subject: [flexcoders] SWF Volume
 
 
 Can anyone point me the direction on how to control the volume in my
 swf, loaded with swfloader?  Would I use SoundTransform class?
 Any suggestions are always appreciated!
 
 thanks
 Jenn
 
 
 
 
 
 
 
 --
 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



  













-- -
Frantohttp://blog.franto.comhttp://www.flashcoders.sk

__._,_.___





--
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] SWFLoader related query / challenge

2006-07-25 Thread Samuel Reuben



Do you want to interaction between the swf's? You most probably will run into problems here.
If you don't mind what are you trying to achive?

Thanks,
-sam
On 7/24/06, Vishwajit Girdhari [EMAIL PROTECTED] wrote:








One problem in flex...

You have 3.mxmlsthat getcompiled into
.swf (Say A , B , C .)

step1You have to load B inside A
step2 In B there is a button on click you have to unload B from A and load C
step3 Alsoin C there is a button on click you have to unload C from A and load B


---

My approach

for Step1 : cool!
I am loading B in A using SWFLoader.

for step2 : stuck!
 I am not able get hold of the instance A from whichi can change source property of swfLoader (instance) to C.swf


for step :whatever works forstep 2 :-(


--

your thoughts please.

thanks
vishwajit
 

__._,_.___





--
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] Cairngorm AMFPHP - List of VO Instances

2006-07-25 Thread Stefan Schmalhaus
I have two very basic questions regarding lists of VOs in Cairngorm.
I'm using AMFPHP to retreive data from a MySQL database. A usual
method looks like this (PHP):

-

function getUsers() {
$query = SELECT uid,username,password,email FROM users;
$result = mysql_query($query);
while ($row = mysql_fetch_object($result)) {
$arrayOfUsers[] = $row;
}
return($arrayOfUsers);
} 
-

Everything works fine, the data is stored as an array in the
ModelLocator (model.users), and I use DataBinding to populate a
DataGrid. But I learned from Steven Webster's excellent 6-part article
series that it is good practice to store information as VOs or as a
list of VOs (in his example it's the list of the product's in a
customer's shopping cart). 

Question 1: How do I convert my array into a list of VOs? Or is my
array already a list of VOs?

Question 2: Let's say I want to use the same array (model.users) as a
dataProvider for a ComboBox component somewhere else in the
application. I can set up DataBinding for the ComboBox like I did with
the DataGrid. But the ComboBox needs a data and a label field. I
can set the label field to username with the labelField property,
but how do I set the data field? I want the uid field from my SQL
query to be the data field in the ComboBox. - Or am I supposed to use
an SQL statement like this SELECT uid,uid AS data,username, password,
email FROM users?

Thanks in advance.

Stefan Schmalhaus


















 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/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] Re: Cairngorm AMFPHP - List of VO Instances

2006-07-25 Thread Stefan Schmalhaus
I guess I can answer the second question myself: Since I can always
get the uid by myComboBox.selectedItem.uid there's no real need to
set the data field of the ComboBox.






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




Re: [flexcoders] Flex AMFPHP and VOs

2006-07-25 Thread Oriol Gual



Andi,What version of PHP are you using? Also, are you in windows or linux / unix?This is really driving me crazy!Also, I've uploaded the file so everyone can have it, 
get it here.Oriol.2006/7/25, Andrea Varga [EMAIL PROTECTED]:
Oriol,You must have missed something. It works for me.Take a look at my ServiceCapture screenshot:http://virtualro.cluj.astral.ro/andi/screenshot.jpg
Also, both the below expressions havetrue for result.(event.result.users[0] is UserVO)(model.users.getItemAt(0) is UserVO)AndiOriol Gual wrote: Hi Andy, I finally tested your example, but it's still the same, it is
 receiving simple objects, not UserVO's, can you check this? Also, Robert, could you please provide a working sample? Thank you, Oriol. Yahoo! Groups Sponsor ~--
Great things are happening at Yahoo! Groups.See the new email design.http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM~-
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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.



  






__,_._,___



Re: [flexcoders] Flex arrows?

2006-07-25 Thread Tom Chiverton
On Monday 24 July 2006 17:36, JesterXL wrote:
 You have a choice; either go dig in the Button class to see how they are
 rotating the arrow, wait for me to do it this evening, or go take 2 minutes
 to create the arrows yourself, and use bitmap skins.

Around line 253, they just seem to switch:
if (name.charAt(0) == p)
:-)

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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





Re: [flexcoders] clean up on aisle three - formatting request for Adobe

2006-07-25 Thread Tom Chiverton
On Monday 24 July 2006 16:45, Pan Troglodytes wrote:
 :P

:-)

 FYI, if you read, you will see that I was asking for standardization, not
 conversion to spaces.

If only everyone had the same standard way of using tabs...

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/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/
 





Re: [flexcoders] Updates for Flex 2.0?

2006-07-25 Thread Tom Chiverton
On Monday 24 July 2006 21:39, Nick Collins wrote:
 got well, almost everything you guys at Adobe make, and none of it runs on
 Linux, not even with WINE. Sux bigtime.

VMWare is free, however, for those legacy apps.
In particular, Firefox and Flash Player 9 run fine under WINE :-)

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/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/
 




Re: [flexcoders] Flex AMFPHP and VOs

2006-07-25 Thread Andrea Varga
Linux, PHP 5.0.4.

Did you check my code, or did you try to set up your code based on mine?
Did you upload the advancedsettings.php ?
The delicate point are, that cannot be debugged
- VO's in php must have  $_explicitType  defined properly.
- in advancedsettings.php, $incoming and $outgoing array must have 
defined properly.
(I added some logging codes to amf-core/io/AMFSerializer.php to figure 
out how to set them).

Let me know if I can help.
Andi

Oriol Gual wrote:

 Andi,

 What version of PHP are you using? Also, are you in windows or linux / 
 unix?

 This is really driving me crazy!

 Also, I've uploaded the file so everyone can have it, get it here 
 http://www.snokin.com/flex/ClassMappingExample.zip.

 Oriol.

 2006/7/25, Andrea Varga [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]:

 Oriol,

 You must have missed something. It works for me.
 Take a look at my ServiceCapture screenshot:
 http://virtualro.cluj.astral.ro/andi/screenshot.jpg
 http://virtualro.cluj.astral.ro/andi/screenshot.jpg

 Also, both the below expressions have  true for result.
 (event.result.users[0] is UserVO)
 (model.users.getItemAt(0) is UserVO)


 Andi

 Oriol Gual wrote:

  Hi Andy,
 
  I finally tested your example, but it's still the same, it is
  receiving simple objects, not UserVO's, can you check this?
 
  Also, Robert, could you please provide a working sample?
 
  Thank you,
 
  Oriol.




  Yahoo! Groups Sponsor


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

 http://groups.yahoo.com/group/flexcoders/

 mailto:[EMAIL PROTECTED]





  



-- 
Andrea Varga
Managing Partner / Project Manager
Certified Macromedia Flash MX 2004 Developer 

--
Spin Development Srl

Tel: +44 207 043 1304
Fax: +44 207 681 1376
Skype ID: vargaandrea

Mon-Fri : 8 AM - 5 PM GMT+2
Saturday: 8 AM - 4 PM GMT+2 (Support only)
--



 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/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/
 




Re: [flexcoders] Re: Flex AMFPHP and VOs

2006-07-25 Thread Andrea Varga






Oriol uploaded it A
href="" class="moz-txt-link-rfc2396E" href="http://www.snokin.com/flex/ClassMappingExample.zip">"http://www.snokin.com/flex/ClassMappingExample.zip"here/A.

Stefan Schmalhaus wrote:

  
I just sent a private mail to you with the code.

  
  
I'm also interested in your code sample. Would you mind sharing your
code here on the list? If it's too much code please send me an email,
too. Thanks in advance.

Stefan Schmalhaus
[EMAIL PROTECTED]






 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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/
 

  



-- 
Andrea Varga
Managing Partner / Project Manager
Certified Macromedia Flash MX 2004 Developer 

--
Spin Development Srl

Tel: +44 207 043 1304
Fax: +44 207 681 1376
Skype ID: vargaandrea

Mon-Fri : 8 AM - 5 PM GMT+2
Saturday: 8 AM - 4 PM GMT+2 (Support only)
--

__._,_.___





--
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 AMFPHP and VOs

2006-07-25 Thread Renaun Erickson
I have updated the RemoteObjectAMF0 with samples of how to do the
AMFPHP  and VO's.

Example Using Cairngorm:
http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html

Example With Out Using Cairngorm:
http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html

You can find the source here:
http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/

Thanks Robert for the partial code.

Renaun






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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/
 





Re: [flexcoders] Any way to get a navbar to maintain state, acting kinda like a tabNavigator

2006-07-25 Thread Tom Chiverton
On Friday 21 July 2006 13:04, hank williams wrote:
 are some special cases. But is there any way to say that a specific button
 in the bar should be a different color?

Custom item renderer ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/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] Re: [Bindable] not working - Formatting a bound ArrayCollection in a model

2006-07-25 Thread polestar11
Hi there

I managed to get Ralf's version to work  half got mine to work by
applying the [Bindable] tag to my MyClassObject. I am working on
something different at the moment, and again have run into trouble
with binding on an ArrayCollection in a model class.

I would like to run my ArrayCollection value through a formatter
function in my view. This method works with a string, but performs
strangely for a collection, where:
1) The format function is never called on update
2) The bound control reflects the update if I return the
ArrayCollection reference from the function, and doesn't reflect the
update if I return a reference to a different object (even though the
function is never called)

Model class:
 snip ---
public var tempMoveList:ArrayCollection = new ArrayCollection();
public var tempText:String  = start;
 /snip ---
View:
 snip ---
mx:Script
 ![CDATA[
 public function updateModel() {
  model.tempText = Text + Math.random().toString();
  model.tempMoveList.addItem({val:Math.random()});
 }
 public function formatVal(t:String):Object {
  trace(Format Text);
  return t+= _formatted;
 }
 public function formatList(l:ArrayCollection) {
  trace(Format List)
  l.addItem({val:100});
  return l; 
 }  
 [Bindable]
 public var model:Model = Model.getInstance(); 
]]
/mx:Script
mx:Button label=click click=updateModel() /
mx:Label text={formatVal(model.tempText)} /
mx:Tree id=moveTree x=189 y=0
dataProvider={formatList(model.tempMoveList)} labelField=val
height=190 width=193 /
 /snip ---

I have also tried using a mx:Binding tag to perform the operation,
as well as Paul Williams 'smallest tag'*, both of which do not reflect
an update to the ArrayCollection value. Trying to follow up on this in
the documentation I found the following, which seems to imply that the
formatting function should work: 

You can use ActionScript functions as the source of binding
expressions. You usually do this when using a bindable property as an
argument of a function. When the bindable property changes, the
function executes, and the result is used in the binding destination ...

Regards
Tracy

*http://weblogs.macromedia.com/paulw/archives/2006/05/the_worlds_smal.cfm






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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] Re: Cairngorm AMFPHP - List of VO Instances

2006-07-25 Thread Renaun Erickson
You can take 2 approaches on the Array of VO's.  First approach is to
create the array of VO's in PHP instead of passing back a PHP
resultset.  The other option is to put the returned PHP resultset
through a Factory AS object and create teh Array of VO's on the
Flex/AS side.

You can pass Array of Typed PHP objects from PHP to Flex through
AMFPHP which might be you best bet.  It's somewhat personal perference
and just how you want to make it consistent (ie: All Factory logic in
PHP or AS).

Renaun

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

 I have two very basic questions regarding lists of VOs in Cairngorm.
 I'm using AMFPHP to retreive data from a MySQL database. A usual
 method looks like this (PHP):
 
 -
 
 function getUsers() {
 $query = SELECT uid,username,password,email FROM users;
 $result = mysql_query($query);
 while ($row = mysql_fetch_object($result)) {
 $arrayOfUsers[] = $row;
 }
 return($arrayOfUsers);
 } 
 -
 
 Everything works fine, the data is stored as an array in the
 ModelLocator (model.users), and I use DataBinding to populate a
 DataGrid. But I learned from Steven Webster's excellent 6-part article
 series that it is good practice to store information as VOs or as a
 list of VOs (in his example it's the list of the product's in a
 customer's shopping cart). 
 
 Question 1: How do I convert my array into a list of VOs? Or is my
 array already a list of VOs?
 
 Question 2: Let's say I want to use the same array (model.users) as a
 dataProvider for a ComboBox component somewhere else in the
 application. I can set up DataBinding for the ComboBox like I did with
 the DataGrid. But the ComboBox needs a data and a label field. I
 can set the label field to username with the labelField property,
 but how do I set the data field? I want the uid field from my SQL
 query to be the data field in the ComboBox. - Or am I supposed to use
 an SQL statement like this SELECT uid,uid AS data,username, password,
 email FROM users?
 
 Thanks in advance.
 
 Stefan Schmalhaus







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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] Re: SWF Volume

2006-07-25 Thread Renaun Erickson
If you are using the mx.controls.VideoDisplay you would use:

var myVideo:VideoDisplay = new VideoDisplay();
myVideo.source = some.flv;
myVideo.volume = 50;
myVideo.play();

or 

mx:VideoDisplay id=myVid height=158 width=211
source=assets/phone.flv autoPlay=false volume=50/

Renaun


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

 I have problem to set volume on streamed FLV from net...
 does someone know how can i do that?
 Thank for your help
 
 Franto
 
 On 7/21/06, flexnewbie06 [EMAIL PROTECTED] wrote:
 
I did see that example, but got confused because the sound in my swf
  is included in the swf not seperate.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  JesterXL jesterxl@ wrote:
  
   Bottom of the page there is an example:
  
  
  http://livedocs.macromedia.com/flex/2/langref/flash/media/SoundTransfo
  rm.html
  
   - Original Message -
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Sent: Friday, July 21, 2006 9:08 AM
   Subject: [flexcoders] SWF Volume
  
  
   Can anyone point me the direction on how to control the volume in my
   swf, loaded with swfloader? Would I use SoundTransform class?
   Any suggestions are always appreciated!
  
   thanks
   Jenn
  
  
  
  
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
http://www.mail-archive.com/flexcoders%http://www.mail-archive.com/flexcoders%25
  40yahoogroups.com
   Yahoo! Groups Links
  
 
   
 
 
 
 
 -- 

-
 Franto
 
 http://blog.franto.com
 http://www.flashcoders.sk







--
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 Final - MenuBar dataprovider

2006-07-25 Thread Bas J. Brey










When changing the dataProvider of a MenuBar component
im ending up in an endless loop, does anyone have to same problem? If
so, did you fix it or?



Seems like a bug to me.




__._,_.___





--
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] Problems running online Flex store demo app

2006-07-25 Thread shottonmark
I have encountered problems running the Flex store demo application 
from the Adobe web site: 
http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.htm
l

I can access this application OK from every PC I have tried it on 
except the PC in our boardroom where I was giving a demo to my 
company - typical - the application threw the error listed below.  
However other Flash applications seem to run OK on this machine and 
so did a local copy of the Flex store.

The ActionScript error reported is:

ReferenceError: Error #1069: Property hasDefinition not found on 
flash.system.ApplicationDomain and there is no default value.
at mx.managers::SystemManager/getDefinitionByName()
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal
::addingChild()
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal
::rawChildren_addChildAt()
at mx.managers::SystemChildrenList/addChild()
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal
::initialize()
at mx.managers::SystemManager/::initHandler()

Can anyone shed light on this?

Thanks

Mark






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





RE: [flexcoders] Problems running online Flex store demo app

2006-07-25 Thread Steven Webster





Mark,

Sounds like there's an old version of the beta debug player 
on the machine; if you haven't done a clean uninstall using the uninstaller, I'd 
recommend doing that before a player install. If you paste your 
actionscript error into google, you'll find a few folks that have run into this 
problem before - a good example with the solution (links to uninstall, etc) is 
here:

http://tom-lee.blogspot.com/2006/07/jamjar-flex-2-little-worried.html

Hopefully that's all you need to get up and 
running.

Best wishes,

Steven



  
  

  


  
  

Steven WebsterPractice Leader (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs 
Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
6108
m: +44 (0)7917 428 947[EMAIL PROTECTED] 
  


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  shottonmarkSent: 25 July 2006 10:37To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Problems running 
  online Flex store demo app
  
  
  I have encountered problems running the Flex store demo application 
  from the Adobe web site: http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.htmlI 
  can access this application OK from every PC I have tried it on except the 
  PC in our boardroom where I was giving a demo to my company - typical - 
  the application threw the error listed below. However other Flash 
  applications seem to run OK on this machine and so did a local copy of the 
  Flex store.The ActionScript error reported is:ReferenceError: 
  Error #1069: Property hasDefinition not found on 
  flash.system.ApplicationDomain and there is no default 
  value.at 
  mx.managers::SystemManager/getDefinitionByName()at 
  mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::addingChild()at 
  mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()at 
  mx.managers::SystemChildrenList/addChild()at 
  mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()at 
  mx.managers::SystemManager/::initHandler()Can anyone 
  shed light on this?ThanksMark
__._,_.___





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



  






__,_._,___



Re: [flexcoders] Re: Flex AMFPHP and VOs

2006-07-25 Thread Oriol Gual



First of all, I'd like to thank you all.I tried Renaun's example, and with ServiceCapture, it is returning an array of BookVO. At this point everything seems OK.But when you receive this array, if you do something like this:
var testBook : BookVO = new BookVO;testBook = BookVO(ModelLocator.getInstance().books[0]);It will fail, because the objects inside the array collection aren't BookVO's
, they are Objects:TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to com.renaun.samples.vo.BookVO.And the same happens with your example Andi.
Then, my question is, can anyone do this without the coercion error, and, without extra functions to map it?Thanks, Oriol.2006/7/25, Renaun Erickson 
[EMAIL PROTECTED]:I have updated the RemoteObjectAMF0 with samples of how to do the
AMFPHPand VO's.Example Using Cairngorm:http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html
Example With Out Using Cairngorm:http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html
You can find the source here:http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/Thanks Robert for the partial code.
Renaun Yahoo! Groups Sponsor ~--Great things are happening at Yahoo! Groups.See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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] drag-drop behaviors in Flex Builder 2

2006-07-25 Thread zerlot_ma777



Hi,
When I am using FB2, I think it will be better if I can do the following behaviors(especiallyina complex containers nested layout mxml page):
1. In outline window
2. click to select one container(or tag) name
3.drag and move it into another location in outline, then inthe source mode the corresponding code block which I selected in the outline window will be placed in the right location.(Now, the Flex Builder 2 just only jump to the specified tag and highlight it)
4.finish. I think if I can do above behaviors ,it's cool,aha? most improve my productivity.
Wish it could be realized by flex builder team in next updater...

__._,_.___





--
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] Equiv of DoEvents, to allow painting?

2006-07-25 Thread Daniel Tuppeny






Hi,

I'm trying to plot 
40k points on a PlotChart, and it locks up IE quite miserably in the 
updateDisplayList loop. Is there any equivilent of .NET's 
Application.DoEvents(), that allows CPU time for processing of events (like 
painting windows) that I could put inside the loop to run on every, say 500th 
iteration, so IE doesn't turn into a big white space while the points 
render?

I know 40k points 
isn't particularly useful, but our app has to degrade nicely if someone doesn't 
filter the data, and stopping IE form painting is not very 
nice.

Thanks,

Danny 
Tuppeny


The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd.








__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__._,_.___





--
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] Anyone know the answer? Embed images in one MovieClip, use in another?

2006-07-25 Thread hank williams



This is a good suggestion because when you load a swf you *do* have access to all the fields, so there is no reason you cant take a clip within the clip and use it elsewhere. The only thing is you would have to make sure the swf is flash 9 because anything older would be AVM1 and you dont have access to the fields of a AVM1 movieclip from within AVM2.
RegardsHankOn 7/24/06, Shade Gmail [EMAIL PROTECTED] wrote:



Hi,

 In the past I've worked through this kind of thing by loading external .SWFs dynamically and duplicateMovieClip()ing (or moving them) what I needed to the appropriate positions. That was Flash 7. It was ugly, but it worked as long as you didn't need any fancy depth work.


Recently I've done similar stuff in Flash 8 using BitmapData, which works great (and pretty easily too) if you're working with simple bitmap images. Actually, it should work well with generic movieclips as well (see the ... draw() method, I believe. Something like that).


I'm not aware of a Flex way to do what you want. I do hope there is one, it is certainly lacking.

Cheers and good luck,

 Pedro.

On 7/24/06, G 
[EMAIL PROTECTED] wrote:






Hi Jester--Your example here is exactly what we don't want to do.We don't want to embed all the images we need intothe swf--it makes the file size too big.However, we don't want to load the images dynamically
each time we need them--that's too slow.Our application is a game that uses pictures. Playersplay the game for a while with one set of images, thenthey change to a new set of images.What we want is to have something like sets of
images that we can load one time then use repeatedly. So when the player first starts the game, they willget the images from Set1.swf (for example). Then whenit's time to change images, we will load a new set,
Set2.swf, etc.We only want to load the new images one time, becausewe have to change the source property of Image tagsrepeatedly, and this is costly.If you know another way to do this from what I am
asking about, please tell me! But what we arewondering is if it's possible to load a swf containingembedded images, then use those images in the loading(host) swf?Thank you!
Greg--- JesterXL 

[EMAIL PROTECTED] wrote: Don't use SWF's. Flex 1.5  2 have ways to embed them.  [Embed(my1.jpg)] var my1_img:Class;  [Embed(
my1.jpg)] var my2_img:Class;  [Embed(my1.jpg)] var my3_img:Class;  mx:Image id=img source={my1_img} /  Then, have some function swap:
  function swapImage(val) { img.source = val; }  swapImage(my1_img); swapImage(my2_img); swapImage(my3_img);  You could use setInterval, setTimeout, or Timer to
 loop through those...  ...or use a Flash generated SWF; whatever your fancy.  - Original Message -  From: G 

[EMAIL PROTECTED] To: 
flexcoders@yahoogroups.com
 Sent: Saturday, July 22, 2006 11:59 AM Subject: Re: [flexcoders] Anyone know the answer? Embed images in one  MovieClip, use in another?   This line: 
 mx:Loader id=container source=Container.swf /  does not load a swf file containing the embedded image into my application? That is news to me. 
 The reason I want to do it is irrelevant to my question, but here it is: We have an animation that loads many images at once (external images). Even with the images in the browser's cache it is
 drastically slowing down the application.  That embedded images are not loaded is exactly the point. We want to load a swf with several images embedded in it, then use those images in the
 animation. The point is, we want to load the images dynamically (externally), but not every time we change the source of Image. Just one time, ahead of time.  Since when an Image loads an embedded image, we
 are not actually loading it at all, we are hoping we can load the container swf one time, then use its images as embedded images--thus avoiding the immediate load time every time we change source.
  What we want to do, in a nutshell, is load images dynamically, but all at once, and then just attach them from that moment on.  The question is, can we attach an image embedded in
 the container swf into the loader swf, avoiding the external image load? HOW? The relationship between attachMovie and Image is very murky.  An example, perhaps based on the code below, would
 be very nice, very helpful. You seem to know a lot about Flex and Flash, can you help, please?  Thanks,   Greg   --- JesterXL 
[EMAIL PROTECTED]
 wrote:   If you embed an image, you're not loading
  anything; it's merely attaching  the img Class to your MovieClip's DisplayList (  attachMovie in 1.5). Thus  there is no point; just bind them all to img since  they are all using the
  same resource.   External images are a different story.   - Original Message -   From: greg556 

[EMAIL PROTECTED]  To: 
flexcoders@yahoogroups.com
  Sent: Friday, July 21, 2006 7:08 PM  Subject: [flexcoders] Embed images in one MovieClip,  use in another?Hi everyone-- 
  Is it possible to embed images (jpgs) in one  MovieClip, then load that  SWF into 

Re: [flexcoders] Problem in displaying data in Combo Box

2006-07-25 Thread Samuel Reuben



Try doing something like this...

*
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute
mx:HTTPService id=statesModel url="" result=st.dataProvider=event.result.root.state showBusyCursor=true fault=mx.controls.Alert.show('Could not get xml Info!!!') /
mx:ComboBox id=st x=143 y=113 width=132 /mx:Button label=Click to get States click=statesModel.send() //mx:Application

*

and in states.xml
*
?xml version=1.0?root statelabelAlabama/labeldataAL/data/state statelabelAlaska/label
dataAK/data/state statelabelArizona/labeldataAZ/data/state statelabelArkansas/label
dataAR/data/state statelabelCalifornia/labeldataCA/data/state statelabelColorado/label
dataCO/data/state statelabelConnecticut/labeldataCT/data/state statelabelDelaware/label
dataDE/data/state statelabelFlorida/labeldataFL/data/state statelabelGeorgia/label
dataGA/data/state/root
*Hope this helps,
-sam
On 7/24/06, Vinod M Jacob [EMAIL PROTECTED] wrote:








Hi all,

I am working on Flex 2.0.I am faced with a problem.I need to display datafrom the .XML file into the combo box.Earlier i used mx:Model and an array collection to display data in combo box in flex 2 Beta 3version and it was working 
fine.Now i have changed the same code to flex 2 final version and it is not working.The code i used is shown below.

*

?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=
http://www.adobe.com/2006/mxml layout=absolutemx:Model id=statesModel source=states.xml/ mx:ArrayCollection id=StateAC source={
statesModel.states.state}/ mx:ComboBox id=st x=143 y=113 width=132 dataProvider={StateAC}/
/mx:Application


**


the states.xml file is as follows
*
states state label=Alabama data=""> state label=Alaska data=""> state label=Arizona data=""
 state label=Arkansas data=""> state label=California data=""> state label=Colorado data=""> state label=Connecticut data=""
 state label=Delaware data=""> state label=Florida data=""> state label=Georgia data="">
states***


Your help in this regards will be highly appreciated.

Thanks,
Vinod M Jacob

__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 

__._,_.___





--
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: Cairngorm AMFPHP - List of VO Instances

2006-07-25 Thread Stefan Schmalhaus
 It's somewhat personal perference
 and just how you want to make it consistent 
 (ie: All Factory logic in PHP or AS).

Ok, so this basically means if I do it all on the PHP side I have to
set up a PHP VO class for each VO that exists on the Flex/AS side. 

If I want to do it on the Flex/AS side, where would the factory
logic fit in with the Cairngorm framework? Is it part of the Command
Class (while or before the model is updated)?

Stefan







 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/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] invalidateDisplayList()

2006-07-25 Thread Daniel Tuppeny






Hi,

Does calling 
invalidateDisplayList() on a control mean that *everything* (including parents) 
gets re-drawn, or just the children?

I have something 
similar to Ely Greenfield's RangeSelector class (http://demo.quietlyscheming.com/overlayDemo/), 
but the mousemove event seems to cause my PlotSeries to re-draw too. This means, 
when I have 1000 points on my chart, the draggable box is very 
sluggish.

I thought a 
control's updateDisplayList() would only be called if something on that actual 
control changed?

Thanks,

Danny


The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd.








__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__._,_.___





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



  






__,_._,___



RE: [flexcoders] Re: printing/zooming bugs

2006-07-25 Thread Daniel Tuppeny





I was playing with your code, and discovered you don't need 
to create a new context menu, just call hideBuiltInItems() on the existing 
one:



function init:void()
{
 
contextMenu.hideBuiltInItems();
}


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Pan 
TroglodytesSent: 18 July 2006 00:14To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: 
printing/zooming bugs
I know this was asked a long time ago, but somehow I must have missed 
it. Either that or I learned how to do it later. In any case, do 
this: import flash.ui.ContextMenu; var menu:ContextMenu 
= new ContextMenu();  menu.hideBuiltInItems(); contextMenu = 
menu;
On 6/30/06, Daniel 
Tuppeny [EMAIL PROTECTED]  
wrote:

  
  
  
  
  
  Is there a way to hide the context menu (or at least the zoom part)? 
  Wehave a zoomable graph, and if the user right-clicks, they see 
  Zoom,think it's ours, click it, and then they're stuffed until reloading 
  thepage!
  -Original 
  Message-From: flexcoders@yahoogroups.com [mailto: 
  flexcoders@yahoogroups.com] OnBehalf Of JasonSent: 29 June 2006 
  17:50To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: 
  printing/zooming bugsUnfortunately, it looks like the Zoom bug is 
  still there in the releaseversion. I've entered it into the bug report 
  page. But be aware.--- In flexcoders@yahoogroups.com, "Jason" [EMAIL PROTECTED] 
  wrote:  Before I start talking about bugs, let me just say 
  thanks for the  help. I demoed to the boss today and he was VERY 
  pleased. Flex was a big hit with him. Hope the release doesn't 
  slip too far behind, as  we're looking forward to writing that check! 
  :D  Anyway, I've had a couple of problems that seem to be 
  related. In  Flex 2beta3, whenever I create any app and run it, the 
  Flash player's  Zoom options are broken. Right-click and say Zoom In. 
  Right-click  and the Zoom Out option is not shown. You can Zoom In 
  more and THEN  Zoom Out, but not all the way out. You're stuck with it 
  zoomed in. And you can't pan around. This doesn't happening using the 
  beta  player with non-Flex SWFs.  The printing problem 
  seems similar. Here's my example app:  ?xml version="1.0" 
  encoding="utf-8"? mx:Application  xmlns:mx="http://www.adobe.com/2006/mxml" 
  layout="absolute" mx:Script ![CDATA[ 
  private function printClick(e:Event):void { import 
  flash.printing.PrintJob; var myPrintJob:PrintJob = new 
  PrintJob(); myPrintJob.start() ; 
  myPrintJob.addPage(this); myPrintJob.send(); } 
  ]] /mx:Script  mx:Button label="Print" 
  click="printClick(event)" width="481" x="10" y="10"/ 
  mx:DataGrid y="40" x="10" width="481"  
  mx:dataProvider mx:ArrayCollection 
  mx:source mx:Object 
  mx:ArtistPavement/mx:Artist 
  mx:Price11.99/mx:Price mx:AlbumSlanted and 
  Enchanted/mx:Album /mx:Object 
  mx:Object mx:ArtistPavement/mx:Artist 
  mx:AlbumBrighten the Corners/mx:Album 
  mx:Price11.99/mx:Price /mx:Object 
  /mx:source /mx:ArrayCollection 
  /mx:dataProvider /mx:DataGrid 
  /mx:Application   If you click on the print 
  button, you get a zoomed in printed  document. Just like the whole 
  right-click and Zoom In problem. It's  like the player thinks that the 
  normal size is zoomed in.  Can I get some confirmation or 
  denial of the bug? Or if there's  something somehow messed up with my 
  system, let me know.  Thanks.
   Yahoo! Groups Sponsor 
  ~--Check out the new improvements in Yahoo! Groups 
  email.http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM 
  --~- 

  --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  Yahoo! Groups Links[Inbound Mail Scanned by 
  MessageLabs]__This 
  email has been scanned by the MessageLabs Email Security System.For more 
  information please visit http://www.messagelabs.com/email 
  __
  -- Jason  [Inbound Mail Scanned by 
MessageLabs]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__._,_.___





--
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] How can I reuse components I have made?

2006-07-25 Thread Tom Chiverton
On Saturday 22 July 2006 19:14, gotgoose09 wrote:
 Now that I have this SWC, how can I use the components in my Flex
 projects?  Is there a better way to do this?

You include the SWC, and then the classes are available by magic to the main 
application.
On the command line, this would be adding '--library-path+=/where/the/swc/is/' 
to the command.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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] Animating a custom UIComponent?

2006-07-25 Thread davidgolds
I've created a custom component based on UIComponent using AS3 in 
Flex2. The component is built up dynamically from various Bitmaps that 
I have created. 

I'd like to animate/move some of these Bitmaps within my component 
using my own logic. What's the best way to do this? 

Ideally I'd like a render/redraw event (or post-render event) that I 
can use to then set up the Bitmaps for the next frame. 

Any suggestions on how to go about this?

Thanks,

David.





--
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] Datagrid itemrenderer

2006-07-25 Thread sumeetk2111
I am using flex 2. i that I am using datagrid which has itemrenderer 
in which i am using checkbox. selected and unselected status of 
checkbox is comming from the dataprovider. but when i click on the 
checkbox my dataprovider as well as my view should get update also i 
should get the row index of that updated checkbox.
 
So please tell me that how can i achive this.
 






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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] HTTPService giving error when deployed on server.

2006-07-25 Thread Shishir Srivastava
Hi,
I am seriously intrigued by the way flex applications behaves. I have
my flex-app successfully compiled in Flex Builder 2. Now this creates
a .swf file which can readily access the HTTPService calls made to
URLs on the internet. However when I deploy the same file[basically
the HTML wrapper and .swf file] onto my J2EE application server with
FDS, I get the error :

[RPC Fault faultString=Send failed
faultCode=Client.Error.MessageSend
faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Status 500]

This is continously beleaguering me ever since I am trying to deploy
the same onto the app server. Has this anything to do with my server
settings ?
Please help

TIA
Shishir





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

2006-07-25 Thread Robert Kaeth





Hi, 

Has anyone done a comparison between Flex2 and 
OpenLaszlo? 
If someone can share his/her experience, it will be 
great. 

TIA
-B

__._,_.___





--
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] Datagrid. xml structure doesn' match

2006-07-25 Thread olivier
Hi,

I would like to know what's the best xml structure to use datagrid. 

Indeed, my xml data source (legacy system) is like :

xchart
   xset name=x1
 xrecord
   p1/p1
   p2/p2
   p3/p3
 /xrecord
  xrecord
   p1/p1
   p2/p2
   p3/p3
 /xrecord
   /xset
   xset name=x2
 xrecord
   p1/p1
   p2/p2
   p3/p3
 /xrecord
  xrecord
   p1/p1
   p2/p2
   p3/p3
 /xrecord
   /xset


/xchart


I can use the charting components with this xml (using []) but I 
encountered some troubles with datagrid

my data source is composed in 4 xset. Each of these xset is composed 
by one or more xrecord.
But one xset is corresponding to one column
As we can set the dataprovider only in the datagrid tag, I can't 
realize it.

my whish (obviously doesn' t work):

mx:DataGrid dataProdiver={feed.lastResult.xchart}
   mx:DataGridColumn datafield=[EMAIL PROTECTED]
/mx:DataGrid

Do you have any idea ? or there is an unique xml strucutre for datagri
d ??

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: Embbeding a Flash CFReport inside a Flex App

2006-07-25 Thread nigasak
Please, Please Could you share the IFrame Solution? 


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

 Scaling and some browser problems (at least in b2 and b3).  I forget
which
 what exactly happened for each browser but sometimes the flashpaper
wouldnt
 be able to regain focus after interacting with it(pressing print,
scrolling,
 etc).  Other times it wouldnt allow interactions at all.
 
 I talked with some people at CFUnited and they said something about
writing
 an AS2 wrapper that would make things work better but I decided to
use an
 IFrame solution.
 
 Scotty
 http://www.franciswscott.com
 
 On 7/24/06, Nick Collins [EMAIL PROTECTED] wrote:
 
I've been able to have it in there using both the image
component or the
  SWFloader by simply specifying the source as my CFR file, since it
returns a
  SWF. The problem I had is with scaling. When you view the CFR in
the browser
  from a CF server, the controls are a toolbar along the top that
stays the
  same size regardless of browser scaling. However when placed into
a flex
  app, the swf is relatively very small, and when you scale it, it
scaled the
  whole thing, making for a very large FlashPaper toolbar.
 
  Maybe this will point you in the right direction if you can figure
out a
  solution to scaling problem. If you do,please share! :-)
 
  Nick
 
 
  On 7/23/06, nigasak [EMAIL PROTECTED] wrote:
  
 Hi everybody, does anyone knows How to include a ColdFusion Flash
   Paper Report inside a Flex App?
  
  
   
 








--
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] Doesn't work mx:Button click=function({...});

2006-07-25 Thread exeypan
Why it does not work?
Function loadXML2 is not extracted...


mx:Button click=loadXML2({ getField( XML( linksItems.currentItem ), 
how1Link ) }); label=Link /





 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/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] Creating Tree from XML

2006-07-25 Thread Robert Kaeth





Hi All, 

I have following XML and I would like to create a 
tree out of it. 

mx:XMLList 
id="treeData" node 
label="RootNode" 
node 
label="child1" 
node 
label="child11"/ 
node 
label="child12"/ 
node 
label="child13"/ 
/node node 
label="child2" 
node 
label="child21"/ 
node 
label="child22"/ 
node 
label="child23"/ 
/node node 
label="child3" 
 node 
label="child31"/ 
node 
label="child32"/ 
node 
label="child33"/ 
/node 
/node/mx:XMLList


The output I want is:

RootNode
+-child1
 
+--child11

 
+--child12

 
+--child13

+-child2
 
+--child21

 
+--child22

 
+--child23

+-child3
 
+--child31

 
+--child32

 
+--child33


I tried the mx:DataGrid, it works fine if the XML is only one level deep 
but doesn't work otherwise.

In "dataField" attribute of "mx:DataGridColumn" how do I refer to NESTED 
XML Elements/Attributes.

Referring NESTED childrenusingXPathsyntax doesn't seem to 
work. 


TIA
-B

__._,_.___





--
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 AMFPHP and VOs

2006-07-25 Thread thekluito
Hello Oriol, 

I've found this thread looking for some elegant way to interact amfphp
with cairngorm. For what i've read, did you have a php class with the
structure of you AS VO? Are you returning an array containing the
bookvo info or an bookvo object?. 

If i'm wrong or this is not your case, please correct me.



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

 First of all, I'd like to thank you all.
 
 I tried Renaun's example, and with ServiceCapture, it is returning
an array
 of BookVO. At this point everything seems OK.
 
 But when you receive this array, if you do something like this:
 
 var testBook : BookVO = new BookVO;
 testBook = BookVO(ModelLocator.getInstance().books[0]);
 
 It will fail, because the objects inside the array collection aren't
 BookVO's, they are Objects:
 TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED]
 com.renaun.samples.vo.BookVO.
 
 And the same happens with your example Andi.
 
 Then, my question is, can anyone do this without the coercion error,
and,
 without extra functions to map it?
 
 Thanks, Oriol.
 
 2006/7/25, Renaun Erickson [EMAIL PROTECTED]:
 
  I have updated the RemoteObjectAMF0 with samples of how to do the
  AMFPHP  and VO's.
 
  Example Using Cairngorm:
 
 
http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html
 
  Example With Out Using Cairngorm:
 
 
http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html
 
  You can find the source here:
  http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/
 
  Thanks Robert for the partial code.
 
  Renaun
 
 
 
 
 
 
 
  --
  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 ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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/
 




RE: [flexcoders] HTTPService giving error when deployed on server.

2006-07-25 Thread Carson Hager





This has to do with the security model of the Flash 
Player. Flex Builder is helping you out when running locally by adding 
your local build directory to the list of "safe" directories for the Flash 
Player allowing it access to all network resources. When you deploy to 
your application server and download from the browser, you are working within 
the standard security sandbox. The only way to get around this is to use a 
crossdomain.xml file on the servers whose services you are trying to 
access. This filespecifies access policies for SWFs trying to access 
resources on the server machine. You can get more information 
here.

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213
Carson

Carson 
HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: 
[EMAIL PROTECTED]Office: 
866-CYNERGYMobile: 1.703.489.6466



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Shishir 
SrivastavaSent: Tuesday, July 25, 2006 3:51 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] HTTPService giving 
error when deployed on server.


Hi,I am seriously intrigued by the way flex applications behaves. I 
havemy flex-app successfully compiled in Flex Builder 2. Now this 
createsa .swf file which can readily access the HTTPService calls made 
toURLs on the internet. However when I deploy the same file[basicallythe 
HTML wrapper and .swf file] onto my J2EE application server withFDS, I get 
the error :[RPC Fault faultString="Send 
failed"faultCode="Client.Error.MessageSend"faultDetail="Channel.Connect.Failed 
error NetConnection.Call.Failed:HTTP: Status 500"]This is 
continously beleaguering me ever since I am trying to deploythe same onto 
the app server. Has this anything to do with my serversettings ?Please 
helpTIAShishir
__._,_.___





--
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] itemrenderer as a Checkbox

2006-07-25 Thread sumeet k



Hi,I am using flex 2. i that I am using datagrid which has itemrenderer in which i am using checkbox. selected and unselected status of checkbox is comming from the dataprovider. but when i click on the checkbox my dataprovider as well as my view should get update also i should get the row index of that updated checkbox.So please tell me that how can i achive this.ThanxRegards  Sumeet 
	
		See the all-new, redesigned Yahoo.com.  Check it out.

__._,_.___





--
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] repost: FW: Radiobutton bug in Repeater

2006-07-25 Thread Steve Cox










Sorry
for the repost but I never saw this appear on the list 



All,



Ive been experiencing
several issues with the radiobutton when in a repeater  the main problem
at the moment is this error:



TypeError: Error #1009: Cannot access a property or
method of a null object reference.

 at
mx.controls::RadioButton/mx.controls:RadioButton::addToGroup()[C:\dev\GMC\sdk\frameworks\mx\controls\RadioButton.as:454]



Debugging the code it would
appear that the document property in the RadioButton.as is
returning null, as a result group is also returning null even
though I have set group to equal a radiobutton group in the component.



This error doesnt
happen all the time, but it is a show stopper when it does pop up!!



Any ideas?



Cheers



Steve




__._,_.___





--
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] catching FLEX errors

2006-07-25 Thread chrislee943
Hi all,

I need to catch all errors and warning which generate Flex
application, but not using try ... catch flow control structure.
For example,
Division by zero error have been occured - I need to catch and log it
and if it possible do not show Flex error dialog with this error.


Thanks,
Best Regards
Dmitry.






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




Re: [flexcoders] Doesn't work mx:Button click=function({...});

2006-07-25 Thread Clint Tredway



try putting that logic into a function outside the click event of the button. I have seen the flash player get confused as to what to do when functions are nested like that.On 7/25/06, 
exeypan [EMAIL PROTECTED] wrote:













  



Why it does not work?
Function loadXML2 is not extracted...

mx:Button click=loadXML2({ getField( XML( linksItems.currentItem ), 
how1Link ) }); label=Link /


  













-- diabetic? http://www.diabetesforums.comAlbert Einstein - It's not that I'm so smart, it's just that I stay with problems longer.

__._,_.___





--
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] How to pass optional arguments to a function in Flex 2?

2006-07-25 Thread Artur Kordowski





In Flex 1.5 there 
was a way to create a function and pass optional arguments to it, and get them 
in the function using arguments[0].

private function 
foo():Void
{
 
var arg = arguments[0];
}

When I try it to do 
in Flex 2 I've got still an 'Inccorect number of arguments' 
error.
Have anyone an idea 
how I can do it in Flex 2?

Thanks, 
Artur
__._,_.___





--
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] Problem in displaying data in Combo Box

2006-07-25 Thread Vinod M Jacob



Hi samuel,Thanks for sending me this suggestion.The code is working fine.  Anyway i had solved this using a XmlList and making the same change   asyouchanged in the xml file and it worked fine.I really appreciate your effort in solving this problem.  And once again i thank you for this.Samuel Reuben [EMAIL PROTECTED] wrote:Try doing something like this...* 
 ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" mx:HTTPService id="statesModel" url="" result="st.dataProvider=event.result.root.state" showBusyCursor="true" fault="mx.controls.Alert.show('Could not get xml Info!!!')" / mx:ComboBox id="st" x="143" y="113" width="132" /mx:Button label="Click to get States" click="statesModel.send()" //mx:Application   *and in states.xml  *  ?xml version="1.0"?root statelabelAlabama/labeldataAL/data/state statelabelAlaska/label
 dataAK/data/state statelabelArizona/labeldataAZ/data/state statelabelArkansas/label dataAR/data/state statelabelCalifornia/labeldataCA/data/state statelabelColorado/label dataCO/data/state statelabelConnecticut/labeldataCT/data/state statelabelDelaware/label
 dataDE/data/state statelabelFlorida/labeldataFL/data/state statelabelGeorgia/label dataGA/data/state/root  *Hope this helps,  -sam  On 7/24/06, Vinod M Jacob [EMAIL PROTECTED] wrote:   Hi all,I am working on Flex 2.0.I am faced with a problem.I need to display datafrom the .XML file into the combo
 box.Earlier i used mx:Model and an array collection to display data in combo box in flex 2 Beta 3version and it was working fine.Now i have changed the same code to flex 2 final version and it is not working.The code i used is shown below.*?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute"mx:Model id="statesModel" source="states.xml"/ mx:ArrayCollection id="StateAC" source="{ statesModel.states.state}"/ mx:ComboBox id="st" x="143" y="113" width="132" dataProvider="{StateAC}"/  /mx:Application 
 **  the states.xml file is as follows  *  states state label="Alabama" data=""/ state label="Alaska" data=""/ state label="Arizona" data=""/  state label="Arkansas" data=""/ state label="California" data=""/ state label="Colorado" data=""/ state label="Connecticut" data=""/  state label="Delaware" data=""/ state label="Florida" data=""/ state label="Georgia"
 data=""/  states***  Your help in this regards will be highly appreciated.Thanks,  Vinod M Jacob__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
__._,_.___





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



  






__,_._,___



Re: [flexcoders] Re: Flex AMFPHP and VOs

2006-07-25 Thread Andrea Varga
That works  too
http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html
(view source enabled)

Andi

Oriol Gual wrote:

 First of all, I'd like to thank you all.

 I tried Renaun's example, and with ServiceCapture, it is returning an 
 array of BookVO. At this point everything seems OK.

 But when you receive this array, if you do something like this:

 var testBook : BookVO = new BookVO;
 testBook = BookVO(ModelLocator.getInstance().books[0]);

 It will fail, because the objects inside the array collection aren't 
 BookVO's , they are Objects:
 TypeError: Error #1034: Type Coercion failed: cannot convert 
 [EMAIL PROTECTED] to com.renaun.samples.vo.BookVO.

 And the same happens with your example Andi.

 Then, my question is, can anyone do this without the coercion error, 
 and, without extra functions to map it?

 Thanks, Oriol.




 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/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] Working version of Phones in Flex2/Cairngorm2?

2006-07-25 Thread Wally Randall
Has anyone successfully implemented the Flex2/Cairngorm2 version of 
the Phones sample application?  I am stumped with error messages 
refering to obscure errors I have not yet figured out:
Implicit coercion of a value of type  to an unrelated class.
Interface method onFault in namespace ... implemented with invalid 
signature in 

For us newcomers to the Cairngorm model we need WORKING samples, not 
versions of code that need to be debugged prior to use.  






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





Re: [flexcoders] How to pass optional arguments to a function in Flex 2?

2006-07-25 Thread Paul BH



you need to use the 'rest' parameter its an ellipsis (...)details here:http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1834.html
On 7/25/06, Artur Kordowski [EMAIL PROTECTED] wrote:













  






In Flex 1.5 there 
was a way to create a function and pass optional arguments to it, and get them 
in the function using arguments[0].

private function 
foo():Void
{
 
var arg = arguments[0];
}

When I try it to do 
in Flex 2 I've got still an 'Inccorect number of arguments' 
error.
Have anyone an idea 
how I can do it in Flex 2?

Thanks, 
Artur

  















__._,_.___





--
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] How to pass optional arguments to a function in Flex 2?

2006-07-25 Thread Artur Kordowski





Thanks a lot Paul, that's exactly that what I'm looking 
for.

Artur


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Paul BHSent: 
Tuesday, July 25, 2006 3:25 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to pass 
optional arguments to a function in Flex 2?
you need to use the 'rest' parameter its an ellipsis 
(...)details here:http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1834.html 

On 7/25/06, Artur 
Kordowski [EMAIL PROTECTED] 
wrote:

  
  
  
  
  
  
  In Flex 1.5 there was a way to create a 
  function and pass optional arguments to it, and get them in the function using 
  arguments[0].
  
  private function 
  foo():Void
  {
   var arg = 
  arguments[0];
  }
  
  When I try it to do in Flex 2 I've got 
  still an 'Inccorect number of arguments' error.
  Have anyone an idea how I can do it in 
  Flex 2?
  
  Thanks, Artur
   
__._,_.___





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



  






__,_._,___



RE: [flexcoders] Flex Vs OpenLaszlo

2006-07-25 Thread Allen Riddle












I had looked at and evaluated the two. Im
a big proponent of open source, as most of our technology we use is open
source. But, Flex is a much better product hands down. The main thing is
consuming data in Flex is leaps and bounds from Lazslo. Also, youre
going to get a lot more documentation from Flex. Its been a while since
I played with it, but Lazslo doesnt have anything equivalent to Flex
Data Services, which is the bread and butter. And finally, you are stuck using
_javascript_ in Lazslo, where in Flex, you get to use Action Script, which as you
know, has a lot more capabilities.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Kaeth
Sent: Tuesday, July 25, 2006 5:08
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Vs
OpenLaszlo













Hi, 











Has anyone done a comparison between
Flex2 and OpenLaszlo? 





If someone can share his/her
experience, it will be great. 











TIA





-B














__._,_.___





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



  






__,_._,___






Re: [flexcoders] invalidateDisplayList()

2006-07-25 Thread Jeremy Lu



In your updateDisplayList() function, you can add an if clause to detect which part should be redrawn.Something like :if( dotChanged ){ //do redraw}Jeremy.
On 7/25/06, Daniel Tuppeny [EMAIL PROTECTED] wrote:













  







Hi,

Does calling 
invalidateDisplayList() on a control mean that *everything* (including parents) 
gets re-drawn, or just the children?

I have something 
similar to Ely Greenfield's RangeSelector class (
http://demo.quietlyscheming.com/overlayDemo/), 
but the mousemove event seems to cause my PlotSeries to re-draw too. This means, 
when I have 1000 points on my chart, the draggable box is very 
sluggish.

I thought a 
control's updateDisplayList() would only be called if something on that actual 
control changed?

Thanks,

Danny


The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd.









__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
 
__


  















__._,_.___





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



  






__,_._,___



Re: [flexcoders] Flex Vs OpenLaszlo

2006-07-25 Thread sinatosk



I'll talk basic and the last time I used OpenLaszlo was version 3.1.x ... one of the main reason why I pretty much dumped OpenLaszlo was development time... it's slower in OpenLaszlo compared to Adobe Flex for me that is anyways... dunno about anyone else.
heres ones example... dunno if it's changed in OpenLaszlo version 3.2.x and higher. The DataGrid component in Adobe Flex compared to OpenLaszlo.in OpenLaszlo when you have XML embedded into the lzx file which later gets converted to swf same as mxml to swf you have to pause the init stage of the DataGrid component... and have an event waiting to dispatch when the XML data is ready and then you tell the datagrid to continue it's init stage...
in Adobe Flex ... you have the XML and you have the DataGrid... in the dataProvider you simply just do this dataProvider={xml_data} thats it... didn't like the idea to have to wait for OpenLaszlo to say when the XML data is ready. am sitting there thinking the core part of OpenLaszlo should know when the data is ready and then send it to anything thats binded to it not sitting here fiddling with events with something so simple like that 
another one is ( forgot whats it's called in Adobe Flex. think it's called Layout Constraints ) I love that... no more of this Button x={parent.width - 10} y={parent.height - 10}/
in Adobe Flex it's justmx:Button right=10 bottom=10 /the above code simply makes the button stay at the bottom right corner of the screen 10 pixels away from the bottom of the screen and the right side of the parent
heh funny the day I dumped OpenLaszlo was the same day my dads friend came to my place and told me about Adobe Flex. been using Flex Beta 1 ever since ( March time ) just waiting for Flex Builder Linux version to come.
oh another thing... with OpenLaszlo you have to have the server running when you come to compile your applications... boy did that take up alot of resources... using eclipse ( uses java ) and the server ( uses java ) all on the same computer... that together takes up alot of resources ( AMD 3500+ and 1gb of RAM )... I'm not gonna say anything about the IDE as it was in alpha/beta stage... in Adobe Flex... just a little application that we can talk to by command line
The compiling time was fast but compared to Adobe Flex . it was slower. although in version 3.2.x RC1 or RC2 when I was using version 3.1.x they did mention something about improving the performance on compiling
There are some things in OpenLaszlo that I prefer over Adobe Flex... like how you do a PopUp which I find much better in OpenLaszlo.not gonna bother about comparing components... you can simply create the component in either... both OpenLaszlo and Adobe Flex pretty much have the same components with slight differences ofcourse like the TitleWindow component in flex you have drag and close the window... but we can't resize with a button on the bottom right corner of the windows like you can in OpenLaszlo but we can create a little component easily to do that in Adobe Flex.
On 25/07/06, Robert Kaeth [EMAIL PROTECTED] wrote:













  






Hi, 

Has anyone done a comparison between Flex2 and 
OpenLaszlo? 
If someone can share his/her experience, it will be 
great. 

TIA
-B


  















__._,_.___





--
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] Best practices for organizing base code library and project specific code

2006-07-25 Thread ben.clinkinbeard
Just wondering how people out there approach this. Obviously, I have
my project neautral, reusable code stored in a structure like
com.mydomain.utils, etc. This is off in a general location. Currently,
I have a structure like com.mydomain.projects.MyCurrentProject inside
the actual Flex project folder, and I link the reusable code's folder
into the project.

Using the com.mydomain.etc structure in my project folders means I
could later integrate all of the code into one location without
editing the packages, so I am wondering if I should just do that to
begin with. If I kept everything in a central place I could just link
my library to each project but I would not have any code held with the
actual Flex files. I think I prefer my current approach but would like
to get some feedback from others and see what other methods people are
using.

Thanks,
Ben
http://www.returnundefined.com/






 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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/
 





Re: [flexcoders] Re: Flex AMFPHP and VOs

2006-07-25 Thread Oriol Gual



Hi Andi,You're right, it works perfect! Sorry about the other comment.I'm kinda surprised and happy, is this the same that you sent to me?Also, it would be great to know what differences are between yours and Renaun's, because one's working and the other not (at least for me). What changes have you done?
Later I'll test it at home and see if it works (I hope so hehe).Well, I just want to thank you Andi, great work!Oriol.PD: thekluito, the best thing is to view the last example by Andi, there you can download the example and test it, you'll only have to change some paths at 
ApplicationSettings.as and on gateway.php.PD2: thkluito, si quieres puedes enviarme un mail directamente a mi por si necesitas ayuda en algo en concreto. :D2006/7/25, Andrea Varga 
[EMAIL PROTECTED]:That workstoo
http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html(view source enabled)AndiOriol Gual wrote:
 First of all, I'd like to thank you all. I tried Renaun's example, and with ServiceCapture, it is returning an array of BookVO. At this point everything seems OK. But when you receive this array, if you do something like this:
 var testBook : BookVO = new BookVO; testBook = BookVO(ModelLocator.getInstance().books[0]); It will fail, because the objects inside the array collection aren't BookVO's , they are Objects:
 TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to com.renaun.samples.vo.BookVO. And the same happens with your example Andi. Then, my question is, can anyone do this without the coercion error,
 and, without extra functions to map it? Thanks, Oriol. Yahoo! Groups Sponsor ~--See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM~---
Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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] Best practices for organizing base code library and project specific code

2006-07-25 Thread JesterXL
The only reason I don't keep com.jxl.utils.* as an SWC Library project in 
FlexBuilder to allow 50 billion projects to use it is because those classes 
get tweaked every single project... so, rather than tweak something, and 
break a ton of other projects that have dependencies on it, I just put a 
custom build for each project in the namespace like you said.

One of these days, maybe I'll stop tweaking.  Till then, there is SVN.

- Original Message - 
From: ben.clinkinbeard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 10:25 AM
Subject: [flexcoders] Best practices for organizing base code library and 
project specific code


Just wondering how people out there approach this. Obviously, I have
my project neautral, reusable code stored in a structure like
com.mydomain.utils, etc. This is off in a general location. Currently,
I have a structure like com.mydomain.projects.MyCurrentProject inside
the actual Flex project folder, and I link the reusable code's folder
into the project.

Using the com.mydomain.etc structure in my project folders means I
could later integrate all of the code into one location without
editing the packages, so I am wondering if I should just do that to
begin with. If I kept everything in a central place I could just link
my library to each project but I would not have any code held with the
actual Flex files. I think I prefer my current approach but would like
to get some feedback from others and see what other methods people are
using.

Thanks,
Ben
http://www.returnundefined.com/







--
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] Securing coldfusion remoting services for flex 2

2006-07-25 Thread Benoit Hediard





What are the best 
practices to secure coldfusion remoting services for Flex2?

On the flash/flex 
side, we 
havedconfigured the cross domain policy file on our server, so that only 
swf served by our domain can call our services.
That's 
fine.

But the problem 
comes from coldfusion cfc"remote" access : it allows 
(secured)flash/flex remoting calls, but also web services calls from any 
client fromanywhere.
Not very good for 
security...

Is it 
possibleto allow onlyflex remote object calls on our 
services?
That would solve the issue.

There was an old tip 
for that (http://www.flash-remoting.com/notablog/home.cfm?newsid=24)but 
it looks like it does not work with the ColdFusion 7.0.2 update and Flex remote 
object calls.

Any 
suggestions?

Benoit 
Hediard

__._,_.___





--
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: Working version of Phones in Flex2/Cairngorm2?

2006-07-25 Thread Wally Randall
Thanks for looking at this Ben,  however, when I downloaded the app I 
find that this code is the same as the previous one.
1. It is still referencing the ORG.NEVIS. prefix on the class 
references in the Phones AS files.  The Cairngorm2 release now uses 
the Com.Adobe. prefix.
2. The 'description' property is still referenced in the event.fault 
error messages.  

There are other errors in the code when compiled with the final Flex 
Builder 2.  

Trying to debug this has been informative but frustrating.  Thanks for 
your effort on this. 






 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/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] Debugging the Phones Sample

2006-07-25 Thread Wally Randall
I have run into a construct I do not understand in trying to convert 
the Phones sample to the final Flex2 and Cairngorm2 environment.  This 
statement is causing an error:
public class PhoneListGetCommand implements command, Responder { ...

The error states that the Responder class is implemented with an 
incompatible signature in the class file.

How should this be re-factored?






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





Re: [flexcoders] Anyone know the answer? Embed images in one MovieClip, use in another?

2006-07-25 Thread G
Thanks.  I believe duplicateMovie doesn't work.  From
the documentation of duplicateMovie:

If you have loaded a movie clip using
MovieClip.loadMovie() or the MovieClipLoader class,
the contents of the SWF file are not duplicated. This
means that you cannot save bandwidth by loading a JPEG
or SWF file and then duplicating the movie clip.

It baffles me why this is not allowed.  Does anyone
know?  My guess is the developers ran into some issues
and decided the easiest way around it was to pretend
it was intended.

The further problem, as you say here, is I have to
move the clip around by hand, which eliminates the
entire reason to use Flex, to try to organize our
apps in a slightly object-oriented way.

I believe Jester said this a day or two as well, that
assets cannot be shared.  I'm starting to feel this is
impossible with a capital I, but it still feels like
there may be some very low-level way to do it--Remote
Shared Libraries?

The other option is to quit and get a job at
In-and-Out Burgers.  I think I'm going to do that.

Greg


--- Shade Gmail [EMAIL PROTECTED] wrote:

 Hi,
 
In the past I've worked through this kind of
 thing by loading external
 .SWFs dynamically and duplicateMovieClip()ing (or
 moving them) what I needed
 to the appropriate positions. That was Flash 7. It
 was ugly, but it worked
 as long as you didn't need any fancy depth work.
 
 Recently I've done similar stuff in Flash 8 using
 BitmapData, which works
 great (and pretty easily too) if you're working with
 simple bitmap images.
 Actually, it should work well with generic
 movieclips as well (see the ...
 draw() method, I believe. Something like that).
 
 I'm not aware of a Flex way to do what you want. I
 do hope there is one,
 it is certainly lacking.
 
 Cheers and good luck,
 
Pedro.
 
 
 On 7/24/06, G [EMAIL PROTECTED] wrote:
 
 Hi Jester--
 
  Your example here is exactly what we don't want to
 do.
  We don't want to embed all the images we need into
  the swf--it makes the file size too big.
 
  However, we don't want to load the images
 dynamically
  each time we need them--that's too slow.
 
  Our application is a game that uses pictures.
 Players
  play the game for a while with one set of images,
 then
  they change to a new set of images.
 
  What we want is to have something like sets of
  images that we can load one time then use
 repeatedly.
  So when the player first starts the game, they
 will
  get the images from Set1.swf (for example). Then
 when
  it's time to change images, we will load a new
 set,
  Set2.swf, etc.
 
  We only want to load the new images one time,
 because
  we have to change the source property of Image
 tags
  repeatedly, and this is costly.
 
  If you know another way to do this from what I am
  asking about, please tell me! But what we are
  wondering is if it's possible to load a swf
 containing
  embedded images, then use those images in the
 loading
  (host) swf?
 
  Thank you!
 
 
  Greg
 
  --- JesterXL [EMAIL PROTECTED]
 jesterxl%40jessewarden.com
  wrote:
 
   Don't use SWF's. Flex 1.5  2 have ways to embed
   them.
  
   [Embed(my1.jpg)]
   var my1_img:Class;
  
   [Embed(my1.jpg)]
   var my2_img:Class;
  
   [Embed(my1.jpg)]
   var my3_img:Class;
  
   mx:Image id=img source={my1_img} /
  
   Then, have some function swap:
  
   function swapImage(val)
   {
   img.source = val;
   }
  
   swapImage(my1_img);
   swapImage(my2_img);
   swapImage(my3_img);
  
   You could use setInterval, setTimeout, or Timer
 to
   loop through those...
  
   ...or use a Flash generated SWF; whatever your
   fancy.
  
   - Original Message -
   From: G [EMAIL PROTECTED]
 greg556%40yahoo.com
   To: flexcoders@yahoogroups.com
 flexcoders%40yahoogroups.com
   Sent: Saturday, July 22, 2006 11:59 AM
   Subject: Re: [flexcoders] Anyone know the
 answer?
   Embed images in one
   MovieClip, use in another?
  
  
   This line:
  
   mx:Loader id=container source=Container.swf
 /
  
   does not load a swf file containing the embedded
   image
   into my application? That is news to me.
  
   The reason I want to do it is irrelevant to my
   question, but here it is: We have an animation
 that
   loads many images at once (external images).
 Even
   with the images in the browser's cache it is
   drastically slowing down the application.
  
   That embedded images are not loaded is exactly
 the
   point. We want to load a swf with several images
   embedded in it, then use those images in the
   animation. The point is, we want to load the
 images
   dynamically (externally), but not every time we
   change
   the source of Image. Just one time, ahead of
 time.
  
   Since when an Image loads an embedded image,
 we
   are
   not actually loading it at all, we are hoping we
 can
   load the container swf one time, then use its
 images
   as embedded images--thus avoiding the immediate
 load
   time every time we change source.
  
   What we want to do, in a nutshell, is load
 images
   

RE: [flexcoders] Re: Working version of Phones in Flex2/Cairngorm2?

2006-07-25 Thread Benoit Hediard
Are you sure you got the latest version?

I've just downloaded the zip file on another machine and compiled it
successfully.
You might have to clear your browser cache and re-download it.

Benoit Hediard 

PS : do not forget to add the Cairngorm.swc to your library path.

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Wally Randall
Envoyé : mardi 25 juillet 2006 17:05
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Working version of Phones in Flex2/Cairngorm2?

Thanks for looking at this Ben,  however, when I downloaded the app I find
that this code is the same as the previous one.
1. It is still referencing the ORG.NEVIS. prefix on the class references
in the Phones AS files.  The Cairngorm2 release now uses the Com.Adobe.
prefix.
2. The 'description' property is still referenced in the event.fault error
messages.  

There are other errors in the code when compiled with the final Flex Builder
2.  

Trying to debug this has been informative but frustrating.  Thanks for your
effort on 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



 







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





Re: [flexcoders] Re: Word Wrap in FlexBuilder

2006-07-25 Thread Clarke Bishop



Thanks George! I tried this little plug-in. It's not perfect, but it definitely solves 90% of my problem. Thanks again! ClarkeOn 7/24/06, george_w_canada
 [EMAIL PROTECTED] wrote:












  



There's a tiny plug-in available.
http://www.eclipsezone.com/eclipse/forums/t74384.html


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


 Oh... you mean in the actual text editor.
 
 Nope, I dont think so. At least I have never seen it either in Flex
or in
 Java. As a general rule I try to
 keep all text within the width of the page. For strings I tend to
just break
 the text into pieces and concatenate. it makes for much more
readable code.
 And even if eclipse were to word wrap, it would be ugly because it
wouldnt
 respect any indentation. Eclipse prints this way, and I hate it
because I
 find it difficult to read automatically wordwrapped text because the
wrapped
 text starts all the way at the left edge of the page.
 
 Regards
 Hank
 

__._,_.___





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



  






__,_._,___



Re: [flexcoders] Anyone know the answer? Embed images in one MovieClip, use in another?

2006-07-25 Thread JesterXL
The assets can be shared in Flash Player 9, just not 8 and below. 
Unfortunately, you're in the same boat as me and using Flex 1.5, and having 
to deal with Flash + Flex; I know, it's rough.

Yahoo yuked on itself last night, so not sure if you ever got your remote 
shared libraries to work?

- Original Message - 
From: G [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 11:25 AM
Subject: Re: [flexcoders] Anyone know the answer? Embed images in one 
MovieClip, use in another?


Thanks.  I believe duplicateMovie doesn't work.  From
the documentation of duplicateMovie:

If you have loaded a movie clip using
MovieClip.loadMovie() or the MovieClipLoader class,
the contents of the SWF file are not duplicated. This
means that you cannot save bandwidth by loading a JPEG
or SWF file and then duplicating the movie clip.

It baffles me why this is not allowed.  Does anyone
know?  My guess is the developers ran into some issues
and decided the easiest way around it was to pretend
it was intended.

The further problem, as you say here, is I have to
move the clip around by hand, which eliminates the
entire reason to use Flex, to try to organize our
apps in a slightly object-oriented way.

I believe Jester said this a day or two as well, that
assets cannot be shared.  I'm starting to feel this is
impossible with a capital I, but it still feels like
there may be some very low-level way to do it--Remote
Shared Libraries?

The other option is to quit and get a job at
In-and-Out Burgers.  I think I'm going to do that.

Greg


--- Shade Gmail [EMAIL PROTECTED] wrote:

 Hi,

In the past I've worked through this kind of
 thing by loading external
 .SWFs dynamically and duplicateMovieClip()ing (or
 moving them) what I needed
 to the appropriate positions. That was Flash 7. It
 was ugly, but it worked
 as long as you didn't need any fancy depth work.

 Recently I've done similar stuff in Flash 8 using
 BitmapData, which works
 great (and pretty easily too) if you're working with
 simple bitmap images.
 Actually, it should work well with generic
 movieclips as well (see the ...
 draw() method, I believe. Something like that).

 I'm not aware of a Flex way to do what you want. I
 do hope there is one,
 it is certainly lacking.

 Cheers and good luck,

Pedro.


 On 7/24/06, G [EMAIL PROTECTED] wrote:
 
 Hi Jester--
 
  Your example here is exactly what we don't want to
 do.
  We don't want to embed all the images we need into
  the swf--it makes the file size too big.
 
  However, we don't want to load the images
 dynamically
  each time we need them--that's too slow.
 
  Our application is a game that uses pictures.
 Players
  play the game for a while with one set of images,
 then
  they change to a new set of images.
 
  What we want is to have something like sets of
  images that we can load one time then use
 repeatedly.
  So when the player first starts the game, they
 will
  get the images from Set1.swf (for example). Then
 when
  it's time to change images, we will load a new
 set,
  Set2.swf, etc.
 
  We only want to load the new images one time,
 because
  we have to change the source property of Image
 tags
  repeatedly, and this is costly.
 
  If you know another way to do this from what I am
  asking about, please tell me! But what we are
  wondering is if it's possible to load a swf
 containing
  embedded images, then use those images in the
 loading
  (host) swf?
 
  Thank you!
 
 
  Greg
 
  --- JesterXL [EMAIL PROTECTED]
 jesterxl%40jessewarden.com
  wrote:
 
   Don't use SWF's. Flex 1.5  2 have ways to embed
   them.
  
   [Embed(my1.jpg)]
   var my1_img:Class;
  
   [Embed(my1.jpg)]
   var my2_img:Class;
  
   [Embed(my1.jpg)]
   var my3_img:Class;
  
   mx:Image id=img source={my1_img} /
  
   Then, have some function swap:
  
   function swapImage(val)
   {
   img.source = val;
   }
  
   swapImage(my1_img);
   swapImage(my2_img);
   swapImage(my3_img);
  
   You could use setInterval, setTimeout, or Timer
 to
   loop through those...
  
   ...or use a Flash generated SWF; whatever your
   fancy.
  
   - Original Message -
   From: G [EMAIL PROTECTED]
 greg556%40yahoo.com
   To: flexcoders@yahoogroups.com
 flexcoders%40yahoogroups.com
   Sent: Saturday, July 22, 2006 11:59 AM
   Subject: Re: [flexcoders] Anyone know the
 answer?
   Embed images in one
   MovieClip, use in another?
  
  
   This line:
  
   mx:Loader id=container source=Container.swf
 /
  
   does not load a swf file containing the embedded
   image
   into my application? That is news to me.
  
   The reason I want to do it is irrelevant to my
   question, but here it is: We have an animation
 that
   loads many images at once (external images).
 Even
   with the images in the browser's cache it is
   drastically slowing down the application.
  
   That embedded images are not loaded is exactly
 the
   point. We want to load a swf with several images
   embedded in it, then use those 

[flexcoders] Google Analytics and Flex

2006-07-25 Thread Corey
Does anyone have a code sample of how to hook Google Analytics into 
Flex?  I am interested using Google to track sales on the website.

Thanks,

COREY






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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] draggable chart data

2006-07-25 Thread Paul BH



Hi All,just about to start building a chart where you can drag the data region left/right to view older / newer data, and before I get to work on the hardstuff, just wondering if there is a simple way to do this?
thxPBH

__._,_.___





--
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] scope form a component to main application

2006-07-25 Thread thekluito
Hi all, this is possible a newbie question, but here I go...

I have a main application that includes a component that have a
datagrid inside it. I use an image as a cellrenderer and I want to
change the state in my main application. I've tried
mx.core.Application.application.currenState, also parentApplication...

Cell renderer code:

mx:itemRenderer
  mx:Component id=comp
   mx:Image source=imagenes/pen.png
click=parentApplication.parentApplication.currentState='estado2'/
  /mx:Component
/mx:itemRenderer



I'm stuck with this. If anyone can help...

Lots of thanks in advanced.

theklue






--
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] DO U HAVE THIS SOURCE??

2006-07-25 Thread kengo_ad
HI!!
I VISITED THIS SITE.
http://coenraets.com/viewarticle.jsp?articleId=83
HERE, WE MIGHT GET THE GREATE TOOL,ACTUALLY THE SOURCE TO DEBUG IN 
FLEX, BUT I COUDN'T.
ANYBODY HAS THE SOUCE?
PLEASE,I WANT THIS ONE!!





--
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] Pointing to Dynamic variables

2006-07-25 Thread arnold_charming
Hi!

I have 3 labels with three different IDs:
mx:Label id=label1
mx:Label id=label2
mx:Label id=label3

Now I want to use a for...loop statement to dynamicly get access to
these labels and change their .text property. Something like this:

for(var i:int = 0; i  xmlOut.zalozbe.children().length(); i++) 
{
txtZalozba[i].text = xmlOut.zalozbe.zalozba[i];
}

How can this be done?






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





RE: [flexcoders] Debugging the Phones Sample

2006-07-25 Thread Benoit Hediard
Yes, this was a change in the responder interface from Cairngorm 2 for beta3
to the final release.
The onResult and onFault function must have the following argument :
onResult(event:* = null)
onFault(event:* = null) 

Benoit Hediard

PS: you can also download the latest version for final release. 
http://www.benorama.com/flex/samples/PhonesCairngorm2.zip

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Wally Randall
Envoyé : mardi 25 juillet 2006 17:16
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Debugging the Phones Sample

I have run into a construct I do not understand in trying to convert the
Phones sample to the final Flex2 and Cairngorm2 environment.  This statement
is causing an error:
public class PhoneListGetCommand implements command, Responder { ...

The error states that the Responder class is implemented with an
incompatible signature in the class file.

How should this be re-factored?






--
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 ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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] Remoting in MDM Zink

2006-07-25 Thread dimka_ko
Hi, everyone

I have a problem with, MDM Zink, when i trying to create .exe file 
from .swf (Flex 2 App), in this swf I'm using remoting (calling .NET 
services). 
Zink builds .exe, but he dont pass my calls to remoting, and 
application sunctionality is broken.

I'm using udpated version of MDM Zink.

thanks.
Dmitry





--
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] dispatching TextEvent on image click

2006-07-25 Thread arnold_charming
Hi!

How to dispatch a TextEvent when a user clicks on an image? Thank you.





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




Re: [flexcoders] Re: Still Fuzzy about Flex 2.0 and CFCs

2006-07-25 Thread Tom Chiverton
On Tuesday 25 July 2006 00:42, Barry Beattie wrote:
 you can get remoting for Java (and .NET) as an add on product.

I rather though all you needed to do was right the relevant classes to 
implement the FDS interface, drop them into the FDS server and you were off.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
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] tokens in services-config.xml. magic?

2006-07-25 Thread jrjazzman23
Hi,

So services-config.xml has some nice tokens like {server.name},
{context.root}, etc.  I can't seem to find a list of these pre-defined
tokens in the documentation.  Anybody know where this would be?  It
appears that some of these are resolved to their values at runtime by
the SWF.  So, this don't seem to be the same type of tokens that get
resolved at compile-time.  Can someone shed some light here?

A point of clarification.. there are some references to these tokens
in the documentation in the form of example snippets.  What I'm
seeking is a list of tokens that you can use, and when/how they get
resolved to values.

thanks

Jeremy






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/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] Re: Doesn't work mx:Button click=function({...});

2006-07-25 Thread exeypan
 try putting that logic into a function outside the click event of 
the button. 

links.xml contains links for page1, page2

links.xml
|
+-- page1.xml
|
+-- page2.xml

How to put logic outside?

!-- File: links.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
item
  dc:titlePage 1/dc:title
  dc:linkpage1.xml/dc:link
/item
item
  dc:titlePage 2/dc:title
  dc:linkpage2.xml/dc:link
/item
/rdf:RDF

!-- File: page1.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
dc:Work
  dc:titlePage 1/dc:title
/dc:Work
/rdf:RDF

!-- File: page2.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
dc:Work
  dc:titlePage 2/dc:title
/dc:Work
/rdf:RDF

!-- File: LinkFromXML.mxml --
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=loadXML('links.xml');
mx:Script
![CDATA[
import mx.collections.XMLListCollection;

public var pathxml:String;
public var pathxml2:String;
private var how:Namespace = new Namespace(http://
web.resource.org/cc/);
private var dc:Namespace = new Namespace(http://purl.org/
dc/elements/1.1/);
[Bindable]
private var how1Title:QName = new QName(dc, title);
[Bindable]
private var how1Link:QName = new QName(dc, link);
[Bindable]
private var how2Title:QName = new QName(dc, title);
[Bindable]   
private var how1externalXML:XMLListCollection;
[Bindable]
private var how2externalXML:XMLListCollection;

private function loadXML(pathxml):void { 
trace (pathxml);
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest(pathxml);
loader.load(request);
loader.addEventListener(Event.COMPLETE, onComplete);
}
private function loadXML2(pathxml2):void {
var loader2:URLLoader = new URLLoader();
var request2:URLRequest = new URLRequest(pathxml2);
loader2.load(request2);
loader2.addEventListener(Event.COMPLETE, onComplete2);
}
private function onComplete(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
var how1Items:QName = new QName(how, item);   
var dataXML:XML = XML( loader.data );
dataXML.addNamespace( dc );
var how1base:XMLList = dataXML.descendants( how1Items
 );
how1externalXML = new XMLListCollection( how1base );
}
 private function onComplete2(event:Event):void {
var loader2:URLLoader = 
URLLoader(event.target); 
var how2Items:QName = new QName(dc, Work); 
var dataXML:XML = XML( loader2.data );
dataXML.addNamespace( dc );
var how2base:XMLList = dataXML.descendants( how2Items
 );
how2externalXML = new XMLListCollection( how2base );
}
  private function getField( itemXML:XML, 
field:QName):String {
return itemXML.descendants( field ).toString();
}
]]
/mx:Script
mx:Canvas id=HowView backgroundColor=#CC label=How 
width=100% height=100%
mx:HBox width=100% height=100%
mx:VDividedBox width=400 height=100% id=how1Box 
backgroundColor=#B9C5A0
mx:Repeater width=80% id=linksItems 
dataProvider={ how1externalXML }
mx:VBox width=80% horizontalAlign=center 
creationCompleteEffect=Fade

mx:LinkButton  click={loadXML2( 
getField( XML( linksItems.currentItem ), how1Link ) )} label={ 
getField( XML( linksItems.currentItem ), how1Title) }  / 

/mx:VBox
/mx:Repeater
/mx:VDividedBox
mx:VDividedBox width=100% height=100% id=how2Box 
backgroundColor=#6BA1A3
mx:Repeater width=100% id=workItems 
dataProvider={ how2externalXML }
mx:VBox width=534 horizontalAlign=center 
creationCompleteEffect=Fade

mx:Label text={ getField( XML( 
workItems.currentItem ), how2Title) } color=#00/
   

[flexcoders] Re: Cairngorm AMFPHP - List of VO Instances

2006-07-25 Thread Renaun Erickson
A simple way to do in the Flex/AS side is in the VO with a static
function.

So for a UserVO factory you would have something like this.

public static function CreateUserVO( results:Array ):Array {
   var newArray:Array = new Array();
   for( var i:int = 0; i  results.length; i++ ) {
   var obj:UserVO = new UserVO();
   obj.name = results[ i ];
   etc
 
   newArray[ i ] = obj;
   }
   return newArray;
}

This is quick but there its a simple Factory approach.

Renaun

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

  It's somewhat personal perference
  and just how you want to make it consistent 
  (ie: All Factory logic in PHP or AS).
 
 Ok, so this basically means if I do it all on the PHP side I have to
 set up a PHP VO class for each VO that exists on the Flex/AS side. 
 
 If I want to do it on the Flex/AS side, where would the factory
 logic fit in with the Cairngorm framework? Is it part of the Command
 Class (while or before the model is updated)?
 
 Stefan







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/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] Re: Flex AMFPHP and VOs

2006-07-25 Thread Renaun Erickson
I have updated the RemoteObjectAMF0 examples to demonstrate it working
with out the error.  The problem was that I was using the old
registerClass method instead of the proper
[RemoteClass(alias=com.renaun.samples.vo.BookVO)] in the
BookVO.as.  You can get the updated source off my blog.  And a big
thanks to Andi for that code tip.

Renaun

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

 First of all, I'd like to thank you all.
 
 I tried Renaun's example, and with ServiceCapture, it is returning
an array
 of BookVO. At this point everything seems OK.
 
 But when you receive this array, if you do something like this:
 
 var testBook : BookVO = new BookVO;
 testBook = BookVO(ModelLocator.getInstance().books[0]);
 
 It will fail, because the objects inside the array collection aren't
 BookVO's, they are Objects:
 TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED]
 com.renaun.samples.vo.BookVO.
 
 And the same happens with your example Andi.
 
 Then, my question is, can anyone do this without the coercion error,
and,
 without extra functions to map it?
 
 Thanks, Oriol.
 
 2006/7/25, Renaun Erickson [EMAIL PROTECTED]:
 
  I have updated the RemoteObjectAMF0 with samples of how to do the
  AMFPHP  and VO's.
 
  Example Using Cairngorm:
 
 
http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html
 
  Example With Out Using Cairngorm:
 
 
http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html
 
  You can find the source here:
  http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/
 
  Thanks Robert for the partial code.
 
  Renaun
 
 
 
 
 
 
 
  --
  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 ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/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/
 





RE: [flexcoders] invalidateDisplayList()

2006-07-25 Thread Daniel Tuppeny






That's not really a suitable fix. The 
invalidateDisplayList()/updateDisplayList() effectively does that already. 
updateDisplayList() on gets called if it's been invalidated. My problem is that 
when I call invalidateDisplayList() inside my charts annotation class, it also 
causes my PlotSeries to be invalidated, and redraw.

I can work around it, but I'm not sure if this is supposed 
to happen, or there is an error in my code. If calling invalidateDisplayList() 
is supposed to invalidate the entire application tree (include parents, siblings 
and children), then I will have to change my PlotSeries.updateDisplayList() to 
draw to a new graphics object, and just feed that up unless I know the data has 
changed. I'm not convinced the behaviour I'm seeing is correct though 
:-(

Surely invalidating one object should just cause itself 
(and children) to be redrawn?


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jeremy 
LuSent: 25 July 2006 14:53To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
invalidateDisplayList()
In your updateDisplayList() function, you can add an "if" 
clause to detect which part should be redrawn.Something like 
:if( dotChanged ){ //do 
redraw}Jeremy.
On 7/25/06, Daniel 
Tuppeny [EMAIL PROTECTED] 
wrote:

  
  
  
  
  
  
  
  Hi,
  
  Does calling invalidateDisplayList() on a 
  control mean that *everything* (including parents) gets re-drawn, or just the 
  children?
  
  I have something similar to Ely 
  Greenfield's RangeSelector class ( 
  http://demo.quietlyscheming.com/overlayDemo/), but the mousemove event 
  seems to cause my PlotSeries to re-draw too. This means, when I have 1000 
  points on my chart, the draggable box is very sluggish.
  
  I thought a control's updateDisplayList() 
  would only be called if something on that actual control 
  changed?
  
  Thanks,
  
  Danny
  
  
  The 
  information contained in this e-mail and/or any attachments is confidential 
  and intended only for the individual(s) to which it is addressed. If you are 
  not named as an addressee you must not disclose, copy or take any action in 
  reliance of this transmission. This e-mail and its attachments have been 
  scanned for viruses by MessageLabs Ltd. 
  
   
  __This 
  email has been scanned by the MessageLabs Email Security System.For more 
  information please visit http://www.messagelabs.com/email 
  __
   [Inbound Mail Scanned by 
MessageLabs]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__._,_.___





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



  






__,_._,___



Re: [flexcoders] Anyone know the answer? Embed images in one MovieClip, use in another?

2006-07-25 Thread hank williams



I dont think they are using 1.5 (at least I dont see it in the thread). If they are using 2.0 I dont understand why it wouldnt work, because you should have full access to imported clips and their children. I dont have time to try this today, but I dont get the problem they are having with the latest idea.
HankOn 7/25/06, JesterXL [EMAIL PROTECTED] wrote:
The assets can be shared in Flash Player 9, just not 8 and below.Unfortunately, you're in the same boat as me and using Flex 1.5, and havingto deal with Flash + Flex; I know, it's rough.Yahoo yuked on itself last night, so not sure if you ever got your remote
shared libraries to work?- Original Message -From: G [EMAIL PROTECTED]To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 11:25 AMSubject: Re: [flexcoders] Anyone know the answer? Embed images in oneMovieClip, use in another?Thanks.I believe duplicateMovie doesn't work.From
the documentation of duplicateMovie:If you have loaded a movie clip usingMovieClip.loadMovie() or the MovieClipLoader class,the contents of the SWF file are not duplicated. Thismeans that you cannot save bandwidth by loading a JPEG
or SWF file and then duplicating the movie clip.It baffles me why this is not allowed.Does anyoneknow?My guess is the developers ran into some issuesand decided the easiest way around it was to pretend
it was intended.The further problem, as you say here, is I have tomove the clip around by hand, which eliminates theentire reason to use Flex, to try to organize ourapps in a slightly object-oriented way.
I believe Jester said this a day or two as well, thatassets cannot be shared.I'm starting to feel this isimpossible with a capital I, but it still feels likethere may be some very low-level way to do it--Remote
Shared Libraries?The other option is to quit and get a job atIn-and-Out Burgers.I think I'm going to do that.Greg--- Shade Gmail [EMAIL PROTECTED]
 wrote: Hi,In the past I've worked through this kind of thing by loading external .SWFs dynamically and duplicateMovieClip()ing (or moving them) what I needed
 to the appropriate positions. That was Flash 7. It was ugly, but it worked as long as you didn't need any fancy depth work. Recently I've done similar stuff in Flash 8 using BitmapData, which works
 great (and pretty easily too) if you're working with simple bitmap images. Actually, it should work well with generic movieclips as well (see the ... draw() method, I believe. Something like that).
 I'm not aware of a Flex way to do what you want. I do hope there is one, it is certainly lacking. Cheers and good luck,Pedro.
 On 7/24/06, G [EMAIL PROTECTED] wrote:  Hi Jester--   Your example here is exactly what we don't want to do.
  We don't want to embed all the images we need into  the swf--it makes the file size too big.   However, we don't want to load the images dynamically  each time we need them--that's too slow.
   Our application is a game that uses pictures. Players  play the game for a while with one set of images, then  they change to a new set of images. 
  What we want is to have something like sets of  images that we can load one time then use repeatedly.  So when the player first starts the game, they will
  get the images from Set1.swf (for example). Then when  it's time to change images, we will load a new set,  Set2.swf, etc.   We only want to load the new images one time,
 because  we have to change the source property of Image tags  repeatedly, and this is costly.   If you know another way to do this from what I am  asking about, please tell me! But what we are
  wondering is if it's possible to load a swf containing  embedded images, then use those images in the loading  (host) swf?   Thank you! 
   Greg   --- JesterXL [EMAIL PROTECTED] jesterxl%40jessewarden.com  wrote: 
   Don't use SWF's. Flex 1.5  2 have ways to embed   them. [Embed(my1.jpg)]   var my1_img:Class; [Embed(
my1.jpg)]   var my2_img:Class; [Embed(my1.jpg)]   var my3_img:Class; mx:Image id=img source={my1_img} /
 Then, have some function swap: function swapImage(val)   {   img.source = val;   }  
   swapImage(my1_img);   swapImage(my2_img);   swapImage(my3_img); You could use setInterval, setTimeout, or Timer to   loop through those...
 ...or use a Flash generated SWF; whatever your   fancy. - Original Message -   From: G 
[EMAIL PROTECTED] greg556%40yahoo.com   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com   Sent: Saturday, July 22, 2006 11:59 AM
   Subject: Re: [flexcoders] Anyone know the answer?   Embed images in one   MovieClip, use in another?   This line:
 mx:Loader id=container source=Container.swf / does not load a swf file containing the embedded   image
   into my application? That is news to me. The reason I want to do it is irrelevant to my   question, but here it is: We have an animation that
   loads many images at once (external images). Even   with the images in the browser's cache it is   drastically 

[flexcoders] Re: Doesn't work mx:Button click=function({...});

2006-07-25 Thread exeypan
 try putting that logic into a function outside the click event of 
the button. 

links.xml contains links for page1, page2

links.xml
|
+-- page1.xml
|
+-- page2.xml

How to put logic outside?

!-- File: links.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
item
  dc:titlePage 1/dc:title
  dc:linkpage1.xml/dc:link
/item
item
  dc:titlePage 2/dc:title
  dc:linkpage2.xml/dc:link
/item
/rdf:RDF

!-- File: page1.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
dc:Work
  dc:titlePage 1/dc:title
/dc:Work
/rdf:RDF

!-- File: page2.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
dc:Work
  dc:titlePage 2/dc:title
/dc:Work
/rdf:RDF

!-- File: LinkFromXML.mxml --

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=loadXML('links.xml');
mx:Script
![CDATA[
import mx.collections.XMLListCollection;

public var pathxml:String;
public var pathxml2:String;
private var how:Namespace = new Namespace(http://
web.resource.org/cc/);
private var dc:Namespace = new Namespace(http://purl.org/
dc/elements/1.1/);
[Bindable]
private var how1Title:QName = new QName(dc, title);
[Bindable]
private var how1Link:QName = new QName(dc, link);
[Bindable]
private var how2Title:QName = new QName(dc, title);
[Bindable]   
private var how1externalXML:XMLListCollection;
[Bindable]
private var how2externalXML:XMLListCollection;

private function loadXML(pathxml):void { 
trace (pathxml);
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest(pathxml);
loader.load(request);
loader.addEventListener(Event.COMPLETE, onComplete);
}
private function loadXML2(pathxml2):void {
var loader2:URLLoader = new URLLoader();
var request2:URLRequest = new URLRequest(pathxml2);
loader2.load(request2);
loader2.addEventListener(Event.COMPLETE, onComplete2);
}
private function onComplete(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
var how1Items:QName = new QName(how, item);   
var dataXML:XML = XML( loader.data );
dataXML.addNamespace( dc );
var how1base:XMLList = dataXML.descendants( how1Items
 );
how1externalXML = new XMLListCollection( how1base );
}
 private function onComplete2(event:Event):void {
var loader2:URLLoader = 
URLLoader(event.target); 
var how2Items:QName = new QName(dc, Work); 
var dataXML:XML = XML( loader2.data );
dataXML.addNamespace( dc );
var how2base:XMLList = dataXML.descendants( how2Items
 );
how2externalXML = new XMLListCollection( how2base );
}
  private function getField( itemXML:XML, 
field:QName):String {
return itemXML.descendants( field ).toString();
}
]]
/mx:Script
mx:Canvas id=HowView backgroundColor=#CC label=How 
width=100% height=100%
mx:HBox width=100% height=100%
mx:VDividedBox width=400 height=100% id=how1Box 
backgroundColor=#B9C5A0
mx:Repeater width=80% id=linksItems 
dataProvider={ how1externalXML }
mx:VBox width=80% horizontalAlign=center 
creationCompleteEffect=Fade

mx:LinkButton  click={loadXML2( 
getField( XML( linksItems.currentItem ), how1Link ) )} label={ 
getField( XML( linksItems.currentItem ), how1Title) }  / 

/mx:VBox
/mx:Repeater
/mx:VDividedBox
mx:VDividedBox width=100% height=100% id=how2Box 
backgroundColor=#6BA1A3
mx:Repeater width=100% id=workItems 
dataProvider={ how2externalXML }
mx:VBox width=534 horizontalAlign=center 
creationCompleteEffect=Fade

mx:Label text={ getField( XML( 
workItems.currentItem ), how2Title) } color=#00/
   
   

[flexcoders] flex 1.5 : AMF and ports and Max users

2006-07-25 Thread Antoine Malpel
Hi,

as I use RemoteObject I've seen in Docs  FDS can uses RTMP or HTTP, what 
does that mean ? if rtmp port is closed it switches to HTTP ? so in this 
case I could get better performances opening the rtmp port ? witch 
number is it ?

Also,

can some people give me feedback about Hardware and Max users 
connections ? as I notices 100 users licence's price is about 20% 
enterprise licences ... (20 000$ per cpu ? !) can some CPU support 
more than 100 users connections ?

thanks

Antoine Malpel - quikstore.eu project


--
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: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread jpc14_99
I already have editable = false.  That prevents user input but 
doesn't stop the I-beam on mouseover and the selectability.

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

 On Monday 24 July 2006 23:34, JesterXL wrote:
  I thought it was TextArea.selectable = false;  Does it have that 
property?
 
 editable
 
 -- 
 Tom Chiverton
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.







--
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: tabbing in flex

2006-07-25 Thread b0b0bb0b
well there are two things, one is a controlBar with buttons in it, 
and when tabbed the first button will be highlighted then it will 
just move onto the next text box in the VBox rather than the other 
buttons in the controlBar. I haven't implented the below, so I was 
just using the default settings.  I then tried telling flex to make 
them all true but the program tabbed in the same way.


The other custom component is a mxml file that contains a dateField 
and a text box. this get skiped altoghter when tabbing.

thanks





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

 Does it extend UIComponent (or a sub-class)?  Does it implment:
 
 tabChildren = false;
 tabEnabled = true;
 focusEnabled = true;
 
 ???
 
 - Original Message - 
 From: b0b0bb0b [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, July 21, 2006 10:04 AM
 Subject: [flexcoders] tabbing in flex
 
 
 if I have a Vbox with say 10 items in it. from buttons to text 
boxes, 
 as well as a custom component which I've extended. then when the 
app 
 loads I tab my way through the app which works fine until it comes 
to 
 the custom component.  it has a tabIndex like the rest of the 
buttons 
 and text boxes, but it never recieves focus if you tab. the focus 
moves 
 straight to the next non-custom component.
 Any ideas how to get around this.
 cheers. I'm using flex 1.5
 
 
 
 
 
 
 
 --
 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 ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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] Re: Returning hidden ID field value in a datagrid

2006-07-25 Thread michrx7
The RemoteObject is returning simple database values which is why it 
is the provider for the datagrid. cvcontactID is a primary key and I 
have set the visible value to false in the datagrid. When someone 
selects a row I simply want to return the value within the hidden 
cvcontactID datagrid column for the selected row.

I guess I could cheat and make the column visible, grab the value, 
and then set visible to false, but that seems silly.

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

 How about an example result from your RemoteObject?
 
 On 7/25/06, michrx7 [EMAIL PROTECTED] wrote:
 
  mx:Script
  ![CDATA[
  import mx.controls.Text;
  import mx.collections.ArrayCollection;
  import mx.utils.ObjectUtil;
  import mx.rpc.events.*;
  import mx.controls.Alert;
  import flash.net.*;
 
  [Bindable]
  public var activeMembers:ArrayCollection;
 
  public function initApp():void
  {
  myService.getActive();
  }
 
  public function clickHandler():void
  {
  var myvalueName =
  myGrid.selectedItem.cvcontactID;
  Alert.show(myvalueName);
  }
 
  private function resultHandler
  (event:ResultEvent):void {
  activeMembers = event.result as
  ArrayCollection;
  }
 
  ]]
  /mx:Script
 
  mx:RemoteObject id=myService destination=ColdFusion
  source=admin_rpt_AllMembers showBusyCursor=true
 
  mx:method name=getActive result=resultHandler
  (event) fault=Alert.show(event.fault.message)/
 
  /mx:RemoteObject
 
  mx:DataGrid name=myActiveMembers id=myGrid width=100%
  height=90% dataProvider={activeMembers} click=clickHandler
()
mx:columns
   mx:DataGridColumn headerText=ID 
dataField=cvcontactID
  visible=false/
   mx:DataGridColumn headerText=Company
  dataField=cvcompanyName/
   mx:DataGridColumn headerText=Last Name
  dataField=cvcontactLast/
   mx:DataGridColumn headerText=First Name
  dataField=cvcontactFirst/
   mx:DataGridColumn headerText=City
  dataField=cvcontactCity/
   mx:DataGridColumn headerText=State
  dataField=cvstateAB/
   mx:DataGridColumn headerText=Zip
  dataField=cvcontactZip/
   mx:DataGridColumn headerText=Country
  dataField=cvcountryName/
   mx:DataGridColumn headerText=Reg
  dataField=cvcontactmemberReg/
   mx:DataGridColumn headerText=Expires
  dataField=cvcontactmemberExp/
/mx:columns
  /mx:DataGrid
 
  --- In flexcoders@yahoogroups.com, Pan Troglodytes
  chimpathetic@ wrote:
  
   That doesn't make a lot of sense to me.  SelectedItem will be 
the
  item in
   the dataprovider, which knows nothing about the grid and which
  fields are
   visible or not.
  
   Can you post your code?
  
 
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 
 -- 
 Jason








 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/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/
 




Re: [flexcoders] draggable chart data

2006-07-25 Thread Pan Troglodytes



You might be interested in Ely's example where he did the same thing (among other things):http://www.quietlyscheming.com/blog/charts/interactive-bubble-chart/
On 7/25/06, Paul BH [EMAIL PROTECTED] wrote:



Hi All,just about to start building a chart where you can drag the data region left/right to view older / newer data, and before I get to work on the hardstuff, just wondering if there is a simple way to do this?

thxPBH




-- Jason

__._,_.___





--
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: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread hank williams



One way to do this would be to create a new component that inherits from textArea, but where you have overridden the event handling function(s). I would have to look to figure out what those functions are, but it shouldnt be too hard since you have the source. You really just need to find the appropriate functions and override with empty functions.
RegardsHankOn 7/25/06, jpc14_99 [EMAIL PROTECTED] wrote:
I already have editable = false.That prevents user input butdoesn't stop the I-beam on mouseover and the selectability.--- In flexcoders@yahoogroups.com, Tom Chiverton 
[EMAIL PROTECTED]wrote: On Monday 24 July 2006 23:34, JesterXL wrote:  I thought it was TextArea.selectable = false;Does it have thatproperty? editable
 -- Tom Chiverton  This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registeredoffice address is at St James's Court Brown Street Manchester M22JF.A list of members is available for inspection at the registeredoffice. Any reference to a partner in relation to Halliwells LLP
means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee namedabove and may be confidential or legally privileged.If you are not
the addressee you must not read it and must not use any informationcontained in nor copy it nor inform any person other than HalliwellsLLP or the addressee of its existence or contents.If you havereceived this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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: DO U HAVE THIS SOURCE??

2006-07-25 Thread Doug Lowder
Pretty sure that's for Flex 1.5 only, but if you still want the 
source, there is something very similar in the FAST toolkit - the 
EchoConsole debugger/introspector.  There's a download link at:

http://www.adobe.com/devnet/flex/articles/fast_userguide.html

In the source zip file, look into the Echo*.* files.



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

 HI!!
 I VISITED THIS SITE.
 http://coenraets.com/viewarticle.jsp?articleId=83
 HERE, WE MIGHT GET THE GREATE TOOL,ACTUALLY THE SOURCE TO DEBUG IN 
 FLEX, BUT I COUDN'T.
 ANYBODY HAS THE SOUCE?
 PLEASE,I WANT THIS ONE!!







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/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/
 





Re: [flexcoders] draggable chart data

2006-07-25 Thread Paul BH



Thats great, thanks!On 7/25/06, Pan Troglodytes [EMAIL PROTECTED] wrote:













  



You might be interested in Ely's example where he did the same thing (among other things):
http://www.quietlyscheming.com/blog/charts/interactive-bubble-chart/
On 7/25/06, Paul BH 
[EMAIL PROTECTED] wrote:



Hi All,just about to start building a chart where you can drag the data region left/right to view older / newer data, and before I get to work on the hardstuff, just wondering if there is a simple way to do this?


thxPBH




-- Jason

  















__._,_.___





--
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: Doesn't work mx:Button click=function({...});

2006-07-25 Thread exeypan
 try putting that logic into a function outside the click event of 
the button. 

links.xml contains links for page1, page2

links.xml
|
+-- page1.xml
|
+-- page2.xml

How to put logic outside?

!-- File: links.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
item
  dc:titlePage 1/dc:title
  dc:linkpage1.xml/dc:link
/item
item
  dc:titlePage 2/dc:title
  dc:linkpage2.xml/dc:link
/item
/rdf:RDF

!-- File: page1.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
dc:Work
  dc:titlePage 1/dc:title
/dc:Work
/rdf:RDF

!-- File: page2.xml --
?xml version=1.0 encoding=UTF-8?
rdf:RDF xmlns=http://web.resource.org/cc/;
xmlns:dc=http://purl.org/dc/elements/1.1/;
xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
dc:Work
  dc:titlePage 2/dc:title
/dc:Work
/rdf:RDF

!-- File: LinkFromXML.mxml --

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=loadXML('links.xml');
mx:Script
![CDATA[
import mx.collections.XMLListCollection;

public var pathxml:String;
public var pathxml2:String;
private var how:Namespace = new Namespace(http://
web.resource.org/cc/);
private var dc:Namespace = new Namespace(http://purl.org/
dc/elements/1.1/);
[Bindable]
private var how1Title:QName = new QName(dc, title);
[Bindable]
private var how1Link:QName = new QName(dc, link);
[Bindable]
private var how2Title:QName = new QName(dc, title);
[Bindable]   
private var how1externalXML:XMLListCollection;
[Bindable]
private var how2externalXML:XMLListCollection;

private function loadXML(pathxml):void { 
trace (pathxml);
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest(pathxml);
loader.load(request);
loader.addEventListener(Event.COMPLETE, onComplete);
}
private function loadXML2(pathxml2):void {
var loader2:URLLoader = new URLLoader();
var request2:URLRequest = new URLRequest(pathxml2);
loader2.load(request2);
loader2.addEventListener(Event.COMPLETE, onComplete2);
}
private function onComplete(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
var how1Items:QName = new QName(how, item);   
var dataXML:XML = XML( loader.data );
dataXML.addNamespace( dc );
var how1base:XMLList = dataXML.descendants( how1Items
 );
how1externalXML = new XMLListCollection( how1base );
}
 private function onComplete2(event:Event):void {
var loader2:URLLoader = 
URLLoader(event.target); 
var how2Items:QName = new QName(dc, Work); 
var dataXML:XML = XML( loader2.data );
dataXML.addNamespace( dc );
var how2base:XMLList = dataXML.descendants( how2Items
 );
how2externalXML = new XMLListCollection( how2base );
}
  private function getField( itemXML:XML, 
field:QName):String {
return itemXML.descendants( field ).toString();
}
]]
/mx:Script
mx:Canvas id=HowView backgroundColor=#CC label=How 
width=100% height=100%
mx:HBox width=100% height=100%
mx:VDividedBox width=400 height=100% id=how1Box 
backgroundColor=#B9C5A0
mx:Repeater width=80% id=linksItems 
dataProvider={ how1externalXML }
mx:VBox width=80% horizontalAlign=center 
creationCompleteEffect=Fade

mx:LinkButton  click={loadXML2( 
getField( XML( linksItems.currentItem ), how1Link ) )} label={ 
getField( XML( linksItems.currentItem ), how1Title) }  / 

/mx:VBox
/mx:Repeater
/mx:VDividedBox
mx:VDividedBox width=100% height=100% id=how2Box 
backgroundColor=#6BA1A3
mx:Repeater width=100% id=workItems 
dataProvider={ how2externalXML }
mx:VBox width=534 horizontalAlign=center 
creationCompleteEffect=Fade

mx:Label text={ getField( XML( 
workItems.currentItem ), how2Title) } color=#00/
   
   

RE: [flexcoders] Manually show slider tooltips

2006-07-25 Thread Matt Horn
Do you mean do more than what the dataTipFormatFunction property lets
you do? Maybe more detail about what you are trying to do would help.

matt horn
flex docs 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
 Sent: Monday, July 24, 2006 3:11 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Manually show slider tooltips
 
 Hi,
 
 How would I go about manually showing the sliderThumb 
 tooltips... I've been poking around the Slider Class and see 
 the methods I want to call onThumbPress / onThumbRelease 
 but have had no luck subclassing/overriding to acheive what 
 I'd like... any help is appreciated. 
 
 Thanks,
 
 Brendan
 
 
 
 
  
 


 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread Doug Lowder
Try this:

mx:TextArea enabled=false disabledColor=0x33 
text=Some text /


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

 I'm sorry to be a bother but this seems like it should be so easy 
but its driving me nuts.
 
 I want to get rid of selectability/i-beam mouseover cursor on a 
textArea field.
 
 With a Text component, you just set. myText.selectability = false.
 
 How do I do it for a textArea field?  Can it be done?  I want to 
use textArea instead of text because I need a background.
 
 Please help!!!
 
 Thanks so much.
 
 Jamie
 MKCNSC, inc.








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





Re: [flexcoders] Re: Returning hidden ID field value in a datagrid

2006-07-25 Thread Pan Troglodytes



Well, there is more going on than your code is really showing. As an example, here is a simple ArrayCollection connected to a grid. It has a button that will display the hidden column value when clicked. It works perfectly. So that's why I'm asking for more information from you. There's obviously more going on. If the kludge is fine, ok. But if you want to try to figure out the problem, we'll need an example we can reproduce. That means no RemoteObject.
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical
 mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection; import mx.controls.Alert
;  
 [Bindable] public var dt:ArrayCollection = new ArrayCollection([
 {header:row1, col1:1, col2:2, col3:3, col4:4}, 
 {header:row2, col1:5, col2:6, col3:7, col4:8}, 
 {header:row1, col1:9, col2:10, col3:11, col4:12}
 ]);
  public function buttonClick(e:Event):void
 {
 if (grid.selectedItem) Alert.show(grid.selectedItem.col1
); }
 ]]
 /mx:Script mx:DataGrid id=grid dataProvider={dt} selectedIndex=1
 mx:columns
 mx:DataGridColumn dataField=header/
 mx:DataGridColumn dataField=col1 visible=false/
 mx:DataGridColumn dataField=col2/ mx:DataGridColumn dataField=col3/
 mx:DataGridColumn dataField=col4/
 /mx:columns 
 /mx:DataGrid
 mx:Button x=10 y=150 label=Button click=buttonClick(event)/
/mx:ApplicationFYI, I also tried just commenting out your RemoteObject and putting in the data manually. This works fine, too:
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=
http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ import mx.controls.Text; import mx.collections.ArrayCollection; import mx.utils.ObjectUtil
; import mx.rpc.events.*; import mx.controls.Alert; import flash.net.*;  [Bindable] public var activeMembers:ArrayCollection = new ArrayCollection([ { cvcontactID:cvcontactID-1, 
 cvcompanyName:cvcompanyName-1,  cvcontactLast:cvcontactLast-1,  cvcontactFirst:cvcontactFirst-1,  cvcontactCity:cvcontactCity-1,
 cvstateAB:cvstateAB-1, cvcontactZip:cvcontactZip-1, cvcountryName:cvcountryName-1, cvcontactmemberReg:cvcontactmemberReg-1,
 cvcontactmemberExp:cvcontactmemberExp-1 },  { cvcontactID:cvcontactID-2,  cvcompanyName:cvcompanyName-2,  cvcontactLast:cvcontactLast-2, 
 cvcontactFirst:cvcontactFirst-2,  cvcontactCity:cvcontactCity-2, cvstateAB:cvstateAB-2, cvcontactZip:cvcontactZip-2,
 cvcountryName:cvcountryName-2, cvcontactmemberReg:cvcontactmemberReg-2, cvcontactmemberExp:cvcontactmemberExp-2 },  { cvcontactID:cvcontactID-3, 
 cvcompanyName:cvcompanyName-3,  cvcontactLast:cvcontactLast-3,  cvcontactFirst:cvcontactFirst-3,  cvcontactCity:cvcontactCity-3,
 cvstateAB:cvstateAB-3, cvcontactZip:cvcontactZip-3, cvcountryName:cvcountryName-3, cvcontactmemberReg:cvcontactmemberReg-3,
 cvcontactmemberExp:cvcontactmemberExp-3 },  ]);   public function initApp():void { //myService.getActive();
 }  public function clickHandler():void { var myvalueName = myGrid.selectedItem.cvcontactID; Alert.show
(myvalueName); }  private function resultHandler (event:ResultEvent):void { activeMembers = event.result as ArrayCollection; }
  ]] /mx:Script  !--mx:RemoteObject id=myService destination=ColdFusion source=admin_rpt_AllMembers showBusyCursor=true
  mx:method name=getActive result=resultHandler (event) fault=Alert.show(event.fault.message)/  /mx:RemoteObject--  mx:DataGrid name=myActiveMembers id=myGrid width=100%
 height=90% dataProvider={activeMembers} click=clickHandler() mx:columns mx:DataGridColumn headerText=ID dataField=cvcontactID visible=false/
 mx:DataGridColumn headerText=Company dataField=cvcompanyName/ mx:DataGridColumn headerText=Last Name dataField=cvcontactLast/ mx:DataGridColumn headerText=First Name dataField=cvcontactFirst/
 mx:DataGridColumn headerText=City dataField=cvcontactCity/ mx:DataGridColumn headerText=State dataField=cvstateAB/ mx:DataGridColumn headerText=Zip dataField=cvcontactZip/
 mx:DataGridColumn headerText=Country dataField=cvcountryName/ mx:DataGridColumn headerText=Reg dataField=cvcontactmemberReg/ mx:DataGridColumn headerText=Expires dataField=cvcontactmemberExp/
 /mx:columns /mx:DataGrid/mx:ApplicationOn 7/25/06, michrx7 
[EMAIL PROTECTED] wrote:The RemoteObject is returning simple database values which is why it
is the provider for the datagrid. cvcontactID is a primary key and Ihave set the visible value to false in the datagrid. When someoneselects a row I simply want to return the value within the hiddencvcontactID datagrid column for the selected row.
I guess I could cheat and make the column visible, grab the value,and then set visible to false, but that seems silly.--- In flexcoders@yahoogroups.com, Pan Troglodytes
[EMAIL PROTECTED] wrote: How about an example result from your RemoteObject? On 7/25/06, michrx7 [EMAIL PROTECTED] wrote:   mx:Script  ![CDATA[
  import mx.controls.Text;  import mx.collections.ArrayCollection;  import mx.utils.ObjectUtil;  import mx.rpc.events.*
;  import mx.controls.Alert;  import flash.net.*;   

Re: [flexcoders] Re: Flex AMFPHP and VOs

2006-07-25 Thread Andrea Varga
Hi

 You're right, it works perfect! Sorry about the other comment.
 I'm kinda surprised and happy, is this the same that you sent to me?

Thanks Oriol. Yes, the code is exactly the same, I have just added that 
Label to show you that the casting works.


 Also, it would be great to know what differences are between yours and 
 Renaun's, because one's working and the other not (at least for me). 
 What changes have you done?

I think the main idea is the same.  Although, I don't know if he is 
using the advanceddsettings.php or not (it's not in the source), I 
couldn't  make it work without setting the $outgoing array.

As we are here, Renaun,  I'd like to make an observation on the 
RemoteObjectAMF0?
First of all, I would be dead without it,  it's grate stuff. Many thanks 
for sharing.
I had to change it a little bit, because in the way it was, it's not 
perfectly compatible with Cairngorm, you have to change the 
ServiceLocator.as, and add the  getRPCService() method. That's because 
ServiceLocator's getService() returns an  AbstractService but 
RemoteObjectAMF0 inherits  Proxy. That's why I made RemoteObjectAMF0 to 
inherit from AbstractService (which inherits Proxy) and I had to add  
this line too, to get rid of some errors:

use namespace flash_proxy;

This way no Cairgorm code needs to be changed.
I thought you might be interested in this. Or is there a good reason why 
you haven't used it in this way, and I'm missing something?

Andi


 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/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/
 




Re: [flexcoders] invalidateDisplayList()

2006-07-25 Thread Jeremy Lu



Kinda weird, this is my understaning too, but I never dig deep enough into those charting widgets, maybe things are different in there.Have you tried the FlexComponents list also hosted on Yahoo (lead by Ted Patrick) ? most component gurus are there.
Jeremy.
Surely invalidating one object should just cause itself 
(and children) to be redrawn?


From: flexcoders@yahoogroups.com
 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy 
LuSent: 25 July 2006 14:53To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
invalidateDisplayList()
In your updateDisplayList() function, you can add an if 
clause to detect which part should be redrawn.Something like 
:if( dotChanged ){ //do 
redraw}Jeremy.
On 7/25/06, Daniel 
Tuppeny [EMAIL PROTECTED] 
wrote:

  
  
  
  
  
  
  
  Hi,
  
  Does calling invalidateDisplayList() on a 
  control mean that *everything* (including parents) gets re-drawn, or just the 
  children?
  
  I have something similar to Ely 
  Greenfield's RangeSelector class (
 
  http://demo.quietlyscheming.com/overlayDemo/), but the mousemove event 
  seems to cause my PlotSeries to re-draw too. This means, when I have 1000 
  points on my chart, the draggable box is very sluggish.
  
  I thought a control's updateDisplayList() 
  would only be called if something on that actual control 
  changed?
  
  Thanks,
  
  Danny
  
  
  The 
  information contained in this e-mail and/or any attachments is confidential 
  and intended only for the individual(s) to which it is addressed. If you are 
  not named as an addressee you must not disclose, copy or take any action in 
  reliance of this transmission. This e-mail and its attachments have been 
  scanned for viruses by MessageLabs Ltd. 
  
   
  __This 
  email has been scanned by the MessageLabs Email Security System.For more 
  information please visit http://www.messagelabs.com/email 
  __
   [Inbound Mail Scanned by 
MessageLabs]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
 
__


  















__._,_.___





--
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] TileList Bug Flex Final... pretty serious.

2006-07-25 Thread sufibaba
Hi ya,

I found what seems to be a bug with the TileList Control. When the
TileList is resized, not all of the images that are in the TileList
are displayed.  It seems that when TileList is made smaller, in width
and height, the vertical scrollbar will only display some of the images. 

Has anyone seen this problem.  Is there a work around for this bug?

Any light cast on this is Greatly appreciated.

- Tim






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/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] Anyone worked with Google API's and Flex/AS3?

2006-07-25 Thread Charles
Hi all,

I'm trying to make some API calls to Google using their SOAP API's but
I'm a little lost as to where to start.  I know I should use a
Webservice object to make the initial SOAP call, but I need to add
request headers, and I don't know how to do that with a webservice
object (I've only done it before with a URLLoader object).  Also, I
need to connect to a WSDL file and make RPCs from there.  This is also
new to me.  So, if anyone has worked with the Google API's (AdWords
specifically), or worked with SOAP calls via a WSDL file with AS3, or
even has some site to point me in the right direction, that would be
GREATLY appreciated.

Thanks!


Charles






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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] Re: Working version of Phones in Flex2/Cairngorm2?

2006-07-25 Thread Wally Randall
--- In flexcoders@yahoogroups.com, Benoit Hediard [EMAIL PROTECTED] wrote:

 Are you sure you got the latest version?
 

Yes I am sure. I have just downloaded the code you supplied in your 
earlier link:  This fragment illustrates part of the problem.  
The 'org.nevis' prefix is no longer supported in the Cairngorm2 
product.  You must be compiling with an old version of the Cairngorm 
classes:

package com.mycompany.phones.controller {

import com.mycompany.phones.model.ApplicationModel;
import com.mycompany.phones.service.PhoneDelegate;
import com.mycompany.phones.view.ApplicationView;

import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

import org.nevis.cairngorm.business.Responder;
import org.nevis.cairngorm.commands.Command;
import org.nevis.cairngorm.control.CairngormEvent;
import org.nevis.cairngorm.view.ViewLocator;






 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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] Re: Debugging the Phones Sample

2006-07-25 Thread Wally Randall
Benoit:  Do you know what is wrong with this declaration?  I do not 
know how to re-code it.:

public class PhoneListGetCommand implements command, Responder { ...

The error states that the Responder class is implemented with an
incompatible signature in the class file.

How should this be re-factored?







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/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/
 





RE: [flexcoders] Re: Working version of Phones in Flex2/Cairngorm2?

2006-07-25 Thread Benoit Hediard
All the org.nevis references have been replaced in the latest version.
You're still downloading the old version, may be a cache issue?

Here is an alternate link to workaround the cache problem :
http://www.benorama.com/flex/samples/PhonesCairngorm2bis.zip

Have fun.

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Wally Randall
Envoyé : mardi 25 juillet 2006 19:10
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Working version of Phones in Flex2/Cairngorm2?

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

 Are you sure you got the latest version?
 

Yes I am sure. I have just downloaded the code you supplied in your earlier
link:  This fragment illustrates part of the problem.  
The 'org.nevis' prefix is no longer supported in the Cairngorm2 product.
You must be compiling with an old version of the Cairngorm
classes:

package com.mycompany.phones.controller {

import com.mycompany.phones.model.ApplicationModel;
import com.mycompany.phones.service.PhoneDelegate;
import com.mycompany.phones.view.ApplicationView;

import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

import org.nevis.cairngorm.business.Responder;
import org.nevis.cairngorm.commands.Command;
import org.nevis.cairngorm.control.CairngormEvent;
import org.nevis.cairngorm.view.ViewLocator;






 Yahoo! Groups Sponsor ~--
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/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 
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 AMFPHP and VOs

2006-07-25 Thread Renaun Erickson
Andi,

The Cairngorm 2 that is packaged in it was from their second 2
release, and I had to add the getRPCService myself also.  I need to go
back and include just the SWC or have people download it separate.

As for the AbstractService and namespace usage, it is a more cleaner
approach and I'll incorporate it.  To tell you the truth haven't had
much time to use the RemoteObjectAMF0, it was a class I wrote months
ago back in beta and things where not solidified back then.  Again
thanks for all the updates and I'll incorporate them into the source,

Please pass along any examples of the usage of the RemoteObjectAMF0, I
am interested in how it is being used.

Renaun

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

 Hi
 
  You're right, it works perfect! Sorry about the other comment.
  I'm kinda surprised and happy, is this the same that you sent to me?
 
 Thanks Oriol. Yes, the code is exactly the same, I have just added that 
 Label to show you that the casting works.
 
 
  Also, it would be great to know what differences are between yours
and 
  Renaun's, because one's working and the other not (at least for me). 
  What changes have you done?
 
 I think the main idea is the same.  Although, I don't know if he is 
 using the advanceddsettings.php or not (it's not in the source), I 
 couldn't  make it work without setting the $outgoing array.
 
 As we are here, Renaun,  I'd like to make an observation on the 
 RemoteObjectAMF0?
 First of all, I would be dead without it,  it's grate stuff. Many
thanks 
 for sharing.
 I had to change it a little bit, because in the way it was, it's not 
 perfectly compatible with Cairngorm, you have to change the 
 ServiceLocator.as, and add the  getRPCService() method. That's because 
 ServiceLocator's getService() returns an  AbstractService but 
 RemoteObjectAMF0 inherits  Proxy. That's why I made RemoteObjectAMF0 to 
 inherit from AbstractService (which inherits Proxy) and I had to add  
 this line too, to get rid of some errors:
 
 use namespace flash_proxy;
 
 This way no Cairgorm code needs to be changed.
 I thought you might be interested in this. Or is there a good reason
why 
 you haven't used it in this way, and I'm missing something?
 
 Andi








 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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/
 




  1   2   3   >