English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have made a flash script that creates a what will hopefully be a editable message scroller. (Kinda lame) but fits with my website theme. In my php script I have a scroller.swf?scrolltext= (basicly swf=scrolltext-Ilikechese - for all you non php programmers :p) how can I take this and change the message in my flash to what ever is specified in this variable. Please explain well I am very poor at actionscript.

Studio 8 Flash 8.

2007-03-27 10:49:34 · 2 answers · asked by pezmc 3 in Computers & Internet Programming & Design

Does anyone know how to do this?

2007-03-29 10:54:23 · update #1

2 answers

Once I got into same problem and found a solution on internet where in flash you can load a file and get its text. The reason why you cant pass HTML variables into flash swf is because you dont have any reading ability from flash. All you can do it write a small file through PHP in one of the folders which has right access to the user. Then use flash to read it.
It can be done by all known file reading scripts.
1. USe PHP to write your message to a file or in a input format which flash can read.
2. Use flash to read that file and open your message.

Suppose you create a message.txt file by PHP all you have to do is load this file in flash as text file and all the text will appear as a variable and then use this as a message to your scroller.

Its not that straight forward. For flash to get variables you have to read how to use flash parameters to swf which is very common. Once you have made a small flash parameter program which only shows Hello [param] then you will be successful in it. But you would have not found that many flash websites are there which are not capable of doing this because of reading the variable as it is passed thorough URL in other sense than the one that flash has got.

Hope you got my point.

2007-04-04 08:17:23 · answer #1 · answered by Nomee 2 · 0 0

I dont think that is a way to pass values to flash - although i'm not too sure. This one definitely works:


...
...

'>

2007-04-01 08:19:44 · answer #2 · answered by r_ranjith 4 · 0 1

fedest.com, questions and answers