[flexcoders] Re: bytearray.readObject doesn't convert my objects back

2009-10-29 Thread flexaustin
This is what I have assuming I use the lib directory structure and not my app 
structure?

[RemoteClass(alias="flare.vis.data.DataList")]
public class DataList extends Proxy implements IEventDispatcher


The actual directory structure is(notice src):
[RemoteClass(alias="src.flare.vis.data.DataList")]
public class DataList extends Proxy implements IEventDispatcher

This didn't work.  I tried going in and creating getters and setters for all 
protected and private properties which got some of the data back, but not all 
of it.

Jason


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> All sub-objects that are going to get serialized also need to have registered 
> aliases.
> 
> Do a simple test with simpler data objects to see if it works for you.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of flexaustin
> Sent: Thursday, October 29, 2009 9:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: bytearray.readObject doesn't convert my objects back
> 
> 
> 
> I can't seem to get this to work saving to a SQLite3 database. The code works 
> writing (Data object contains 101 objects), but when reading the bytearray 
> the Data object ends up with 0 objects inside it. Its like it just returns a 
> new Data object. FYI, the Data object I am converting to a bytearray is 
> holder for other objects.
> 
> Writing code:
> public function shouldPrepareDatasetAsByteArrayAndSaveToDB( data:Data ) : 
> String
> {
> registerClassAlias("flare.vis.data.Data", Data);
> var d:Data = data;
> var byteArray:ByteArray = new ByteArray();
> byteArray.writeObject(d);
> byteArray.position = 0;
> 
> var base64Enc:Base64Encoder = new Base64Encoder();
> var str:String = '';
> base64Enc.encodeBytes( byteArray );
> str = base64Enc.toString();
> 
> return str;
> }
> 
> Reading code:
> private function shouldPrepareDatasUnWindByteArray( str:* ) : Data
> {
> var base64Dec:Base64Decoder = new Base64Decoder();
> base64Dec.decode( str );
> var byteArray:ByteArray = base64Dec.toByteArray();
> byteArray.position = 0;
> registerClassAlias("flare.vis.data.Data", Data);
> var data:Data = byteArray.readObject();
> return data;
> }
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > Did you call registerClassAlias or use [RemoteClass] metadata?
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On 
> > Behalf Of flexaustin
> > Sent: Wednesday, October 28, 2009 3:40 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] bytearray.readObject doesn't convert my objects back
> >
> >
> >
> > So I am using
> >
> > var myArray:Array = [someObjectOfTypeObject, someOtherObjectOfTypeObject ];
> >
> > bytearray.writeObject(myArray);
> >
> > var blah:Array = bytearray.readObject();
> >
> > Blah comes back with two Objects but not someObjectOfTypeObject they come 
> > back with generic "Objects" and no data inside?
> >
> > Anyone have a clue on this? someObjectOfTypeObject and 
> > someOtherObjectOfTypeObject are of a special type of Class in my app so
> > someOtherObjectOfTypeObject:FooClass.
> >
> > Why doesn't it put them back as the correct type?
> >
>




[flexcoders] Function Execution Time

2009-10-29 Thread kanu kukreja
How can I find/get execution time of particular function data?


RE: [flexcoders] Re: bytearray.readObject doesn't convert my objects back

2009-10-29 Thread Alex Harui
All sub-objects that are going to get serialized also need to have registered 
aliases.

Do a simple test with simpler data objects to see if it works for you.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Thursday, October 29, 2009 9:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: bytearray.readObject doesn't convert my objects back



I can't seem to get this to work saving to a SQLite3 database. The code works 
writing (Data object contains 101 objects), but when reading the bytearray the 
Data object ends up with 0 objects inside it. Its like it just returns a new 
Data object. FYI, the Data object I am converting to a bytearray is holder for 
other objects.

Writing code:
public function shouldPrepareDatasetAsByteArrayAndSaveToDB( data:Data ) : String
{
registerClassAlias("flare.vis.data.Data", Data);
var d:Data = data;
var byteArray:ByteArray = new ByteArray();
byteArray.writeObject(d);
byteArray.position = 0;

var base64Enc:Base64Encoder = new Base64Encoder();
var str:String = '';
base64Enc.encodeBytes( byteArray );
str = base64Enc.toString();

return str;
}

Reading code:
private function shouldPrepareDatasUnWindByteArray( str:* ) : Data
{
var base64Dec:Base64Decoder = new Base64Decoder();
base64Dec.decode( str );
var byteArray:ByteArray = base64Dec.toByteArray();
byteArray.position = 0;
registerClassAlias("flare.vis.data.Data", Data);
var data:Data = byteArray.readObject();
return data;
}

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> Did you call registerClassAlias or use [RemoteClass] metadata?
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of flexaustin
> Sent: Wednesday, October 28, 2009 3:40 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] bytearray.readObject doesn't convert my objects back
>
>
>
> So I am using
>
> var myArray:Array = [someObjectOfTypeObject, someOtherObjectOfTypeObject ];
>
> bytearray.writeObject(myArray);
>
> var blah:Array = bytearray.readObject();
>
> Blah comes back with two Objects but not someObjectOfTypeObject they come 
> back with generic "Objects" and no data inside?
>
> Anyone have a clue on this? someObjectOfTypeObject and 
> someOtherObjectOfTypeObject are of a special type of Class in my app so
> someOtherObjectOfTypeObject:FooClass.
>
> Why doesn't it put them back as the correct type?
>



RE: [flexcoders] Delaying a function's execution

2009-10-29 Thread Alex Harui
callLater is used to defer the function call to "as soon as possible".  That's 
why it hooks both enterFrame and render.

Timers are used to wait, especially when we know we don't need to run that 
function "right away".

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Aaron Hardy
Sent: Thursday, October 29, 2009 7:47 PM
To: flexcoders
Subject: [flexcoders] Delaying a function's execution



Hey flexers,

I've been researching the various ways that one can delay a function's 
execution.  A few ways I've found/used are:

(1) Use a Timer object with 0 delay as is done in 
StyleManagerImpl.loadStyleDeclarations2().
(2) Use setTimeout() (supposedly deprecated?)
(3) Use callLater if you're in a UIComponent. (does it actually wait a frame or 
just till rendering beings?)
(4) If you're not in a UIComponent, use the same logic that's found in 
UIComponent's callLater.  It appears to add an event listener to the stage 
(using SystemManager to access the stage) for Event.RENDER and 
Event.ENTER_FRAME then invalidates the stage.

First, is callLater meant to wait until the next frame or just until the render 
segment of the elastic racetrack?
Second, which would you recommend and why?
Third, why does the Flex framework use varying methods of waiting a frame (see 
#1 and #4)?  The answer to my first question might answer this one.
Fourth, why does callLater watch for both Event.RENDER and Event.ENTER_FRAME 
event types and not just one or the other?

Thanks for answering my questions.  I appreciate it.

Aaron



[flexcoders] Re: Flexbuilder doesn't give compile error when using a undeclared variable, methods

2009-10-29 Thread droponrcll


--- In flexcoders@yahoogroups.com, "benjamine_df"  wrote:
>
> Hello,
> 
>   I am new to flex and I make lot of mistakes by calling a method or
>  field in an object which does not exist. But flex builder 3 doesn't 
> seem to throw a compile error when I do this. In java it would be a 
> quick compile error. Is there any flex builder setting I can set to 
> give compile errors.
> 
> Example
> var data:Dictionary = new Dictionary();
> data.length   //no compile error for this
> data[indexint]  //no compile error

Create your own typed objects if you want type checking:

public clas YourClass {
   public var indexInt:int;
   public var length:int;
}

var yourClass:YourClass = newYourClass();

var foo:String = YourClass.foo; //compiler error


I'm pretty sure Java wouldn't throw a compiler error if you add or access a 
previously nonexistent key to a Dictionary, either, since that's pretty much 
the point of a Dictionary in most languages, isn't it?

-Amy



[flexcoders] Re: addChild doesn't effect for some reason REFdn2065133102

2009-10-29 Thread droponrcll


--- In flexcoders@yahoogroups.com, "dennis"  wrote:
>
> In small test application I have the follow object. stack
> 
>  
> 
> The "Main.mxml" loads the  EntryClass.as ->  "class EntryClass" (that
> doesn't extends anything)  -> "public static function Main()".
> 
>  
> 
> This EntryClass.Main() function is doing the follow:
> 
>  
> 
>   var mxmlApp:Application = Application(Application.application);
> 
>   var mainAppClass:MainAppClass=new MainAppClass();
> 
>   mxmlApp.addChild(mainAppClass);
> 
>   
> 
> So the mainAppClass is loaded.
> 
> Now the MainAppClass extends the UIComponent and in its constructor does
> this:
> 
>  
> 
>   var buttonFromMainClass:Button=new Button();
> 
>  
> buttonFromMainClass.x=20;buttonFromMainClass.y=20;buttonFromMainClass.label=
> "hello world";
> 
>  
> 
> to add it to stage I call
> 
>  
> 
>   addChild(buttonFromMainClass);
> 
>  
> 
> and here is the problem! The button is not appeared on the stage, but using
> this code:
> 
>  
> 
>   Application(Application.application).addChild(buttonFromMainClass);
> 
>  
> 
> the button is added to the stage and it is visible.
> 
>  
> 
> Why the button is not added to the stage with the simple addChild? Where am
> I wrong?

This seems like a roundabout and probably inadvisable way to do this, but you 
might want to try calling setActualSize() on buttonFromMainClass.

If that doesn't work, post back with more info on when and how you're 
instantiating the class.

HTH;

Amy



[flexcoders] context menu event on tree column of advanced data grid ....

2009-10-29 Thread MicC
When a context menu on an ADG is clicked and the ADG cell is not a hierarchy 
node, the ContextMenuEvent.mouseTarget is ADGItemRenderEX and info about the  
grid cell data clicked on to raise the context menu can be grabbed from 
ADGItemRendererEX.listData.Item.

But when a node in the hierarchical column of an ADG is clicked to raise the 
context menu, the context menu ContextMenuEvent.mouseTarget is a 
AdvancedListBaseContentHolder . and does not seem to hold any info about 
the grid cell (hierarchy node). 

How do I extract info about the hierarchy node from 
AdvancedListBaseContentHolder? TIA,

Mic.



[flexcoders] Re: bytearray.readObject doesn't convert my objects back

2009-10-29 Thread flexaustin
I can't seem to get this to work saving to a SQLite3 database. The code works 
writing (Data object contains 101 objects), but when reading the bytearray the 
Data object ends up with 0 objects inside it. Its like it just returns a new 
Data object. FYI, the Data object I am converting to a bytearray is holder for 
other objects. 

Writing code:
public function shouldPrepareDatasetAsByteArrayAndSaveToDB( data:Data ) : String
{ 
registerClassAlias("flare.vis.data.Data", Data);
var d:Data = data;
var byteArray:ByteArray = new ByteArray();
byteArray.writeObject(d);
byteArray.position = 0;

var base64Enc:Base64Encoder = new Base64Encoder();
var str:String = '';
base64Enc.encodeBytes( byteArray );
str = base64Enc.toString();

return str;
}


Reading code:
private function shouldPrepareDatasUnWindByteArray( str:* ) : Data
{
var base64Dec:Base64Decoder = new Base64Decoder();
base64Dec.decode( str );
var byteArray:ByteArray = base64Dec.toByteArray();
byteArray.position = 0;
registerClassAlias("flare.vis.data.Data", Data);
var data:Data = byteArray.readObject(); 
return data;
}




--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Did you call registerClassAlias or use [RemoteClass] metadata?
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of flexaustin
> Sent: Wednesday, October 28, 2009 3:40 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] bytearray.readObject doesn't convert my objects back
> 
> 
> 
> So I am using
> 
> var myArray:Array = [someObjectOfTypeObject, someOtherObjectOfTypeObject ];
> 
> bytearray.writeObject(myArray);
> 
> var blah:Array = bytearray.readObject();
> 
> Blah comes back with two Objects but not someObjectOfTypeObject they come 
> back with generic "Objects" and no data inside?
> 
> Anyone have a clue on this? someObjectOfTypeObject and 
> someOtherObjectOfTypeObject are of a special type of Class in my app so
> someOtherObjectOfTypeObject:FooClass.
> 
> Why doesn't it put them back as the correct type?
>




[flexcoders] Re: bytearray.readObject doesn't convert my objects back

2009-10-29 Thread flexaustin
Not sure how that works and would I need it if I am not saving the file to a 
SharedObject?  I am trying to save a CustomData class to a sqlite database. So 
I am trying to convert to a bytearray and then string.

So that if the user opens the app say a week later they can pull the object 
from the db and the app will work.

Jason

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Did you call registerClassAlias or use [RemoteClass] metadata?
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of flexaustin
> Sent: Wednesday, October 28, 2009 3:40 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] bytearray.readObject doesn't convert my objects back
> 
> 
> 
> So I am using
> 
> var myArray:Array = [someObjectOfTypeObject, someOtherObjectOfTypeObject ];
> 
> bytearray.writeObject(myArray);
> 
> var blah:Array = bytearray.readObject();
> 
> Blah comes back with two Objects but not someObjectOfTypeObject they come 
> back with generic "Objects" and no data inside?
> 
> Anyone have a clue on this? someObjectOfTypeObject and 
> someOtherObjectOfTypeObject are of a special type of Class in my app so
> someOtherObjectOfTypeObject:FooClass.
> 
> Why doesn't it put them back as the correct type?
>




[flexcoders] Delaying a function's execution

2009-10-29 Thread Aaron Hardy
Hey flexers,

I've been researching the various ways that one can delay a function's
execution.  A few ways I've found/used are:

(1) Use a Timer object with 0 delay as is done in
StyleManagerImpl.loadStyleDeclarations2().
(2) Use setTimeout() (supposedly deprecated?)
(3) Use callLater if you're in a UIComponent. (does it actually wait a frame
or just till rendering beings?)
(4) If you're not in a UIComponent, use the same logic that's found in
UIComponent's callLater.  It appears to add an event listener to the stage
(using SystemManager to access the stage) for Event.RENDER and
Event.ENTER_FRAME then invalidates the stage.

First, is callLater meant to wait until the next frame or just until the
render segment of the elastic racetrack?
Second, which would you recommend and why?
Third, why does the Flex framework use varying methods of waiting a frame
(see #1 and #4)?  The answer to my first question might answer this one.
Fourth, why does callLater watch for both Event.RENDER and Event.ENTER_FRAME
event types and not just one or the other?

Thanks for answering my questions.  I appreciate it.

Aaron


RE: [flexcoders] Re: CallLater() inside UpdateDisplayList

2009-10-29 Thread Alex Harui
List renderers are virtual. Only as many as are actually displayed at one time 
are created (plus  a few extras).  That can be a significant savings if there 
are lots of items and only a few are visible, but it is harder to do cool 
effects when renderers are virtual.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of asea19
Sent: Thursday, October 29, 2009 2:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: CallLater() inside UpdateDisplayList




Thanks for the response. I ended up removing the callLater and just added a 
call to InvalidateDisplayList() in the creationComplete handler of the item 
Renderer component. All the items are properly laid out now. This seems like a 
clean solution. Correct me if I am wrong!

And, after thinking about this some more, I guess this wouldn't technically be 
an item renderer...because I am not actually implementing any of the Item 
renderer/editor interfaces or adding this to a list/datagrid/tree..etc. What is 
happening in the code is a search returns results that have about 10 text 
fields and labels for those fields. The 'itemRenderer' I am referring to is 
just a custom VBox component that has all these textfields inside of it, and 
and for each result a new instance of this VBox component is created, 
populated, and added to the search results view(another VBox container).

After reading more on Optimization tecniques, it seems that this whole system 
may be wrong. Should I be using a list or a datagrid for my search results and 
then implementing an actual itemRenderer interface in my renderer component to 
make use of the recycling and other built in enhancements?

Thanks again for your response.

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> Something sound wrong. Remember that renderers are recycled so make sure 
> positions are completely derived from the data object.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of asea19
> Sent: Wednesday, October 28, 2009 3:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] CallLater() inside UpdateDisplayList
>
>
>
> Hi,
>
> Quick question. I optimized an item renderer that was previously using a 
> really heavy grid to layout a bunch of labels. Now, I use the move() method 
> in the updateDisplayList(). of the renderer to move the labels instead.
>
> It works great, except for some reason when the next page is 
> accessed(multiple pages of search results...)the updateDisplayList() doesnt 
> lay the fields out properly. I tried calling invalidateDisplayList() again 
> after the measuring, but still didn't work. I don't want to do any binding 
> because of performance overhead.
>
> The only thing that works is to actually take the move() methods out of the 
> updateDisplayList() and put them into another method, and then use 
> CallLater() in updateDisplayList() to actually call that method. This works 
> great. I just feel like it is kinda sloppy. Is there something I'm missing 
> here?
>



[flexcoders] UDP via Flex socket

2009-10-29 Thread Simon
simple question... is it possible?  I have a horrible feeling Flex may only 
support HTTP and RPC but would love to be wrong.

If my suspicions are correct are there any plans to make a more general purpose 
socket?



Re: Re[flexcoders] moving Column Headers From ADG?

2009-10-29 Thread powers

Solution: set the headerBackgroundSkin = ClassReference (null) and set the
headerHeight to 0.  Actually may only need to set the header height to 0 for
it to not been seen.


powers wrote:
> 
> Is there anyway to remove column headers from the ADG?
> 

-- 
View this message in context: 
http://www.nabble.com/Removing-Column-Headers-From-ADG--tp26117340p26121860.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] help with a php call

2009-10-29 Thread grimmwerks
Argh.  Still can't figure this out; seems really simple to call a php  
file which forces download -- why can't I then do the same thing in  
httpService?



On Oct 29, 2009, at 4:44 PM, grimmwerks wrote:




Ok - an app I'm working on needs to have a watermarked image; if you  
click on this in the browser:


http://creativity-online.com/api/image_watermark.php?workId=17593

It works fine.  But I can't figure out how to setup the same thing  
in Flex, preferably using an HttpService..?


I mean I could pop open a new browser window with the constructed ip  
in order to force downloadin -- but am I incorrect that I should be  
able to do it with httpService?



Thanks







[flexcoders] Re: CallLater() inside UpdateDisplayList

2009-10-29 Thread asea19


Thanks for the response.  I ended up removing the callLater and just added a 
call to InvalidateDisplayList() in the creationComplete handler of the item 
Renderer component.  All the items are properly laid out now.  This seems like 
a clean solution.  Correct me if I am wrong! 

And, after thinking about this some more, I guess this wouldn't technically be 
an item renderer...because I am not actually implementing any of the Item 
renderer/editor interfaces or adding this to a list/datagrid/tree..etc.  What 
is happening in the code is a search returns results that have about 10 text 
fields and labels for those fields.  The 'itemRenderer' I am referring to is 
just a custom VBox component that has all these textfields inside of it, and 
and for each result a new instance of this VBox component is created, 
populated, and added to the search results view(another VBox container).  

After reading more on Optimization tecniques, it seems that this whole system 
may be wrong.  Should I be using a list or a datagrid for my search results and 
then implementing an actual itemRenderer interface in my renderer component to 
make use of the recycling and other built in enhancements?  

Thanks again for your response. 

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Something sound wrong.  Remember that renderers are recycled so make sure 
> positions are completely derived from the data object.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of asea19
> Sent: Wednesday, October 28, 2009 3:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] CallLater() inside UpdateDisplayList
> 
> 
> 
> Hi,
> 
> Quick question. I optimized an item renderer that was previously using a 
> really heavy grid to layout a bunch of labels. Now, I use the move() method 
> in the updateDisplayList(). of the renderer to move the labels instead.
> 
> It works great, except for some reason when the next page is 
> accessed(multiple pages of search results...)the updateDisplayList() doesnt 
> lay the fields out properly. I tried calling invalidateDisplayList() again 
> after the measuring, but still didn't work. I don't want to do any binding 
> because of performance overhead.
> 
> The only thing that works is to actually take the move() methods out of the 
> updateDisplayList() and put them into another method, and then use 
> CallLater() in updateDisplayList() to actually call that method. This works 
> great. I just feel like it is kinda sloppy. Is there something I'm missing 
> here?
>




[flexcoders] Re: SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-29 Thread Geoffrey


Muzak, thank you for your help. However, I have already tried [RemoteClass] 
(which I mentioned in the original post). I also looked at the link that you 
provided and decided to try more combinations, but none worked. I have tried 
[RemoteClass] with and w/o [Bindable], [RemoteClass(alias="ByteArrayPlus")], 
and I made sure to use my class beforehand. In all cases I can get a custom 
class to retain its type, but ByteArrayPlus always gets read as ByteArray from 
the SharedObject.

I believe this may be a problem peculiar to ByteArray, but I don't know exactly 
why that would be so. 

Again, the challenge is this: make any class that extends ByteArray, write it 
to a SharedObject (to the disk), read it from the SharedObject, and have it 
retain its class. I know it sounds straightforward, but I cannot get it to work.

--Geoff

--- In flexcoders@yahoogroups.com, "Muzak"  wrote:
>
> Add a RemoteClass metadata tag to the custom class:
> 
> Example at the bottom of the article
> http://cookbooks.adobe.com/post_How_to_keep_the_type_of_your_objects_when_serializ-8323.html
> 
> 
> - Original Message - 
> From: "Geoffrey" 
> To: 
> Sent: Wednesday, October 28, 2009 12:45 PM
> Subject: [flexcoders] SharedObject problem/bug? Cannot store a subclass of 
> ByteArray.
> 
> 
> > Hi,
> >
> > I have a subclass of ByteArray (let's call it ByteArrayPlus), which I want 
> > to write to a SharedObject. I can store it fine, but 
> > when I read it back, it says it's of type ByteArray, not ByteArrayPlus. 
> > Does anyone have an idea what may be wrong? Has anyone 
> > gotten this to work?
> >
> > FYI, I am already using registerClassAlias(). And it works fine with a 
> > custom class, and with a custom class extending another 
> > custom class. I also tried implementing IExternalizable, but that did not 
> > help. I also tried [RemoteClass] and 
> > [RemoteClass(alias="ByteArrayPlus")].
> >
> > Also, ByteArrayPlus is really simple: I only added a String (name) to it.
> >
> > This is my first post to FlexCoders.
> >
> > Any help appreciated.
> >
> > --Geoff
> >
>




RE: [flexcoders] Sandboxed Modules in AIR

2009-10-29 Thread Breizo

Alex, 
the Marshall Plan (http://blogs.adobe.com/flexdoc/loadingSubApps.pdf latest
version?) you refer to seems very loose on how to do what Rob is asking.
There are tons of post requesting more information about this topic. 
There is one very interesting 
http://flair-flash-flex-air.blogspot.com/2009/09/framework-for-modular-air-applications.html
post  that allows to get remote modules to run in the app domain sandbox
after being checked from their signatures. 
Unfortunately, this doesn't work with Flex in the remote sandbox. 

After hours of search I gave up and decided to use only the above framework. 

A clear message from Adobe on the topic would help not waste all the
programmer's time on this. If this doesn't work , at least we know.

Thanks
Breizo
PS: Alex, your posts are usually great, but this topic is getting on my
nerves...


Alex Harui wrote:
> 
> See the marshal plan presentation on my blog.  Basically you can't have
> untrusted modules.  If you move to sub-applications and the marshall plan
> you should be able to get something working.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Sandboxed-Modules-in-AIR-tp21912046p26114376.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Problem redrawing stacked column chart after hiding series

2009-10-29 Thread pete_perth
I have a cartesian chart declared in mxml. Through actionscript I create a 
columnset of type "stacked", add some columnseries to the columnset, and then 
add the columset to the chart. That all works ok.

The issue is that the user can choose to show or hide particular series by 
checking and unchecking checkboxes. I'm simply changing the series visibility 
to true or false. 

When they hide a series at the moment, it simply removes that series from the 
stacked column and leaves a blank spot where it used to be. What I need it to 
do is redraw the columnset including only the remaining series.

I've tried calling invalidateDisplayList() on the chart and also on the 
columnset, but it doesn't do the trick. Any suggestions for how to force the 
chart to redraw?



[flexcoders] error compiling flex project

2009-10-29 Thread Greg Morphis
I have an ANT script which compiles a Flex 2 project and it's giving
me an error:

compile:
[java] Loading configuration file C:\Program Files\Adobe\Flex Builder
2 Plug-in\Flex SDK 2\frameworks\flex-config.xml
[java] C:\Temp\RetailForms\index.mxml: Error: Unable to locate
specified base class 'mx.core.Application' for component class
'index'.

Here's my ANT script














Can you tell me what's wrong with it? Thanks!


[flexcoders] help with a php call

2009-10-29 Thread grimmwerks
Ok - an app I'm working on needs to have a watermarked image; if you  
click on this in the browser:


http://creativity-online.com/api/image_watermark.php?workId=17593

It works fine.  But I can't figure out how to setup the same thing in  
Flex, preferably using an HttpService..?


I mean I could pop open a new browser window with the constructed ip  
in order to force downloadin -- but am I incorrect that I should be  
able to do it with httpService?



Thanks

[flexcoders] Flexbuilder doesn't give compile error when using a undeclared variable, methods

2009-10-29 Thread benjamine_df
Hello,

  I am new to flex and I make lot of mistakes by calling a method or
 field in an object which does not exist. But flex builder 3 doesn't 
seem to throw a compile error when I do this. In java it would be a 
quick compile error. Is there any flex builder setting I can set to 
give compile errors.

Example
var data:Dictionary = new Dictionary();
data.length   //no compile error for this
data[indexint]  //no compile error

Thanks



Re: [flexcoders] Re: AIR Performance

2009-10-29 Thread thomas parquier
Hello,

Have anyone knowledge of chart about java vs air performances ? as they are
both using vm...

thomas parquier
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net 
téléphone portable : +33601 822 056


2009/10/29 Tom Chiverton 

>
>
> On Tuesday 27 Oct 2009, jwc_wensan wrote:
> > I've read several other articles, blogs, etc. about it and I see no
> > mention that it is an AIR app.
>
> If it's performance is fine *inside a web browser*, I'm sure it'll be fine
> without the browser getting in the way too.
>
> --
> Helping to collaboratively generate back-end real-time seamless ubiquitous
> interfaces as part of the IT team of the year, '09 and '08
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and
> Wales under registered number OC307980 whose registered office address is at
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
> of members is available for inspection at the registered office together
> with a list of those non members who are referred to as partners. We use the
> word ?partner? to refer to a member of the LLP, or an employee or consultant
> with equivalent standing and qualifications. Regulated by the Solicitors
> Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged. If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents. If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.Halliwells.com.
>
>  
>


Re: [flexcoders] Re: LineSeries.showDataEffect - MXML vs. AS3 - bug?

2009-10-29 Thread Jake Churchill
The same thing happens if you are trying to align components inside a canvas
using right/left/top/bottom.  In mxml it's fine but you have to use setStyle
in AS.  I think it just has to do with whether the property was set up as a
Style or a Property in the main component.  In MXML, you get to them the
same way but in AS they are separate (due to the component lifecycle)

On Thu, Oct 29, 2009 at 2:36 PM, jmerrill_2001 <
jason.merr...@bankofamerica.com> wrote:

>
>
> Right after I posted this, I found a workaround:
>
> myLineSeries.setStyle('showDataEffect', 'myEffect');
>
> But it still bothers me myLineSeries.showDataEffect = myEffect does not
> work - isn't that a bug? This is the kind of thing that can be really
> frustrating when you move back and forth between MXML and Actionscript. How
> does anyone learn these little "rules" that say, showDataEffect is a style
> that has to be set, not a property you can set directly. Anyone have any
> insight on this?
>
> Jason
>
>  
>


[flexcoders] Re: LineSeries.showDataEffect - MXML vs. AS3 - bug?

2009-10-29 Thread jmerrill_2001
Right after I posted this, I found a workaround:

myLineSeries.setStyle('showDataEffect', 'myEffect');

But it still bothers me myLineSeries.showDataEffect = myEffect does not work - 
isn't that a bug?  This is the kind of thing that can be really frustrating 
when you move back and forth between MXML and Actionscript.  How does anyone 
learn these little "rules" that say, showDataEffect is a style that has to be 
set, not a property you can set directly.  Anyone have any insight on this?

Jason



[flexcoders] LineSeries.showDataEffect - MXML vs. AS3 - bug?

2009-10-29 Thread jmerrill_2001
It seems to me, that there is a bug/inconsistency (at least in Flexbuilder 3 
and the Flex compiler it uses) between MXML and Actionscript 3 when it comes to 
LineSeries.showDataEffect.  Or, I'm just missing or not understanding something.

For example, the following works for the showDataEffect property of LineSeries, 
no problem:



However, when you do the same with AS3, the compiler complains and codehinting 
for showDataEffect doesn't work:

import mx.charts.series.LineSeries; //OK
var myLineSeries:LineSeries = new LineSeries(); //OK
myLineSeries.showDataEffect = myEffect; // <-- THIS BREAKS. WHY?

When I say it breaks, I mean codehinting fails to find the showDataEffect 
property on LineSeries and the compiler complains there is no showDataEffect 
property on LineSeries. Is this a bug? I have googled it, and found others have 
had the same problem, but have not found any answers (neither did they).

Any ideas?  I need to do this dynamically with AS3 if possible, but this error 
or "bug" is stopping me.

Thanks,

Jason Merrill
Bank of America



[flexcoders] Make Flex AIR app demand more system resources

2009-10-29 Thread Tracy Spratt
We are producing an AIR app that is a UI that controls some background
processes, and runs in an embedded Linux environment.  Our CPU is somewhat
limited, so we are working on ways to optimize resource usage.

 

I am dynamically adjusting the frame rate to minimize the AIR apps resource
usage when needed, and the AIR UI is able to tell the OS to adjust its
process scheduling priorities as needed.

 

This seems to work pretty well to give priority to the back end apps.
However, the AIR app does not seem to be demanding enough.  That is, even
when given much higher OS priority it still relinquishes resources too
readily to other processes, which causes animation issues.

 

This is a pretty complex issue and I am just getting started to work on it,
so I am not expecting a "solution", but rather I am looking for ideas
suggestion, links, anything that relates to the topic.

 

Heck, animation performance is a huge topic on its own!

 

Tracy Spratt,

Lariat Services, development services available

 



Re[flexcoders] moving Column Headers From ADG?

2009-10-29 Thread powers

Is there anyway to remove column headers from the ADG?
-- 
View this message in context: 
http://www.nabble.com/Removing-Column-Headers-From-ADG--tp26117340p26117340.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Plot Chart Vertical Axis Rendere label Rotation Problem

2009-10-29 Thread Ramkumar
Hi. Where and how to log bug?

On Thu, Oct 29, 2009 at 8:54 PM, Tom Chiverton  wrote:

>
>
> On Thursday 29 Oct 2009, Ramkumar wrote:
> > Like in horizontal its working fine.
>
> So it does - *weird*.
> You should log a bug.
>
> --
> Helping to dramatically cultivate revolutionary proactive prospective
> solutions as part of the IT team of the year, '09 and '08
>
>  
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and
> Wales under registered number OC307980 whose registered office address is at
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
> of members is available for inspection at the registered office together
> with a list of those non members who are referred to as partners. We use the
> word ?partner? to refer to a member of the LLP, or an employee or consultant
> with equivalent standing and qualifications. Regulated by the Solicitors
> Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged. If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents. If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.Halliwells.com.
>  
>


Re: [flexcoders] AdvancedDataGrid Grouping: itemRenderer for parent

2009-10-29 Thread powers

Just want to explain here how I solved this.  I set the groupItemRenderer of
the ADG to render a customItemRenderer that I created.  I had to implement
the expand/collapse functionality that the AdvancedDataGridGroupItemRenderer
takes care of by default.  Rather than extend this class, the custom
component implements mx.controls.listClasses.IDropInListItemRenderer which
will then expose the getter/setters of the listData.  The listData will
provide a reference to the ADG which then can dispatch the ITEM_OPENING
events.  This custom component must also use the mx_internal namespace to be
able to dispatch the event.

Code:
public function set listData( value : BaseListData ) : void
{
_listData   = AdvancedDataGridListData(value);
_listOwner = AdvancedDataGrid(_listData.owner);
}

public function get listData():BaseListData
{
 return _listData;
} 
private function expand(event:Event) : void
{
event.stopPropagation();

var open:Boolean= _listData.open;
_listData.open  = !open;

var evt:AdvancedDataGridEvent = new  
AdvancedDataGridEvent(AdvancedDataGridEvent.ITEM_OPENING,true, false,
_listData.columnIndex, null, _listData.rowIndex);
_listOwner.dispatchEvent(evt);   

_listOwner.dispatchAdvancedDataGridEvent(AdvancedDataGridEvent.ITEM_OPENING,
_listData.item, this, event, !open, true, true)   
}



Tom McNeer wrote:
> 
> What do you actually intend to render? The ADG itself has attributes for
> GroupItemRenderer, GroupIconFunction and GroupLabelFunction. One of those
> ought to handle what you need.
> 
> On Wed, Oct 28, 2009 at 3:54 PM, powers  wrote:
> 
>>
>>
>>
>> I have an advanced data grid with a dataprovider with a grouped
>> collection.
>>
>> The default of the ADG is to display a folder icon, along with whatever
>> text
>> is contained in the datafield, as the parent element. All the children
>> are
>> displayed with the paper icon and the text that is displayed in the
>> datafield. I want to display a custom component as the parent AND another
>> custom component as the child. Setting the itemRenderer property on the
>> column will solve my problem for displaying a custom component for the
>> child. How can I use a itemRenderer for the parent?
>> --
>> View this message in context:
>> http://www.nabble.com/AdvancedDataGrid-Grouping%3A-itemRenderer-for-parent-tp26101136p26101136.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>  
>>
> 
> 
> 
> -- 
> Thanks,
> 
> Tom
> 
> Tom McNeer
> MediumCool
> http://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AdvancedDataGrid-Grouping%3A-itemRenderer-for-parent-tp26101136p26116538.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Plot Chart Vertical Axis Rendere label Rotation Problem

2009-10-29 Thread Tom Chiverton
On Thursday 29 Oct 2009, Ramkumar wrote:
> Like in horizontal its working fine.

So it does - *weird*.
You should log a bug.

-- 
Helping to dramatically cultivate revolutionary proactive prospective 
solutions as part of the IT team of the year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] addChild doesn't effect for some reason REFdn2065133102

2009-10-29 Thread dennis
In small test application I have the follow object. stack

 

The "Main.mxml" loads the  EntryClass.as ->  "class EntryClass" (that
doesn't extends anything)  -> "public static function Main()".

 

This EntryClass.Main() function is doing the follow:

 

  var mxmlApp:Application = Application(Application.application);

  var mainAppClass:MainAppClass=new MainAppClass();

  mxmlApp.addChild(mainAppClass);

  

So the mainAppClass is loaded.

Now the MainAppClass extends the UIComponent and in its constructor does
this:

 

  var buttonFromMainClass:Button=new Button();

 
buttonFromMainClass.x=20;buttonFromMainClass.y=20;buttonFromMainClass.label=
"hello world";

 

to add it to stage I call

 

  addChild(buttonFromMainClass);

 

and here is the problem! The button is not appeared on the stage, but using
this code:

 

  Application(Application.application).addChild(buttonFromMainClass);

 

the button is added to the stage and it is visible.

 

Why the button is not added to the stage with the simple addChild? Where am
I wrong?

 

Something that might be help, in EntryClass.Main() if I create a button and
add it with the mxmlApp.addChild the button is added and appeared on the
stage normally, so there is no problem with the use of mxmlApp.addChild.

 

Best regards

dennis

 



Re: [flexcoders] Plot Chart Vertical Axis Rendere label Rotation Problem

2009-10-29 Thread Ramkumar
Vertical axis lables if you set 90  and -90 both are  looking same type of
text only.
I need the text appearance opposite as +90 for -90 degaree in the vertical
Axis.
Like in horizontal its working fine.

On Thu, Oct 29, 2009 at 7:32 PM, Tom Chiverton  wrote:

>
>
> On Thursday 29 Oct 2009, Ramkumar wrote:
> > While rotating labels on plot chart plot series, if i give the roataion
> > degree of 90deg and -90deg both are giving the same text angle.
>
> Using the "Styles, Axis labels" section on the Quietly Scheming site URL
> you
> gave, +90 and -90 are not the same, so I'm not sure what you are driving
> at.
>
> --
> Helping to apprehensively reinvent dynamic users as part of the IT team of
> the
> year, '09 and '08
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and
> Wales under registered number OC307980 whose registered office address is at
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
> of members is available for inspection at the registered office together
> with a list of those non members who are referred to as partners. We use the
> word ?partner? to refer to a member of the LLP, or an employee or consultant
> with equivalent standing and qualifications. Regulated by the Solicitors
> Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged. If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents. If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit 
> www.Halliwells.com
> .
>
> 
>


Re: [flexcoders] Plot Chart Vertical Axis Rendere label Rotation Problem

2009-10-29 Thread Tom Chiverton
On Thursday 29 Oct 2009, Ramkumar wrote:
> While rotating labels on plot chart plot series, if i give the roataion
> degree of 90deg and -90deg both are giving the same text angle.

Using the "Styles, Axis labels" section on the Quietly Scheming site URL you 
gave, +90 and -90 are not the same, so I'm not sure what you are driving at.

-- 
Helping to apprehensively reinvent dynamic users as part of the IT team of the 
year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Plot Chart Vertical Axis Rendere label Rotation Problem

2009-10-29 Thread Ramkumar
Hi
While rotating labels on plot chart plot series, if i give the roataion
degree of 90deg and -90deg both are giving the same text angle.
90deg is working fine and while rotaing with negative angle its rotating
fine upto -89deg. but if i give -90deg it shows same type of text as 90 deg.
Please help me to resolve this on plot chart.

I saw some examples. that also in the same problem.
Please find the link
http://blog.flexexamples.com/2007/10/15/rotating-labels-in-a-flex-chart-axis-using-the-labelrotation-style/
http://demo.quietlyscheming.com/ChartSampler/app.html

Please give solutions to rotate correctly.

Thanks and Regards,
N.ramkumar


RE: [flexcoders] Keep an object in flash player memory despit swf unloading?

2009-10-29 Thread Battershall, Jeff
If that's the case, you wouldn't be storing the information in the swf but in 
the containing application.  The information can then be passed as flashVars to 
your swf when it is loaded.

HTH,

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Flap Flap
Sent: Thursday, October 29, 2009 7:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Keep an object in flash player memory despit swf 
unloading?



Hi,

The case is very special:

We have a swf file that runs into a specific software.
This software load and unload the swf file when its required and we need to 
persists some information during the software session (meaning while the 
software is open and runs) but we cannot store those information on disk 
because of security rules...


Benoît Milgram / Flapflap
http://www.kilooctet.net

I'm also a music mashup / bootlegs producer :
http://www.djgaston.net

On Wed, Oct 28, 2009 at 5:56 PM, Battershall, Jeff 
mailto:jeff.battersh...@dowjones.com>> wrote:

What problem are you trying to solve?  In order to save state you're going to 
need some kind of persistent scope.  If Shared Object can't be used, something 
else needs to be a repository for your state information.

Jeff


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On 
Behalf Of Flap Flap
Sent: Wednesday, October 28, 2009 12:21 PM
To: FlexCoders
Subject: [flexcoders] Keep an object in flash player memory despit swf 
unloading?



Hi all,

Is there a way to keep an actionscript object in Flash Player memory even when 
the swf that set up this object is unloaded.
And no, SharedObject is not an option :)

I know is nearly impossible but I also know that I don't know everything :D

Benoît Milgram / Flapflap
http://www.kilooctet.net

I'm also a music mashup / bootlegs producer :
http://www.djgaston.net







[flexcoders] Re: Highlighting a Chart Collumn?

2009-10-29 Thread jmerrill_2001
> Don't charts have a fillFunction?
> Amy


Amy, sorry it took me so long to respond - yes - thank you - this looks like 
exactly what I'm looking for.  

http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_09.html

Jason



Re: [flexcoders] Keep an object in flash player memory despit swf unloading?

2009-10-29 Thread Flap Flap
Hi,

The case is very special:

We have a swf file that runs into a specific software.
This software load and unload the swf file when its required and we need to
persists some information during the software session (meaning while the
software is open and runs) but we cannot store those information on disk
because of security rules...


Benoît Milgram / Flapflap
http://www.kilooctet.net

I'm also a music mashup / bootlegs producer :
http://www.djgaston.net


On Wed, Oct 28, 2009 at 5:56 PM, Battershall, Jeff <
jeff.battersh...@dowjones.com> wrote:

>
>
>  What problem are you trying to solve?  In order to save state you’re
> going to need some kind of persistent scope.  If Shared Object can’t be
> used, something else needs to be a repository for your state information.
>
>
>
> Jeff
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Flap Flap
> *Sent:* Wednesday, October 28, 2009 12:21 PM
> *To:* FlexCoders
> *Subject:* [flexcoders] Keep an object in flash player memory despit swf
> unloading?
>
>
>
>
>
> Hi all,
>
> Is there a way to keep an actionscript object in Flash Player memory even
> when the swf that set up this object is unloaded.
> And no, SharedObject is not an option :)
>
> I know is nearly impossible but I also know that I don't know everything :D
>
> Benoît Milgram / Flapflap
> http://www.kilooctet.net
>
> I'm also a music mashup / bootlegs producer :
> http://www.djgaston.net
>
>
>


Re: [flexcoders] Re: AIR Performance

2009-10-29 Thread Tom Chiverton
On Tuesday 27 Oct 2009, jwc_wensan wrote:
> I've read several other articles, blogs, etc. about it and I see no
> mention that it is an AIR app.

If it's performance is fine *inside a web browser*, I'm sure it'll be fine 
without the browser getting in the way too.

-- 
Helping to collaboratively generate back-end real-time seamless ubiquitous 
interfaces as part of the IT team of the year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] printing to a word doc

2009-10-29 Thread Tom Chiverton
If I understand right, you are trying to have a Flex application popup a file 
save dialogue for a document produced via. CF ?
Are you using navigateToUrl() to send the user to the page that produces the 
file ? Does the URL you are using work OK outside of Flex ?

-- 
Helping to continuously reinvent user-centric strategic experiences as part of 
the IT team of the year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Amfphp and images

2009-10-29 Thread mixmi2004
Hi.  I cant load images, can you help me.
 code:

http://www.adobe.com/2006/mxml";
 layout="absolute" creationComplete="init();">










http://www.adobe.com/2006/mxml";
 layout="absolute" creationComplete="init();">









and  PHP

public function readFolder($folder){
$d = dir($folder) or die("Wrong path: $image_file_path");
while (false !== ($entry = $d->read())) {
if($entry != '.' && $entry != '..' && 
!is_dir($dir.$entry))
$images[] = $entry;
}
$d->close();
return $images;
}
}



I have array of images and need to display the images.