Welcome, Guest
  • Author Topic: Toward to Flex  (Read 1333 times)

    hinomotoblade

    • Seasoned Programmer
    • ***
    • Posts: 131
    • Flash Never Die :D
      • View Profile
    Toward to Flex
    « on: 01/20/10, 09:51 »
    Hello, i am AS3 lover.. :D

    But when i see the flex, i want to learn about flex..

    I just have questions here.. :)

    1. Which one is good, php or mxml(flex file?)?..
    2. Whats the meaning of 'mx:' in flex why always use that?.. :)
    3. To make the method and attribute in flex did they same with AS3 Structure?..
    4. Did flex is focus on the Website base on AS3?..

    Thank you very much..
    Really realy appreciate with a little reply and help :)
    Huihihi~ :D

    kofi addaquay

    • Global Moderator
    • Senior Programmer
    • *****
    • Posts: 450
      • View Profile
      • Scripton Interactive
      • Email
    Re: Toward to Flex
    « Reply #1 on: 01/20/10, 10:22 »
    Flex is a great addition to your personal skill, and i would greatly advice you look further into this amazing RIA technology.

    here is a response to some of your questions

    1) You cant compare php to mxml, they are totally different language. Php is a scripting language for building dynamic web pages, where are mxml is an xml based language that is compile to actionscipt. so its wrong to say which one is better. i would say they compliment each other when building RIA solutions where flex is the front end and php is the middle ware language that talks to backend databases.

    2) mx: in flex is a namespace that defines components. in flex 3 the mx namespace represents Halo components. This is different in flex 4 where we have Spark Components represents by "s:" . so its not always mx: ...it changes based on the component architecture you are using.

    3) its depends. if you are using mxml syntax its totally different. but its the same when using AS3

    4) YES all flex applications are AS3 based...unless you are using very old flex 1.5 that uses AS2. Stick to versions greater than 2.0


    hope this helps

    Kofi

    hinomotoblade

    • Seasoned Programmer
    • ***
    • Posts: 131
    • Flash Never Die :D
      • View Profile
    Re: Toward to Flex
    « Reply #2 on: 01/20/10, 19:13 »
    Owh :)

    Thanks a lot..

    When i use AS3 Flash, i need PHP file for the gateway to mysql for sending the datas to the database, and AS3 can display the echo in the php with 'event.target.data.variable'..
    Then i need a XML file to make the AS3 Flash can display the datas from the database (mysql)..

    Did flex need two of them too?.. when flex want to work with the database?..

    thanks for your response :)
    Huihihi~ :D

    kofi addaquay

    • Global Moderator
    • Senior Programmer
    • *****
    • Posts: 450
      • View Profile
      • Scripton Interactive
      • Email
    Re: Toward to Flex
    « Reply #3 on: 01/20/10, 20:50 »
    i am sorry, but its really hard trying to understand what you are saying. so i will just write a short summary of what i think you are trying ask

    when it comes to connecting your flex application with php, there are several options. we can use POST and GET variables. we can also use AMF methods for more advanced implementation.

    Using POST and GET you can use something in flex called HTTPService to make a url request and give it the url of where the php file exists. Then you can use event objects to display echo messages from php. When you using HTTPService method  POST you use URLVariables objects to package some data and then send to the server. You can also have php return XML which will be used by your flex application.
    the final option is using AMF methods .. AMFPHP, ZENDAMF etc. When using this ...you will define the mx:remoteobject tag in flex and call a php service which will exist in your gateway. its hard to explain fully since you dont know flex. but i hope you now have a general understanding.

    Kofi

    hinomotoblade

    • Seasoned Programmer
    • ***
    • Posts: 131
    • Flash Never Die :D
      • View Profile
    Re: Toward to Flex
    « Reply #4 on: 01/20/10, 22:17 »
    Understand Master !! :D

    Your response is really2 excellent, i am really sry about my poor english.. :)
    I will try that first Master Kofi.. :)

    Thank you very much for your response :)

    by the way, how to change the default browser of flex to firefox?..
    It always run in IE.. :D

    Thank you :D
    « Last Edit: 01/20/10, 22:49 by hinomotoblade »
    Huihihi~ :D

    kofi addaquay

    • Global Moderator
    • Senior Programmer
    • *****
    • Posts: 450
      • View Profile
      • Scripton Interactive
      • Email
    Re: Toward to Flex
    « Reply #5 on: 01/20/10, 22:34 »
    you are welcome.

    we are always here to point you in the right direction whenever you have questions.

    Kofi

    hinomotoblade

    • Seasoned Programmer
    • ***
    • Posts: 131
    • Flash Never Die :D
      • View Profile
    Re: Toward to Flex
    « Reply #6 on: 01/20/10, 22:52 »
    by the way, how to change the default browser of flex to firefox?..

    Then when i used the 'swf loader' component and browse my swf file it doesnt work in flex, but when i open the swf file directly thats worked.. why?..

    when i run the flex project, there are some exception trace appear thats said there is an error in the swf file.. T.T

    It always run in IE.. Cheesy

    Thank you Cheesy

    I am really help each others, but the ppls here did have more more skill than me.. T_T

    Wish later can help the really beginer :D, but later because i am the really beginer about flex right now XD

    hehe thank you kofi :)

    « Last Edit: 01/21/10, 00:47 by hinomotoblade »
    Huihihi~ :D