[flexcoders] Drag drop within a tree control itself

2006-03-02 Thread Robs
Hi people,
 I've a tree control which is the drag source  drop target itself to 
enable shuffling of nodes within the tree. As such, the normal drag  
drop codes work fine but there is 1 problem in the dragComplete 
event. I've used the following function within dragComplete event:

function doDragComplete(event) 
  {
 var dragItems = event.dragSource.dataForFormat
(source).selectedItems;
 //var dragItems = event.dragSource.dataForFormat
(source).selectedNode;
 //mx.controls.Alert.show(event.dragSource, Drag 
source);
mx.controls.Alert.show(dragItems[0].getProperty
(label), Drag Complete);
/* var counter = dragItems.length;
 for (var i=0;icounter;i++)
 {
var item = dragItems[i];
item.removeTreeNode();
 }*/
  }

As u can see above the alert popup shud show the selected node, but 
its blank. The main purpose is to relocate the dragged node from the 
old to the new location.

Kindly help...
Thanks.





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

* 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] Flex2 :: Button :: Getting custom skins to refresh IE getStyle() is used

2006-03-02 Thread Manish Jethani
On 3/2/06, Teoti Graphix [EMAIL PROTECTED] wrote:

  I have subclassed Button in an mxml component.

  I have defined a get set property swatchColor in the mxml component(extended 
 Button).
[snip]

Got it.  So, in your property setter function, call styleChanged()
with null as the argument.  That'll make sure the button's skins are
refreshed.

Manish


--
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] Hit Area Strategy

2006-03-02 Thread Manish Jethani
On 2/14/06, Trey Long [EMAIL PROTECTED] wrote:
 All objects bounds are rectangular, their hit area's are not however.

 For instance, say I draw a circle with spokes coming out of it. The
 bounds are rectangular but if I were to move the mouse around the circle
 each spoke would generate a mouseOver mouseOut event.

Did you figure this out?

Try drawing a square with alpha 0 and see if that works.

Manish


--
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] a GridTree component for flex 2

2006-03-02 Thread dc
hi list,

just made a GridTree component for next project, please take a look at

-preview video
http://ria.richtechmedia.com/upload/GridTreeForFlex2/

-blog entry (upper half written in English)
http://ria.richtechmedia.com/?p=330

any suggestions or ideas would be appreciated.

btw, thanks to the flex team for making AS3/datagrid/cell renderer so
fast that this could be achieved.

jeremy lu.






--
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] Currency Formatter -- formats only numbers up to 15 characters in length?

2006-03-02 Thread Gordon Smith
Adobe won't be doing this for Flex 2, and I don't think anyone has
volunteered.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Hastings
Sent: Wednesday, March 01, 2006 9:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Currency Formatter -- formats only numbers up
to 15 characters in length?

Matt Chotin wrote:
 It's a known limitation I think.  Basically the Number class doesn't
 support more digits and therefore the formatter doesn't either.  Not
 sure if Flex 2 has advanced its support.

no but there was some talk about porting java BigDecimal/BigInteger to
AS3.


--
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] Flex2/ColdFusion connectivity : session scope problem

2006-03-02 Thread Benoit Hediard





Any news on this issue from the Mystic ColdFusion Updater 
team?
This is a hugebug for us, since we'll need this to 
implement server-side security for each session on our 
project...

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Benoit 
HediardEnvoyé: mercredi 22 février 2006 
13:15À: flexcoders@yahoogroups.comObjet: 
[flexcoders] Flex2/ColdFusion connectivity : session scope 
problem

I'm currently trying 
to use the ColdFusionsession scope in my CFC-based 
services.
I've added some 
logging to check the #session.sessionId# and the onSessionStart/onSessionEnd 
eventin my Application.cfc.

Problem : 

- when using 
ColdFusion default sessions, a new session is started at each of my remoteObject 
calls,
- when using J2EE 
sessions, it generates a null exception at each of my remoteObject 
calls.

Is it a bug or 
isthere some configuration parameters to use the ColdFusionsession 
scope?

Thanks.

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








  
  
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] ActionScript 3 language specification as pdf

2006-03-02 Thread Vadim Melnik
Hi All,

Just found AS3 specification 
http://livedocs.macromedia.com/specs/actionscript/3/wwhelp/wwhimpl/js/h
tml/wwhelp.htm on the Web (thank to Brian Deitte). Is this document 
also available in pdf format?

--
Thanks,
Vadim Melnik.





--
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/Coldfusion connectivity test app

2006-03-02 Thread anopres
How do you use the typed object that cf returns?  All I seemt to get
is a generic object on the Flex side.  Do you have to run through a
bunch of set functions to move the properties returned into a
pre-existing .as typed object?

Sorry for the noob question, but this one has been bugging me for a while.

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

 Since some people seems to have issues to use the Flex/ColdFusion
 connectivity, here is a sample app to test your connectivity.
 
 
 ColdFusion / Server side
 
 
 Save the following value object CFC in
 {wwwroot}/com/mycompany/myapp/model/TestVO.cfc
 cfcomponent
 
 cfproperty name=someString type=String /
 cfproperty name=someNumber type=Numeric /
 
 cffunction name=init returntype=com.mycompany.myapp.model.TestVO
   cfscript
   this.someString = test;
   this.someNumber = 0;
   /cfscript
   cfreturn this /
 /cffunction
 
 /cfcomponent
 
 Save the following remote service CFC in
 {wwwroot}/com/mycompany/myapp/service/TestService.cfc
 cfcomponent
 
 cffunction name=getArray access=remote returntype=Array
   cfscript
   var data = arrayNew(1);
   arrayAppend(data, createObject(component,
 com.mycompany.myapp.model.TestVO).init());
   arrayAppend(data, createObject(component,
 com.mycompany.myapp.model.TestVO).init());
   /cfscript
   cfreturn data /
 /cffunction
 
 cffunction name=getStruct access=remote returntype=Struct
   cfscript
   var data = structNew();
   data.firstData = createObject(component,
 com.mycompany.myapp.model.TestVO).init();
   data.secondData = createObject(component,
 com.mycompany.myapp.model.TestVO).init();
   /cfscript
   cfreturn data /
 /cffunction
 
 cffunction name=receiveAndReturnVO access=remote
 returntype=com.mycompany.myapp.model.TestVO
   cfargument name=vo type=com.mycompany.myapp.model.TestVO
   cfreturn arguments.vo
 /cffunction
 
 /cfcomponent
 
 --
 Flex / Client side
 --
 
 Save the following value object in {some test
 project}/com/mycompany/myapp/model/TestVO.as
 package com.mycompany.myapp.model {
 
   [Bindable]
   [RemoteClass(alias=com.mycompany.myapp.model.TestVO)]
   
   public class TestVO {
   
   public var someString:String;
   public var someNumber:int;
   
   public function TestVO() {
   someString = ;
   someNumber = 0;
   }
 
   }
   
 }
 
 Save the following test application in Flex Builder 2 {some test
 project}/TestConnectivity.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
xmlns=*
   
   mx:RemoteObject id=testService
   destination=ColdFusion
   result=onResult(event)
   source=com.mycompany.myapp.service.TestService  /
   
   mx:Script
   ![CDATA[
   import com.mycompany.myapp.model.TestVO;
   import mx.controls.Alert;
   import mx.rpc.events.ResultEvent;
   import mx.utils.ObjectUtil;
   
   private function onResult(event:ResultEvent){
   Alert.show(ObjectUtil.toString(event.result));
   }
   ]]
   /mx:Script
   
   mx:Button label=getArray click=testService.getArray() /
 
   mx:Button label=getStruct click=testService.getStruct() /
   !-- BUGS : display (null) value instead of objects, but objects are
 correctly returned... --
   
   mx:Button label=receiveAndReturnVO
 click=testService.receiveAndReturnVO(new TestVO()) /
   
 /mx:Application
 
 Compile and run TestConnectivity.mxml (do not forget to set the compile
 argument to take into account your flex/coldfusion service definition,
 flex-enterprise-services.xml)
 
 It should work, if your ColdFusion server is correctly configured
with the
 Flex/ColdFusion connectivity add-on.
 You can also check the adapter logs in
 {CFusionMX7}/runtime/logs/coldfusion-out.log, very nice to see if
the typed
 objects are correctly received or sent by the ColdFusion adapter.
 
 
 BUGS
 
 
 We have faced several bugs with the Flex/ColdFusion connectivity.
 
 1. In the above sample app, getStruct() display (null) object in the
Flex
 app, but objects are correctly returned... Strange.
 
 2. Sometimes, the AS - CFC does not map the full type correctly.
 Example : the CFC might receive TestVO instead of
 com.mycompany.myapp.model.TestVO, so the CFC argument type
validation will
 fail and you will get an error...
 The current workaround is to remove typed object validation in remote
 service CFCs.
 
 3. You might have to add UPPERCASE setter functions for CFC - AS
 translation to work correctly.
 We don't know yet 

[flexcoders] order of the columns in datagrid

2006-03-02 Thread sinacapho
Dear all,

 i have problem when using datagrid. The dataProvider of the
gird is mainly a web service result in xml . But for example 
my xml is 

aa
bb
cc

But the when i put this into the dataProvider . The resulting datagrid
column order is cc,bb,aa . Can i know why?


thx
capho





--
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] can someone show me an example for the following

2006-03-02 Thread flexisgood
This relates to Flex 1.5

I have a datagrid.  One of my columns within the dg is a combobox. I 
can set the values of the combobox to e.g. Option1, Option2, Option3 
etc. and these values are correctly appearing in the combobox within 
the dg.  

What I actually need to do is set the 'selected' value of the combobox 
if it matches the value read from the dataprovider e.g. if the dp 
value for the cell in row 1 is 'Option3' I want 'Option3' to be 
automatically selected and if the dp value for the cell in row 2 
is 'Option99' I want 'Option99' to be automatically selected.  .  
Currently the value in the combobox in each row is set to 'Option1'.

This should be straightforward but I can't work out how to do it.

Thanks in advance.







--
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] The column order in datagrid

2006-03-02 Thread sinacapho
If i input a xml as dataprovider in datagrid
/aa
/bb
/cc


The datagrid column order will be cc, bb,aa .someone tell me why??
thx






--
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] Resize bug?

2006-03-02 Thread Flex Coders



Hi Jonathan,I tested this on the following browsers with tabs and got the following resultsFirefox 1.5.0.1 - Bug reproducedIE 7.0 beta - Cannot reproduceMaxthon - Cannot reproduce
Netscape 8.0.3.3 - Bug reproducedMorover this happens for both FLEX swfs as well as any ordinary Flash Movie. So this is a flash issue that pertains to the Netscape plugin. So it should reproduce on all browsers using it (like Netscape, Firefox, Mozilla, Opera...etc) and not on ActiveX based browsers like IE, Maxthon.
I have logged a player bug on this and it is being tracked... Thanks for the observationRaghu([EMAIL PROTECTED])On 3/2/06, 
Jonathan Miranda [EMAIL PROTECTED] wrote:


















Can't tell if this would be a Firefox/IE error or
Flex, but let's say you have 2 tabs open and you're selected on the
tab without your flash video. Resize the browser, then switch tabs –
flash won't resize until you resize the window again. Does the same in
Firefox and IE – maybe when the browser resizes, it doesn't
broadcast to all tabs…






--
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 do you put a link in a datagrid?

2006-03-02 Thread jeff noyes
Title: RE: [flexcoders] Actionscript-based Applications with Flex 2





Can someone pleasepoint me to, or explain how to 
put a link in a datagrid?

I've seen Jesse Wardens flash example, but I want 
strictly a flex 
example.





--
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 dynamically invoke AS3 class constuctor ?

2006-03-02 Thread Vadim Melnik
Hi All,

It is going to be easy, but I can't figure the way to implement it. 
We have certain Class object referencing to some class with 
constructor accepting any ... numbers of arguments. Now we are 
looking for the way to invoke it dynamically, (something like 
Funtion.apply does for plain methods). For example :

...
public class A {
 public function A(...args) {}
}
...

var cls:Class = A;
var someArgs:Array = [1, 2, 3];

var a:* = new cls(); // - how to pass someArgs here ?

// need the same functionality as 
// var a:* = new A(1,2,3);

And the same question regarding super class dynamic constructor 
invocation:

public class B extends A {
 public function B() {
   var myArgs:Array = [4,5,6];
   super(); // -- how to pass myArgs to parent
   // class constructor, like
   // super(4, 5, 6);
 }
}


--
Thanks,
Vadim Melnik.







--
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 dynamically invoke AS3 class constuctor ?

2006-03-02 Thread Alisdair Mills


haven't tried it but maybe try...import flash.util.getClassByName;thenvar ClassReference:Class = getClassByName("A");var instance:Object = new ClassReference(1,2,3);cheers, AlOn 2 Mar 2006, at 12:25, Vadim Melnik wrote:  Hi All,  It is going to be easy, but I can't figure the way to implement it.  We have certain Class object referencing to some class with  constructor accepting any ... numbers of arguments. Now we are  looking for the way to invoke it dynamically, (something like  Funtion.apply does for plain methods). For example :  ... public class A { public function A(...args) {} } ...  var cls:Class = A; var someArgs:Array = [1, 2, 3];  var a:* = new cls(); // - how to pass someArgs here ?  // need the same functionality as  // var a:* = new A(1,2,3);  And the same question regarding super class dynamic constructor  invocation:  public class B extends A { public function B() {    var myArgs:Array = [4,5,6];    super(); // -- how to pass myArgs to parent    // class constructor, like    // super(4, 5, 6); } }   -- Thanks, Vadim Melnik.  -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED 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 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/Coldfusion connectivity test app

2006-03-02 Thread Benoit Hediard
To get a typed object on the Flex side, there is nothing specific to do, you
only need to correctly define :
- in the CFC VO , all the cfproperty,
Ex. : cfproperty name=someString type=String /
- in the service CFC cffunction, the correct returnType,
Ex. : returntype=com.mycompany.myapp.model.TestVO
- in the AS3 VO, the alias metadata,
Ex. : [RemoteClass(alias=com.mycompany.myapp.model.TestVO)]
- in the AS3 VO, all the public var properties
Ex. : public var someString:String;

You might also check 2 things, to see what's going on :
- on the ColdFusion server side, check the CF Adapter logs in
CFusionMX7/runtime/logs/coldfusion-out.log,
- on the Flex client side, install ServiceCapture,
http://kevinlangdon.com/serviceCapture/, you will see if the returned
objects are correctly typed.

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de anopres
Envoyé : jeudi 2 mars 2006 05:42
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex/Coldfusion connectivity test app

How do you use the typed object that cf returns?  All I seemt to get is a
generic object on the Flex side.  Do you have to run through a bunch of set
functions to move the properties returned into a pre-existing .as typed
object?

Sorry for the noob question, but this one has been bugging me for a while.

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

 Since some people seems to have issues to use the Flex/ColdFusion 
 connectivity, here is a sample app to test your connectivity.
 
 
 ColdFusion / Server side
 
 
 Save the following value object CFC in 
 {wwwroot}/com/mycompany/myapp/model/TestVO.cfc
 cfcomponent
 
 cfproperty name=someString type=String / cfproperty 
 name=someNumber type=Numeric /
 
 cffunction name=init returntype=com.mycompany.myapp.model.TestVO
   cfscript
   this.someString = test;
   this.someNumber = 0;
   /cfscript
   cfreturn this /
 /cffunction
 
 /cfcomponent
 
 Save the following remote service CFC in 
 {wwwroot}/com/mycompany/myapp/service/TestService.cfc
 cfcomponent
 
 cffunction name=getArray access=remote returntype=Array
   cfscript
   var data = arrayNew(1);
   arrayAppend(data, createObject(component, 
 com.mycompany.myapp.model.TestVO).init());
   arrayAppend(data, createObject(component, 
 com.mycompany.myapp.model.TestVO).init());
   /cfscript
   cfreturn data /
 /cffunction
 
 cffunction name=getStruct access=remote returntype=Struct
   cfscript
   var data = structNew();
   data.firstData = createObject(component, 
 com.mycompany.myapp.model.TestVO).init();
   data.secondData = createObject(component, 
 com.mycompany.myapp.model.TestVO).init();
   /cfscript
   cfreturn data /
 /cffunction
 
 cffunction name=receiveAndReturnVO access=remote
 returntype=com.mycompany.myapp.model.TestVO
   cfargument name=vo type=com.mycompany.myapp.model.TestVO
   cfreturn arguments.vo
 /cffunction
 
 /cfcomponent
 
 --
 Flex / Client side
 --
 
 Save the following value object in {some test 
 project}/com/mycompany/myapp/model/TestVO.as
 package com.mycompany.myapp.model {
 
   [Bindable]
   [RemoteClass(alias=com.mycompany.myapp.model.TestVO)]
   
   public class TestVO {
   
   public var someString:String;
   public var someNumber:int;
   
   public function TestVO() {
   someString = ;
   someNumber = 0;
   }
 
   }
   
 }
 
 Save the following test application in Flex Builder 2 {some test 
 project}/TestConnectivity.mxml ?xml version=1.0 encoding=utf-8? 
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
xmlns=*
   
   mx:RemoteObject id=testService
   destination=ColdFusion
   result=onResult(event)
   source=com.mycompany.myapp.service.TestService  /
   
   mx:Script
   ![CDATA[
   import com.mycompany.myapp.model.TestVO;
   import mx.controls.Alert;
   import mx.rpc.events.ResultEvent;
   import mx.utils.ObjectUtil;
   
   private function onResult(event:ResultEvent){

Alert.show(ObjectUtil.toString(event.result));
   }
   ]]
   /mx:Script
   
   mx:Button label=getArray click=testService.getArray() /
 
   mx:Button label=getStruct click=testService.getStruct() /
   !-- BUGS : display (null) value instead of objects, but objects are

 correctly returned... --
   
   mx:Button label=receiveAndReturnVO
 click=testService.receiveAndReturnVO(new TestVO()) /
   
 /mx:Application
 
 Compile and run TestConnectivity.mxml (do not forget to set the 
 compile argument to take into 

[flexcoders] Re: How to dynamically invoke AS3 class constructor ?

2006-03-02 Thread Vadim Melnik
This code is similar to var a:* = new A(1,2,3); in my original 
post. Arguments count is statically specified at compile time. 
But I am looking for the way to pass different number of arguments 
to constructor at runtime. Arguments type and count are unknown at 
compilation time, that is why someArgs:Array used.

Flex 1.5/AS2 implements class constructor as AS2 Function object and 
we were able to call it like Function.apply(context, args). Now we 
are looking for something similar in AS3...


--
Thanks,
Vadim Melnik.


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

 haven't tried it but maybe try...
 
 import flash.util.getClassByName;
 
 then
 var ClassReference:Class = getClassByName(A);
 var instance:Object = new ClassReference(1,2,3);
 
 cheers, Al
 
 
 
 On 2 Mar 2006, at 12:25, Vadim Melnik wrote:
 
  Hi All,
 
  It is going to be easy, but I can't figure the way to implement 
it.
  We have certain Class object referencing to some class with
  constructor accepting any ... numbers of arguments. Now we are
  looking for the way to invoke it dynamically, (something like
  Funtion.apply does for plain methods). For example :
 
  ...
  public class A {
  public function A(...args) {}
  }
  ...
 
  var cls:Class = A;
  var someArgs:Array = [1, 2, 3];
 
  var a:* = new cls(); // - how to pass someArgs here ?
 
  // need the same functionality as
  // var a:* = new A(1,2,3);
 
  And the same question regarding super class dynamic constructor
  invocation:
 
  public class B extends A {
  public function B() {
 var myArgs:Array = [4,5,6];
 super(); // -- how to pass myArgs to parent
 // class constructor, like
 // super(4, 5, 6);
  }
  }
 
 
  --
  Thanks,
  Vadim Melnik.
 
 
 
 
 
 
 
  --
  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 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] Currency Formatter -- formats only numbers up to 15 characters in length?

2006-03-02 Thread Paul Hastings
Gordon Smith wrote:
 Adobe won't be doing this for Flex 2, and I don't think anyone has
 volunteered.

first, is it even possible? second, would the existing AS formatters handle the 
new classes?


--
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] Character input in a form : strange issue?

2006-03-02 Thread Barrau Antoine
Hi,
i'm currently experiencing a strange issue with flex
1.5

i've made the following simple test : 

mx:Accordion
mx:Form
mx:FormItem
mx:TextInput text=toto/mx:TextInput
/mx:FormItem
/mx:Form
/mx:Accordion

it seems, for something i can't understand that when
i'm including this sample code into my application, i
can't enter any of the numbers and special character
given by pressing shift or alt plus one of the
character on the upper number bar. For example, when i
need to do a @ by pressing alt+à (on a french
keyboard), i'm only getting a à.

anyone have a clue?:/

thanks a lot
Tonio





thanks
Tonio






___ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.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 
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: Webservices swapping parameters

2006-03-02 Thread everflashnox
This certainly is a bug in tghe WebService API. The arguments do not 
get mapped correctly.
I suggested to Jeff to change the makeRemoteCall function to this:

public function makeRemoteCall(methodName:String, eventName:String, 
args:Object):void{
this.eventName = eventName;   
var op:mx.rpc.AbstractOperation = ws[methodName];   
ws.addEventListener(result,doResults);   
ws.addEventListener(fault,doFault);   

if(args){
op.arguments = args;
} 
op.send();
}

instead of passing an array of arguments to this function, you will 
send an object holding the arguments. something like this:

private function getProdsForCat(event:Event){
   var catId:int = List(event.currentTarget).selectedItem.CATEGORYID;

   var args:Object = new Object();
   args.CategoryId = catId;
   prodManager.makeRemoteCall(getProdsByCategory
,prodsRetrieved,args);
}

this solved my problems,






--
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: repost - Memory leak repeatedly assigning new series to a chart. (2.0b1)

2006-03-02 Thread Jonathan Miranda












Well using the task manager in windows, its
showing 94% cpu usage. Didnt look at the memory though.

_

Jonathan Miranda

Flexible Master of the Web

Try not
to become a man of success, but a man of value. - Albert Einstein

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of thunderstumpgesatwork
Sent: Wednesday, March 01, 2006
8:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: repost -
Memory leak repeatedly assigning new series to a chart. (2.0b1)





It ended up taking up the
CPU? what about memory usage? I'm having
issues with memory leaking, not CPU usage... 

I'm interested if this is the same thing, or
something different?

Thunder

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

 I can tell you after talking with one of the
Chart QA team, they know of
 a memory leak involving resetting the
dataprovider of a chart. I had a
 chart that would refresh every 30 seconds
(httpservice connected to an
 arraycollection for the chart's dp) that in
4-5 hours would take 95% of
 your computer's CPU usage. This is probably
something very similar.
 
 _
 
 Jonathan Miranda
 
 Flexible Master of the Web
 
 In the game of chess, it's important to
never let your opponent see
 your pieces.
 
 HealthGrades http://www.healthgrades.com/ :
Guiding America to Better
 Healthcare(tm)
 
 NASDAQ: HGRD
 
 w (720) 963-3832
 
 c (707) 761-0868
 
 [EMAIL PROTECTED] 
 
 _
 
 The message contains confidential and/or
legally privileged information
 and is intended for use only by the indicated
addressee. If you are not
 the named addressee you should not
disseminate, distribute, or copy this
 e-mail. Please notify the sender immediately
by e-mail if you have
 received this e-mail by mistake and delete
this e-mail from your system.
 E-mail transmissions cannot be guaranteed to
be secure or error-free as
 information could be intercepted, corrupted,
lost, destroyed,arrive late
 or incomplete, or contain viruses. The sender
therefore does not accept
 liability for any errors or omissions in the
contents of this message
 which arise as a result of e-mail
transmission. If verification is
 required please request a hard-copy version.
 
 
 
 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
 Behalf Of thunderstumpgesatwork
 Sent: Tuesday, February 28, 2006 2:34 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] repost - Memory leak
repeatedly assigning new
 series to a chart. (2.0b1)
 
 
 
 Hello,
 
 I'm reposting this because I got no responses
last time and I was
 hoping one of the Flex engineers could
confirm that it has been noted
 (if not verified) that this is happening. 
 
 This represents a major blocking point to
releasing our app. Memory
 usage CAN NOT continue to grow unbounded.
 
 I've narrowed it down to code which cleans up
a chart's
 series array and re-initializes it to add a
new set of series with new
 dataproviders, etc.
 
 Note that with only the AddSeries, and
SeriesDelete functions removed
 (all other code including CategoryAxis
create/delete, and all XML
 manipulation remained) there was no leak.
 
 I posted a best practices
question about list cleanup and memory use
 which describes the architecture I have:
 http://groups.yahoo.com/group/flexcoders/message/29638?threaded=1
 
 Below is the implementation of DeleteSeries
which attempts to remove
 every series in the chart and clean up the
dataProvider in it.
 
 Can someone who knows the internal workings
of the charts maybe look
 at this and see if I'm missing something or
if there are any known
 issues with the cleanup of chart series?
 
 thanks,
 Thunder
 __
 
 public static function SeriesDelete(
thisChart:ChartBase )
 {
 // try to clean up
the series
 var i:Number =
thisChart.series.length;
 while(i--)
 {

var obj:Array = thisChart.series.splice(i, 1);

var 

[flexcoders] Re: IOError: Error #2058: There was an error decompressing the data.

2006-03-02 Thread bhaq1972
Any Ideas? Anyone?
thanks

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

 Hi 
 I'm doing a simple test but get the above error.
 what am i doing wrong?
 tia
 
 var byteArr:ByteArray = new ByteArray();
 byteArr.writeUTF(hello);
 
 byteArr.position = 0;
 byteArr.compress();
 
 byteArr.position = 0;
 byteArr.uncompress();
 
 
 out.text += byteArr.readUTF(); //out is a textarea








--
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] order of the columns in datagrid

2006-03-02 Thread Manish Jethani
On 3/2/06, sinacapho [EMAIL PROTECTED] wrote:

  i have problem when using datagrid. The dataProvider of the
 gird is mainly a web service result in xml . But for example
 my xml is

 aa
 bb
 cc

 But the when i put this into the dataProvider . The resulting datagrid
 column order is cc,bb,aa . Can i know why?

AFAIK, there's no guarantee of the order in which the columns will be
displayed.  So, for best results, define your columns explicitly.

Manish


--
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] combobox in popup-window

2006-03-02 Thread wesubotnix
My combobox doesn´t seems to work when using it in a popup-window.
Can´t do the drop-down. Recievies error: Supplied index is out of
bounds. It seems like the combobox can´t find automation values. Is
it because the combobox also uses the popupmanager like the window it
is located in?








--
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 do you put a link in a datagrid?

2006-03-02 Thread JesterXL
Title: RE: [flexcoders] Actionscript-based Applications with Flex 2





Flex 1.5 or 2?

- Original Message - 
From: jeff noyes 

To: flexcoders@yahoogroups.com 
Sent: Thursday, March 02, 2006 7:22 AM
Subject: [flexcoders] how do you put a link in a 
datagrid?

Can someone pleasepoint me to, or explain how to 
put a link in a datagrid?

I've seen Jesse Wardens flash example, but I want 
strictly a flex 
example.





--
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: IOError: Error #2058: There was an error decompressing the data.

2006-03-02 Thread Roger Gonzalez
We're checking it out internally, very likely a bug.  Thanks for the
test case!

-rg 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972
 Sent: Thursday, March 02, 2006 7:01 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: IOError: Error #2058: There was an 
 error decompressing the data.
 
 Any Ideas? Anyone?
 thanks
 
 --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote:
 
  Hi 
  I'm doing a simple test but get the above error.
  what am i doing wrong?
  tia
  
  var byteArr:ByteArray = new ByteArray();
  byteArr.writeUTF(hello);
  
  byteArr.position = 0;
  byteArr.compress();
  
  byteArr.position = 0;
  byteArr.uncompress();
  
  
  out.text += byteArr.readUTF(); //out is a textarea
 
 
 
 
 
 
 
 
 --
 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] Stop the logging

2006-03-02 Thread Jeff Krueger


Sorry for the stupid post. But I can't remember where the setting is to stop the logging of remote objects. In the stdout.log file. It continues to print out the values of the objects being serialized. I have all the loging in flex-config.xml turned off and the production mode set to true. Is it in another file, sorry I can't remember where that is controlled.

Thanks

Jeff






--
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 can we use Secure AMF wuth ColdFusion/Flex Connectivity?

2006-03-02 Thread sn197412
Hi.

I tried SecureAMFChannel in flex-enterprise-services.xml.
But RemoteObject always connect to HTTP AMFChannel.
Is this normal action?

Can't we use HTTPS RemoteObject??

--Shigeru






--
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] DateField and DateFormatter issue.

2006-03-02 Thread sn197412
Hi.

When I use a DateFormatter with a couple of DateFileds,
Something remove formatted date text.
And also, when I focus in TextInput,
Something remove formatted date text too.


Here is a sample.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
xmlns=* layout=absolute

mx:Script
![CDATA[
private function formatDate(date:Date):String
{
  return dfconv.format(date);
}
]]
/mx:Script

  mx:DateFormatter id=dfconv formatString=MM,  /

  mx:DateField id=df1 x=10 y=40 formattingFunction=formatDate /
  mx:DateField id=df2 x=10 y=70 formattingFunction=formatDate /
  mx:TextInput id=txtIn x=10 y=100/
  
/mx:Application


This must be a Beta1 bug, right?

--Shigeru





--
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] Flex2 bug with mx:Text, incorrect height with width=100%

2006-03-02 Thread Benoit Hediard
One of the most annoying layout problem I'm currently facing on Flex2... ;)
 
When using width=100% the height of the Text component is never correct.
It looks like the height always equals the height of the text before the
resize to the new width.
 
Ex. : 
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;

mx:Text text=Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce enim leo, condimentum eu, feugiat a, viverra vitae, nulla. Quisque
dapibus, ipsum eget consequat aliquam, turpis lacus malesuada sem, sed
blandit magna augue in eros. width=100% / 

mx:HRule /

mx:Text text=Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce enim leo, condimentum eu, feugiat a, viverra vitae, nulla. Quisque
dapibus, ipsum eget consequat aliquam, turpis lacus malesuada sem, sed
blandit magna augue in eros. / 

mx:HRule /

/mx:Application

As a workaround, I usually create a binding constraint between the Text
width and a parent document width.
But it generates problems when the browser is resize and/or scrollbars
appear.

So :
1. Is it a bug?
2. What is the best workaround?

Thanks.

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

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

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

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




[flexcoders] Flex 1.5 Hotfix

2006-03-02 Thread Eric D Anderson










Hi,



Im sure many of you noticed the
latest IE patch available from Microsoft has fixed the active content
issue which impacted how the Flash player was invoked.  We have issued a hotfix
for Flex 1.5 that changes the way the Flex 1.5 HTML wrapper is generated to
support the new IE changes.



You can find more information about the
hotfix here:



http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=ace0407



You can also find more information about
the MS patch here:



http://support.microsoft.com/kb/912945



Eric













--
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] how do you put a link in a datagrid?

2006-03-02 Thread Jason Hawryluk
Title: RE: [flexcoders] Actionscript-based Applications with Flex 2





What 
problems are you having exactly, have you tried to do it?

  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de jeff noyesEnvoy: jeudi 2 mars 2006 
  13:23: flexcoders@yahoogroups.comObjet: 
  [flexcoders] how do you put a link in a datagrid?
  Can someone pleasepoint me to, or explain how 
  to put a link in a datagrid?
  
  I've seen Jesse Wardens flash example, but I want 
  strictly a flex example.





--
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] The column order in datagrid

2006-03-02 Thread Jason Hawryluk





What 
is your "defined" column structure.

mx:DataGrid 
mx:columns 
"your col struc here"...
/mx:columns/mx:DataGrid




  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de sinacaphoEnvoyé: jeudi 2 mars 2006 
  13:15À: flexcoders@yahoogroups.comObjet: 
  [flexcoders] The column order in datagridIf i input a 
  xml as dataprovider in 
  datagrid/aa/bb/ccThe 
  datagrid column order will be cc, bb,aa .someone tell me 
  why??thx





--
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] How can we use Secure AMF wuth ColdFusion/Flex Connectivity?

2006-03-02 Thread Peter Farland
Can you show the channel configuration that you used?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sn197412
Sent: Thursday, March 02, 2006 11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can we use Secure AMF wuth ColdFusion/Flex
Connectivity?

Hi.

I tried SecureAMFChannel in flex-enterprise-services.xml.
But RemoteObject always connect to HTTP AMFChannel.
Is this normal action?

Can't we use HTTPS RemoteObject??

--Shigeru






--
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] How can we use Secure AMF wuth ColdFusion/Flex Connectivity?

2006-03-02 Thread Peter Farland
... and the destination config too? 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sn197412
Sent: Thursday, March 02, 2006 11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can we use Secure AMF wuth ColdFusion/Flex
Connectivity?

Hi.

I tried SecureAMFChannel in flex-enterprise-services.xml.
But RemoteObject always connect to HTTP AMFChannel.
Is this normal action?

Can't we use HTTPS RemoteObject??

--Shigeru






--
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] Flex2: AS Number to Java Long mapping

2006-03-02 Thread Jim Schneider










Same happens with NaN.
Do you (Adobe) have any thoughts as to whether this is worthy of a fix,
or will we need to remember to add the logic to check for 0 in all of our Java
objects.



Thanks,



Jim







-

Jim Schneider

KJ Interactive, Inc.

1-877-370-6906

1-612-605-5399













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Sunday, February 26, 2006
8:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex2:
AS Number to Java Long mapping





What happens if you set the Number to NaN in AS? I believe null will coerce to 0 in AS3.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Schneider
Sent: Sunday, February 26, 2006
9:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2: AS
Number to Java Long mapping





Im experiencing the following behavior. I set an AS
Number variable to null prior to sending to a remote object. On the backend
(Java), the Number is converted to a 0. The expected data type on the Java end
is a Long (object, not primitive). This is causing us problems since we expect
a null Long object to be represented as null in the database, not 0, and as an
indicator of a new object that needs to be inserted rather than updated.



Is this expected behavior/mapping? Is it a bug? I can fix it
on the backend with some additional logic, but Id rather not have to do
that. 



Thoughts?



Thanks.





-

Jim Schneider

KJ Interactive, Inc.

1-877-370-6906

1-612-605-5399














--
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] Currency Formatter -- formats only numbers up to 15 characters in length?

2006-03-02 Thread Gordon Smith
 first, is it even possible?

I think so.

 second, would the existing AS formatters handle the new classes?

No, but writing a new formatter would be easier than porting BigInt.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Hastings
Sent: Thursday, March 02, 2006 5:42 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Currency Formatter -- formats only numbers up
to 15 characters in length?

Gordon Smith wrote:
 Adobe won't be doing this for Flex 2, and I don't think anyone has
 volunteered.

first, is it even possible? second, would the existing AS formatters
handle the 
new classes?


--
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] Datagrid how to get access to cellRenderer instance

2006-03-02 Thread Matt Chotin
Here's the recommendation I got from Alex:

It looks like the DataGrid will have the FocusManager call a setFocus
method on the renderer if it exists, so if you implement setFocus on the
cell, it should get called and that method should set focus to its
internal textinput (as in you the developer override the setFocus method
on the component to call it on the on the textinput)

You'll also need .editable=true and isCellEditor=true on the cell.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of t_msreddy
Sent: Tuesday, February 28, 2006 11:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid how to get access to cellRenderer
instance

I have a cellRenderer in Datagrid column which has text box and an 
image. I want to implement focus on tab key. I dont know how to do it.

The only way i thought was to get the instance of cell renderer for 
that cell(itemIndex, columnIndex) and do FocusManager.setFocus
(cellRendererInstance.MyText). I dont know how to do this. I am not 
sure if this is possible.

The tabbing works by default in a datagrid: if the datagrid is 
editable, meaning if it doesnt have any cell renderer. I want to 
implement the same feature but the tabbing should be for text box 
inside the cellRenderer.


Please help





--
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] mx.control.alert

2006-03-02 Thread deepu_verma
Hi all,
I am using mx.controls.Alert.show in flex 1.5
The text in the alert box is displayed with a vertical scroll bar.
How can I increase the size of the alert box.

Thanks,
Deepak






--
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: How to dynamically invoke AS3 class constructor ?

2006-03-02 Thread Jens Halm

 This code is similar to var a:* = new A(1,2,3); in my original 
 post. Arguments count is statically specified at compile time. 
 But I am looking for the way to pass different number of arguments 
 to constructor at runtime. Arguments type and count are unknown at 
 compilation time, that is why someArgs:Array used.

 Flex 1.5/AS2 implements class constructor as AS2 Function object and
 we were able to call it like Function.apply(context, args). Now we 
 are looking for something similar in AS3...

Unfortunately there isn't any similar functionality in AS3, I asked
the same question a few weeks ago and requested an additional method
in the new Class class:

   public function newInstance (constructorArgs:Array) : Object

So that I could write:

   function createInstance (className:String, args:Array) : Object {
   var MyClass:Class = getClassByName(className);
   return MyClass.newInstance(args);
   }

But unfortunately the answer from someone from Adobe was: Since it
isn't in the ECMA-4-spec they will not include it.

There are some corner cases like this (and the prevention of private
and protected constructors) where AS 3 actually is a step back from
AS 2...


Jens
www.oregano-server.org




--
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] weird bug with IE and states Flex2

2006-03-02 Thread Johannes Nel



take this code?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=absolute 
 mx:states  mx:State name=PlannerMode   mx:SetProperty target={panel1} property=x value=27/   mx:SetProperty target={panel1} property=height value=102/
   mx:SetProperty target={panel1} property=width value=766/   mx:SetProperty target={panel2} property=visible value=false/
   mx:SetProperty target={panel3} property=visible value=false/   mx:SetProperty target={panel4} property=visible value=false/
   mx:SetProperty target={panelPlanner} property=visible value=true/   mx:SetProperty target={topText} property=visible value=false/
   mx:SetProperty target={topText} property=includeInLayout value=false/   mx:SetProperty target={netWorthPlannerModeText} property=visible value=true/
   mx:SetEventHandler target={goAhead} event=click handler=showMainPage()/   mx:SetProperty target={panelPlanner} property=height value=430/
  /mx:State /mx:states mx:transitions  mx:Transition fromState=* toState=PlannerMode   mx:Sequencemx:Parallel 
 mx:Sequence targets={[panel2]}  mx:WipeDown showTarget=false/  !-- this is required otherwise the endstate properties will not be
   observed --  mx:SetPropertyAction property=visible value=false/ /mx:Sequence mx:Sequence startDelay=100 targets={[panel3]}
  mx:WipeDown showTarget=false/  !-- this is required otherwise the endstate properties will not be  observed --
  mx:SetPropertyAction property=visible value=false/ /mx:Sequence mx:Sequence startDelay=200 targets={[panel4]}
  mx:WipeDown showTarget=false/  !-- this is required otherwise the endstate properties will not be  observed --
  mx:SetPropertyAction property=visible value=false/ /mx:Sequence/mx:Parallelmx:Parallel
 mx:Resize target={panel1}/ mx:Sequence target={panelPlanner}  mx:SetPropertyAction property=visible/
  mx:WipeUp showTarget=true / /mx:Sequence   /mx:Parallel
   /mx:Sequence  /mx:Transition  mx:Transition fromState=PlannerMode toState=*   mx:Sequencemx:Parallel
 mx:Resize target={panel1}/ mx:Sequence target={panelPlanner}  mx:WipeDown showTarget=false /
  !-- this is required otherwise the endstate properties will not be  observed --  mx:SetPropertyAction property=visible value=false/
 /mx:Sequence   /mx:Parallelmx:Parallel mx:Sequence targets={[panel2, panel3]}
  mx:SetPropertyAction property=visible value=true/  mx:WipeUp showTarget=true/ /mx:Sequence
 mx:Sequence targets={[panel4]}  mx:SetPropertyAction property=visible value=true/  mx:WipeUp showTarget=true/
 /mx:Sequence/mx:Parallel/mx:Sequence  /mx:Transition /mx:transitions mx:Script
  ![CDATA[   internal function showGoalSetup() {try { currentState=PlannerMode;}catch (e:Error) {
 mx.controls.Alert.show(Exception (Error) received  + e ) ; }   }   internal function showMainPage() {try { currentState=;
}catch (e:Error) { mx.controls.Alert.show(Exception (Error) received  + e ) ; }   }  ]] /mx:Script
 mx:Panel x=27 y=33 width=766 height=333 layout=absolute title=Hello, Adam id=panel1  mx:Button id=goAhead label=Go Ahead click=showGoalSetup()
 /mx:Button  mx:Text y={goAhead.y+goAhead.height} id=topText   mx:htmlTextThis is a Text appears in the base state. 
It will disappear in the collapsed (PlannerMode) state.   /mx:htmlText  /mx:Text   /mx:Panel mx:Panel id=panelPlanner x=27 y=143 width=766 height=435 layout=absolute title=College Planning visible=false 
 /mx:Panel  mx:Panel x=27 y=374 width=250 height=200 layout=absolute title=Net Worth id=panel2  mx:Text width=90% id=netWorthPlannerModeText visible=false
   mx:text   This panel visible in the PlannerMode state because of a missing SetActionProperty   even though the state to which the application is being transitioned to 
   specifies that this panel should be invisible. The WipeDown effect somehow   causes a problem.   /mx:text  /mx:Text /mx:Panel mx:Panel x=543 y=374 width=250 height=200 layout=absolute id=panel4
 /mx:Panel mx:Panel x=285 y=374 width=250 height=200 layout=absolute id=panel3 /mx:Panel /mx:Application
run as flex application in IE do the transition about 20 times and the player crashes. does not happen in firefox. the stack trace:ArgumentError: Error #2015: Invalid image. at mx.graphics::RectangularDropShadow/mx.graphics:RectangularDropShadow::createShadowBitmaps
() at mx.graphics::RectangularDropShadow/drawShadow() at mx.skins.halo::HaloRectBorder/mx.skins.halo:HaloRectBorder::drawDropShadow() at mx.skins.halo::HaloRectBorder/mx.skins.halo:HaloRectBorder::updateDisplayList
() at mx.skins::ProgrammaticSkin/validateDisplayList() at mx.managers::LayoutManager/validateDisplayList() at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation() at 

Re: [flexcoders] mx.control.alert

2006-03-02 Thread JesterXL
Try adding some \n and \r to the end of the text you put in to the Alert 
box.

- Original Message - 
From: deepu_verma [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, March 02, 2006 12:05 PM
Subject: [flexcoders] mx.control.alert


Hi all,
I am using mx.controls.Alert.show in flex 1.5
The text in the alert box is displayed with a vertical scroll bar.
How can I increase the size of the alert box.

Thanks,
Deepak






--
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] Another charting bug

2006-03-02 Thread Ely Greenfield







Hi Jonathan -- what you're running into right now is a bit 
of a fact of life. The Flex framework doesn't have great support for 
flow-based components by default...if you don't explicitly set their width, it's 
impossible for them to automatically size to the width of their parent. 
Text and TextArea have the same problem. The difference is that they make 
themselves square by default, which wouldn't make a whole lot of sense for a 
legend.

Better flow support is something we'd like to enable in a 
future release.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan 
MirandaSent: Friday, February 24, 2006 2:27 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Another charting 
bug


If you use a mx:Legend in the 
control-bar of a panel that holds a graph and you dont specify width=100%, 
the legend will not wrap in the control-bar and go off the screen (with no 
scrolling so you cant see the edge of the legend). So either the Legend isnt 
correctly reading its default dimensions of width or the control-bar isnt 
containing the legend correctly, or something like that  setting it to 
width=100% makes it correctly wrap.
So how many bugs until I get 
into the credits again Matt? J
_
Jonathan 
Miranda
Flexible Master 
of the Web
"In the game of chess, it's important to 
never let your opponent see your pieces."
HealthGrades: Guiding America 
to Better Healthcare
NASDAQ: 
HGRD
w (720) 
963-3832
c (707) 
761-0868
[EMAIL PROTECTED] 

_
The message contains confidential 
and/or legally privileged information and is intended for use only by the 
indicated addressee. If you are not the named addressee you should not 
disseminate, distribute, or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmissions cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed,arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.






--
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] Flex2 line chart and vertical axis

2006-03-02 Thread Johannes Nel



hi all

i have a line chart that i am feeding a fair bit of info into. all
good. the problem is that the vertical axis displays stuff like
7590.995 as a refpoint. 
now i looked at the IAxis interface and it has a getUnitSize method, no
setter for it (and no documentation yet), and i assume that this is the
function or value that has to change to round the values
displayed on the yaxis? if this is by default == 1(which i assume
otherwise the deault at the moment would be 0.005), then
something else is coming into play here. any ideas on how i can get the
vertical axis to display digestible information?

Thanks
j






--
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: Flex2: AS Number to Java Long mapping

2006-03-02 Thread Dave Wolf

The core of the issue is that the deserializer cant seperate a
primitive from an Object wrapper right?  I mean mapping a null onto a
long of 0 is correct.  The issue youre having is you want a Long which
itsel is null right?

I can say you'd face this issue in CORBA all the time too.  The
solution in CORBA was to pass a structure that had an isNull property.

struct NullableLong
{
  long value;
  bool isNull;
}

Now you would set the value to zero but the isNull to true.

Just how we solved this back in the CORBA days :)

Passing nulls across languages (hence the CORBA tie) is always an ugly
issue in distributed computing.


-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY




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

 Same happens with NaN. Do you (Adobe) have any thoughts as to
whether this
 is worthy of a fix, or will we need to remember to add the logic
to check
 for 0 in all of our Java objects.
 
  
 
 Thanks,
 
  
 
 Jim
 
  
 
 -
 
 Jim Schneider
 
 KJ Interactive, Inc.
 
 1-877-370-6906
 
 1-612-605-5399
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Matt Chotin
 Sent: Sunday, February 26, 2006 8:12 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex2: AS Number to Java Long mapping
 
  
 
 What happens if you set the Number to NaN in AS?  I believe null
will coerce
 to 0 in AS3.
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jim Schneider
 Sent: Sunday, February 26, 2006 9:20 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2: AS Number to Java Long mapping
 
  
 
 I'm experiencing the following behavior. I set an AS Number variable
to null
 prior to sending to a remote object. On the backend (Java), the
Number is
 converted to a 0. The expected data type on the Java end is a Long
(object,
 not primitive). This is causing us problems since we expect a null Long
 object to be represented as null in the database, not 0, and as an
indicator
 of a new object that needs to be inserted rather than updated.
 
  
 
 Is this expected behavior/mapping? Is it a bug? I can fix it on the
backend
 with some additional logic, but I'd rather not have to do that. 
 
  
 
 Thoughts?
 
  
 
 Thanks.
 
  
 
 -
 
 Jim Schneider
 
 KJ Interactive, Inc.
 
 1-877-370-6906
 
 1-612-605-5399
 
  
 
 
 
 
 --
 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

http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site

+design+developmentw2=Computer+software+developmentw3=Software+design+and+

developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
 66.sig=L-4QTvxB_quFDtMyhrQaHQ  site design development 
 
 Computer

http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+si

te+design+developmentw2=Computer+software+developmentw3=Software+design+an

d+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s
 =166.sig=lvQjSRfQDfWudJSe1lLjHw  software development 
 
 Software

http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+

site+design+developmentw2=Computer+software+developmentw3=Software+design+

and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5
 s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ  design and development 
 
 
 Macromedia

http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+deve

lopmentw2=Computer+software+developmentw3=Software+design+and+development

w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6n
 PIrz7_EpZI36cYzBjw  flex 
 
 Software

http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=W

eb+site+design+developmentw2=Computer+software+developmentw3=Software+desi

gn+and+developmentw4=Macromedia+flexw5=Software+development+best+practice
 c=5s=166.sig=f89quyyulIDsnABLD6IXIw  development best practice 
 
  
 
  
 
   _  
 
 YAHOO! GROUPS LINKS 
 
  
 
 *  Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
   
 *  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
   
 *  Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of Service. 
 
  
 
   _








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

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

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

* Your use of Yahoo! 

RE: [flexcoders] The column order in datagrid

2006-03-02 Thread Tracy Spratt










He is not defining the columns array, but
letting Flex do it.



The problem here is the Flex apparently
builds the columns from the xml child nodes array using a for ..in, instead of
for var i



The for..in construct does not process the
properties in a guaranteed order, but usually returns them in LIFO order.



You should define your columns, if you
care about how they display.  If you need the columns to change based on the
data, you can build them in AS.  Finally, you could reverse the array, maybe
myarray.reverse?



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Hawryluk
Sent: Thursday, March 02, 2006
12:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] The
column order in datagrid







What is your defined column
structure.











mx:DataGrid 
mx:columns
 your col struc here...





/mx:columns
/mx:DataGrid























-Message d'origine-
De: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]De la part de sinacapho
Envoyé: jeudi 2 mars 2006
13:15
À: flexcoders@yahoogroups.com
Objet: [flexcoders] The
column order in datagrid

If i input a xml as
dataprovider in datagrid
/aa
/bb
/cc


The datagrid column order will be cc, bb,aa .someone
tell me why??
thx












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



  











Fwd: [flexcoders] Flex2 line chart and vertical axis:Solved

2006-03-02 Thread Johannes Nel



from Brian O'Connor. Thanks!-- Forwarded message --From: Brian O'Connor [EMAIL PROTECTED]
Date: Mar 2, 2006 2:44 PMSubject: RE: [flexcoders] Flex2 line chart and vertical axisTo: [EMAIL PROTECTED]
















Use a labelFunction, for example:



private function
currencyFormat(value:Number,prevValue:Number,axis:Object):String {


return cf.format(value);


}



mx:CurrencyFormatter
id=cf/



In graph….



mx:verticalAxis 


mx:LinearAxis labelFunction=currencyFormat
title=Whatever/

/mx:verticalAxis





-

Brian
 O'Connor

AdobeConsulting

Email: [EMAIL PROTECTED]


Office: 617-219-2205

Mobile: 617-306-3713

/ \
 
888/ \888 

88/ / \88
 
8/ /8\ \8
 
/ /888\ \
 
\8\












From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Johannes Nel
Sent: Thursday, March 02, 2006
2:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 line
chart and vertical axis






hi all

i have a line chart that i am feeding a fair bit of info into. all good. the
problem is that the vertical axis displays stuff like
7590.995 as a refpoint. 
now i looked at the IAxis interface and it has a getUnitSize method, no setter
for it (and no documentation yet), and i assume that this is the function or
value that has to change to round the values displayed on the yaxis? if
this is by default == 1(which i assume otherwise the deault at the moment would
be 0.005), then something else is coming into play here. any ideas
on how i can get the vertical axis to display digestible information?

Thanks
j


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





















-- j:pn http://www.lennel.org






--
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] how do you put a link in a datagrid?

2006-03-02 Thread Tracy Spratt
Title: RE: [flexcoders] Actionscript-based Applications with Flex 2










Are you sure you really need a link?  You
could get the same effect using just the DataGrid events and getURL().



If you need a true link, try the example. 



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Hawryluk
Sent: Thursday, March 02, 2006
12:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how do
you put a link in a datagrid?







What problems are you having exactly, have
you tried to do it?





-Message d'origine-
De: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]De la part de jeff noyes
Envoyé: jeudi 2 mars 2006
13:23
À: flexcoders@yahoogroups.com
Objet: [flexcoders] how do
you put a link in a datagrid?

Can someone pleasepoint me to, or
explain how to put a link in a datagrid?



I've seen Jesse Wardens flash example, but
I want strictly a flex example.








--
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] Flex2 line chart and vertical axis

2006-03-02 Thread Ely Greenfield








Hi Johannes. I see Brian also set you up with the 
labelFunction, but if you could send a simplified bug file directly to me, that 
would be great. What you're seeing is a floating point rounding error, 
which is pretty much unavoidable. We're trying to get the actual label 
generation to be smarter about detecting these errors and correcting them, but 
we have to be careful not to accidentally blow away actual significant 
differences in values (i.e., if .05 actually mattered in your chart, you 
wouldn't want to end up with a chart with five labels that all read '12'). 


So if you can send me a bug file, I'd appreciate 
it.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes 
NelSent: Thursday, March 02, 2006 11:21 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 line chart and 
vertical axis
hi alli have a line chart that i am feeding a fair bit of 
info into. all good. the problem is that the vertical axis displays stuff 
like7590.995 as a refpoint. now i looked at the IAxis 
interface and it has a getUnitSize method, no setter for it (and no 
documentation yet), and i assume that this is the function or value that has to 
change to round the values displayed on the yaxis? if this is by default 
== 1(which i assume otherwise the deault at the moment would be 
0.005), then something else is coming into play here. any ideas on 
how i can get the vertical axis to display digestible 
information?Thanksj





--
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: Flex2: AS Number to Java Long mapping

2006-03-02 Thread Jim Schneider
Yep, that's the issue. Actionscript has the concept of null. Java has the
concept of null. It would seem that AMF/Flex should be able to map the two
correctly.

-
Jim Schneider
KJ Interactive, Inc.
1-877-370-6906
1-612-605-5399-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Wolf
Sent: Thursday, March 02, 2006 1:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex2: AS Number to Java Long mapping


The core of the issue is that the deserializer cant seperate a
primitive from an Object wrapper right?  I mean mapping a null onto a
long of 0 is correct.  The issue youre having is you want a Long which
itsel is null right?

I can say you'd face this issue in CORBA all the time too.  The
solution in CORBA was to pass a structure that had an isNull property.

struct NullableLong
{
  long value;
  bool isNull;
}

Now you would set the value to zero but the isNull to true.

Just how we solved this back in the CORBA days :)

Passing nulls across languages (hence the CORBA tie) is always an ugly
issue in distributed computing.


-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY




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

 Same happens with NaN. Do you (Adobe) have any thoughts as to
whether this
 is worthy of a fix, or will we need to remember to add the logic
to check
 for 0 in all of our Java objects.
 
  
 
 Thanks,
 
  
 
 Jim
 
  
 
 -
 
 Jim Schneider
 
 KJ Interactive, Inc.
 
 1-877-370-6906
 
 1-612-605-5399
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Matt Chotin
 Sent: Sunday, February 26, 2006 8:12 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex2: AS Number to Java Long mapping
 
  
 
 What happens if you set the Number to NaN in AS?  I believe null
will coerce
 to 0 in AS3.
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jim Schneider
 Sent: Sunday, February 26, 2006 9:20 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2: AS Number to Java Long mapping
 
  
 
 I'm experiencing the following behavior. I set an AS Number variable
to null
 prior to sending to a remote object. On the backend (Java), the
Number is
 converted to a 0. The expected data type on the Java end is a Long
(object,
 not primitive). This is causing us problems since we expect a null Long
 object to be represented as null in the database, not 0, and as an
indicator
 of a new object that needs to be inserted rather than updated.
 
  
 
 Is this expected behavior/mapping? Is it a bug? I can fix it on the
backend
 with some additional logic, but I'd rather not have to do that. 
 
  
 
 Thoughts?
 
  
 
 Thanks.
 
  
 
 -
 
 Jim Schneider
 
 KJ Interactive, Inc.
 
 1-877-370-6906
 
 1-612-605-5399
 
  
 
 
 
 
 --
 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

http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site

+design+developmentw2=Computer+software+developmentw3=Software+design+and+

developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
 66.sig=L-4QTvxB_quFDtMyhrQaHQ  site design development 
 
 Computer

http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+si

te+design+developmentw2=Computer+software+developmentw3=Software+design+an

d+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s
 =166.sig=lvQjSRfQDfWudJSe1lLjHw  software development 
 
 Software

http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+

site+design+developmentw2=Computer+software+developmentw3=Software+design+

and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5
 s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ  design and development 
 
 
 Macromedia

http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+deve

lopmentw2=Computer+software+developmentw3=Software+design+and+development

w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6n
 PIrz7_EpZI36cYzBjw  flex 
 
 Software

http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=W

eb+site+design+developmentw2=Computer+software+developmentw3=Software+desi

gn+and+developmentw4=Macromedia+flexw5=Software+development+best+practice
 c=5s=166.sig=f89quyyulIDsnABLD6IXIw  development best practice 
 
  
 
  
 
   _  
 
 YAHOO! GROUPS LINKS 
 
  
 
 *  Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
   
 *  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
 

RE: [flexcoders] can someone show me an example for the following

2006-03-02 Thread Tracy Spratt
You just have to loop over the values in the combobox dataProvider array
items, compare the correct property value to the value of the master
dataProvider, and set the selected index.

There are examples on cflex.net.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexisgood
Sent: Thursday, March 02, 2006 5:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] can someone show me an example for the following

This relates to Flex 1.5

I have a datagrid.  One of my columns within the dg is a combobox. I 
can set the values of the combobox to e.g. Option1, Option2, Option3 
etc. and these values are correctly appearing in the combobox within 
the dg.  

What I actually need to do is set the 'selected' value of the combobox 
if it matches the value read from the dataprovider e.g. if the dp 
value for the cell in row 1 is 'Option3' I want 'Option3' to be 
automatically selected and if the dp value for the cell in row 2 
is 'Option99' I want 'Option99' to be automatically selected.  .  
Currently the value in the combobox in each row is set to 'Option1'.

This should be straightforward but I can't work out how to do it.

Thanks in advance.







--
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] how do you put a link in a datagrid?

2006-03-02 Thread Jonathan Miranda
Title: RE: [flexcoders] Actionscript-based Applications with Flex 2










Dont think Ive ever seen
more answers to a question with no real answer J

If youre using Flex2, its real easy. Either in-line like my
example or a custom cellrenderer (Ive been using an HBox and Link inside
just for formatting reasons).

DataGridColumn
    renderer

  link yourstuffhere/

    /renderer
/DataGridColumn




For Flex 1.5, ask Jester J Hes more familiar with that end.

_

Jonathan Miranda

Flexible Master of the Web

Try not
to become a man of success, but a man of value. - Albert Einstein

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w  (720)
963-3832

c  (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee.  If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Thursday, March 02, 2006
1:08 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how do
you put a link in a datagrid?





Are you sure you really need a link?
You could get the same effect using just the DataGrid events and getURL().



If you need a true link, try the example. 



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Hawryluk
Sent: Thursday, March 02, 2006
12:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how do
you put a link in a datagrid?







What problems are you having exactly, have
you tried to do it?





-Message d'origine-
De: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]De la part de jeff noyes
Envoyé: jeudi 2 mars 2006
13:23
À: flexcoders@yahoogroups.com
Objet: [flexcoders] how do
you put a link in a datagrid?

Can someone pleasepoint me to, or
explain how to put a link in a datagrid?



I've seen Jesse Wardens flash example, but
I want strictly a flex example.








--
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: Flex2: AS Number to Java Long mapping

2006-03-02 Thread Dave Wolf
But a Java primitive does not.  That's where it gets confusing.  AS
has only one Number type, not two like Java.  Since a primitive CANNOT
be null, you have to stick with the least common denominator ya know?

CORBA had this too, hence the structure solution.

Unless AS has both a primitive and an Object numeric type I dont know
how else to do the data type mapping but to stick with a 0?

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY


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

 Yep, that's the issue. Actionscript has the concept of null. Java
has the
 concept of null. It would seem that AMF/Flex should be able to map
the two
 correctly.
 
 -
 Jim Schneider
 KJ Interactive, Inc.
 1-877-370-6906
 1-612-605-5399-Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dave Wolf
 Sent: Thursday, March 02, 2006 1:46 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex2: AS Number to Java Long mapping
 
 
 The core of the issue is that the deserializer cant seperate a
 primitive from an Object wrapper right?  I mean mapping a null onto a
 long of 0 is correct.  The issue youre having is you want a Long which
 itsel is null right?
 
 I can say you'd face this issue in CORBA all the time too.  The
 solution in CORBA was to pass a structure that had an isNull property.
 
 struct NullableLong
 {
   long value;
   bool isNull;
 }
 
 Now you would set the value to zero but the isNull to true.
 
 Just how we solved this back in the CORBA days :)
 
 Passing nulls across languages (hence the CORBA tie) is always an ugly
 issue in distributed computing.
 
 
 -- 
 Dave Wolf
 Cynergy Systems, Inc.
 Macromedia Flex Alliance Partner
 http://www.cynergysystems.com
 
 Email:  [EMAIL PROTECTED]
 Office: 866-CYNERGY
 
 
 
 
 --- In flexcoders@yahoogroups.com, Jim Schneider jschneider@ wrote:
 
  Same happens with NaN. Do you (Adobe) have any thoughts as to
 whether this
  is worthy of a fix, or will we need to remember to add the logic
 to check
  for 0 in all of our Java objects.
  
   
  
  Thanks,
  
   
  
  Jim
  
   
  
  -
  
  Jim Schneider
  
  KJ Interactive, Inc.
  
  1-877-370-6906
  
  1-612-605-5399
  
_  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Matt Chotin
  Sent: Sunday, February 26, 2006 8:12 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Flex2: AS Number to Java Long mapping
  
   
  
  What happens if you set the Number to NaN in AS?  I believe null
 will coerce
  to 0 in AS3.
  
   
  
_  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Jim Schneider
  Sent: Sunday, February 26, 2006 9:20 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex2: AS Number to Java Long mapping
  
   
  
  I'm experiencing the following behavior. I set an AS Number variable
 to null
  prior to sending to a remote object. On the backend (Java), the
 Number is
  converted to a 0. The expected data type on the Java end is a Long
 (object,
  not primitive). This is causing us problems since we expect a null
Long
  object to be represented as null in the database, not 0, and as an
 indicator
  of a new object that needs to be inserted rather than updated.
  
   
  
  Is this expected behavior/mapping? Is it a bug? I can fix it on the
 backend
  with some additional logic, but I'd rather not have to do that. 
  
   
  
  Thoughts?
  
   
  
  Thanks.
  
   
  
  -
  
  Jim Schneider
  
  KJ Interactive, Inc.
  
  1-877-370-6906
  
  1-612-605-5399
  
   
  
  
  
  
  --
  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
 

http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site
 

+design+developmentw2=Computer+software+developmentw3=Software+design+and+
 

developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
  66.sig=L-4QTvxB_quFDtMyhrQaHQ  site design development 
  
  Computer
 

http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+si
 

te+design+developmentw2=Computer+software+developmentw3=Software+design+an
 

d+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s
  =166.sig=lvQjSRfQDfWudJSe1lLjHw  software development 
  
  Software
 

http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+
 

site+design+developmentw2=Computer+software+developmentw3=Software+design+
 

and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5
  s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ  design and development 
  
  
  Macromedia
 


[flexcoders] Flex 2: determine scaled dimensions of Loader content?

2006-03-02 Thread Tom Bray



Say you do this:mx:Loader id=photo source=image.jpg width=200 height=150 scaleContent=true/And the actual dimensions of image.jpg is 50x50. After the loader has loaded the image and scaled it, the loader's contentWidth and contentHeight say 50, but the image has been scaled to fit in the loader and maintain the correct aspect ratio. So, is there a property that contains the scaled width and height (150x150) or do I have to calculate it?
I want the scaled dimensions so that I can size a canvas around the image with a border and a dropshadow.Thanks,-Tom






--
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] visual children must implement mx.core.IUIComponent

2006-03-02 Thread sufibaba
Hi All,

I have the following:

1. ImageViewer.as
2. main.xml

in ImageViewer.as, I have this class definition:

public class ImageViewer extends Sprite {
   public funtion ImageViewer(){
// code
   }
  // other functions and code
}


in main.xml, I am calling:  ImageViewer/

The error I am getting is:
-
component declaration are now allowed in here.(Note: visual children
must implement mx.core.IUIComponent)
-
Does anone know what the problem might be.

Any help is appreciated,

Cheers,

Tim






--
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] Flex2 line chart and vertical axis

2006-03-02 Thread Brian O'Connor










Use a labelFunction, for example:



private function
currencyFormat(value:Number,prevValue:Number,axis:Object):String {

 return cf.format(value);

 }



mx:CurrencyFormatter
id=cf/



In graph.



mx:verticalAxis 

 mx:LinearAxis
labelFunction=currencyFormat title=Whatever/

/mx:verticalAxis





-

Brian
 O'Connor

AdobeConsulting

Email: [EMAIL PROTECTED]

Office: 617-219-2205

Mobile: 617-306-3713

/ \ 
888/ \888 
88/ / \88 
8/ /8\ \8 
/ /888\ \ 
\8\











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent: Thursday, March 02, 2006
2:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 line
chart and vertical axis





hi all

i have a line chart that i am feeding a fair bit of info into. all good. the
problem is that the vertical axis displays stuff like
7590.995 as a refpoint. 
now i looked at the IAxis interface and it has a getUnitSize method, no setter
for it (and no documentation yet), and i assume that this is the function or
value that has to change to round the values displayed on the yaxis? if
this is by default == 1(which i assume otherwise the deault at the moment would
be 0.005), then something else is coming into play here. any ideas
on how i can get the vertical axis to display digestible information?

Thanks
j








--
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] Dashboard Tutorial

2006-03-02 Thread sergiosergiomon
Hi everyone!
Nice to become part of this highly skilled and creative group, even 
though I am not one of you (yet!).
Is there any tutorial based on how to build a dashboard like the one 
at http://weblogs.macromedia.com/flex_samples/dashboard/dashboard.html?
Where is all the data acquired from?
What is the external source?

Regards,
Sergio
Brazil





--
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] Dashboard Tutorial

2006-03-02 Thread Jonathan Miranda












If you download the Flex 2 Beta 1, on the
welcome screen theres the source code for itthe data is just
being pulled from an XML file and its pretty straight forward.

_

Jonathan Miranda

Flexible Master of the Web

Try not
to become a man of success, but a man of value. - Albert Einstein

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sergiosergiomon
Sent: Thursday, March 02, 2006
1:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dashboard
Tutorial





Hi everyone!
Nice to become part of this highly skilled and
creative group, even 
though I am not one of you (yet!).
Is there any tutorial based on how to build a
dashboard like the one 
at http://weblogs.macromedia.com/flex_samples/dashboard/dashboard.html?
Where is all the data acquired from?
What is the external source?

Regards,
Sergio
Brazil











--
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] 32kb limit in Flex 2.0?

2006-03-02 Thread Parekh, Shweta - BLS CTR
Title: 32kb limit in Flex 2.0?








Hi,


Does anybody know if there is the 32KB size limit on actionscript files in Flex 2.0 also? I know it is there in Flex 1.5.

Thanks,

Shweta










--
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] 32kb limit in Flex 2.0?

2006-03-02 Thread JesterXL
Title: 32kb limit in Flex 2.0?





I think it's like 8 megs now.

- Original Message - 
From: Parekh, Shweta - 
BLS CTR 
To: flexcoders@yahoogroups.com 
Sent: Thursday, March 02, 2006 4:36 PM
Subject: [flexcoders] 32kb limit in Flex 2.0?

Hi, 
Does anybody know if there is the 32KB 
size limit on actionscript files in Flex 2.0 also? I know it is there in Flex 
1.5.
Thanks, Shweta 





--
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] repost - Memory leak repeatedly assigning new series to a chart. (2.0b1)

2006-03-02 Thread Ely Greenfield


Hi Thunder. It wouldn't surprise me if at this point there are leaks
when you're swapping in series. We of course want to make sure these are
all cleaned up before we ship, so If you can submit a bugfile, that
would be great.

Ely.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thunderstumpgesatwork
Sent: Tuesday, February 28, 2006 1:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] repost - Memory leak repeatedly assigning new
series to a chart. (2.0b1)

Hello,

I'm reposting this because I got no responses last time and I was hoping
one of the Flex engineers could confirm that it has been noted (if not
verified) that this is happening. 

This represents a major blocking point to releasing our app. Memory
usage CAN NOT continue to grow unbounded.

I've narrowed it down to code which cleans up a chart's series array and
re-initializes it to add a new set of series with new dataproviders,
etc.

Note that with only the AddSeries, and SeriesDelete functions removed
(all other code including CategoryAxis create/delete, and all XML
manipulation remained) there was no leak.

I posted a best practices question about list cleanup and memory use
which describes the architecture I have:
http://groups.yahoo.com/group/flexcoders/message/29638?threaded=1

Below is the implementation of DeleteSeries which attempts to remove
every series in the chart and clean up the dataProvider in it.

Can someone who knows the internal workings of the charts maybe look at
this and see if I'm missing something or if there are any known issues
with the cleanup of chart series?

thanks,
Thunder
__

public static function SeriesDelete( thisChart:ChartBase ) {
// try to clean up the series
var i:Number = thisChart.series.length;
while(i--)
{
var obj:Array = thisChart.series.splice(i, 1);
var oSeries:Series = null;
if (obj[0] is Series)
{
   oSeries = Series(obj[0]);
  if (oSeries.dataProvider is ListCollectionView)
  {
 var oView:ListCollectionView =
ListCollectionView(oSeries.dataProvider);
 oView.removeAll();
 if (oView.list != null)
oView.list.removeAll();
 oView.release();
 delete oView.list;
 oView=null;
  }
  delete oSeries.dataProvider;
  oSeries.dataProvider=null;
  delete oSeries;
  oSeries=null;
   }
   obj=null;
}
thisChart.series = new Array();
}






--
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] repost - ColumnChart MOUSE_OVER_DATA event bug (2.0b1)

2006-03-02 Thread Ely Greenfield


This should be fixed in latest builds.

Ely.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thunderstumpgesatwork
Sent: Tuesday, February 28, 2006 1:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] repost - ColumnChart MOUSE_OVER_DATA event bug
(2.0b1)

Hello,

I'm re-posting this because I am pretty sure it is a bug, and I was
hoping one of the Flex engineers could confirm that it has been noted
(if not tested).

I'm getting really sporatic responses from a listener to the
ChartMouseEvent.MOUSE_OVER_DATA

By sporatic I mean that the events only fire if the mouse is going one
direction (left to right on the non-stacked one I believe) and the event
doesn't fire at all when entering a chart item from one side or the
other; Only when crossing from one item to another.

Note it wasn't this way in the alpha. Only significant differences on my
part is the use of XMLListCollecitons as data providers.

see the sample app below. It should reproduce the defect.

Thanks,
Thunder

___

?xml version=1.0 encoding=utf-8?
mx:Application
 width=100% height=100%
 xmlns:mx=http://www.macromedia.com/2005/mxml;
 xmlns:root=*

mx:ColumnChart id=mainChart width=403 height=232 / mx:Button
label=Fetch click=populateStaticChart()/

mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
  import mx.collections.XMLListCollection;
  import mx.charts.series.ColumnSeries;
  import mx.charts.CategoryAxis;
 import mx.charts.events.ChartMouseEvent;

public function populateStaticChart():void {
var oData:XMLList = null;
var oXML:XML =
data
row
  Year2005/Year
  PageConvergenceMSMUnits6.654/PageConvergenceMSMUnits
  PageMultimediaMSMUnits4.3/PageMultimediaMSMUnits
  PageEnhancedMSMUnits4.972/PageEnhancedMSMUnits
  PageValueMSMUnits6.117/PageValueMSMUnits
/row
/data;
   oData = oXML.row;

   var oXMLCol:XMLListCollection = new XMLListCollection(oData);
   var aYears:Array = [ 2005 ];
   var aTypes:Array = [ Enhanced, Convergence, Multimedia,
Value ];

//  mainChart.type = stacked;
   mainChart.addEventListener(ChartMouseEvent.MOUSE_OVER_DATA,
hoverChartData);

   // add the category axis to the chart
   var hAxis:CategoryAxis = new CategoryAxis();

   // this works! Thanks!
   hAxis.categoryField=  ;
   hAxis.dataProvider = aYears;

   hAxis.name= Year ;
   mainChart.horizontalAxis= hAxis;

   // add the series to the chart
   var sa:Array   = mainChart.series
   for each (var sName:String in aTypes)
   {
  var cSeries:ColumnSeries  = new ColumnSeries();
  cSeries.yField   = Page + sName + MSMUnits
;
  cSeries.name  = sName;
  cSeries.dataProvider = oXMLCol;
  sa.push( cSeries );
   }
   mainChart.series = sa;
}


public function hoverChartData(event:ChartMouseEvent):void
{
 var oItem:Object = null;
 oItem = event.hitData.item;
 log.text += \n + event.hitData.element.name; }


]]
/mx:Script

/mx:Application





--
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: repost - Memory leak repeatedly assigning new series to a chart. (2.0b1)

2006-03-02 Thread thunderstumpgesatwork
Ely,

I'd be glad to help out in any way I can. Could you explain to me what
a bugfile is and what information you'd like?

Thunder

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

 
 
 Hi Thunder. It wouldn't surprise me if at this point there are leaks
 when you're swapping in series. We of course want to make sure these are
 all cleaned up before we ship, so If you can submit a bugfile, that
 would be great.
 
 Ely.
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of thunderstumpgesatwork
 Sent: Tuesday, February 28, 2006 1:34 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] repost - Memory leak repeatedly assigning new
 series to a chart. (2.0b1)
 
 Hello,
 
 I'm reposting this because I got no responses last time and I was hoping
 one of the Flex engineers could confirm that it has been noted (if not
 verified) that this is happening. 
 
 This represents a major blocking point to releasing our app. Memory
 usage CAN NOT continue to grow unbounded.
 
 I've narrowed it down to code which cleans up a chart's series array and
 re-initializes it to add a new set of series with new dataproviders,
 etc.
 
 Note that with only the AddSeries, and SeriesDelete functions removed
 (all other code including CategoryAxis create/delete, and all XML
 manipulation remained) there was no leak.
 
 I posted a best practices question about list cleanup and memory use
 which describes the architecture I have:
 http://groups.yahoo.com/group/flexcoders/message/29638?threaded=1
 
 Below is the implementation of DeleteSeries which attempts to remove
 every series in the chart and clean up the dataProvider in it.
 
 Can someone who knows the internal workings of the charts maybe look at
 this and see if I'm missing something or if there are any known issues
 with the cleanup of chart series?
 
 thanks,
 Thunder
 __
 
 public static function SeriesDelete( thisChart:ChartBase ) {
 // try to clean up the series
 var i:Number = thisChart.series.length;
 while(i--)
 {
 var obj:Array = thisChart.series.splice(i, 1);
 var oSeries:Series = null;
 if (obj[0] is Series)
 {
oSeries = Series(obj[0]);
   if (oSeries.dataProvider is ListCollectionView)
   {
  var oView:ListCollectionView =
 ListCollectionView(oSeries.dataProvider);
  oView.removeAll();
  if (oView.list != null)
 oView.list.removeAll();
  oView.release();
  delete oView.list;
  oView=null;
   }
   delete oSeries.dataProvider;
   oSeries.dataProvider=null;
   delete oSeries;
   oSeries=null;
}
obj=null;
 }
 thisChart.series = new Array();
 }
 
 
 
 
 
 
 --
 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] visual children must implement mx.core.IUIComponent

2006-03-02 Thread Gordon Smith
Make ImageViewer extend UIComponent instead of Sprite. In order to do
stuff like automatic layout, Flex containers expect their content
children to be UIComponents.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sufibaba
Sent: Thursday, March 02, 2006 11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] visual children must implement
mx.core.IUIComponent

Hi All,

I have the following:

1. ImageViewer.as
2. main.xml

in ImageViewer.as, I have this class definition:

public class ImageViewer extends Sprite {
   public funtion ImageViewer(){
// code
   }
  // other functions and code
}


in main.xml, I am calling:  ImageViewer/

The error I am getting is:
-
component declaration are now allowed in here.(Note: visual children
must implement mx.core.IUIComponent)
-
Does anone know what the problem might be.

Any help is appreciated,

Cheers,

Tim






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



 




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

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

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

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




[flexcoders] Flex and URL variables

2006-03-02 Thread Jonathan Miranda










Alright, Ive done this with Flash before but Im
wondering how similar it is.

Lets say I start my app @ http://mysite.com/index.mxml?number=3

Whats the easiest way to get that 3 into a variable in Flex? Using
FlashVars in the embed/object tags and then somehow do
mx.core.application.Application.number as my variable?

_

Jonathan Miranda

Flexible Master of
the Web

Try not to become a
man of success, but a man of value. - Albert Einstein

HealthGrades:
Guiding America
to Better Healthcare

NASDAQ: HGRD

w (720) 963-3832

c (707) 761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or legally privileged
information and is intended for use only by the indicated addressee. If you
are not the named addressee you should not disseminate, distribute, or copy
this e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your system. E-mail
transmissions cannot be guaranteed to be secure or error-free as information
could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any errors
or omissions in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard-copy version.











--
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 and URL variables

2006-03-02 Thread JesterXL





Flex 1.5 or 2?

- Original Message - 
From: Jonathan 
Miranda 
To: flexcoders@yahoogroups.com 
Sent: Thursday, March 02, 2006 5:49 PM
Subject: [flexcoders] Flex and URL variables


Alright, I’ve done this with Flash 
before but I’m wondering how similar it is.Let’s say I start my app @ http://mysite.com/index.mxml?number=3What’s 
the easiest way to get that 3 into a variable in Flex? Using FlashVars in the 
embed/object tags and then somehow do mx.core.application.Application.number as 
my variable?
_
Jonathan 
Miranda
Flexible Master 
of the Web
"Try not to become a man of success, but a 
man of value." - Albert Einstein
HealthGrades: Guiding America 
to Better Healthcare™
NASDAQ: 
HGRD
w (720) 
963-3832
c (707) 
761-0868
[EMAIL PROTECTED] 

_
The message contains confidential 
and/or legally privileged information and is intended for use only by the 
indicated addressee. If you are not the named addressee you should not 
disseminate, distribute, or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmissions cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed,arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.






--
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 and URL variables

2006-03-02 Thread Jonathan Miranda










Dos







_

Jonathan Miranda

Flexible Master of the Web

Try not
to become a man of success, but a man of value. - Albert Einstein

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Thursday, March 02, 2006
3:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex and
URL variables







Flex 1.5 or 2?











- Original Message - 



From: Jonathan
Miranda 





To: flexcoders@yahoogroups.com






Sent: Thursday, March
02, 2006 5:49 PM





Subject: [flexcoders] Flex
and URL variables











Alright, Ive done this with Flash before but
Im wondering how similar it is.

Lets say I start my app @ http://mysite.com/index.mxml?number=3

Whats the easiest way to get that 3 into a variable in Flex? Using
FlashVars in the embed/object tags and then somehow do mx.core.application.Application.number
as my variable?

_

Jonathan Miranda

Flexible Master of
the Web

Try not to become a
man of success, but a man of value. - Albert Einstein

HealthGrades:
Guiding America
to Better Healthcare

NASDAQ: HGRD

w (720) 963-3832

c (707) 761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or legally privileged
information and is intended for use only by the indicated addressee. If
you are not the named addressee you should not disseminate, distribute, or copy
this e-mail. Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system. E-mail
transmissions cannot be guaranteed to be secure or error-free as information
could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any errors
or omissions in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard-copy version.











--
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: can someone show me an example for the following

2006-03-02 Thread flexisgood
Thanks for that Tracy - I somehow managed to miss the tutorial when 
I searched through the cflex tutorials yesterday - the tutorial is 
precisely what I'm looking for.


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

 You just have to loop over the values in the combobox dataProvider 
array
 items, compare the correct property value to the value of the 
master
 dataProvider, and set the selected index.
 
 There are examples on cflex.net.
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of flexisgood
 Sent: Thursday, March 02, 2006 5:58 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] can someone show me an example for the 
following
 
 This relates to Flex 1.5
 
 I have a datagrid.  One of my columns within the dg is a combobox. 
I 
 can set the values of the combobox to e.g. Option1, Option2, 
Option3 
 etc. and these values are correctly appearing in the combobox 
within 
 the dg.  
 
 What I actually need to do is set the 'selected' value of the 
combobox 
 if it matches the value read from the dataprovider e.g. if the dp 
 value for the cell in row 1 is 'Option3' I want 'Option3' to be 
 automatically selected and if the dp value for the cell in row 2 
 is 'Option99' I want 'Option99' to be automatically selected.  .  
 Currently the value in the combobox in each row is set 
to 'Option1'.
 
 This should be straightforward but I can't work out how to do it.
 
 Thanks in advance.
 
 
 
 
 
 
 
 --
 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] Reading or Embedding SWFs?

2006-03-02 Thread Bruce Eckel



It turns out that Flex2 will not embed SWF files that are pre 8.5 (or maybe pre 8). This is apparently a bug that will be fixed in a later beta (possibly the next one).On 2/28/06, 
Abdul Qabiz [EMAIL PROTECTED] wrote:



Cool! I had heard of the trust files but never tried using it.Thanks Harish for info :)-abdul
On 2/28/06, Harish Sivaramakrishnan 
[EMAIL PROTECTED] wrote:Hi Bruce,For getting rid of the Security Sandbox violation
error that you are getting, you will have toexplicitly trust the swfs / images that you areloading. One way of doing this is the method thatabdul has suggested in his mailalternatively, You could also do this:
Trust an SWF explicitly by adding it to the TrustList. This could be done by adding a cfg file in thefollowing location:C:\Windows\system32\Macromed\Flash\FlashPlayerTrust\TrustedStuff.cfgJust enter the folder which you want to always trust.
For example if one wants to trust C:\Flex, just addthat in the cfg file. You could comment out things byadding a #.The following links have some useful info too:

http://livedocs.macromedia.com/flash/8/main/1604.html
http://flashplatform/dev/projects/maelstrom/specs/localfilesecurity/LocalFileSecurity.cfm
http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf
Hope this helps,Thanks
HarishFlex-QAAdobe India.--- Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi Bruce, Loading local SWF might not be working because of
 Security Sandbox. Try giving the permission to your main to load SWFs from context-menu of Flash Player. Context-menu  Settings  first tab Advanced

 It would show advanced settings manager from macromedia.com, from there you can the directory.
 Though, I expect somebody would confirm this. You
 can also try reading the security white paper for Flash Player 8 here:
http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf
 Things might be different in Macromedia Flash Player 8.5, so information in above white paper might not totally apply. As far as embedding swfs is concerned, I think that
 should work. I don't remember the exact syntax, but if you do quick search to this mailing-list archive, I am sure you would find the exact syntax. Roger has replied many such queries.
 A quick search gave me following results:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20285.html
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20239.html
 Hope that helps... BTW! Are you Bruce Eckel of 
Mindview.net? -abdul On 2/28/06, Bruce Eckel 
[EMAIL PROTECTED]
 wrote:   I'm creating an app that displays SWF slides and plays MP3 files  associated with those slides. When I create this application under  Flexbuilder, at runtime it opens the external SWF
 slide files and plays the  MP3 files just fine. But when I move the application to a different  directory (containing the expected SWFs and MP3s) I get a runtime error
  complaining about loading the SWF files. Even
 stranger is the fact that the  security message is only complaining about loading SWF files from the local  directory. When I comment out the SWF file loading, it's perfectly happy to
  load MP3 files from the local directory.   I've tried a number of experiments, including copying the SWF file from  the directory where flexbuilder creates it (where
 it works) to a different  directory (where it pops up a security message).   I don't know if this is expected behavior or a bug, but if it is expected  behavior then I think I could solve it if I can
 compile the SWF files into  the app instead of having them as separate files, but I don't know how to do  that (and note my previous message about an apparent bug in the @Embed
  command).   I'd be perfectly happy to compile the external SWF slides directly into  the application as some kind of array of images (thus solving the access
  problem), but so far I haven't been able to figure out how to do that. Any  hints would be greatly appreciated.   --  Bruce Eckel  
 --  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 designdevelopment

http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
Computer  softwaredevelopment

http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
Software  design anddevelopment


Re: [flexcoders] Flex and URL variables

2006-03-02 Thread JesterXL





Don't know the Flex 2 way.

For Flex 1.5, I used Kevin Lynch's deep linking 
code.

http://www.klynch.com/archives/76.html

My implementation:
http://www.jessewarden.com/archives/2005/10/code_share_real.html

Basically, _javascript_ will set vars for you and you 
can use Kevin's class to get vars. The are at least 2 other 
implementations I've seen on the net, but this one worked, so I stuck with 
it.

So:

codeid = 
browserState.getValue("codeid");

Allows me to get the codeid value from this 
url:
http://dev.jessewarden.com/flex/codeshare/#codeid=43

And thus I can do stuff with that variable. 
If I want to update the browser's URL to reflect the "state" of the 
app:

browserState.setValue("codeid", 
posts_lb.selectedItem.id);

You can bookmark these links too. There was 
something funky with Firefox where you come from an existing bookmark or 
something, but whatever it was was an extreme use case (sort of).




- Original Message - 
From: Jonathan 
Miranda 
To: flexcoders@yahoogroups.com 
Sent: Thursday, March 02, 2006 6:02 PM
Subject: RE: [flexcoders] Flex and URL variables


Dos



_
Jonathan 
Miranda
Flexible 
Master of the Web
"Try not to become 
a man of success, but a man of value." - Albert 
Einstein
HealthGrades: Guiding 
America to Better 
Healthcare™
NASDAQ: 
HGRD
w 
(720) 963-3832
c 
(707) 761-0868
[EMAIL PROTECTED] 

_
The message contains 
confidential and/or legally privileged information and is intended for use only 
by the indicated addressee. If you are not the named addressee you should 
not disseminate, distribute, or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmissions cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed,arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.




From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of JesterXLSent: Thursday, March 02, 2006 3:55 
PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex and URL 
variables


Flex 1.5 or 
2?



- Original Message - 


From: Jonathan 
Miranda 

To: flexcoders@yahoogroups.com 


Sent: Thursday, 
March 02, 2006 5:49 PM

Subject: 
[flexcoders] Flex and URL variables


Alright, I’ve done this with Flash 
before but I’m wondering how similar it is.Let’s say I start my app @ http://mysite.com/index.mxml?number=3What’s 
the easiest way to get that 3 into a variable in Flex? Using FlashVars in the 
embed/object tags and then somehow do mx.core.application.Application.number as 
my variable?
_
Jonathan 
Miranda
Flexible Master 
of the Web
"Try not to become a man of success, but a 
man of value." - Albert Einstein
HealthGrades: Guiding America 
to Better Healthcare™
NASDAQ: 
HGRD
w (720) 
963-3832
c (707) 
761-0868
[EMAIL PROTECTED] 

_
The message contains confidential 
and/or legally privileged information and is intended for use only by the 
indicated addressee. If you are not the named addressee you should not 
disseminate, distribute, or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmissions cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed,arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.







--
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] Authentication with Macromedia Flex

2006-03-02 Thread allister_dickson







Hi 
Dimitrios,

From 
reading through your earlierposts I get the impression that you are using 
a two methods to authenticate users. Initially, you authenticate the user using 
standard J2EE form based authentication. Then when using a service if you 
receive an authentication fault you use a flex popup window to re authenticate. 
Is this correct?

Also, 
if you get a session time out do you resubmit the original service request after 
re-authentication? If so, what is the best way to generically resubmit the 
request?

Regards,

Allister

- Original Message - 
From: Dimitrios Gianninas 

To: flexcoders@yahoogroups.com 
Sent: Monday, October 10, 2005 12:59 AM
Subject: RE: [flexcoders] Authentication with Macromedia 
Flex

I put theh handling of the 
failed authentication directly in the Services.mxml... simple and 
works.

mx:Script
function 
handleRemoteFault( event ):Void {
 if( 
event.fault.faultcode == "Client.Authentication" || event.fault.faultcode == 
"401" ) {
// do whatever you want here, its a free 
country
 }
 else 
{
 
event.call.faultHandler( event );
 
}
}
/mx:Script


Dimitrios "Jimmy" Gianninas
RIADeveloper
Optimal Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas 
KnudsenSent: Friday, October 07, 2005 9:53 AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Authentication 
with Macromedia Flex
so, I got auth working using the approach you 
mentionedCallbackHandler handler = new SimpleCallbackHandler( userName, password 
); Subject subject = Authentication.login( handler 
); ServletAuthentication.runAs( subject, httpRequest 
);silightly different looking under JRun of course. Now, I'm 
horribly stuck on getting the roles of the user after logging in. I have 
set up Roles under teh JMC, JRuns instance manager. I tested it all with 
BASIC auth, so I know the autentication and authorisation are working. 
I've been working all week on getting the roles for the user after 
authenticating and can't find squat of an example. Any hints 
perhaps?On a similar note... Using service.setUserNamePassword() 
in Flex I know it will authenticate a user, does it also authorise the user by 
gathering up the roles defined in the containers JAAS config?and one 
more concerning cairingrom to use service.setUserNamePassword() effectively, it appears you would 
need to modify the onfault event of a service in services.mxml file to check for 
a failed authentication. If not here then every command using the service 
would need this check, eh? What other way can this be done possibly? 
Create a AuthCommand abstract class to extend or 
something?DK
On 10/7/05, Dimitrios 
Gianninas [EMAIL PROTECTED] 
wrote: 

  Ah yes about accessing the session, I read that article as well. I plan 
  to change this in the future, just haven't gotten there 
  yet.
  
  Dimitrios "Jimmy" Gianninas
  RIADeveloper
  Optimal Payments 
Inc.
  
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas 
  KnudsenSent: Thursday, October 06, 2005 3:54 PM 
  To: flexcoders@yahoogroups.comSubject: Re: 
  [flexcoders] Authentication with Macromedia 
  Flex
  
  http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=9636f34epss=rss_flex_9636f34e 
  there.Thanks for the hint about using JAAS via 
  CallBackHandler, etc in th eother thread...I have not got it working 100% on 
  JRun yet...but still banging away at it.DK
  On 9/26/05, Dimitrios 
  Gianninas [EMAIL PROTECTED] wrote: 
  
Where did you hear that it was not the approach to 
take? We have it working this way for one of our 
projects.

Yes, when you user source="servlet", you must configure 
the source attribute in the remote-objects section of the flex-config.xml. 
You have to set it to the name of your context. So if your web application 
context is "localhost:8080/batman", then you must set:

sourcebatman/source

or for no security at all (don't do this in 
production):

source*/source

Dimitrios "Jimmy" Gianninas
RIADeveloper
Optimal Payments 
Inc.



From: flexcoders@yahoogroups.com [mailto: 
flexcoders@yahoogroups.com] On Behalf Of Douglas 
KnudsenSent: Sunday, September 25, 2005 9:51 PMTo: flexcoders@yahoogroups.com Subject: Re: 
[flexcoders] Authentication with Macromedia Flex

I was under the impression this was not the approach to take in 
1.5. IIRC, when messing with source= "servlet" I had to add some info to the flex.config 
file. Can you comment on this? Just curious as there seems to be 
so many ways to do this. DK
On 9/24/05, Dimitrios 
Gianninas [EMAIL PROTECTED]  wrote: 


  
  Ok here is how to do this.
  
  Basically you will have a login.jsp page that will 
  authenticate the user using FORM authentication. Once the user has logged 
  in successfully, then you must retrieve the user 

[flexcoders] Re: visual children must implement mx.core.IUIComponent

2006-03-02 Thread sufibaba
Thanks Gordon,

That worked.  One other question regarding Sprite Drag and Drop.

Situation:  Have a box drawn by the Shape Class which is in a Sprite.   
I have the following code:

 Draw Rectangle --

private function draw (name:String) {

  if (w  0  h  0) {

var sprite:Sprite = new Sprite();
sprite.name = name;
trace(name=  + name);
addChild(sprite);
 
var child:Shape = new Shape();
child.graphics.beginFill(0xff);
child.graphics.lineStyle(.5, 0x00);
child.graphics.drawRect(0, 0, w, h);
child.graphics.endFill();
sprite.addChild(child);
   
sprite.addEventListener(MouseEvent.MOUSE_DOWN, dragObject);
  }
 
}

--- dragObject ---

private function dragObject(event:MouseEvent)
{
 
if (event.target.name == obj){

var
dragInitiator:UIComponent=UIComponent(event.currentTarget);
var ds:DragSource = new DragSource();

ds.addData(name,format);

var canvasProxy:Sprite = new Sprite();
canvasProxy.width=30;
canvasProxy.height=30;

DragManager.doDrag(dragInitiator, ds, event);

}
}


When I try to drag this object, I get the following Error:

Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to
mx.core.UIComponent

If I don't cast the sprite to the UIComponent, I still get the same
error.  It seems that the DragManager likes UIComponent types.

What would be a solution do you think.

Cheers,

Tim






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

 Make ImageViewer extend UIComponent instead of Sprite. In order to do
 stuff like automatic layout, Flex containers expect their content
 children to be UIComponents.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sufibaba
 Sent: Thursday, March 02, 2006 11:11 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] visual children must implement
 mx.core.IUIComponent
 
 Hi All,
 
 I have the following:
 
 1. ImageViewer.as
 2. main.xml
 
 in ImageViewer.as, I have this class definition:
 
 public class ImageViewer extends Sprite {
public funtion ImageViewer(){
 // code
}
   // other functions and code
 }
 
 
 in main.xml, I am calling:  ImageViewer/
 
 The error I am getting is:
 -
 component declaration are now allowed in here.(Note: visual children
 must implement mx.core.IUIComponent)
 -
 Does anone know what the problem might be.
 
 Any help is appreciated,
 
 Cheers,
 
 Tim
 
 
 
 
 
 
 --
 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] Authentication with Macromedia Flex

2006-03-02 Thread Dimitrios Gianninas

Hi Allister,

Ok let me clear things up for you. We use WebLogic 8.1 around here, in Flex I 
present a login screen to the user where they enter their credentials. These 
credentials are passed to the server (using a RemoteObject - it is not secure, 
but only has one method doLogin() ) where using a WebLogic API I authenticate 
the user, so WebLogic knows who he is and a HTTP session is created.

Then all the other RemoteObjects are locked down and when the session expires, 
I kick them back out to the login screen (where I wrote below // do whatever 
you want here, its a free country), all still in Flex.

Does this make more sense?

Dimitrios Jimmy Gianninas
Optimal Payments

-Original Message-
From: flexcoders@yahoogroups.com on behalf of allister_dickson
Sent: Thu 3/2/2006 6:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Authentication with Macromedia Flex
 
 
Hi Dimitrios,
 
From reading through your earlier posts I get the impression that you are
using a two methods to authenticate users. Initially, you authenticate the
user using standard J2EE form based authentication. Then when using a
service if you receive an authentication fault you use a flex popup window
to re authenticate. Is this correct? 
 
Also, if you get a session time out do you resubmit the original service
request after re-authentication? If so, what is the best way to generically
resubmit the request?
 
Regards,
 
Allister
 
- Original Message - 
From: Dimitrios Gianninas mailto:[EMAIL PROTECTED]  
To: flexcoders@yahoogroups.com 
Sent: Monday, October 10, 2005 12:59 AM
Subject: RE: [flexcoders] Authentication with Macromedia Flex

I put theh handling of the failed authentication directly in the
Services.mxml... simple and works.
 
mx:Script
function handleRemoteFault( event ):Void {
if( event.fault.faultcode == Client.Authentication ||
event.fault.faultcode == 401 ) {
// do whatever you want here, its a free country
}
else {
event.call.faultHandler( event );
}
}
/mx:Script
 
 
Dimitrios Jimmy Gianninas
RIA Developer
Optimal Payments Inc.
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Friday, October 07, 2005 9:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Authentication with Macromedia Flex


so, I got auth working using the approach you mentioned

CallbackHandler handler = new SimpleCallbackHandler( userName, password );
 Subject subject = Authentication.login( handler );
 ServletAuthentication.runAs( subject, httpRequest );

silightly different looking under JRun of course.  Now, I'm horribly stuck
on getting the roles of the user after logging in.  I have set up Roles
under teh JMC, JRuns instance manager.  I tested it all with BASIC auth, so
I know the autentication and authorisation are working.  I've been working
all week on getting the roles for the user after authenticating and can't
find squat of an example.  Any hints perhaps?

On a similar note...  Using service.setUserNamePassword() in Flex I know it
will authenticate a user, does it also authorise the user by gathering up
the roles defined in the containers JAAS config?


and one more concerning cairingrom  to use service.setUserNamePassword()
effectively, it appears you would need to modify the onfault event of a
service in services.mxml file to check for a failed authentication.  If not
here then every command using the service would need this check, eh?  What
other way can this be done possibly?  Create a AuthCommand abstract class to
extend or something?

DK


On 10/7/05, Dimitrios Gianninas [EMAIL PROTECTED]
wrote: 

Ah yes about accessing the session, I read that article as well. I plan to
change this in the future, just haven't gotten there yet.

 
Dimitrios Jimmy Gianninas
RIA Developer
Optimal Payments Inc.
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Thursday, October 06, 2005 3:54 PM 

To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Authentication with Macromedia Flex



http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=9636f34e
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=9636f34epss=r
ss_flex_9636f34e pss=rss_flex_9636f34e 
there.

Thanks for the hint about using JAAS via CallBackHandler, etc in th eother
thread...I have not got it working 100% on JRun yet...but still banging away
at it.

DK


On 9/26/05, Dimitrios Gianninas [EMAIL PROTECTED]
wrote: 

Where did you hear that it was not the approach to take? We have it working
this way for one of our projects.
 
Yes, when you user source=servlet, you must configure the source attribute
in the remote-objects section of the flex-config.xml. You have to set it to
the name of your context. So if your web application context is
localhost:8080/batman, then you must set:
 
sourcebatman/source
 
or for no security at all (don't do this in production):
 

[flexcoders] Re: repost - Memory leak repeatedly assigning new series to a chart. (2.0b1)

2006-03-02 Thread thunderstumpgesatwork
Ely, I've sent an email directly to you as well, but I thought it may
be good to post it too.

Here is a simple demonstration of the memory leak when adding and
deleting series.

There are 4 components to this app: start/stop buttons, a ColumnChart,
and a log window (to display the current loop counter)

The script to the app has 3 important functions: SeriesDelete() and
SeriesAdd() which (attempt to) delete all series from the chart, and
add a series to the chart. The function onRefresh() deletes the series
from the chart, gets a new data array, and adds series back onto the
chart. A timer is used to put in a .5 second delay between refreshes.

ActionScript member variables can be used to set the number of series,
the number of data points, and the number of iterations.

cheers,
Thunder
//-

?xml version=1.0 encoding=iso-8859-1?
mx:Application
xmlns:mx=http://www.macromedia.com/2005/mxml;
width=100% height=100% 

mx:HBox
mx:Button id=refresh label=start click=onRefresh() /
mx:Button id=cancel label=stop click={refreshTimer.stop();} /
/mx:HBox
mx:ColumnChart id=mainChart width=100% height=100%/
mx:TextArea width=403 height=32 editable=false id=log
wordWrap=false/

mx:Script
![CDATA[
import mx.charts.*;
import mx.charts.chartClasses.*;
import mx.charts.series.*;
import mx.collections.*;
import flash.util.Timer;
import flash.events.*;

private var iNumReps:Number=300;
private var iNumDataPoints:Number=15;
private var iNumSeries:Number=50;

private var iCountRep:Number=0;
private var refreshTimer:Timer=new Timer(500,1);

public function onRefresh(event:Event=null):void
{
if (event==null)
{
iCountRep=0;
refreshTimer.addEventListener(TimerEvent.TIMER, onRefresh);
}

// generate a new dataset
var arData:Array = getRandomData();

// delete the old series
SeriesDelete(mainChart);

// add new series
for (var countSeries:Number=0;countSeriesiNumSeries;countSeries++)
{
SeriesAdd(mainChart,arData,countSeries);
}

// now wait for 1/2 second, and repeat
iCountRep++;
log.text=iteration  + iCountRep +  complete.\n;
if (iCountRep  iNumReps)
{
refreshTimer.reset();
refreshTimer.start();
}
else
{
refreshTimer.stop();
}

}

public function SeriesDelete( thisChart:ChartBase ):void
{
// try to clean up the series by deleting them from the array using
splice
var i:Number = thisChart.series.length;
while(i--)
{
var obj:Array = thisChart.series.splice(i, 1);
var oSeries:Series = null;
if (obj[0] is Series)
{
oSeries = Series(obj[0]);
if (oSeries.dataProvider is ListCollectionView)
{
var oView:ListCollectionView =
ListCollectionView(oSeries.dataProvider);
oView.removeAll();
if (oView.list != null)
oView.list.removeAll();
oView.release();
delete oView.list;
oView=null;
}
delete oSeries.dataProvider;
oSeries.dataProvider=null;
delete oSeries;
oSeries=null;
}
obj=null;
}
thisChart.series = new Array();
}

public function SeriesAdd(thisChart:ChartBase, data:Array,
seriesIndex:Number):void
{
var dp:ArrayCollection = new ArrayCollection(data);
var sa:Array= 
thisChart.series
var cSeries:ColumnSeries= new ColumnSeries();
cSeries.yField  = series + 
seriesIndex;
cSeries.name= series + 
seriesIndex;
cSeries.dataProvider= dp;

sa.push( cSeries );
thisChart.series = sa;
//  this.type = stacked;

}

public function getRandomData():Array
{
// generate 15 data points on 50 series (columns)
var newValues:Array = new Array();
for (var countData:Number=0;countDataiNumDataPoints;countData++)
{
var oData:Object = new Object();
for (var countSeries:Number=0; countSeries  iNumSeries; 
countSeries++)
{
// generate a random-ish value to use

oData[series+countSeries]=Number(1+Math.random()*countSeries*100);
}
// add it to the array
newValues.push(oData);
}
return newValues;
}

]]
/mx:Script

[flexcoders] Re: Flex 1.5 Hotfix

2006-03-02 Thread Eric Raymond
The url had very little information on the particulars of the hot fix.

Two questions that arise are:

1) What is the exact behavior our customers will see if we do not
apply this hot fix?  (One assumes the behavior will be the same as
unpatched IE after the hotfix?)

2) What does the generated html now look like (for those of us who do
not use the proxy and have to create it manually)?













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

2006-03-02 Thread John Dowdell
Eric Raymond wrote:
 The url had very little information on the particulars of the hot fix. 
 Two questions that arise are:
 
 1) What is the exact behavior our customers will see if we do not
 apply this hot fix?  (One assumes the behavior will be the same as
 unpatched IE after the hotfix?)
 
 2) What does the generated html now look like (for those of us who do
 not use the proxy and have to create it manually)?

I understand that there will soon be a link in that Flex-only technote 
to the larger Active Content Developer Center, which does contain 
background on user experience, Microsoft source documents, more:
http://www.macromedia.com/devnet/activecontent/

(I'm not sure whether they show the generated markup from the various 
JavaScript solutions, but I do recall a user-experience article there.)

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, 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: Flex 1.5 Hotfix

2006-03-02 Thread Eric Raymond
FYI, I found this article: 

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp

If I understand it correctly, the fict is to insert the embed tag
programatically via an *external* javascript file.

Also, the readme of the hotfix mentions a few other changes which only
apply to some app servers.  Are there any other benefits of the
hotfix? (We'll, one can wish)



Oh the pains of patents


FYI, here's what the readme says:

This hotfix rollup address support for IE Active Content changes as
well as all known issues when deploying

Flex 1.5 on SAP Netweaver 6.3 and ATG Dynamo 6.2 and 6.3.



bugs fixed:

Bug Support for IE Active Content changes.

110888  SAP NetWeaver: Problem with contentType and converting client
request to endpoint request

  In several cases HTTPService calls were losing body data from the
Flex proxy.

20  ATG Dynamo: Unable to use HTTPS and IE

110969  ATG Dynamo: OCC fails, the context property home.dir seems to
include the welcome index.htm file

110966  ATG Dynamo: RSL sample in the sample app fail to load Runtime
Shared Libraries

40: Http proxy service doesn't handle double byte characters
properly and double byte data gets

  corrupt.  The problem occurred when ' contentType=application/xml'.

118448  Allow OEM license to be specified on each request by
'flexlicense' parameter which can 

  be either a servlet attribute or a command-line parameter.  The
readme in the OEM kit has more 

  details.

118840  Allow jsse.jar removal






--
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: Authentication with Macromedia Flex

2006-03-02 Thread Dave Wolf
I am trying to understand why we all keep trying to make this so
complex rather then taking advantage of the functionality that is
already in Flex and your container (JRun, Tomcat etc).  J2EE has a
resonably simple model for handling authentication and access control
that alleviates the requirement to write your own login logic, to
write specific login remote objects, use custom authentication etc.  

Effectively you only need to do the following.

1) Secure specific URL patterns via settings in the web applications
deployment descriptor (web.xml).  I have in the past, and would now be
more then happy to show how to configure these.

2) Upon trying to load a secured URL pattern, the container will
challenge you by presenting a login screen.  We have developed these
screens in Flex.  Effectively you create a simple form with two input
fields name j_username and j_password.  You post those values to the
url /j_security_check.  Now the container handles all your authentication.

Once completed the container will provide you access to the secured
resource and will populate all the in-memory structures to completely
support runtime interrogation of securerity context.

Flex integrates so well and so transparantly with J2EE and its
security model it is foolish not to take advantage of that.

I dunno I'm an odd duck.  I like writing less code :)

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY


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

 
 Hi Allister,
 
 Ok let me clear things up for you. We use WebLogic 8.1 around here,
in Flex I present a login screen to the user where they enter their
credentials. These credentials are passed to the server (using a
RemoteObject - it is not secure, but only has one method doLogin() )
where using a WebLogic API I authenticate the user, so WebLogic knows
who he is and a HTTP session is created.
 
 Then all the other RemoteObjects are locked down and when the
session expires, I kick them back out to the login screen (where I
wrote below // do whatever you want here, its a free country), all
still in Flex.
 
 Does this make more sense?
 
 Dimitrios Jimmy Gianninas
 Optimal Payments
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of allister_dickson
 Sent: Thu 3/2/2006 6:13 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Authentication with Macromedia Flex
  
  
 Hi Dimitrios,
  
 From reading through your earlier posts I get the impression that
you are
 using a two methods to authenticate users. Initially, you
authenticate the
 user using standard J2EE form based authentication. Then when using a
 service if you receive an authentication fault you use a flex popup
window
 to re authenticate. Is this correct? 
  
 Also, if you get a session time out do you resubmit the original service
 request after re-authentication? If so, what is the best way to
generically
 resubmit the request?
  
 Regards,
  
 Allister
  
 - Original Message - 
 From: Dimitrios Gianninas mailto:[EMAIL PROTECTED]  
 To: flexcoders@yahoogroups.com 
 Sent: Monday, October 10, 2005 12:59 AM
 Subject: RE: [flexcoders] Authentication with Macromedia Flex
 
 I put theh handling of the failed authentication directly in the
 Services.mxml... simple and works.
  
 mx:Script
 function handleRemoteFault( event ):Void {
 if( event.fault.faultcode == Client.Authentication ||
 event.fault.faultcode == 401 ) {
 // do whatever you want here, its a free country
 }
 else {
 event.call.faultHandler( event );
 }
 }
 /mx:Script
  
  
 Dimitrios Jimmy Gianninas
 RIA Developer
 Optimal Payments Inc.
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Douglas Knudsen
 Sent: Friday, October 07, 2005 9:53 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Authentication with Macromedia Flex
 
 
 so, I got auth working using the approach you mentioned
 
 CallbackHandler handler = new SimpleCallbackHandler( userName,
password );
  Subject subject = Authentication.login( handler );
  ServletAuthentication.runAs( subject, httpRequest );
 
 silightly different looking under JRun of course.  Now, I'm horribly
stuck
 on getting the roles of the user after logging in.  I have set up Roles
 under teh JMC, JRuns instance manager.  I tested it all with BASIC
auth, so
 I know the autentication and authorisation are working.  I've been
working
 all week on getting the roles for the user after authenticating and
can't
 find squat of an example.  Any hints perhaps?
 
 On a similar note...  Using service.setUserNamePassword() in Flex I
know it
 will authenticate a user, does it also authorise the user by
gathering up
 the roles defined in the containers JAAS config?
 
 
 and one more concerning cairingrom  to use
service.setUserNamePassword()
 effectively, it appears you 

RE: [flexcoders] Reading or Embedding SWFs?

2006-03-02 Thread Roger Gonzalez





Not so.

Flex does support embedding older SWFs. The only 
restriction is that because we can't mix-n-match bytecode formats, we strip out 
AS2 code. This is not likely to change.

(In fact, Flex will not support embedding 8.5 and newer 
SWFs, because all assets are now classes, and we need to link classes, not embed 
them. You will have to either dynamically load 8.5 SWFs, or else build 
SWCs instead, and just link to them. No need to 
embed.)

Embedded SWFs have nothing to do with trust files, so I'm 
not sure if everybody is talking about the same thing here.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Bruce 
  EckelSent: Thursday, March 02, 2006 2:38 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Reading or 
  Embedding SWFs?
  It turns out that Flex2 will not embed SWF files that are pre 8.5 
  (or maybe pre 8). This is apparently a bug that will be fixed in a later beta 
  (possibly the next one).
  On 2/28/06, Abdul 
  Qabiz [EMAIL PROTECTED] 
wrote:
  
Cool! I had heard of the trust files but never 
tried using it.Thanks Harish for info :)-abdul

On 2/28/06, Harish 
Sivaramakrishnan  
[EMAIL PROTECTED] wrote:
Hi 
  Bruce,For getting rid of the Security Sandbox violation error 
  that you are getting, you will have toexplicitly trust the swfs / 
  images that you areloading. One way of doing this is the method 
  thatabdul has suggested in his mailalternatively, You could 
  also do this: Trust an SWF explicitly by adding it to the 
  TrustList. This could be done by adding a cfg file in thefollowing 
  location:C:\Windows\system32\Macromed\Flash\FlashPlayerTrust\TrustedStuff.cfgJust 
  enter the folder which you want to always trust. For example if one 
  wants to trust C:\Flex, just addthat in the cfg file. You could 
  comment out things byadding a #.The following links have some 
  useful info too:http://livedocs.macromedia.com/flash/8/main/1604.htmlhttp://flashplatform/dev/projects/maelstrom/specs/localfilesecurity/LocalFileSecurity.cfm 
  http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
  Hope this helps,Thanks HarishFlex-QAAdobe 
  India.--- Abdul Qabiz [EMAIL PROTECTED] wrote: Hi 
  Bruce, Loading local SWF might not be working because of 
   Security Sandbox. Try giving the permission to your main 
  to load SWFs from context-menu of Flash 
  Player. Context-menu  Settings  first tab 
  Advanced  It would show advanced settings manager 
  from macromedia.com, from there 
  you can the directory.  Though, I expect somebody 
  would confirm this. You can also try reading the security 
  white paper for Flash Player 8 here:http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
   Things might be different in Macromedia Flash 
  Player 8.5, so information in above white paper might not 
  totally apply. As far as embedding swfs is concerned, I 
  think that  should work. I don't remember the exact 
  syntax, but if you do quick search to this mailing-list 
  archive, I am sure you would find the exact syntax. Roger has 
  replied many such queries.  A quick search gave me 
  following results:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20285.html 
  http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20239.html 
   Hope that helps... BTW! Are you Bruce 
  Eckel of Mindview.net? 
  -abdul On 2/28/06, Bruce Eckel 
   
  [EMAIL PROTECTED] wrote:  
   I'm creating an app that displays SWF "slides" and plays MP3 
  files  associated with those slides. When I create 
  this application under  Flexbuilder, at runtime it 
  opens the external SWF  slide files and plays the  MP3 
  files just fine. But when I move the application to a 
  different  directory (containing the expected SWFs and 
  MP3s) I get a runtime error  complaining about loading 
  the SWF files. Even  stranger is the fact that the  
  security message is only complaining about loading SWF files from 
  the local  directory. When I comment out the SWF file 
  loading, it's perfectly happy to   load MP3 files from the 
  local directory.   I've tried a number of 
  experiments, including copying the SWF file from  the 
  directory where flexbuilder creates it (where  it works) to a 
  different  directory (where it pops up a security 
  message).   I don't know if this is expected 
  behavior or a bug, but if it is expected  behavior 
  then I think I could solve it if I can  compile the SWF files 
  into  the app instead of having them as separate 
  files, but I don't know how to do  that (and note my 
  previous message about an apparent bug in the @Embed   
  command).   I'd be perfectly happy to compile the 
  external 

RE: [flexcoders] Re: Flex2: AS Number to Java Long mapping

2006-03-02 Thread Peter Farland
ActionScript 3 now has Number, int and uint. None of them can be null.
Their value becomes 0 if set to null. If set to (or left as) undefined,
Number will be NaN and int and uint will be 0.

However, since Java does have both primitives and Object representations
of Number, we're going to make the change you request so that if we do
receive a null in Java then on binding to the methods being invoked
we'll set the Object representations of the Number args as null instead
of 0. This will mean that you'll have to actually send null (as you
can't rely on the ActionScript 3 types to store this value for you).


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Wolf
Sent: Thursday, March 02, 2006 3:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex2: AS Number to Java Long mapping

But a Java primitive does not.  That's where it gets confusing.  AS has
only one Number type, not two like Java.  Since a primitive CANNOT be
null, you have to stick with the least common denominator ya know?

CORBA had this too, hence the structure solution.

Unless AS has both a primitive and an Object numeric type I dont know
how else to do the data type mapping but to stick with a 0?

--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY


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

 Yep, that's the issue. Actionscript has the concept of null. Java
has the
 concept of null. It would seem that AMF/Flex should be able to map
the two
 correctly.
 
 -
 Jim Schneider
 KJ Interactive, Inc.
 1-877-370-6906
 1-612-605-5399-Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Dave Wolf
 Sent: Thursday, March 02, 2006 1:46 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex2: AS Number to Java Long mapping
 
 
 The core of the issue is that the deserializer cant seperate a 
 primitive from an Object wrapper right?  I mean mapping a null onto a 
 long of 0 is correct.  The issue youre having is you want a Long which

 itsel is null right?
 
 I can say you'd face this issue in CORBA all the time too.  The 
 solution in CORBA was to pass a structure that had an isNull property.
 
 struct NullableLong
 {
   long value;
   bool isNull;
 }
 
 Now you would set the value to zero but the isNull to true.
 
 Just how we solved this back in the CORBA days :)
 
 Passing nulls across languages (hence the CORBA tie) is always an ugly

 issue in distributed computing.
 
 
 --
 Dave Wolf
 Cynergy Systems, Inc.
 Macromedia Flex Alliance Partner
 http://www.cynergysystems.com
 
 Email:  [EMAIL PROTECTED]
 Office: 866-CYNERGY
 
 
 
 
 --- In flexcoders@yahoogroups.com, Jim Schneider jschneider@
wrote:
 
  Same happens with NaN. Do you (Adobe) have any thoughts as to
 whether this
  is worthy of a fix, or will we need to remember to add the logic
 to check
  for 0 in all of our Java objects.
  
   
  
  Thanks,
  
   
  
  Jim
  
   
  
  -
  
  Jim Schneider
  
  KJ Interactive, Inc.
  
  1-877-370-6906
  
  1-612-605-5399
  
_
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Matt Chotin
  Sent: Sunday, February 26, 2006 8:12 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Flex2: AS Number to Java Long mapping
  
   
  
  What happens if you set the Number to NaN in AS?  I believe null
 will coerce
  to 0 in AS3.
  
   
  
_
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Jim Schneider
  Sent: Sunday, February 26, 2006 9:20 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex2: AS Number to Java Long mapping
  
   
  
  I'm experiencing the following behavior. I set an AS Number variable
 to null
  prior to sending to a remote object. On the backend (Java), the
 Number is
  converted to a 0. The expected data type on the Java end is a Long
 (object,
  not primitive). This is causing us problems since we expect a null
Long
  object to be represented as null in the database, not 0, and as an
 indicator
  of a new object that needs to be inserted rather than updated.
  
   
  
  Is this expected behavior/mapping? Is it a bug? I can fix it on the
 backend
  with some additional logic, but I'd rather not have to do that. 
  
   
  
  Thoughts?
  
   
  
  Thanks.
  
   
  
  -
  
  Jim Schneider
  
  KJ Interactive, Inc.
  
  1-877-370-6906
  
  1-612-605-5399
  
   
  
  
  
  
  --
  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
 


Re: [flexcoders] Reading or Embedding SWFs?

2006-03-02 Thread JesterXL





It doesn't import your frame labels either, but it 
DOES work. Word of advice; embed your movieclip asset to a class rather 
than a variable.


[Embed(source="your.swf")]
public class YouClass extends 
MovieClip

vs. 

[Embed(source="your.swf#SymbolName")]
public var MySymbol:Class;

- Original Message - 
From: Roger Gonzalez 

To: flexcoders@yahoogroups.com 
Sent: Thursday, March 02, 2006 9:35 PM
Subject: RE: [flexcoders] Reading or Embedding SWFs?

Not so.

Flex does support embedding older SWFs. The only 
restriction is that because we can't mix-n-match bytecode formats, we strip out 
AS2 code. This is not likely to change.

(In fact, Flex will not support embedding 8.5 and newer 
SWFs, because all assets are now classes, and we need to link classes, not embed 
them. You will have to either dynamically load 8.5 SWFs, or else build 
SWCs instead, and just link to them. No need to 
embed.)

Embedded SWFs have nothing to do with trust files, so I'm 
not sure if everybody is talking about the same thing here.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Bruce 
  EckelSent: Thursday, March 02, 2006 2:38 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Reading or 
  Embedding SWFs?
  It turns out that Flex2 will not embed SWF files that are pre 8.5 
  (or maybe pre 8). This is apparently a bug that will be fixed in a later beta 
  (possibly the next one).
  On 2/28/06, Abdul 
  Qabiz [EMAIL PROTECTED] 
  wrote: 
  
Cool! I had heard of the trust files but never 
tried using it.Thanks Harish for info :)-abdul

On 2/28/06, Harish 
Sivaramakrishnan  
[EMAIL PROTECTED] wrote: 
Hi 
  Bruce,For getting rid of the Security Sandbox violation error 
  that you are getting, you will have toexplicitly trust the swfs / 
  images that you areloading. One way of doing this is the method 
  thatabdul has suggested in his mailalternatively, You could 
  also do this: Trust an SWF explicitly by adding it to the 
  TrustList. This could be done by adding a cfg file in thefollowing 
  location:C:\Windows\system32\Macromed\Flash\FlashPlayerTrust\TrustedStuff.cfgJust 
  enter the folder which you want to always trust. For example if one 
  wants to trust C:\Flex, just addthat in the cfg file. You could 
  comment out things byadding a #.The following links have some 
  useful info too:http://livedocs.macromedia.com/flash/8/main/1604.htmlhttp://flashplatform/dev/projects/maelstrom/specs/localfilesecurity/LocalFileSecurity.cfm 
  http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
  Hope this helps,Thanks HarishFlex-QAAdobe 
  India.--- Abdul Qabiz [EMAIL PROTECTED] wrote: Hi 
  Bruce, Loading local SWF might not be working because of 
   Security Sandbox. Try giving the permission to your main 
  to load SWFs from context-menu of Flash 
  Player. Context-menu  Settings  first tab 
  Advanced  It would show advanced settings manager 
  from macromedia.com, from there 
  you can the directory.  Though, I expect somebody 
  would confirm this. You can also try reading the security 
  white paper for Flash Player 8 here:http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
   Things might be different in Macromedia Flash 
  Player 8.5, so information in above white paper might not 
  totally apply. As far as embedding swfs is concerned, I 
  think that  should work. I don't remember the exact 
  syntax, but if you do quick search to this mailing-list 
  archive, I am sure you would find the exact syntax. Roger has 
  replied many such queries.  A quick search gave me 
  following results:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20285.html 
  http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20239.html 
   Hope that helps... BTW! Are you Bruce 
  Eckel of Mindview.net? 
  -abdul On 2/28/06, Bruce Eckel 
   
  [EMAIL PROTECTED] wrote:  
   I'm creating an app that displays SWF "slides" and plays MP3 
  files  associated with those slides. When I create 
  this application under  Flexbuilder, at runtime it 
  opens the external SWF  slide files and plays the  MP3 
  files just fine. But when I move the application to a 
  different  directory (containing the expected SWFs and 
  MP3s) I get a runtime error  complaining about loading 
  the SWF files. Even  stranger is the fact that the  
  security message is only complaining about loading SWF files from 
  the local  directory. When I comment out the SWF file 
  loading, it's perfectly happy to   load MP3 files from the 
  local directory.   I've tried a number of 
  experiments, including copying the SWF file from  the 
  directory where flexbuilder creates it (where  it works) to a 
  different  

[flexcoders] Understanding UIComponent

2006-03-02 Thread Bill Lane





I'm just getting started with Flex Beta. We are 
particularlyinterested in being able to create custom components using 
AS3. So Iam keen to get my head around the structure of 
UIComponent. In AS2 Isaw an excellent diagram that explained the 
sequence that methods wereexecuted and what should be done with each. 
I have been looking for asimilar diagram for AS3 with no luck. 
Consequently I've had a go myself.

Firstly, does anyone know of a good resource (other than the 
AS3language reference which has become my constant companion) with 
thisinformation. OR Could someone have a look at my drawing(http://www.geekglue.com/media/swf/uicomponent.htm) 
and let me know ifI'm on the right track.

Bill Lane





--
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/Coldfusion connectivity test app

2006-03-02 Thread anopres
I found the issue.  CF is returning the object type in all lowercase,
so instead of seeing com.mycompany.myapp.model.TestVO, I see
com.mycompany.myapp.model.testvo.

Is there a setting in one of the config files that would preserve the
case?  I currently have version 7,0,2,126814 of CF installed.

If I change everything to lowercase, it works correctly.

Any thoughts?

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

 To get a typed object on the Flex side, there is nothing specific to
do, you
 only need to correctly define :
 - in the CFC VO , all the cfproperty,
 Ex. : cfproperty name=someString type=String /
 - in the service CFC cffunction, the correct returnType,
 Ex. : returntype=com.mycompany.myapp.model.TestVO
 - in the AS3 VO, the alias metadata,
 Ex. : [RemoteClass(alias=com.mycompany.myapp.model.TestVO)]
 - in the AS3 VO, all the public var properties
 Ex. : public var someString:String;
 
 You might also check 2 things, to see what's going on :
 - on the ColdFusion server side, check the CF Adapter logs in
 CFusionMX7/runtime/logs/coldfusion-out.log,
 - on the Flex client side, install ServiceCapture,
 http://kevinlangdon.com/serviceCapture/, you will see if the returned
 objects are correctly typed.
 
 Benoit Hediard
 
 -Message d'origine-
 De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
De la
 part de anopres
 Envoyé : jeudi 2 mars 2006 05:42
 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] Re: Flex/Coldfusion connectivity test app
 
 How do you use the typed object that cf returns?  All I seemt to get
is a
 generic object on the Flex side.  Do you have to run through a bunch
of set
 functions to move the properties returned into a pre-existing .as typed
 object?
 
 Sorry for the noob question, but this one has been bugging me for a
while.
 
 --- In flexcoders@yahoogroups.com, Benoit Hediard ben@ wrote:
 
  Since some people seems to have issues to use the Flex/ColdFusion 
  connectivity, here is a sample app to test your connectivity.
  
  
  ColdFusion / Server side
  
  
  Save the following value object CFC in 
  {wwwroot}/com/mycompany/myapp/model/TestVO.cfc
  cfcomponent
  
  cfproperty name=someString type=String / cfproperty 
  name=someNumber type=Numeric /
  
  cffunction name=init returntype=com.mycompany.myapp.model.TestVO
  cfscript
  this.someString = test;
  this.someNumber = 0;
  /cfscript
  cfreturn this /
  /cffunction
  
  /cfcomponent
  
  Save the following remote service CFC in 
  {wwwroot}/com/mycompany/myapp/service/TestService.cfc
  cfcomponent
  
  cffunction name=getArray access=remote returntype=Array
  cfscript
  var data = arrayNew(1);
  arrayAppend(data, createObject(component, 
  com.mycompany.myapp.model.TestVO).init());
  arrayAppend(data, createObject(component, 
  com.mycompany.myapp.model.TestVO).init());
  /cfscript
  cfreturn data /
  /cffunction
  
  cffunction name=getStruct access=remote returntype=Struct
  cfscript
  var data = structNew();
  data.firstData = createObject(component, 
  com.mycompany.myapp.model.TestVO).init();
  data.secondData = createObject(component, 
  com.mycompany.myapp.model.TestVO).init();
  /cfscript
  cfreturn data /
  /cffunction
  
  cffunction name=receiveAndReturnVO access=remote
  returntype=com.mycompany.myapp.model.TestVO
  cfargument name=vo type=com.mycompany.myapp.model.TestVO
  cfreturn arguments.vo
  /cffunction
  
  /cfcomponent
  
  --
  Flex / Client side
  --
  
  Save the following value object in {some test 
  project}/com/mycompany/myapp/model/TestVO.as
  package com.mycompany.myapp.model {
  
  [Bindable]
  [RemoteClass(alias=com.mycompany.myapp.model.TestVO)]
  
  public class TestVO {
  
  public var someString:String;
  public var someNumber:int;
  
  public function TestVO() {
  someString = ;
  someNumber = 0;
  }
  
  }
  
  }
  
  Save the following test application in Flex Builder 2 {some test 
  project}/TestConnectivity.mxml ?xml version=1.0 encoding=utf-8? 
  mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
 xmlns=*
  
  mx:RemoteObject id=testService
  destination=ColdFusion
  result=onResult(event)
  source=com.mycompany.myapp.service.TestService  /
  
  mx:Script
  ![CDATA[
  import com.mycompany.myapp.model.TestVO;
  import mx.controls.Alert;
  import mx.rpc.events.ResultEvent;
  import mx.utils.ObjectUtil;
  
  private function onResult(event:ResultEvent){
 
 Alert.show(ObjectUtil.toString(event.result));
  }
  ]]
  

RE: [flexcoders] Re: Authentication with Macromedia Flex

2006-03-02 Thread Dimitrios Gianninas

Dave,

I don't disagree with you, that will work and I have seen it work. But I don't 
like the little pop-up challenge window. For lack of a better term, I wanted a 
more presentable login screen for my end users, so with the wonderful 
component model that Flex provides, I created a LoginView component that all 
our UIs re-use... see I didn't write much code either :) Is my way more 
complex? Perhaps just a wee little bit, but not very much. Both ways work, just 
a matter of choice I guess.

Jimmy

-Original Message-
From: flexcoders@yahoogroups.com on behalf of Dave Wolf
Sent: Thu 3/2/2006 9:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Authentication with Macromedia Flex
 
I am trying to understand why we all keep trying to make this so
complex rather then taking advantage of the functionality that is
already in Flex and your container (JRun, Tomcat etc).  J2EE has a
resonably simple model for handling authentication and access control
that alleviates the requirement to write your own login logic, to
write specific login remote objects, use custom authentication etc.  

Effectively you only need to do the following.

1) Secure specific URL patterns via settings in the web applications
deployment descriptor (web.xml).  I have in the past, and would now be
more then happy to show how to configure these.

2) Upon trying to load a secured URL pattern, the container will
challenge you by presenting a login screen.  We have developed these
screens in Flex.  Effectively you create a simple form with two input
fields name j_username and j_password.  You post those values to the
url /j_security_check.  Now the container handles all your authentication.

Once completed the container will provide you access to the secured
resource and will populate all the in-memory structures to completely
support runtime interrogation of securerity context.

Flex integrates so well and so transparantly with J2EE and its
security model it is foolish not to take advantage of that.

I dunno I'm an odd duck.  I like writing less code :)

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY


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

 
 Hi Allister,
 
 Ok let me clear things up for you. We use WebLogic 8.1 around here,
in Flex I present a login screen to the user where they enter their
credentials. These credentials are passed to the server (using a
RemoteObject - it is not secure, but only has one method doLogin() )
where using a WebLogic API I authenticate the user, so WebLogic knows
who he is and a HTTP session is created.
 
 Then all the other RemoteObjects are locked down and when the
session expires, I kick them back out to the login screen (where I
wrote below // do whatever you want here, its a free country), all
still in Flex.
 
 Does this make more sense?
 
 Dimitrios Jimmy Gianninas
 Optimal Payments
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of allister_dickson
 Sent: Thu 3/2/2006 6:13 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Authentication with Macromedia Flex
  
  
 Hi Dimitrios,
  
 From reading through your earlier posts I get the impression that
you are
 using a two methods to authenticate users. Initially, you
authenticate the
 user using standard J2EE form based authentication. Then when using a
 service if you receive an authentication fault you use a flex popup
window
 to re authenticate. Is this correct? 
  
 Also, if you get a session time out do you resubmit the original service
 request after re-authentication? If so, what is the best way to
generically
 resubmit the request?
  
 Regards,
  
 Allister
  
 - Original Message - 
 From: Dimitrios Gianninas mailto:[EMAIL PROTECTED]  
 To: flexcoders@yahoogroups.com 
 Sent: Monday, October 10, 2005 12:59 AM
 Subject: RE: [flexcoders] Authentication with Macromedia Flex
 
 I put theh handling of the failed authentication directly in the
 Services.mxml... simple and works.
  
 mx:Script
 function handleRemoteFault( event ):Void {
 if( event.fault.faultcode == Client.Authentication ||
 event.fault.faultcode == 401 ) {
 // do whatever you want here, its a free country
 }
 else {
 event.call.faultHandler( event );
 }
 }
 /mx:Script
  
  
 Dimitrios Jimmy Gianninas
 RIA Developer
 Optimal Payments Inc.
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Douglas Knudsen
 Sent: Friday, October 07, 2005 9:53 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Authentication with Macromedia Flex
 
 
 so, I got auth working using the approach you mentioned
 
 CallbackHandler handler = new SimpleCallbackHandler( userName,
password );
  Subject subject = Authentication.login( handler );
  ServletAuthentication.runAs( subject, httpRequest );
 
 silightly different 

Re: [flexcoders] Re: Authentication with Macromedia Flex

2006-03-02 Thread Douglas Knudsen
But Dave described using a cusom screen instead of the grey
security/login popup thingy.  In the web.xml settings you can set the
URL of a custom form for login.  This form can be in HTML or whatever,
eh?

DK


On 3/2/06, Dimitrios Gianninas [EMAIL PROTECTED] wrote:

 Dave,

 I don't disagree with you, that will work and I have seen it work. But I 
 don't like the little pop-up challenge window. For lack of a better term, I 
 wanted a more presentable login screen for my end users, so with the 
 wonderful component model that Flex provides, I created a LoginView component 
 that all our UIs re-use... see I didn't write much code either :) Is my way 
 more complex? Perhaps just a wee little bit, but not very much. Both ways 
 work, just a matter of choice I guess.

 Jimmy

 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of Dave Wolf
 Sent: Thu 3/2/2006 9:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Authentication with Macromedia Flex

 I am trying to understand why we all keep trying to make this so
 complex rather then taking advantage of the functionality that is
 already in Flex and your container (JRun, Tomcat etc).  J2EE has a
 resonably simple model for handling authentication and access control
 that alleviates the requirement to write your own login logic, to
 write specific login remote objects, use custom authentication etc.

 Effectively you only need to do the following.

 1) Secure specific URL patterns via settings in the web applications
 deployment descriptor (web.xml).  I have in the past, and would now be
 more then happy to show how to configure these.

 2) Upon trying to load a secured URL pattern, the container will
 challenge you by presenting a login screen.  We have developed these
 screens in Flex.  Effectively you create a simple form with two input
 fields name j_username and j_password.  You post those values to the
 url /j_security_check.  Now the container handles all your authentication.

 Once completed the container will provide you access to the secured
 resource and will populate all the in-memory structures to completely
 support runtime interrogation of securerity context.

 Flex integrates so well and so transparantly with J2EE and its
 security model it is foolish not to take advantage of that.

 I dunno I'm an odd duck.  I like writing less code :)

 --
 Dave Wolf
 Cynergy Systems, Inc.
 Macromedia Flex Alliance Partner
 http://www.cynergysystems.com

 Email:  [EMAIL PROTECTED]
 Office: 866-CYNERGY


 --- In flexcoders@yahoogroups.com, Dimitrios Gianninas
 [EMAIL PROTECTED] wrote:
 
 
  Hi Allister,
 
  Ok let me clear things up for you. We use WebLogic 8.1 around here,
 in Flex I present a login screen to the user where they enter their
 credentials. These credentials are passed to the server (using a
 RemoteObject - it is not secure, but only has one method doLogin() )
 where using a WebLogic API I authenticate the user, so WebLogic knows
 who he is and a HTTP session is created.
 
  Then all the other RemoteObjects are locked down and when the
 session expires, I kick them back out to the login screen (where I
 wrote below // do whatever you want here, its a free country), all
 still in Flex.
 
  Does this make more sense?
 
  Dimitrios Jimmy Gianninas
  Optimal Payments
 
  -Original Message-
  From: flexcoders@yahoogroups.com on behalf of allister_dickson
  Sent: Thu 3/2/2006 6:13 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Authentication with Macromedia Flex
 
 
  Hi Dimitrios,
 
  From reading through your earlier posts I get the impression that
 you are
  using a two methods to authenticate users. Initially, you
 authenticate the
  user using standard J2EE form based authentication. Then when using a
  service if you receive an authentication fault you use a flex popup
 window
  to re authenticate. Is this correct?
 
  Also, if you get a session time out do you resubmit the original service
  request after re-authentication? If so, what is the best way to
 generically
  resubmit the request?
 
  Regards,
 
  Allister
 
  - Original Message -
  From: Dimitrios Gianninas mailto:[EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Monday, October 10, 2005 12:59 AM
  Subject: RE: [flexcoders] Authentication with Macromedia Flex
 
  I put theh handling of the failed authentication directly in the
  Services.mxml... simple and works.
 
  mx:Script
  function handleRemoteFault( event ):Void {
  if( event.fault.faultcode == Client.Authentication ||
  event.fault.faultcode == 401 ) {
  // do whatever you want here, its a free country
  }
  else {
  event.call.faultHandler( event );
  }
  }
  /mx:Script
 
 
  Dimitrios Jimmy Gianninas
  RIA Developer
  Optimal Payments Inc.
 
 
_
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of Douglas Knudsen
  Sent: Friday, October 07, 2005 9:53 AM
  To: 

Re: [flexcoders] Reading or Embedding SWFs?

2006-03-02 Thread JesterXL





...geez, I'm tired... that's:


[Embed(source="your.swf", 
symbol="SymbolName")]
public class YouClass extends 
MovieClip


- Original Message - 
From: JesterXL 
To: flexcoders@yahoogroups.com 
Sent: Thursday, March 02, 2006 10:00 PM
Subject: Re: [flexcoders] Reading or Embedding SWFs?

It doesn't import your frame labels either, but it 
DOES work. Word of advice; embed your movieclip asset to a class rather 
than a variable.


[Embed(source="your.swf")]
public class YouClass extends 
MovieClip

vs. 

[Embed(source="your.swf#SymbolName")]
public var MySymbol:Class;

- Original Message - 
From: Roger Gonzalez 

To: flexcoders@yahoogroups.com 
Sent: Thursday, March 02, 2006 9:35 PM
Subject: RE: [flexcoders] Reading or Embedding SWFs?

Not so.

Flex does support embedding older SWFs. The only 
restriction is that because we can't mix-n-match bytecode formats, we strip out 
AS2 code. This is not likely to change.

(In fact, Flex will not support embedding 8.5 and newer 
SWFs, because all assets are now classes, and we need to link classes, not embed 
them. You will have to either dynamically load 8.5 SWFs, or else build 
SWCs instead, and just link to them. No need to 
embed.)

Embedded SWFs have nothing to do with trust files, so I'm 
not sure if everybody is talking about the same thing here.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Bruce 
  EckelSent: Thursday, March 02, 2006 2:38 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Reading or 
  Embedding SWFs?
  It turns out that Flex2 will not embed SWF files that are pre 8.5 
  (or maybe pre 8). This is apparently a bug that will be fixed in a later beta 
  (possibly the next one).
  On 2/28/06, Abdul 
  Qabiz [EMAIL PROTECTED] 
  wrote: 
  
Cool! I had heard of the trust files but never 
tried using it.Thanks Harish for info :)-abdul

On 2/28/06, Harish 
Sivaramakrishnan  
[EMAIL PROTECTED] wrote: 
Hi 
  Bruce,For getting rid of the Security Sandbox violation error 
  that you are getting, you will have toexplicitly trust the swfs / 
  images that you areloading. One way of doing this is the method 
  thatabdul has suggested in his mailalternatively, You could 
  also do this: Trust an SWF explicitly by adding it to the 
  TrustList. This could be done by adding a cfg file in thefollowing 
  location:C:\Windows\system32\Macromed\Flash\FlashPlayerTrust\TrustedStuff.cfgJust 
  enter the folder which you want to always trust. For example if one 
  wants to trust C:\Flex, just addthat in the cfg file. You could 
  comment out things byadding a #.The following links have some 
  useful info too:http://livedocs.macromedia.com/flash/8/main/1604.htmlhttp://flashplatform/dev/projects/maelstrom/specs/localfilesecurity/LocalFileSecurity.cfm 
  http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
  Hope this helps,Thanks HarishFlex-QAAdobe 
  India.--- Abdul Qabiz [EMAIL PROTECTED] wrote: Hi 
  Bruce, Loading local SWF might not be working because of 
   Security Sandbox. Try giving the permission to your main 
  to load SWFs from context-menu of Flash 
  Player. Context-menu  Settings  first tab 
  Advanced  It would show advanced settings manager 
  from macromedia.com, from there 
  you can the directory.  Though, I expect somebody 
  would confirm this. You can also try reading the security 
  white paper for Flash Player 8 here:http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
   Things might be different in Macromedia Flash 
  Player 8.5, so information in above white paper might not 
  totally apply. As far as embedding swfs is concerned, I 
  think that  should work. I don't remember the exact 
  syntax, but if you do quick search to this mailing-list 
  archive, I am sure you would find the exact syntax. Roger has 
  replied many such queries.  A quick search gave me 
  following results:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20285.html 
  http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20239.html 
   Hope that helps... BTW! Are you Bruce 
  Eckel of Mindview.net? 
  -abdul On 2/28/06, Bruce Eckel 
   
  [EMAIL PROTECTED] wrote:  
   I'm creating an app that displays SWF "slides" and plays MP3 
  files  associated with those slides. When I create 
  this application under  Flexbuilder, at runtime it 
  opens the external SWF  slide files and plays the  MP3 
  files just fine. But when I move the application to a 
  different  directory (containing the expected SWFs and 
  MP3s) I get a runtime error  complaining about loading 
  the SWF files. Even  stranger is the fact that the  
  security message is only complaining about loading SWF files from 
  the local  directory. 

Re: [flexcoders] Understanding UIComponent

2006-03-02 Thread JesterXL





You look like you're on the right track. For 
now (as of Beta 1), I think the only ones that actually matter event wise 
are:

initialize
creationComplete

The only difference is initialize runs before 
allof the layout stuff, so if you need to do your own positioning/sizing, 
this is a good place to do it; creationComplete is after all the children have 
been created AND sized + positioned.

We've all asked for the goto flow diagramof 
the main component that is UIComponent, so hopefully this'll get clearer doc 
wise soon.

- Original Message - 
From: Bill Lane 

To: flexcoders@yahoogroups.com 
Sent: Thursday, March 02, 2006 7:51 PM
Subject: [flexcoders] Understanding UIComponent

I'm just getting started with Flex Beta. We are 
particularlyinterested in being able to create custom components using 
AS3. So Iam keen to get my head around the structure of 
UIComponent. In AS2 Isaw an excellent diagram that explained the 
sequence that methods wereexecuted and what should be done with each. 
I have been looking for asimilar diagram for AS3 with no luck. 
Consequently I've had a go myself.

Firstly, does anyone know of a good resource (other than the 
AS3language reference which has become my constant companion) with 
thisinformation. OR Could someone have a look at my drawing(http://www.geekglue.com/media/swf/uicomponent.htm) 
and let me know ifI'm on the right track.

Bill 
Lane





--
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 and URL variables

2006-03-02 Thread Gordon Smith










In Flex 2, the Application instance has a parameters
property with name/value pairs for the URL parameters and FlashVars.



So in an Application script you would just
access parameters.number and it would be 3.



From other scripts, you would use
Application.application.parameters.number.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Thursday, March 02, 2006
2:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex and
URL variables







Flex 1.5 or 2?











- Original Message - 



From: Jonathan
Miranda 





To: flexcoders@yahoogroups.com






Sent: Thursday, March
02, 2006 5:49 PM





Subject: [flexcoders] Flex
and URL variables











Alright, Ive done this with Flash before but
Im wondering how similar it is.

Lets say I start my app @ http://mysite.com/index.mxml?number=3

Whats the easiest way to get that 3 into a variable in Flex? Using
FlashVars in the embed/object tags and then somehow do
mx.core.application.Application.number as my variable?

_

Jonathan Miranda

Flexible Master of
the Web

Try not to become a
man of success, but a man of value. - Albert Einstein

HealthGrades:
Guiding America
to Better Healthcare

NASDAQ: HGRD

w (720) 963-3832

c (707) 761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or legally privileged
information and is intended for use only by the indicated addressee. If
you are not the named addressee you should not disseminate, distribute, or copy
this e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your system. E-mail
transmissions cannot be guaranteed to be secure or error-free as information
could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any errors
or omissions in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard-copy version.











--
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: visual children must implement mx.core.IUIComponent

2006-03-02 Thread Gordon Smith
Change

var sprite:Sprite = new Sprite();

to

var uiComponent:UIComponent = new UIComponent();

Flex is heavily biased towards UIComponents: they support instantiation
from MXML descriptors, invalidation, measurement, layout, focus
management, drag management, etc., etc.

Sprite supports none of these; it is a low-level Flash class on which we
build UIComponent. Sprites are light-weight, but that's because they
lack most of the capabilities that Flex is designed to offer.

By the way, is there some reason why you're creating a Shape inside to
draw on? You could just draw on the graphics of the Sprite or
UIComponent, and that would be more efficient because it wouldn't
involve creating an additional DisplayObject.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sufibaba
Sent: Thursday, March 02, 2006 3:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: visual children must implement
mx.core.IUIComponent

Thanks Gordon,

That worked.  One other question regarding Sprite Drag and Drop.

Situation:  Have a box drawn by the Shape Class which is in a Sprite.   
I have the following code:

 Draw Rectangle --

private function draw (name:String) {

  if (w  0  h  0) {

var sprite:Sprite = new Sprite();
sprite.name = name;
trace(name=  + name);
addChild(sprite);
 
var child:Shape = new Shape();
child.graphics.beginFill(0xff);
child.graphics.lineStyle(.5, 0x00);
child.graphics.drawRect(0, 0, w, h);
child.graphics.endFill();
sprite.addChild(child);
   
sprite.addEventListener(MouseEvent.MOUSE_DOWN, dragObject);
  }
 
}

--- dragObject ---

private function dragObject(event:MouseEvent)
{
 
if (event.target.name == obj){

var
dragInitiator:UIComponent=UIComponent(event.currentTarget);
var ds:DragSource = new DragSource();

ds.addData(name,format);

var canvasProxy:Sprite = new Sprite();
canvasProxy.width=30;
canvasProxy.height=30;

DragManager.doDrag(dragInitiator, ds, event);

}
}


When I try to drag this object, I get the following Error:

Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to
mx.core.UIComponent

If I don't cast the sprite to the UIComponent, I still get the same
error.  It seems that the DragManager likes UIComponent types.

What would be a solution do you think.

Cheers,

Tim






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

 Make ImageViewer extend UIComponent instead of Sprite. In order to do
 stuff like automatic layout, Flex containers expect their content
 children to be UIComponents.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of sufibaba
 Sent: Thursday, March 02, 2006 11:11 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] visual children must implement
 mx.core.IUIComponent
 
 Hi All,
 
 I have the following:
 
 1. ImageViewer.as
 2. main.xml
 
 in ImageViewer.as, I have this class definition:
 
 public class ImageViewer extends Sprite {
public funtion ImageViewer(){
 // code
}
   // other functions and code
 }
 
 
 in main.xml, I am calling:  ImageViewer/
 
 The error I am getting is:
 -
 component declaration are now allowed in here.(Note: visual children
 must implement mx.core.IUIComponent)
 -
 Does anone know what the problem might be.
 
 Any help is appreciated,
 
 Cheers,
 
 Tim
 
 
 
 
 
 
 --
 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



 




--
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] Understanding UIComponent

2006-03-02 Thread Gordon Smith










He wants to create custom components, so he needs to understand methods
like

createChildren(), commitProperties(), measure(), and
updateDisplayList().



There should be a whole book in the documentation set about creating
your own components, and it should cover basic methods like these.



- Gordon





From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of JesterXL

Sent: Thursday, March 02, 2006 8:26 PM

To: flexcoders@yahoogroups.com

Subject: Re: [flexcoders] Understanding UIComponent



You look like you're on the right track. For now (as of Beta 1),
I think the only ones that actually matter event wise are:



initialize

creationComplete



The only difference is initialize runs before allof the layout
stuff, so if you need to do your own positioning/sizing, this is a good place
to do it; creationComplete is after all the children have been created AND
sized + positioned.



We've all asked for the goto flow diagramof the main component
that is UIComponent, so hopefully this'll get clearer doc wise soon.



- Original Message - 

From: Bill Lane


To: flexcoders@yahoogroups.com


Sent: Thursday, March 02, 2006 7:51 PM

Subject: [flexcoders] Understanding UIComponent



I'm just getting started with Flex Beta. We are particularly

interested in being able to create custom components using AS3.
So I

am keen to get my head around the structure of UIComponent. In
AS2 I

saw an excellent diagram that explained the sequence that methods were

executed and what should be done with each. I have been looking
for a

similar diagram for AS3 with no luck. Consequently I've had a go
myself.



Firstly, does anyone know of a good resource (other than the AS3

language reference which has become my constant companion) with this

information. OR Could someone have a look at my drawing

(http://www.geekglue.com/media/swf/uicomponent.htm) and let me know if

I'm on the right track.



Bill Lane





--

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 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] Reading or Embedding SWFs?

2006-03-02 Thread Roger Gonzalez





If it 
doesn't import your frame labels, that's a bug. I don't know of any reason 
why those would be skipped.

Not sure why you recommend embedding to the class 
rather than a variable, though. All that embedding to a variable does is 
generate a class for you and tweak your variable to point to the 
class.

-rg


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  JesterXLSent: Thursday, March 02, 2006 7:01 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Reading or 
  Embedding SWFs?
  
  It doesn't import your frame labels either, but 
  it DOES work. Word of advice; embed your movieclip asset to a class 
  rather than a variable.
  
  
  [Embed(source="your.swf")]
  public class YouClass extends 
  MovieClip
  
  vs. 
  
  [Embed(source="your.swf#SymbolName")]
  public var MySymbol:Class;
  
  - Original Message - 
  From: Roger Gonzalez 
  
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, March 02, 2006 9:35 PM
  Subject: RE: [flexcoders] Reading or Embedding SWFs?
  
  Not so.
  
  Flex does support embedding older SWFs. The only 
  restriction is that because we can't mix-n-match bytecode formats, we strip 
  out AS2 code. This is not likely to change.
  
  (In fact, Flex will not support embedding 8.5 and newer 
  SWFs, because all assets are now classes, and we need to link classes, not 
  embed them. You will have to either dynamically load 8.5 SWFs, or else 
  build SWCs instead, and just link to them. No need to 
  embed.)
  
  Embedded SWFs have nothing to do with trust files, so I'm 
  not sure if everybody is talking about the same thing 
here.
  
  -rg
  


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Bruce 
EckelSent: Thursday, March 02, 2006 2:38 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Reading or 
Embedding SWFs?
It turns out that Flex2 will not embed SWF files that are pre 8.5 
(or maybe pre 8). This is apparently a bug that will be fixed in a later 
beta (possibly the next one).
On 2/28/06, Abdul 
Qabiz [EMAIL PROTECTED] 
wrote: 

  Cool! I had heard of the trust files but never 
  tried using it.Thanks Harish for info :)-abdul
  
  On 2/28/06, Harish 
  Sivaramakrishnan  
  [EMAIL PROTECTED] wrote: 
  Hi 
Bruce,For getting rid of the Security Sandbox violation 
error that you are getting, you will have toexplicitly trust the 
swfs / images that you areloading. One way of doing this is the 
method thatabdul has suggested in his mailalternatively, You 
could also do this: Trust an SWF explicitly by adding it to the 
TrustList. This could be done by adding a cfg file in 
thefollowing 
location:C:\Windows\system32\Macromed\Flash\FlashPlayerTrust\TrustedStuff.cfgJust 
enter the folder which you want to always trust. For example if one 
wants to trust C:\Flex, just addthat in the cfg file. You could 
comment out things byadding a #.The following links have 
some useful info too:http://livedocs.macromedia.com/flash/8/main/1604.htmlhttp://flashplatform/dev/projects/maelstrom/specs/localfilesecurity/LocalFileSecurity.cfm 
http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
Hope this helps,Thanks 
HarishFlex-QAAdobe India.--- Abdul Qabiz [EMAIL PROTECTED] wrote: Hi 
Bruce, Loading local SWF might not be working because of 
 Security Sandbox. Try giving the permission to your 
main to load SWFs from context-menu of Flash 
Player. Context-menu  Settings  first 
tab Advanced  It would show advanced settings 
manager from macromedia.com, from 
there you can the directory.  Though, I expect 
somebody would confirm this. You can also try reading 
the security white paper for Flash Player 8 here:http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
 Things might be different in Macromedia Flash 
Player 8.5, so information in above white paper might 
not totally apply. As far as embedding swfs is 
concerned, I think that  should work. I don't remember 
the exact syntax, but if you do quick search to this 
mailing-list archive, I am sure you would find the exact 
syntax. Roger has replied many such queries. 
 A quick search gave me following 
results:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20285.html 
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20239.html 
 Hope that helps... BTW! Are you 
Bruce Eckel of Mindview.net? 
-abdul On 2/28/06, Bruce Eckel 
 
[EMAIL PROTECTED] wrote:  
 I'm creating an app that displays SWF "slides" and plays 
MP3 files  associated with those slides. When I create 
  

RE: [flexcoders] Re: How to dynamically invoke AS3 class constructor ?

2006-03-02 Thread Matt Chotin
We're not going to have that functionality in this version of AS3.
You'll need to do something different.  Like simulate by creating the
object with a no-arg constructor and then having a well-known function
like initArgs which you could call via Function.apply.

public function createInstance (className:String, args:Array) : Object {
var myClass : Class = getClassByName(className);
var inst : Object = new myClass();
inst.initArgs.apply(inst, args);
return inst;
}

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vadim Melnik
Sent: Thursday, March 02, 2006 5:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to dynamically invoke AS3 class
constructor ?

This code is similar to var a:* = new A(1,2,3); in my original 
post. Arguments count is statically specified at compile time. 
But I am looking for the way to pass different number of arguments 
to constructor at runtime. Arguments type and count are unknown at 
compilation time, that is why someArgs:Array used.

Flex 1.5/AS2 implements class constructor as AS2 Function object and 
we were able to call it like Function.apply(context, args). Now we 
are looking for something similar in AS3...


--
Thanks,
Vadim Melnik.


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

 haven't tried it but maybe try...
 
 import flash.util.getClassByName;
 
 then
 var ClassReference:Class = getClassByName(A);
 var instance:Object = new ClassReference(1,2,3);
 
 cheers, Al
 
 
 
 On 2 Mar 2006, at 12:25, Vadim Melnik wrote:
 
  Hi All,
 
  It is going to be easy, but I can't figure the way to implement 
it.
  We have certain Class object referencing to some class with
  constructor accepting any ... numbers of arguments. Now we are
  looking for the way to invoke it dynamically, (something like
  Funtion.apply does for plain methods). For example :
 
  ...
  public class A {
  public function A(...args) {}
  }
  ...
 
  var cls:Class = A;
  var someArgs:Array = [1, 2, 3];
 
  var a:* = new cls(); // - how to pass someArgs here ?
 
  // need the same functionality as
  // var a:* = new A(1,2,3);
 
  And the same question regarding super class dynamic constructor
  invocation:
 
  public class B extends A {
  public function B() {
 var myArgs:Array = [4,5,6];
 super(); // -- how to pass myArgs to parent
 // class constructor, like
 // super(4, 5, 6);
  }
  }
 
 
  --
  Thanks,
  Vadim Melnik.
 
 
 
 
 
 
 
  --
  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 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] combobox in popup-window

2006-03-02 Thread Matt Chotin
Can you send an example?  I don't think the ComboBox uses the PopUpManager.  If 
you're getting a bug in automation values that's just a plain bug.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
wesubotnix
Sent: Wednesday, February 22, 2006 2:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] combobox in popup-window

My combobox doesn´t seems to work when using it in a popup-window.
Can´t do the drop-down. Recievies error: Supplied index is out of
bounds. It seems like the combobox can´t find automation values. Is
it because the combobox also uses the popupmanager like the window it
is located in?








--
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] Stop the logging

2006-03-02 Thread Matt Chotin










web-inf/flex/gateway-config.xml is where
the Remoting logging would be. This is 1.5 right? If youre talking
Flex 2 it will be flex-enterprise-services.xml.



Matt 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Krueger
Sent: Thursday, March 02, 2006
8:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Stop the
logging









Sorry for the stupid post. But I can't remember where the setting
is to stop the logging of remote objects. In the stdout.log file.
It continues to print out the values of the objects being serialized. I
have all the loging in flex-config.xml turned off and the production mode set
to true. Is it in another file, sorry I can't remember where that is
controlled.











Thanks











Jeff



















--
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] weird bug with IE and states Flex2

2006-03-02 Thread Matt Chotin










I forwarded it on











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: Thursday, March 02, 2006
10:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] weird bug
with IE and states Flex2





take this code
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml
xmlns=* layout=absolute  
 mx:states
  mx:State
name=PlannerMode
   mx:SetProperty
target={panel1} property=x value=27/
   mx:SetProperty
target={panel1} property=height
value=102/ 
   mx:SetProperty
target={panel1} property=width
value=766/
   mx:SetProperty
target={panel2} property=visible
value=false/ 
   mx:SetProperty
target={panel3} property=visible
value=false/
   mx:SetProperty
target={panel4} property=visible value=false/

   mx:SetProperty
target={panelPlanner} property=visible
value=true/
   mx:SetProperty
target={topText} property=visible
value=false/ 
   mx:SetProperty
target={topText} property=includeInLayout value=false/
   mx:SetProperty
target={netWorthPlannerModeText} property=visible
value=true/ 

   mx:SetEventHandler
target={goAhead} event=click
handler=showMainPage()/
   mx:SetProperty
target={panelPlanner} property=height
value=430/ 
  /mx:State
 /mx:states
 mx:transitions
  mx:Transition fromState=*
toState=PlannerMode
   mx:Sequence
   
mx:Parallel  
  
   
 mx:Sequence targets={[panel2]}
   
  mx:WipeDown
showTarget=false/
   
  !-- this is required otherwise the
endstate properties will not be 
   
   observed --
   
  mx:SetPropertyAction
property=visible value=false/
   
 /mx:Sequence
   
 mx:Sequence startDelay=100
targets={[panel3]} 
   
  mx:WipeDown
showTarget=false/
   
  !-- this is required otherwise the
endstate properties will not be
   
  observed --
   
  mx:SetPropertyAction
property=visible value=false/
   
 /mx:Sequence
   
 mx:Sequence startDelay=200 targets={[panel4]}

   
  mx:WipeDown
showTarget=false/
   
  !-- this is required otherwise the
endstate properties will not be
   
  observed --
   
  mx:SetPropertyAction
property=visible value=false/
   
 /mx:Sequence
   
/mx:Parallel
   
mx:Parallel 
   
 mx:Resize target={panel1}/
   
 mx:Sequence target={panelPlanner}
   
  mx:SetPropertyAction
property=visible/ 
   
  mx:WipeUp
showTarget=true /
   
   

   
 /mx:Sequence 
 
   
/mx:Parallel 
   /mx:Sequence
  /mx:Transition
  mx:Transition
fromState=PlannerMode toState=*
   mx:Sequence
   
mx:Parallel 
   
 mx:Resize target={panel1}/
   
 mx:Sequence target={panelPlanner}
   
  mx:WipeDown
showTarget=false / 
   
  !-- this is required otherwise the
endstate properties will not be
   
  observed --
   
  mx:SetPropertyAction
property=visible value=false/ 
   
 /mx:Sequence 
 
   
/mx:Parallel
   
mx:Parallel
   
 mx:Sequence targets={[panel2, panel3]}
   
  mx:SetPropertyAction
property=visible value=true/
   
  mx:WipeUp
showTarget=true/
   
 /mx:Sequence 
   
 mx:Sequence targets={[panel4]}
   
  mx:SetPropertyAction
property=visible value=true/
   
  mx:WipeUp
showTarget=true/ 
   
 /mx:Sequence
   
/mx:Parallel  
  
   /mx:Sequence
  /mx:Transition
 /mx:transitions
 mx:Script 
  ![CDATA[
   internal function showGoalSetup()
{
try
{
   
 currentState=PlannerMode;
}
   
catch (e:Error) {
   
 mx.controls.Alert.show(Exception (Error) received
 + e ) ; 
}
   }

   internal function
showMainPage() {
try
{
   
 currentState=; 
}
   
catch (e:Error) {
   
 mx.controls.Alert.show(Exception (Error) received
 + e ) ; 
}
   }
  ]]
 /mx:Script 
 mx:Panel x=27 y=33
width=766 height=333 layout=absolute
title=Hello, Adam id=panel1
  mx:Button id=goAhead
label=Go Ahead click=showGoalSetup() 
   
  /mx:Button
  mx:Text
y={goAhead.y+goAhead.height} id=topText
   mx:htmlText
   
This is a Text appears in the base state. 
It
will disappear in the collapsed (PlannerMode) state.
   /mx:htmlText
  /mx:Text
  
 /mx:Panel
 mx:Panel id=panelPlanner x=27
y=143 width=766 height=435
layout=absolute title=College Planning
visible=false  
 /mx:Panel 
 mx:Panel x=27 y=374
width=250 height=200 layout=absolute
title=Net Worth id=panel2
  mx:Text width=90%
id=netWorthPlannerModeText visible=false 
   mx:text
   This panel visible in
the PlannerMode state because of a missing SetActionProperty
   even though the state
to which the application is being transitioned to 
   specifies that this
panel should be invisible. The WipeDown effect somehow
   causes a problem.
   /mx:text
  /mx:Text
 /mx:Panel
 mx:Panel x=543 y=374
width=250 height=200 layout=absolute
id=panel4 
 /mx:Panel
 mx:Panel x=285 y=374
width=250 height=200 layout=absolute
id=panel3
 /mx:Panel
 
/mx:Application 

run as flex application in IE do the transition about 20 times and the player
crashes. does not happen in firefox. the stack trace:
ArgumentError: Error #2015: Invalid image.
 at
mx.graphics::RectangularDropShadow/mx.graphics:RectangularDropShadow::createShadowBitmaps
()
 at mx.graphics::RectangularDropShadow/drawShadow()
 at

RE: [flexcoders] Flex 2: determine scaled dimensions of Loader content?

2006-03-02 Thread Matt Chotin










I believe that contentWidth/Height are
supposed to return the scaled values, not the original values. So that might
be a bug. Ill forward this on and see if anyone knows anything.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray
Sent: Thursday, March 02, 2006
10:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2:
determine scaled dimensions of Loader content?





Say you do this:

mx:Loader id=photo source=image.jpg
width=200 height=150 scaleContent=true/

And the actual dimensions of image.jpg is 50x50. After the loader has
loaded the image and scaled it, the loader's contentWidth and contentHeight say
50, but the image has been scaled to fit in the loader and maintain the correct
aspect ratio. So, is there a property that contains the scaled width and height
(150x150) or do I have to calculate it? 

I want the scaled dimensions so that I can size a canvas around the image with
a border and a dropshadow.

Thanks,

-Tom








--
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: How can we use Secure AMF wuth ColdFusion/Flex Connectivity?

2006-03-02 Thread sn197412
Hi, thank you for replay.

Here is a destination configuration.

destination id=ColdFusion
  channels
channel ref=my-cfamf/
channel ref=my-secure-cfamf/
  /channels
  properties
source*/source
lowercase-keysfalse/lowercase-keys
  /properties
/destination


Here is a channel configuration.

 channel-definition id=my-cfamf 
class=mx.messaging.channels.AMFChannel
endpoint uri=http://{server.name}:{server.port}
{context.root}/flex2gateway/ 
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
serialization
custom-deserializer type=typed-object 
class=coldfusion.flash.messaging.io.amf.serializers.TypedObjectDeseri
alizer /
/serialization
/properties
/channel-definition

 channel-definition id=my-secure-cfamf 
class=mx.messaging.channels.SecureAMFChannel
endpoint uri=https://{server.name}:{server.port}
{context.root}/dev/secureamf/ 
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
serialization
custom-deserializer type=typed-object 
class=coldfusion.flash.messaging.io.amf.serializers.TypedObjectDeseri
alizer /
/serialization
/properties
/channel-definition







--
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] Flexlet's and Yahoo Widgets

2006-03-02 Thread Clint Modien



Got an example jess? Or a link to more info?I've been asked about this as well.On 3/2/06, JesterXL 
[EMAIL PROTECTED] wrote:








You can easily create these using tools like 
mProject or SWFStudio to wrap your Flex SWF's, but it'd be nice if someone would 
create a framework around such tools, like Central kind of.


- Original Message - 
From: 
Tariq Ahmed 
To: flexcoders@yahoogroups.com 

Sent: Thursday, March 02, 2006 9:50 PM
Subject: Re: [flexcoders] Flexlet's and Yahoo Widgets
Hi Dimitrios. That's exactly what we'd love to have - a bunch of 
enterprise widgets for keeping tabs on things. Dimitrios Gianninas 
wrote: 
Actually my boss mentioned having something like this done in Flex for the business purpose here at our company. We threw around a few ideas as to what widgets we might create... just all a dream currently.
Jimmy GianninasOptimal Payments-Original Message-From: flexcoders@yahoogroups.com
 on behalf of JesterXLSent: Thu 3/2/2006 1:44 PMTo: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flexlet's and Yahoo Widgets
 
I've never messed with Konfabulator or whatever Yahoo calls it now.  What does it support currently?

- Original Message - 
From: Tariq Ahmed 
To: flexcoders@yahoogroups.com Sent: Thursday, March 02, 2006 1:34 PMSubject: [flexcoders] Flexlet's and Yahoo Widgets
I know it's been mentioned before, most notably on Jesse's blog, about ultimately your desktop being the dashboard when it comes to Flex applications. Being able to move beyond the limitations of an instance of a browser. 
I've always loved the the concept of the MAC Dashboard that had these widgets that run on your desktop. So recently I decided to try the Yahoo Widgets - this is awesome stuff, and I think pretty much what I ultimately hope to be able to do with Apollo and Flex. Though to take the idea further the widgets would be aware of each other and will be able leverage that through increased UI context.
But I was thinking in the meantime, since Yahoo and Macromedia/Adobe have a relationship - couldn't the widget engine be enhanced to incorporate the flash player so that you can have flash/flex based widgets (Flexlets?).
--Flexcoders Mailing ListFAQ: 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 developmentMacromedia flex  Software development best practice  
YAHOO! GROUPS LINKS   a..  Visit your group flexcoders on the web.  b..  To unsubscribe from this group, send an email to:   
[EMAIL PROTECTED]

  c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


--Flexcoders Mailing ListFAQ: 
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 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 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, 

[flexcoders] XML pretty print func toXMLString for Flex 1.5

2006-03-02 Thread Clint Modien



Grabbed this off actionscript.org thought I'd share it with the group. http://www.actionscript.org/actionscripts_library/XML_Object/more3.shtml
Had to tweak it a lil to get it to work but i think it was worth it.Credit goes to Ken Goulding | website 
 
http://www.eyeriss.comfor the original code.?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 preloader= initialize=this_init()  mx:TextArea id=outputTextArea text={output} height=150 width=150 / mx:Script
 ![CDATA[ public function this_init() {   var x:XML = new XML(roottest1asdf/test1test1test2test3/test3/test2/test1/root);
 trace(x =  + toXMLString(x));   }  private var output;  private function toXMLString(xmlObj, spacer){ spacer = (spacer == undefined) ? \t : spacer;
 var xml_str = xmlObj.toString(); var open, closed, tabs, node_str, eol, ts, last_closed; output = ; eol=; tabs = 0; open = xml_str.indexOf(, 0);
 var tab_next = false;  var i = 0;   while (open != undefined and open != -1) {   if (open != -1) {closed = xml_str.indexOf(, open+1);
node_str = xml_str.substring(open, closed+1);if (tab_next) { tabs++; tab_next = false;}
if (node_str.indexOf(/) == 1) { tabs--;} else if (node_str.lastIndexOf(/) != node_str.length-2) { tab_next = true;
}ts = ;for (var j = 0; jtabs; j++) { ts += spacer;}if (open == last_closed+1) {
 eol = \n+ts;} else if (open0) { eol = xml_str.substring(last_closed+1, open);}
output += eol+node_str;   }   open = xml_str.indexOf(, open+1);last_closed = closed;  }   return output;
  } ]] /mx:Script/mx:Application






--
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] Flex2 bug with mx:Text, incorrect height with width=100%

2006-03-02 Thread Matt Chotin
It's looking right in B2 I think.  I'd just add a resize handler for the
application that updates the text width for now as a workaround.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benoit Hediard
Sent: Thursday, March 02, 2006 8:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 bug with mx:Text, incorrect height with
width=100%

One of the most annoying layout problem I'm currently facing on Flex2...
;)
 
When using width=100% the height of the Text component is never
correct.
It looks like the height always equals the height of the text before the
resize to the new width.
 
Ex. : 
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;

mx:Text text=Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce enim leo, condimentum eu, feugiat a, viverra vitae, nulla. Quisque
dapibus, ipsum eget consequat aliquam, turpis lacus malesuada sem, sed
blandit magna augue in eros. width=100% / 

mx:HRule /

mx:Text text=Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce enim leo, condimentum eu, feugiat a, viverra vitae, nulla. Quisque
dapibus, ipsum eget consequat aliquam, turpis lacus malesuada sem, sed
blandit magna augue in eros. / 

mx:HRule /

/mx:Application

As a workaround, I usually create a binding constraint between the Text
width and a parent document width.
But it generates problems when the browser is resize and/or scrollbars
appear.

So :
1. Is it a bug?
2. What is the best workaround?

Thanks.

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



 




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