Re: Entry Point

2013-08-29 Thread Saleh Abdulawal
Flex Applications can be run in many Difrrent ways, here are some examples: 1- Web Page : as a swf, it will require 2- Desktop App : as a normal application with a desktop shortcut 3- Mobile App: as a noraml mobile app however, it will require from you to download and install Adobe flash "in case

Re: Entry Point

2013-08-29 Thread Tom Chiverton
If you mean at the user level - nothing. Unless you define an event listener, for something like creationComplete, then nothing will happen. At the framework level, there's a whole component lifecycle that every component you added to your app will go through : http://goo.gl/iHsHW

Re: Entry Point

2013-08-29 Thread Cosma Colanicchia
For a browser app, you may take a look at this useful link: http://technobytz.com/flex-preinitialize.html For a desktop app, the same events should apply but they are only called once - you should look at the InvokeEvent.INVOKE dispatched by the WindowedApplication: it will be dispatched after the

Re: Entry Point

2013-08-29 Thread Sumudu Chinthaka
if you get java console application we know that main() method is the one that run buy the JVM what im confuse is that, what method get calls by the AIR runtime when you execute mobile or desktop application Sumudu On Thu, Aug 29, 2013 at 1:32 PM, Tom Chiverton wrote: > If you mean at the use

Re: Entry Point

2013-08-29 Thread Marcus Wilkinson
You might want to take a look at the Preloader class if dealing with AIR (I'm not sure about flash player in the browser). I found a video from the creators of mixing loom some time ago but can'

Re: Entry Point

2013-08-29 Thread Tom Chiverton
On 29/08/2013 09:23, Sumudu Chinthaka wrote: what im confuse is that, what method get calls by the AIR runtime when you execute mobile or desktop application There isn't a hard coded main() like in Java or C, it's event driven. Tom

Re: Entry Point

2013-08-29 Thread vijendra sainy
preinitialize, initialize, creationComplete are few of the methods which called when any flex app launches. preinitialize is top in the queue. On Thu, Aug 29, 2013 at 2:32 PM, Tom Chiverton wrote: > On 29/08/2013 09:23, Sumudu Chinthaka wrote: > >> what im confuse is that, what method get calls

Re: Entry Point

2013-08-29 Thread Arne Broedel
when the swf gets loaded, the Application starts and is firing events in a typical order like "preinitialize","initialize","creationComplete" You can listen for any of those events to trigger your own "main" method 2013/8/29 Tom Chiverton > On 29/08/2013 09:23, Sumudu Chinthaka wrote: > >>

Re: Entry Point

2013-08-29 Thread Tom Chiverton
Those are events. Don't confuse the new guy ;-) Tom On 29/08/2013 10:11, vijendra sainy wrote: preinitialize, initialize, creationComplete are few of the methods which called when any flex app launches. preinitialize is top in the queue. On Thu, Aug 29, 2013 at 2:32 PM, Tom Chiverton wrote:

Re: Entry Point

2013-08-29 Thread Sumudu Chinthaka
Thanks everybody what my concern is who is dispatching those events and who is responsible for loading the swf? i found this article http://librairie.immateriel.fr/fr/read_book/9780596526894/ch05s03#book_page_last and according to that MovieClip class is the one that interact with the FlashPlay

Re: Entry Point

2013-08-29 Thread Tom Chiverton
On 29/08/2013 10:30, Sumudu Chinthaka wrote: what my concern is who is dispatching those events and who is responsible for loading the swf? Ahh, OK, so you don't care about how a Flex application itself gets going, more about the underlying gubbins. The AIR runtime itself (nor Flash Player) is

Re: Entry Point

2013-08-29 Thread Sumudu Chinthaka
Thanks tom I just want to understand how this works, i have being working on a flex mobile project and my flex knowledge was enough to develop it. but now time has come for me to optimize the app and get the full performance out of it. so i needed to dig deep and see how things work here anyway i

Re: Entry Point

2013-08-29 Thread Sumudu Chinthaka
Hi all SystemManager's constructor comment resolve my problem /** * Constructor. * * This is the starting point for all Flex applications. * This class is set to be the root class of a Flex SWF file. * Flash Player instantiates an instance of this class, *

Re: Pb with special characters and accents

2013-08-29 Thread manitas manitas
Thanks for your help but the problem seems to be related to the charset used by the app before or during the encoding of the post vars. The class URLVariables normally does the encoding to standard post variables for me so that non-asci characters are transformed that way : http://www.degraeve.com

RE: Pb with special characters and accents

2013-08-29 Thread Miguel Ferreira
Hi, I don't know what data type are you transferring to your server side.In my last application i had to use JSON and inside a XML with data about text (pages of text!). To not loose the content i add to create a child on the XML item for the content with cdata like this: private function addCh

Re: Pb with special characters and accents

2013-08-29 Thread manitas manitas
Thanks for your help. The fact is that If you look at the snippet in my previous email I don't think it's a transfer problem. The charset problem happens before the transfer so I think that even if I put the data inside a XML the resulting string won't be correct. By the way I only transfer small

Re: Entry Point

2013-08-29 Thread Tom Chiverton
On 29/08/2013 10:54, Sumudu Chinthaka wrote: Thanks tom I just want to understand how this works, i have being working on a flex mobile project and my flex knowledge was enough to develop it. but now time has come for me to optimize the app and get the full performance out of it. so i needed to

RE: Pb with special characters and accents

2013-08-29 Thread Mark Line
If you don't mind the overhead you can use the escape and unescape functions (build into flash player, so they are (or at least seem) to be performant) -Original Message- From: manitas manitas [mailto:manitas0...@gmail.com] Sent: 29 August 2013 11:38 To: users Subject: Re: Pb with special

Re: Entry Point

2013-08-29 Thread Sumudu Chinthaka
thanks for the tip tom ill try them 2night Sumudu On Thu, Aug 29, 2013 at 4:18 PM, Tom Chiverton wrote: > On 29/08/2013 10:54, Sumudu Chinthaka wrote: > >> Thanks tom >> >> I just want to understand how this works, i have being working on a flex >> mobile project and my flex knowledge was enou

Flex application

2013-08-29 Thread Marcus Wilkinson
Hi, Just thought I'd let you all know about our product flying the Apache Flex flag: http://trafficlive.com/blog/business-babble/the-nerdy-side-of-a-comprehensive-studio-management-system/ Thanks to all who contribute to Apache Flex. Hopefully we can get showcased: https://issues.apache.org/jira

Re: Pb with special characters and accents

2013-08-29 Thread manitas manitas
Thank you so much Mark, it works with the escape function. This workaround works but doesn't help me to understand the whole thing, does it means URLVariables use a different default charset ? how to change it ? Is it relevant create a bug report for that ? and I still have my 2 others questions

Re: Pb with special characters and accents

2013-08-29 Thread manitas manitas
Unfortunately the escape function solution only works with URLRequest.. I have the same charset problem with NetConnection.call() as the remote server won't unescape the sent data... so I'm blocked again.. Can anyone help me to understand how to deal whith charset in a flex app ? Am I the only on

RE: Pb with special characters and accents

2013-08-29 Thread Mark Line
I think é is turning into é because trace() only outputs in UTF-8 while the input of is probably in latin1. Which means the way the characters are stored as binary data with differ. I don't think you will get a bug fixed or similar trace is just a low level function of flash player used for debu

Specifying multiple RSL URL

2013-08-29 Thread Jagan Langa Sami Durai
Hi All, This is how I deployed my application. ROOT/application.swf ROOT/MODULES/module1.swf ROOT/RSLS/rsl1.swf ROOT/RSLS/rsl2.swf This is how I specified the rsl's path while compiling my application and modules( in ant script) Here is my problem, application.swf uses the rsl1.swf as

Re: Pb with special characters and accents

2013-08-29 Thread manitas manitas
Thanks for your answer. The trace or logger problem is only one consequence of my charset problem. My question is then how can I do if I want to send an utf-8 encoded string to trace ? To sum up, what I really want is that my flex app only deals with utf-8. So first of all is it possible ? If it'

Re: Pb with special characters and accents

2013-08-29 Thread Peter Ginneberge
There's definately an SDK (or flash player?) related bug regarding trace(). With some SDK's, tracing special characters works fine in others it doesn't (using the same FlashBuilder version). var chars:String = "éàçè"; trace(" - characters: ", chars); SDK 4.1: // Constole output - characters

RE: Pb with special characters and accents

2013-08-29 Thread Mark Line
That is weird. I just traced the same thing in Flash builder 4.7 using: Apache Flex 4.9.0 FP11.5 AIR3.5 en_US And it worked " éàçè " -Original Message- From: Peter Ginneberge [mailto:p.ginnebe...@gmail.com] Sent: 29 August 2013 15:40 To: users@flex.apache.org Subject: Re: Pb with specia

Re: Pb with special characters and accents

2013-08-29 Thread manitas manitas
Thank you for those information about trace. Alex Haruy already told me that we can't rely on it and now it is sure ;-) Nevertheless my main problem is concerning the transfer of a string using NetConnection.call() The remote server is waiting for utf-8 encoded data, do you know how can I encode

Re: Pb with special characters and accents

2013-08-29 Thread Julio Carneiro
Let me try to add my thoughts on the topic. If you want to send/receive non-ascii characters, both parties in the communication must agree on an encoding (or send the encoding format on the stream as in XML). Also, you must send/receive data in binary format. All common communication protocols

Re: Pb with special characters and accents

2013-08-29 Thread manitas manitas
Thank you very much for your detailed answer. I'm Ok with you an I will try what you suggest. But what I definitely don't understand is why the classes that are supposed to help us don't work. I'm only doing basic operation so what is the cause of this ? For example, as I explained earlier URLVar

Automatically register class aliases

2013-08-29 Thread Jesse Ward-Karet
I'm trying to figure out how to automatically register class aliases for all our value objects. Let me explain: We use Flash Builder's WSDL Data Service utility to generate ActionScript value objects and the supporting service classes. We've found that the web service code that deserializes XML

Re: Pb with special characters and accents

2013-08-29 Thread Alex Harui
First, I am not an expert on this topic. Apparently, there is a difference between escaping and encoding. See [1]. URLVariables is doing encodeURI() and not escape(). As Julio said, you have to have agreement on both sides as to how non-ASCII is being transmitted and received. Everything I've

Re: Flex application

2013-08-29 Thread Alex Harui
Thanks. I still hope to find time to slap together a showcase. But maybe someone (with better visualization skills) will beat me to it. -Alex On 8/29/13 4:22 AM, "Marcus Wilkinson" wrote: >Hi, > >Just thought I'd let you all know about our product flying the Apache Flex >flag: > >http://traff

Re: Automatically register class aliases

2013-08-29 Thread Alex Harui
It's been a long time since I was in this code and I didn't get to know it that well, but I thought that the generated valueobject classes had [RemoteClass] metadata on the class or its internal base class. If not, maybe there's a pattern you can use to stick [RemoteClass] metadata in the valueobj

Re: Specifying multiple RSL URL

2013-08-29 Thread Darrell Loverin
The root of the problem seems to be trying to load the same RSL URL with a relative path from SWFs in different locations. Would either of these solutions work for you? 1. Deploy modules1.swf to the ROOT directory instead of ROOT/MODULES. 2. If rsl2.swf is only used by module1 then move rsl2.swf t