ActionScript 2.0 :: Getting Values From A Dynamic PHP Page Into Flash?
Sep 1, 2008
I'm a front end designer, so I don't have much experience with coding and I'm having a lot of trouble finding a solution to this problem. What I want to do is take the value of $MyState in the php code below and get a flash file located on the same page to recognize the value..
PHP Code:
$MyState = $_GET['MyState'];
MyState is defined dynamically through the address bar, i.e. http://www.mysite.com/mypage.php?MyState=Something
The value of MyState is constantly changing so doing a loadvars from mypage.php won't work. Is there a way to loadvars and get the value of what is in the address bar? _url also does not work. _url is seen as mysite.com/myflashfile.swf.
Or does anyone know of any other ways to get the results I'm looking for?
I did not have any problems on CS4 but I encountered this error below when I used CS5. Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts. Now that the line of error is cleared. However, I am still having problems with my dynamic text fields which worked with correct values in CS4 but gave the incorrect values in CS5.
I have created a dynamic TextArea and want retrieve the value and display in the trace.To run the code below you must drag the TextArea component into the stage.
I have form in flash with input text fields with Var field set to t2_2 t3_2 t4_2... what i want to do when user enter values and press buton it should post data(values) to aspx page - how can i do that ? i saw what i did
[Code].....
then i can access t2_2 value on aspx page, so what shoul i put before getURL so it will set values from texboxes
How the resizing effect is accomplished. I generally use an HTML container with a 800 x 600 flash page but I'm interested in producing this full screen effect so I can control the background graphic elements. [url]...
Basically, the user clicks on a button in a Flash movie and the following code is run:
Actionscript Code: var variables_to_send_out:URLVariables = new URLVariables();variables_to_send_out.test1 = "this is a test";var myURLRequest:URLRequest = new
On a page I have a an iFrame and a swf, I've been trying to use ExternalInterface to pass values from the swf to the iFrame, anyone ever tried this and had any luck? I won't be able to post any code until tomorrow, will update then if needed.Here is a visualization of what I need to accomplish, perhaps if it can't be done the way I said someone will have a suggestion of another way to accomplish this.
I have my main movie, which contains the logo and navigation.I have a blank movieclip created with actionscript that loads the individual movie swf files.That works fine.What I want to do, and which I can't figure out is dynamically have the main navigation buttons' text indicate what page you the user is on. Right now the code is on each button instance, example:[code]so the variable aMenu holds the moveclip names of the buttons. pageHolder holds the the name of the current page that is loaded.Thats how I change the pages to be loaded. To explain, if you look at the button code, the text for each button is by default greay and when you rollover it becomes black and off and it becomes gray again. That is on the first frame. On the second frame the text is black.In the code I tried to make the black dynamically, but it didn't work, so I settled for going to the second frame and stopping.My second question(much shorter I promise).I guess its preference, but is it generally good to put the code on each instance of a button or put in in the main frame where your code lies.
I want to convert my dynamic Drawing (that I created in a Flash Dialog using AS 3) into the .DXF and .DWG format.Is there any way by which I can give the export functionality on the flash page so that the dynamic drawing that created in flash code will export into .DXF and .DWG format.
I have a flash site (scene 1) with scrollable text fields. I want to create a separate (popup) flash page in a completely separate scene (scene 2) that will open in a new window from a link within scene 1.
In scene 1 there are various frames within the timeline that contain scrollable dynamic text (information) that will occasionally be updated.
I want a popup window to open scene 2 and contain the updated information from scene 1. In other words, I don't want to have to update both scenes to display the same information.
There are actually several frames that contain different information in each and I want all the information to appear in scene 2 in a stacked order as dynamic text so that users can scroll through all the pages from scene 1 without having to navigate to other frames.
ive got some dynamic _x _y values coming from an xml file, and i can trace these out fine. xml_x = 300 xml_y = 240 or whatever. However when I try to send a mc to those values, using either load either or enterFrame the clip doesnt do anything at all. Is this because flash is treating the 300 from <xpos>300</xpos> in my xml file as a string rather than an integer?
I have a client that is wanting me to create a flash website in which they can add products pages (product info, images, etc.) themselves after the website is completed. I will setup up the first few products then they will do the rest. Would I wanted to go with dynamic text and empty movie clips loading the images? If so how could I have this create a duplicate page that refers to the new text and image?
im having a hard time figuring out how to get the _x,_y,_width,_height of dynamically loaded images. What do i need to do this; is it possible?im having everything load into a container Mc.heres a piece of it
I have a master page and a child page and have placed the javascript code inside the child page for flash movie.
The problem is the movie seems working when there is a alert on, without at least one alert msg, the code does not work, I am sure you people can solve, I can see that the following code works well in both Mozilla and IE, but only if the alert is ON, if I put it off, then the code does not work. Can anybody tell me what is the workaround :
I have a movie that contains a series of radio button groups, which each have their own accompanying dyn text box. When a certain radio button is selected, a pre-determined value is loaded into each respective groups' text box, via "onRelease".
Now, I can get these values to appear fine in each text box, but I then have a fourth text box (amount_total), into which I want to have the sum of all the previous text box's values.
I have a submit button with the following actions on the first frame of the timeline:
I'm not a programmer but have been using Flash for awhile. This is my first heavy dive into variables.I'm putting together a Quiz game where I pull the information from a txt file. I can get everything to display and work fine except for the adding of a total score.I have a series of values in a text file and load it into my movie. Depending upon what button I push, I want to take the value and add it to the total score. The next button I push I want it to add that value to the new total score.
I'm trying to set up a calculator for a couple of formulas I need to use for some schoolwork. I thought it would be a lot easier if I could just put the numbers in there and hit enter.I can't figure out how to transfer the numbers from the input box to the dynamic box though =/. I figured I'd try to get going really easy, just do a input box, when you click on a button, a dynamic box displays whatever is in the input box. I cant get it to work though . I tried various variations of codes, Heres some of them:
I am popultating a dynamic text box with values from a database.I need/want the location of the text box to be at a random position on the stage, so I have been using:[code]I see that the htmlText is getting set, and with what looks like good html, and I see that text gets set with the non html part from the htmlText.Is it not possiable to calculate the width of the text when html is set to "true"?
I'm making a program that has to write random names to the screen.I'm loading the names from an external .txt-file called nameDataFile.txt The .txt-file contains this:
I'm building a dynamic content page in flash that consists of using attachMovieClip and createEmptyMovieClip with coordinates to place photos and objects, which are loaded from an external source and scrolling their thumbnails I've run into a problem setting the variables correctly because the scrolling thumbnails required that the thumbnails be nested inside a scrolling controller clip and that has somehow messed up my preloading and sequential text caption loading for the tumbnails.
I have 7 Dynamic Text Boxes, each with a numeric value.. I need to add them together. Total = (ST2 + DO + GA + BO + CT + HT + TI);
This makes it 0000000 (Assuming each Dynamic Text had a 0 in it) Total = (ST2 ++ DO ++ GA ++ BO ++ CT ++ HT ++ TI); Gives errors. How do I do Simple Addition? It's been so long.
I have name my dynamic texts as inp1.text, inp2.text, inp3.text etc...Now my question is.. when applying actionscripts (2.0 is the one I use), how to increment their values?How I can make inp1.text as inp2.text?
on(release){ if (Number(inp1.text)>0){n1=Number(inp1.tex� else{n1=0;} if (Number(inp2.text)>0){n2=Number(inp2.tex� else{n2=0;}
I am a actionscript beginner trying to create a form using components in as3, am creating a booking form that combines the totals of each item using the checkbox component when selected and displays them within a text field.I have also tried to convert the values using .toString() method with no success. Here is the current script;
// Setting default values for the Textfields hTotal_txt.text = ("0"); sTotal_txt.text = ("0");