Solved

Flash Form Variables

Posted on 2007-11-29
2
278 Views
Last Modified: 2012-05-05
I am using the following code to access ComboBoxes in Flash CS3....My question is if this would be enough to pass the variables into a PHP form?  How can I set these to global variables?

rb1.addEventListener(
      Event.CHANGE,
      function(evt:Event):void {
            MyName.text = rb1.selectedItem.data;
      }
);
rb2.addEventListener(
      Event.CHANGE,
      function(evt:Event):void {
            Mycolor.text = rb2.selectedItem.data;
      }
);
rb3.addEventListener(
      Event.CHANGE,
      function(evt:Event):void {
            myNumber.text = rb3.selectedItem.data;
      }
);
0
Comment
Question by:solsticeint
2 Comments
 
LVL 13

Accepted Solution

by:
rhickmott earned 500 total points
Comment Utility
Flash and resulting php page are rendered to the browser before they can be used. If you wish to send data to a PHP script you can use the sendAndLoad() or similar methods to post data to a script which can process and send results back.

Useful links might be

Sending Data to a Script
http://www.flash-db.com/Tutorials/saving/savingData.php

Sending mail from flash using php
http://www.kirupa.com/developer/actionscript/flash_php_email.htm

etc
0
 
LVL 4

Expert Comment

by:drxav
Comment Utility
Just wondering how you went with this question?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now