A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Passing Variable question...

  1. #1

    Passing Variable question...

    I am in the middle of a rather gigantic project (it's taken about 6 months of development) and have run into an issue... The project involves a system that allows forms to be filled out and stored in a database. I have written the entire project as an intranet app using Flash, PHP, and MySQL. The system also handles many cash related funtions (a lot of accounting). The customer requested a calculator that will figure out an amount that processing a form would cost. I wrote it - now however the data needs to get from the calculator to the form as the customer does not want to do "double entry".

    The forms however are the issue - they have all been created with an instance name and then popluated or ripped with .text . For example

    theTextfield.text="content";

    Now the problem is that I am opening the forms from PHP and want to use a GET type method of sending a few variables. Normally I could use:

    http://website/form.swf?variable=value

    However I can't send:

    http://website/form.swf?instance.text=1000

    Any thoughts, I am trying to find a way around writing excessive code as this application is due in 2 days...

    Thanks in advance for your assistance!

    Best Regards
    James Almeida
    Jim Almeida
    http://www.atechcommunications.com
    http://www.nunrg-records.com

  2. #2

    Solution...

    I figured out a way to get around the problem... It's a bit "dirty" but here is all I could think of...

    Send the variable from PHP as:

    variable="value1,value2,value3..."

    within Flash take the variable and split it to an array then from an array that lists the correct path for each text instance assign the data to the fields.

    I am guessing it stumped just about everyone who looked at this email since there were no replies. I thought since I found a way I should post it...

    Thanks anyway!

    Jim Almeida

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center