[flexcoders] SWF frame and Flash Player Frame
Hi folks, Could I have the definition about these concepts? What is the relationship between them? In particular, I would know if they are paired each other or not. Thanks in advance. Cheers.
[flexcoders] About Frame definition
Hi, Could I have a definition about frames? I've read about frame life cycle. As I've understood, a Flex application has two frames: the first one (FRAME 1) contains the Preloader, the other one (FRAME 2) contains the Application? So, what's a frame? What function do FRAME 1 and FRAME 2 play into a Flex Application? Can I consider a frame like a logic unit which can do thing? FRAME 1 one has the job to load (through the SystemManager) the application code and RSL, FRAME 2 (through the SystemManager) to visualize application on screen and to allow the user interaction. What are the differences (or analogies) between frame understood as the unit that contains actionscript code (like in a Creative Suite) and frame understood as the time slot between two consecutive enterframe events? Thanks in advance, Cheers.
[flexcoders] Re: About Frame definition
Hi primo411, thank you for your reply! I've just read that article...ok I understand the frametime concept...but it doesn't explain what a frame is..I would know about frame understood as unit logic into swf files... So, could you explain me what a frame is? In particular: Are there any differences between frame understood as the unit that contains actionscript code (like in a Creative Suite) and frame understood as the time slot between two consecutive enterframe events? Thanks in advance --- In flexcoders@yahoogroups.com, primo411 primo...@... wrote: Hi, maybe this article will help you understand: http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/ 2009/10/26 thelordsince1984 lore...@... Hi, Could I have a definition about frames? I've read about frame life cycle. As I've understood, a Flex application has two frames: the first one (FRAME 1) contains the Preloader, the other one (FRAME 2) contains the Application? So, what's a frame? What function do FRAME 1 and FRAME 2 play into a Flex Application? Can I consider a frame like a logic unit which can do thing? FRAME 1 one has the job to load (through the SystemManager) the application code and RSL, FRAME 2 (through the SystemManager) to visualize application on screen and to allow the user interaction. What are the differences (or analogies) between frame understood as the unit that contains actionscript code (like in a Creative Suite) and frame understood as the time slot between two consecutive enterframe events? Thanks in advance, Cheers.
[flexcoders] Understanding the frame definition
Hi everybody, a simple question about frame. Is a frame essentially a slot of time or something else? I think a frame is a logic unic linked with ActionScript code, isn't true? Thanks in advance. Regards.
[flexcoders] About Flex Life Cycle
A Flex swf application has two frames: the first one contains the SystemManager, the Preloader (and others things); the second one contains the framework and the application code. When the app starts Frame 1 loads the SystemManger tha stops the excution. Then when the app is finished loading, Frame 2 starts. So, when the application is running, is the Frame 2 cycling over the app's life cycle? thanks in advance
[flexcoders] Re: About Flex Life Cycle
Thanks for the reply Alex. So when the application has loaded in its entirely, the timeline is stopped at frame 2, isn't true? So what happens if you are in frame 2 and the user fires a general event that renders a circle in the screen? If is possible, can you give a little example about the logic operation? thanks again, Best regards. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: The timeline is stopped at frame 2, just like it was at frame1 when we were waiting for frame2. Where the timeline is, is mostly independent from the player's frames. The player is playing frames at the frame rate (or as fast as possible if a frame takes longer than the frame rate). Which frame it plays depends on which timeline frame is the current frame and whether it has been played or not. If the current frame has been played (meaning, it has already executed the framescripts for that timeline frame) the player is just dispatching enterFrame events and rendering any changes. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, September 29, 2009 11:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] About Flex Life Cycle A Flex swf application has two frames: the first one contains the SystemManager, the Preloader (and others things); the second one contains the framework and the application code. When the app starts Frame 1 loads the SystemManger tha stops the excution. Then when the app is finished loading, Frame 2 starts. So, when the application is running, is the Frame 2 cycling over the app's life cycle? thanks in advance
[flexcoders] Re: [Shared Object] Save XML
I would only know if is possible... thanks again --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: What happens when you try? You can always save it as a string then re-parse it when you retrieve it. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, June 23, 2009 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] [Shared Object] Save XML Hi, i would know if is possible to save xml format into SharedObjects.. thanks Regard Lord
[flexcoders] [Shared Object] Save XML
Hi, i would know if is possible to save xml format into SharedObjects.. thanks Regard Lord
[flexcoders] [Flex Modules]
Hi, A problem i have a Flex Application that runs in Flas Player..This application is able to run modules downloaded from other servers? is the same scenario valid for air applications? Thanks a lot Best Regards
[flexcoders] Re: [Flex Modules]
--- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote: The scenario in AIR isn't quite the same due to the restriction on running remote executable code, but there is a solution of sorts. Check out Ethan Malasky's blog for more details. http://weblogs.macromedia.com/emalasky/ Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@... From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: 13 May 2009 11:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] [Flex Modules] Hi, A problem i have a Flex Application that runs in Flas Player..This application is able to run modules downloaded from other servers? is the same scenario valid for air applications? Thanks a lot Best Regards Thanks Gregor!! Is the response for the first question positive? i have a Flex Application that runs in Flas Player..This application is able to run modules downloaded from other servers? Thanks again Best Regards
[flexcoders] Flex Modules and external sources
Hi, a little question for you.. i've a module that could load some images from an external directory. The structure i use is: projectname ---some sources classes ---imagedir firstimage.jpg secondimage.jpg ---modules mymodule So i create an mx:image tag into the module and i set the source property equal to the image file path (for example firstimage.jpg).. this solution doesn't work..why? any solutions? thanks in advance regards Lorenzo
[flexcoders] Re: Flex Modules and external sources
Hi, thanks for the reply.. in this manner i would embed the image into the swf module file, is it true? is there a mechanism to avoid this? infact i would access an external directory without embed images into the swf module file. Thanks again Regards Lorenzo --- In flexcoders@yahoogroups.com, Paresh M More pareshm...@... wrote: Lorenzo, mx:Image source=@Embed('/imagedir/firstimage.jpg') / Use this it would work -- Regards, Paresh M. More Senior Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@... On Mon, Apr 6, 2009 at 7:07 PM, thelordsince1984 lore...@...wrote: Hi, a little question for you.. i've a module that could load some images from an external directory. The structure i use is: projectname ---some sources classes ---imagedir firstimage.jpg secondimage.jpg ---modules mymodule So i create an mx:image tag into the module and i set the source property equal to the image file path (for example firstimage.jpg).. this solution doesn't work..why? any solutions? thanks in advance regards Lorenzo
[flexcoders] Re: Modules Communication
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Which part do you not understand? Have you looked at changeWatcher in the docs? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, March 10, 2009 11:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tspratt@ wrote: I'm not sure, maybe since modules are independent swf's, but that is way more complicated than necessary. Look into the singleton data model. In such a case, you would do: 1. in the source module, MyModel.getInstance().id = myTextInput.text; 2. In the target module, text={ MyModel.getInstance().id } 3. Or use a changeWatcher if you need to take programmatic action when id changes Tracy _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of thelordsince1984 Sent: Tuesday, March 03, 2009 12:30 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, thelordsince1984 loreboa@ wrote: --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Simon Bailey simon@ wrote: On the tip for communicating between modules using a framework, PureMVC has a utility called Pipes which helps you accomplish this: http://trac. http://trac. http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes puremvc.org/Utility_AS3_MultiCore_Pipes puremvc.org/Utility_AS3_MultiCore_Pipes ;S On 3 Mar 2009, at 10:10, claudiu ursica wrote: You should probably have ca comunication manager something like a central event dispatcher (I believe the Mate framework already does this but i might be mistaking) and register panels within that scope. so when a panel fires an event the other listening panels check if the event is adressed to them and actually consume catch that event... there was some guy doing a prof of concept for this google for ALON desing pattern ... HTH, Claudiu From: thelordsince1984 loreboa@ To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Sent: Tuesday, March 3, 2009 10:53:49 AM Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote: Have you read the section Using interfaces for module communication in the docs? That's been working for me. thanks for the reply.. For Guy Morton... i've read it but modules are created at runtime so i would have a maneger that controls communication over modules.is it true? For Alex Harui how can i achieve the commuication between modules..for example a module dispatch an event...the event is catch by a manager and then fires to the rigth destination. ..rember that i have an application. ..it contains panels and each panel could contain a module... thanks again Regards Lorenzo thanks all, but is there a simple manner to achieve module to module communication? suppose this scenario: i've a module within a panel. it contains a textinput...it fires a custom event when the user clicks a button..the event contains an id number..an other modules is listen for this event, catchs it at then update itself depending on passed id... thanks again Regards Lorenzo is it possible to use localconnection among modules or is a bad way to achieve module to module communication? hi Tracy, i've read your last response... can you explain me the third option: Use a changeWatcher if you need to take programmatic action when id changes. thanks in advance Regards Lorenzo i see the changewatcher docs but i can't understand where to put it... Thanks again Regards Lorenzo
[flexcoders] Re: Modules Communication
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: I'm not sure, maybe since modules are independent swf's, but that is way more complicated than necessary. Look into the singleton data model. In such a case, you would do: 1.in the source module, MyModel.getInstance().id = myTextInput.text; 2.In the target module, text={ MyModel.getInstance().id } 3.Or use a changeWatcher if you need to take programmatic action when id changes Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, March 03, 2009 12:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, thelordsince1984 loreboa@ wrote: --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Simon Bailey simon@ wrote: On the tip for communicating between modules using a framework, PureMVC has a utility called Pipes which helps you accomplish this: http://trac. http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes puremvc.org/Utility_AS3_MultiCore_Pipes ;S On 3 Mar 2009, at 10:10, claudiu ursica wrote: You should probably have ca comunication manager something like a central event dispatcher (I believe the Mate framework already does this but i might be mistaking) and register panels within that scope. so when a panel fires an event the other listening panels check if the event is adressed to them and actually consume catch that event... there was some guy doing a prof of concept for this google for ALON desing pattern ... HTH, Claudiu From: thelordsince1984 loreboa@ To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Sent: Tuesday, March 3, 2009 10:53:49 AM Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote: Have you read the section Using interfaces for module communication in the docs? That's been working for me. thanks for the reply.. For Guy Morton... i've read it but modules are created at runtime so i would have a maneger that controls communication over modules.is it true? For Alex Harui how can i achieve the commuication between modules..for example a module dispatch an event...the event is catch by a manager and then fires to the rigth destination. ..rember that i have an application. ..it contains panels and each panel could contain a module... thanks again Regards Lorenzo thanks all, but is there a simple manner to achieve module to module communication? suppose this scenario: i've a module within a panel. it contains a textinput...it fires a custom event when the user clicks a button..the event contains an id number..an other modules is listen for this event, catchs it at then update itself depending on passed id... thanks again Regards Lorenzo is it possible to use localconnection among modules or is a bad way to achieve module to module communication? hi Tracy, i've read your last response... can you explain me the third option: Use a changeWatcher if you need to take programmatic action when id changes. thanks in advance Regards Lorenzo
[flexcoders] Re: Modules Communication
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: If you don't want to set up a full blown communication manager, you could do this: 1) dispatch a *bubbling* event from your source module 2) Set up a listener at the main application on this (this.addEventListener.) 3) Have the handler for that listener re-dispatch the event 4) In your target module, set a listener on Application.application.addEventListener However, setting up a singleton data model would be almost as simple. Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, March 03, 2009 10:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Simon Bailey simon@ wrote: On the tip for communicating between modules using a framework, PureMVC has a utility called Pipes which helps you accomplish this: http://trac. http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes puremvc.org/Utility_AS3_MultiCore_Pipes ;S On 3 Mar 2009, at 10:10, claudiu ursica wrote: You should probably have ca comunication manager something like a central event dispatcher (I believe the Mate framework already does this but i might be mistaking) and register panels within that scope. so when a panel fires an event the other listening panels check if the event is adressed to them and actually consume catch that event... there was some guy doing a prof of concept for this google for ALON desing pattern ... HTH, Claudiu From: thelordsince1984 loreboa@ To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Sent: Tuesday, March 3, 2009 10:53:49 AM Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote: Have you read the section Using interfaces for module communication in the docs? That's been working for me. thanks for the reply.. For Guy Morton... i've read it but modules are created at runtime so i would have a maneger that controls communication over modules.is it true? For Alex Harui how can i achieve the commuication between modules..for example a module dispatch an event...the event is catch by a manager and then fires to the rigth destination. ..rember that i have an application. ..it contains panels and each panel could contain a module... thanks again Regards Lorenzo thanks all, but is there a simple manner to achieve module to module communication? suppose this scenario: i've a module within a panel. it contains a textinput...it fires a custom event when the user clicks a button..the event contains an id number..an other modules is listen for this event, catchs it at then update itself depending on passed id... thanks again Regards Lorenzo Hi Tracy, you said However, setting up a singleton data model would be almost as simple how can achieve this communication whith this suggestion? Can you post me a guide line to rich module to module communication with a single data module? thanks again, Regards Lorenzo
[flexcoders] Re: Modules Communication
--- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote: Have you read the section Using interfaces for module communication in the docs? That's been working for me. thanks for the reply.. For Guy Morton... i've read it but modules are created at runtime so i would have a maneger that controls communication over modules.is it true? For Alex Harui how can i achieve the commuication between modules..for example a module dispatch an event...the event is catch by a manager and then fires to the rigth destination...rember that i have an application...it contains panels and each panel could contain a module... thanks again Regards Lorenzo
[flexcoders] Re: Modules Communication
--- In flexcoders@yahoogroups.com, Simon Bailey si...@... wrote: On the tip for communicating between modules using a framework, PureMVC has a utility called Pipes which helps you accomplish this: http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes ;S On 3 Mar 2009, at 10:10, claudiu ursica wrote: You should probably have ca comunication manager something like a central event dispatcher (I believe the Mate framework already does this but i might be mistaking) and register panels within that scope. so when a panel fires an event the other listening panels check if the event is adressed to them and actually consume catch that event... there was some guy doing a prof of concept for this google for ALON desing pattern ... HTH, Claudiu From: thelordsince1984 lore...@... To: flexcoders@yahoogroups.com Sent: Tuesday, March 3, 2009 10:53:49 AM Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote: Have you read the section Using interfaces for module communication in the docs? That's been working for me. thanks for the reply.. For Guy Morton... i've read it but modules are created at runtime so i would have a maneger that controls communication over modules.is it true? For Alex Harui how can i achieve the commuication between modules..for example a module dispatch an event...the event is catch by a manager and then fires to the rigth destination. ..rember that i have an application. ..it contains panels and each panel could contain a module... thanks again Regards Lorenzo thanks all, but is there a simple manner to achieve module to module communication? suppose this scenario: i've a module within a panel. it contains a textinput...it fires a custom event when the user clicks a button..the event contains an id number..an other modules is listen for this event, catchs it at then update itself depending on passed id... thanks again Regards Lorenzo
[flexcoders] Re: Modules Communication
--- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: --- In flexcoders@yahoogroups.com, Simon Bailey simon@ wrote: On the tip for communicating between modules using a framework, PureMVC has a utility called Pipes which helps you accomplish this: http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes ;S On 3 Mar 2009, at 10:10, claudiu ursica wrote: You should probably have ca comunication manager something like a central event dispatcher (I believe the Mate framework already does this but i might be mistaking) and register panels within that scope. so when a panel fires an event the other listening panels check if the event is adressed to them and actually consume catch that event... there was some guy doing a prof of concept for this google for ALON desing pattern ... HTH, Claudiu From: thelordsince1984 loreboa@ To: flexcoders@yahoogroups.com Sent: Tuesday, March 3, 2009 10:53:49 AM Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote: Have you read the section Using interfaces for module communication in the docs? That's been working for me. thanks for the reply.. For Guy Morton... i've read it but modules are created at runtime so i would have a maneger that controls communication over modules.is it true? For Alex Harui how can i achieve the commuication between modules..for example a module dispatch an event...the event is catch by a manager and then fires to the rigth destination. ..rember that i have an application. ..it contains panels and each panel could contain a module... thanks again Regards Lorenzo thanks all, but is there a simple manner to achieve module to module communication? suppose this scenario: i've a module within a panel. it contains a textinput...it fires a custom event when the user clicks a button..the event contains an id number..an other modules is listen for this event, catchs it at then update itself depending on passed id... thanks again Regards Lorenzo is it possible to use localconnection among modules or is a bad way to achieve module to module communication?
[flexcoders] Modules Communication
Hi, suppose that i have a main application. The main application has plus panel, created at runtime, and every panel can load or unload a specific module.In ths scenario how can i achieve the communication between modules? Any suggestions? thanks in advance Lorenzo
[flexcoders] Datagrid personalization
Hi, i create a class that extends datadrid package actionscriptcomponent { import mx.controls.DataGrid; public class CustomDataGrid extends DataGrid { private var _nrows:uint = 6; private var _ncolumns:uint = 7; private var rowsChanged:Boolean = false; private var columnsChanged:Boolean = false; public function CustomDataGrid() { super(); } public function set nrows(value:uint):void { if(nrows != value){ _nrows = value; rowsChanged = true; invalidateProperties(); } } public function get nrows():uint { return _nrows; } public function set ncolumns(value:uint):void { if(ncolumns != value){ _ncolumns = value; columnsChanged = true; invalidateProperties(); } } public function get ncolumns():uint { return _ncolumns; } override protected function commitProperties():void { if(rowsChanged) rowCount = nrows; if(columnsChanged) columnCount = ncolumns; } } } the i would lsiten for change for rows and columns numeber... for example, my default grid have 6 rows and 7 columns... then at run time i would have a grid that have 8 rows and 10 columns... is it the right way? Thanks a lot Regards Lorenzo
[flexcoders] Capturing Phase
Hi, if i have a root application and a canvas (application's child), is possible to dispatch an event from the application to the canvas? the capturing phase is the right way, is it true? Thanks in advance Regards Lorenzo
[flexcoders] Help Me for SharedObject and registerClassAlias method
Hi, i've yet posted this question but i can't resolve this problem.. i've created a custom value object class..a simple class with private properties and getters methods to retrieve them. public class WindowInfo { private var _id:String; private var _module:String private var _xpos:int; private var _ypos:int; private var _width:int; private var _height:int; public function WindowInfo(id:String, module:String, xpos:int, ypos:int, width:int, height:int) { this._id = id; this._module = module; this._xpos = xpos; this._ypos = ypos; this._width = width; this._height = height; } public function get id():String { return _id; } public function get module():String { return _module; } public function get xpos():int { return _xpos; } public function get ypos():int { return _ypos; } public function get width():int { return _width; } public function get height():int { return _height; } } then i created an array collection where each item is an istance of value object. then i have a shared object manager that looks like this: package util{ import flash.net.SharedObject; import mx.collections.ArrayCollection; public class SharedObjectApplicationManager { private var mySO:SharedObject; private var ac:ArrayCollection; private var lsoType:String; public function SharedObjectApplicationManager(s:String) { init(s); } private function init(s:String):void { mySO = SharedObject.getLocal(s); if (getf()) { getf(); } } public function getf():ArrayCollection { return mySO.data.arrayc; } private function adda(array:ArrayCollection):void { mySO.data.arrayc = new ArrayCollection(); mySO.data.arrayc = array; mySO.flush(); } } } so when i try to get arraycollection with getf method i get an arraycollection of generic objects not with windowinfo objects..in this manner i can't get value properties of value object class. so i would use registerClassAlias(Info, WindowInfo) where WindowInfo is the VO..but where? the architecture of my app is: -main application (verify the shared object, if full then call a public function of canvas to create windows with specific parameters saved in windowinfo class) canvas (contains one or more windows) any suggestions? Thanks in advance Regards Lorenzo
[flexcoders] Shared Object - Value Object - How use RegisterClassAlias?
hi everybody, i've created a custom value object class..a simple class with private properties and getters methods to retrieve them. then i created an array collection where each item is a value object. then i have a shared object manager that looks like this: package util{ import flash.net.SharedObject; import mx.collections.ArrayCollection; public class SharedObjectApplicationManager { private var mySO:SharedObject; private var ac:ArrayCollection; private var lsoType:String; public function SharedObjectApplicationManager(s:String) { init(s); } private function init(s:String):void { mySO = SharedObject.getLocal(s); if (getf()) { getf(); } } public function getf():ArrayCollection { return mySO.data.arrayc; } private function adda(array:ArrayCollection):void { mySO.data.arrayc = new ArrayCollection(); mySO.data.arrayc = array; mySO.flush(); } } } so when i try to get arraycollection with getf method i get an arraycollection of generic objects not with value objects..in this manner i can't get value properties of value object class. so i would use registerClassAlias(Info, WindowInfo) where WindowInfo is the VO..but where? the architecture of my app is: -main application (verify the shared object, if full then call a public function of canvas to create windows with specific parameters saved in windowinfo class) canvas (contains one or more windows) any suggestions? thanks in advance Regards Lorenzo
[flexcoders] Re: Shared Object - Value Object - How use RegisterClassAlias?
--- In flexcoders@yahoogroups.com, djepyon i...@... wrote: Registering the VO with flash.net.registerClassAlias should be all you need to do. import flash.net.registerClassAlias import com.myproject.vo.myVO registerClassAlias(com.myproject.vo.myVO,myVO); --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: hi everybody, i've created a custom value object class..a simple class with private properties and getters methods to retrieve them. then i created an array collection where each item is a value object. then i have a shared object manager that looks like this: package util{ import flash.net.SharedObject; import mx.collections.ArrayCollection; public class SharedObjectApplicationManager { private var mySO:SharedObject; private var ac:ArrayCollection; private var lsoType:String; public function SharedObjectApplicationManager(s:String) { init(s); } private function init(s:String):void { mySO = SharedObject.getLocal(s); if (getf()) { getf(); } } public function getf():ArrayCollection { return mySO.data.arrayc; } private function adda(array:ArrayCollection):void { mySO.data.arrayc = new ArrayCollection(); mySO.data.arrayc = array; mySO.flush(); } } } so when i try to get arraycollection with getf method i get an arraycollection of generic objects not with value objects..in this manner i can't get value properties of value object class. so i would use registerClassAlias(Info, WindowInfo) where WindowInfo is the VO..but where? the architecture of my app is: -main application (verify the shared object, if full then call a public function of canvas to create windows with specific parameters saved in windowinfo class) canvas (contains one or more windows) any suggestions? thanks in advance Regards Lorenzo ok but i can register the class in a particular point or in a specific point of the application? for example in the main application.. thanks again... Regards Lorenzo
[flexcoders] Re: Shared Object - Value Object - How use RegisterClassAlias?
--- In flexcoders@yahoogroups.com, djepyon i...@... wrote: Just make sure you register it before you make any LocalConnection calls. It could be on application init or if you have a bridge class housing the LocalConnection functionality register them in its constructor. --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: --- In flexcoders@yahoogroups.com, djepyon ian@ wrote: Registering the VO with flash.net.registerClassAlias should be all you need to do. import flash.net.registerClassAlias import com.myproject.vo.myVO registerClassAlias(com.myproject.vo.myVO,myVO); --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: hi everybody, i've created a custom value object class..a simple class with private properties and getters methods to retrieve them. then i created an array collection where each item is a value object. then i have a shared object manager that looks like this: package util{ import flash.net.SharedObject; import mx.collections.ArrayCollection; public class SharedObjectApplicationManager { private var mySO:SharedObject; private var ac:ArrayCollection; private var lsoType:String; public function SharedObjectApplicationManager(s:String) { init(s); } private function init(s:String):void { mySO = SharedObject.getLocal(s); if (getf()) { getf(); } } public function getf():ArrayCollection { return mySO.data.arrayc; } private function adda(array:ArrayCollection):void { mySO.data.arrayc = new ArrayCollection(); mySO.data.arrayc = array; mySO.flush(); } } } so when i try to get arraycollection with getf method i get an arraycollection of generic objects not with value objects..in this manner i can't get value properties of value object class. so i would use registerClassAlias(Info, WindowInfo) where WindowInfo is the VO..but where? the architecture of my app is: -main application (verify the shared object, if full then call a public function of canvas to create windows with specific parameters saved in windowinfo class) canvas (contains one or more windows) any suggestions? thanks in advance Regards Lorenzo ok but i can register the class in a particular point or in a specific point of the application? for example in the main application.. thanks again... Regards Lorenzo Thanks djepyon, so i have to put the registerclass function in the constructor of this class, is it true? package util{ import flash.net.SharedObject; import mx.collections.ArrayCollection; public class SharedObjectApplicationManager { private var mySO:SharedObject; private var ac:ArrayCollection; private var lsoType:String; public function SharedObjectApplicationManager(s:String) { init(s); //here the register class alias } private function init(s:String):void { mySO = SharedObject.getLocal(s); if (getf()) { getf(); } } public function getf():ArrayCollection { return mySO.data.arrayc; } private function adda(array:ArrayCollection):void { mySO.data.arrayc = new ArrayCollection(); mySO.data.arrayc = array; mySO.flush(); } } } thanks again, Regards Lorenzo
[flexcoders] Shared Object
Hi, i've a little proble with shared object...can you help me? i've a value object: public class WindowInfo { private var _id:String; private var _module:String public function WindowInfo(id:String, module:String) { this._id = id; this._module = module; } public function get id():String { return _id; } public function get module():String { return _module; } } } then i have a function that created for each window in the main app a new windowinfo instance and save it into an array collection. public function savedWidowsConfiguration():ArrayCollection { var ac:ArrayCollection = new ArrayCollection(); var keys:Array = modules.getKeys(); for(var i:uint = 0; i keys.length; i++){ var w:CustomWindow = hashMap.getValue(keys[i]); var wi:WindowInfo = new WindowInfo(keys[i], w.module); ac.addItem(wi); } return ac; } the array is passed to the shared object manager with add function: public class SharedObjectManager { private var mySO:SharedObject; public function SharedObjectManager(s:String) { init(s); } private function init(type:String):void { mySO = SharedObject.getLocal(type); if (getModules()) { getModules(); } } public function getModules():ArrayCollection { return mySO.data.windowinfo; } public function add(array:ArrayCollection):void { mySO.data.windowinfo = new ArrayCollection(); mySO.data.windowinfo = array; mySO.flush(); } } finally i retrieve the results at creation complete event from the main applcation: public function init():void { sharedObjectManager = new SharedObjectManager(MODULES); if (sharedObjectManager.getModules()) { mdiCanvas.reloadExistingModules(sharedObjectManager.getModules()); } } but when i retrieve the results windowinfo array is an arraycollection where windowinfo objects are empty...it's very srange because mySO.data.windowinfo = array has data... why? thanks in advance regards Lorenzo
[flexcoders] Save Configuration
Hi, suppose that i have a main application and here i can create three differents type of panels (mypanel extend Panel)... then i have a button that permits to save the current pèanel inside the app and its position into the screen..this is made by getting parameters for each panel...for example their position on the main app... the panel name and his parameters are saved into a shared object... the shared object is an array collection of objects, for example mx:Object id=panel1 x=3 y=5 / so when i open the second time my application, i read the shared object i would retrieve the panel that i saved in the same position. in this case panel1 in the position 3-5. note the panel is created at startup for each time i launch the application. i don't want to save the entire panel object into the shared object. how can i do this? Thanks in advance Regards Lorenzo
[flexcoders] Array Collection
Hi, i've have an array collection of objects...every object is like this one: - id:path private function create(id:String, path:String):void { var arrayCollection:ArrayCollection = new ArrayCollection(); var o:Object = {id:path}; arrayCollection.addItem(o); } i would create a function that has a parameter, the id, and check if there is a correspondence between the parameter id function and that one into the array collection. In this case i would also trace the path value... can you help me? thanks Regards Lorenzo
[flexcoders] Re: Array Collection
--- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: Hi, i've have an array collection of objects...every object is like this one: - id:path private function create(id:String, path:String):void { var arrayCollection:ArrayCollection = new ArrayCollection(); var o:Object = {id:path}; arrayCollection.addItem(o); } i would create a function that has a parameter, the id, and check if there is a correspondence between the parameter id function and that one into the array collection. In this case i would also trace the path value... can you help me? thanks Regards Lorenzo it's ok.. instead if i would parse an object that contains strings? for example i've an object that has three strings like this - test1, test2, test3 so i would trace strings separately..how can i do this?
[flexcoders] Re: Custom Event and bubbling phase
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I assume he means that the event never makes it to the loadThisModule function. Also, I assume he means that he uses the popupmanager to create a popup panel. With that said, IIRC, the application is not in the bubbling chain and will never receive an event from a popup. Again, IIRC, you would need the eventlistener on the systemmanager as that is the base of a popup. Please correct me if I am wrong. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: First, tell us what you mean by it doesn't work. Then: That looks ok, does it work with a base Event? (a side note, in the handler, you can access any public property of the panel via the event.target reference, so you do not *have* to use a custom event. ) What part of the above do I need to explain further? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, February 03, 2009 3:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Custom Event and bubbling phase --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: That looks ok, does it work with a base Event? (a side note, in the handler, you can access any public property of the panel via the event.target reference, os you do not have to use a custom event. ) Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of thelordsince1984 Sent: Tuesday, February 03, 2009 11:38 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Custom Event and bubbling phase Hi, i have a main application and there i create a popup panel... from the popup panel i dispacth a custom event like this var e1:CustomLoadEvent = new CustomLoadEvent(loadModule, true); dispatchEvent(e1); where loadModule is the type and the value true stands for bubbles.. then at the creationcomplete event within the main application i create an eventlisteners for the event addEventListener(loadModule, loadThisModule); the loadThisModule function simple trace a string.. but it doesn't work!!Why? Thanks in advance Regards Lorenzo thanks for the reply.. CustomLoadEvent is a custom event, it extends Event class...but doesn't work..i don't know why... in this class i also override the clone method... the CustomLoadEvent class has a public properties...i omit it in dispatchevent function for simplicity.. the function loadThisModule catchs the event in this manner private function loadThisModule(event:CustomLoadEvent):void{ trace(event.identification); } where identification is the public property of customloadevent class. thanks in advance Regards Lorenzo the first two assumptions are correct... so when i use popmanager i cann't listen to popup event in the event flow chain, is it correct? thanks again Regrads Lorenzo
[flexcoders] Custom Event and bubbling phase
Hi, i have a main application and there i create a popup panel... from the popup panel i dispacth a custom event like this var e1:CustomLoadEvent = new CustomLoadEvent(loadModule, true); dispatchEvent(e1); where loadModule is the type and the value true stands for bubbles.. then at the creationcomplete event within the main application i create an eventlisteners for the event addEventListener(loadModule, loadThisModule); the loadThisModule function simple trace a string.. but it doesn't work!!Why? Thanks in advance Regards Lorenzo
[flexcoders] Re: Custom Event and bubbling phase
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: That looks ok, does it work with a base Event? (a side note, in the handler, you can access any public property of the panel via the event.target reference, os you do not have to use a custom event. ) Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, February 03, 2009 11:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom Event and bubbling phase Hi, i have a main application and there i create a popup panel... from the popup panel i dispacth a custom event like this var e1:CustomLoadEvent = new CustomLoadEvent(loadModule, true); dispatchEvent(e1); where loadModule is the type and the value true stands for bubbles.. then at the creationcomplete event within the main application i create an eventlisteners for the event addEventListener(loadModule, loadThisModule); the loadThisModule function simple trace a string.. but it doesn't work!!Why? Thanks in advance Regards Lorenzo thanks for the reply.. CustomLoadEvent is a custom event, it extends Event class...but doesn't work..i don't know why... in this class i also override the clone method... the CustomLoadEvent class has a public properties...i omit it in dispatchevent function for simplicity.. the function loadThisModule catchs the event in this manner private function loadThisModule(event:CustomLoadEvent):void{ trace(event.identification); } where identification is the public property of customloadevent class. thanks in advance Regards Lorenzo
[flexcoders] Re: Shared Objects And Modules
--- In flexcoders@yahoogroups.com, Marco Catunda marco.catu...@... wrote: Lorenzo, When the doc says the same domain it means that flash player should get module from the same URL domain for security reason. About shared objects, it is cool but has size limitation like cookies. You can save whatever you want... -- Marco Catunda On Mon, Feb 2, 2009 at 7:27 AM, thelordsince1984 lore...@... wrote: Hi, i'm reading about shared objects...they are like html cookies but with improved performances...very cool!!but if i use modules can i always save the state of each modules? Infact i read that modules are used for the same domain..what domain means? that I can save the state for a single application (so a single swf files), is it true? thanks in advance Regards Lorenzo Thanks for the reply.. so is it possible to save a specific configuration with modules? suppose that i have a main application and here i have n modules (distinct swf files). then within modules i run my operations and finally when i closed the main application i would save the configuration for modules that i have modified.. At the succesive startup i would retrieve saved data. Is it possible to save the entire modules, so an entire complex object? or is possible to save only data, for example values properties? Do you know any example in the web? Thanks Again Regards Lorenzo
[flexcoders] Shared Objects And Modules
Hi, i'm reading about shared objects...they are like html cookies but with improved performances...very cool!!but if i use modules can i always save the state of each modules? Infact i read that modules are used for the same domain..what domain means? that I can save the state for a single application (so a single swf files), is it true? thanks in advance Regards Lorenzo
[flexcoders] Re: Mimic IGoogle with Flex 3
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: At the link I sent there is a link labeled Custom buttons in windows. Is that what you are trying to do? --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: --- In flexcoders@yahoogroups.com, Gregor Kiddie gkiddie@ wrote: Take a look at the MDI stuff in FlexLib. We've produced the effect you are looking for with them. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpdesk@ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: 28 January 2009 10:10 To: flexcoders@yahoogroups.com Subject: [flexcoders] Mimic IGoogle with Flex 3 Hi, i would create an app that has the same functionality that igoogle provides.. in particular i would have same panels and drag and drop around a main panel with a layout like tilegrid or grid?And if i want to add panels at run time? Anybody knows a solution for this kind of problem? Thanks in advance Regards Lorenzo Thanks for the reply. It's very very cool. where can i found samples to work with it? Thanks again Regards Lorenzo Try http://code.google.com/p/flexmdi/ Thanks, i see that MDIWindow by default provide close, minimize and restore buttons. how can i add a new button to allow modify on windows? thanks thanks, it's what i'm looking for... anybody knows about to save a specific RIA's configuration? For example suppose that a user opens the browser, modify components contained in a generic application and save the modifications. So when the users restarts the application would retrieve the same configuration saved in the previous login... Thanks in advance Lorenzo
[flexcoders] Mimic IGoogle with Flex 3
Hi, i would create an app that has the same functionality that igoogle provides.. in particular i would have same panels and drag and drop around a main panel with a layout like tilegrid or grid?And if i want to add panels at run time? Anybody knows a solution for this kind of problem? Thanks in advance Regards Lorenzo
[flexcoders] Re: Mimic IGoogle with Flex 3
--- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote: Take a look at the MDI stuff in FlexLib. We've produced the effect you are looking for with them. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@... From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: 28 January 2009 10:10 To: flexcoders@yahoogroups.com Subject: [flexcoders] Mimic IGoogle with Flex 3 Hi, i would create an app that has the same functionality that igoogle provides.. in particular i would have same panels and drag and drop around a main panel with a layout like tilegrid or grid?And if i want to add panels at run time? Anybody knows a solution for this kind of problem? Thanks in advance Regards Lorenzo Thanks for the reply. It's very very cool. where can i found samples to work with it? Thanks again Regards Lorenzo
[flexcoders] Re: Mimic IGoogle with Flex 3
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: --- In flexcoders@yahoogroups.com, Gregor Kiddie gkiddie@ wrote: Take a look at the MDI stuff in FlexLib. We've produced the effect you are looking for with them. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpdesk@ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: 28 January 2009 10:10 To: flexcoders@yahoogroups.com Subject: [flexcoders] Mimic IGoogle with Flex 3 Hi, i would create an app that has the same functionality that igoogle provides.. in particular i would have same panels and drag and drop around a main panel with a layout like tilegrid or grid?And if i want to add panels at run time? Anybody knows a solution for this kind of problem? Thanks in advance Regards Lorenzo Thanks for the reply. It's very very cool. where can i found samples to work with it? Thanks again Regards Lorenzo Try http://code.google.com/p/flexmdi/ Thanks, i see that MDIWindow by default provide close, minimize and restore buttons. how can i add a new button to allow modify on windows? thanks
[flexcoders] Modules
Hi, i have a problem in my app.. i have a main application and here i create a custom module, a titlewindow with a close button... when i click the button i would unload the module...is it possible to listen for module events from the main app? how can i rich this goal? Thanks in advance Regards Lorenzo
[flexcoders] Re: Flex. AIR and IPhone
--- In flexcoders@yahoogroups.com, Pete Appleby bon...@... wrote: Guy, I agree with your comments. I've been in computing for 30 years, and it is unfortunate, but in my opinion you hit the nail on the head. The old Not Invented Here syndrome is at work. Microsoft can keep SilverFish and IE. I am sticking with Flex and AIR. The day the Microsoft buys Adobe is the day that I retire. Sorry for the rant! Pete Thanks everybody for replies.. so it's no possible to rich this goal by now... Thanks again Regards Lorenzo
[flexcoders] Re: Modules
--- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: Hi, i have a problem in my app.. i have a main application and here i create a custom module, a titlewindow with a close button... when i click the button i would unload the module...is it possible to listen for module events from the main app? how can i rich this goal? Thanks in advance Regards Lorenzo Anybody can help me? Suppose that i have a module.This module contains a title window and a close button. From the main app i load this module through a ModuleLoader.. then when i click in the close button module i would unload the module..how to do this? if i fire an event from the module the event remains into the module, is it true?the main app can't catch the event... please help me...
[flexcoders] Re: Modules
--- In flexcoders@yahoogroups.com, Rob Kunkle r...@... wrote: Hi Lorenzo - What you want to do is use the ready event of the module loader to add event listeners to your module. So in your main application, you want something like this: private function moduleReadyHandler(event:Event):void { if(moduleLoader.child is DesignBrowser) { moduleLoader.child.addEventListener(DesignBrowser.DESIGN_SELECTED, designSelectedHandler); } } private function designSelectedHandler(event:Event):void { trace('design selected' + event.target.name); } ... mx:ModuleLoader ready=moduleReadyHandler(event) id=moduleLoader/ In my application, I have a module called DesignBrowser. It dispatches a DESIGN_SELECTED event when the user selects a design. The module then loader listens for this event because I added an EventListener to the child of the module loader during the ready event. Hope this helps! Rob On Jan 27, 2009, at 7:20 AM, thelordsince1984 wrote: --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: Hi, i have a problem in my app.. i have a main application and here i create a custom module, a titlewindow with a close button... when i click the button i would unload the module...is it possible to listen for module events from the main app? how can i rich this goal? Thanks in advance Regards Lorenzo Anybody can help me? Suppose that i have a module.This module contains a title window and a close button. From the main app i load this module through a ModuleLoader.. then when i click in the close button module i would unload the module..how to do this? if i fire an event from the module the event remains into the module, is it true?the main app can't catch the event... please help me... thanks Rob you give me a big help.. can i ask you an ther question? i would implement an application like igoogle..but with flex! to do this i have some modules... my app structure looks like this: 1) the main app 2) a main panel (this a child of the main app) 2) n modules so when i start the main app i would load modules on demand into the main panel and then i would drag and drop them to change their position..is it possible to do? can you give me some guide lines? And is it possible to write my personal ModuleLoader in Actionscript3?Can i create i new one and then use it to load all or some of the modules tha i have created? Thanks, thanks thanks Regards Lorenzo
[flexcoders] Flex. AIR and IPhone
Hi, i would create an air application and deploy it into iphone environment and allow touchscreen gestures. How can i start? Thanks a lot Regards Lorenzo