Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 07:49
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flex, Air, FlashBuilder, Catalyst (Moderators: ..:: Mazhar Hasan ::.., kofi addaquay)
| | |-+  HTTPService and several autorun method Question :)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: HTTPService and several autorun method Question :)  (Read 1048 times)
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« on: 01/30/10, 23:04 »

Hello there, about HTTPService i just found that transfer the external file to our Mxml?.. :O

For example fill your dataGrid from external file(php,ColdFusion,java,etc)

Nah how about to transfer our data but on the diferent page, URLVariables, Loader didnt worked for me.. Smiley

For example, i wan to send my data to the php, then in the php file want to generate and create some excel document in my directory.. Smiley

because when i do that, the receiver like POST/GET didnt initialize when i try to navigateToURL to that php file.. Smiley

And whats the different about creationComplete="", preinitialize="" and initialize="" methode.. Smiley

Thanks in advance Smiley
Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 01/31/10, 02:43 »

sugestion: read the loading and saving tutorials

At the end, Flex generates SWF-Files, just as Flash does.
Your MXML dies not communicata at all. It compiles to a swf file, which will communicate through the Flash Player.
You are NOT loading a php file, you rather asynchronous communicate with it, and receive the results to your results handler.

Sounds complicated, but is very easy. Just get away from the idea of navigateTo, which is intended to load a HTML-Page into a browser window.
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #2 on: 01/31/10, 02:57 »

Okay thank you very much Ronald Cheesy
Logged

Huihihi~ Cheesy
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #3 on: 01/31/10, 03:15 »

I got some good article about life cycle,

Hope make whoever very clear about the differences Cheesy

    *  The preinitialize event occurs too early in the component life cycle for most initialization activities. It is useful, however, in the rare situations where you must set the properties on a parent before the children are created.
    * To configure a component before Flex has determined its visual appearance, use the initialize event. For example, use this for setting properties that affect its appearance, height, or width.
    * Use the creationComplete event for actions that rely on accurate values for the component's size or position when the component is created. If you use this event to perform an action that changes the visual appearance of the component, Flex must recalculate its layout, which adds unnecessary processing overhead to your application.
    * Use the updateComplete event for actions that must be performed each time a component's characteristics change, not just when the component is created.


Thank you Smiley
Logged

Huihihi~ Cheesy
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!