Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Flash and PHP
From: Helen Triolo
Date: Fri, 1 Sep 2000 13:25:53 +0100

Rainer,

Load Variables is the way to do it. Your php should be passing back a
string like echo "max=$amount" and you set up your flash movie with this
kind of structure:

frame1:
load variables("xxx.php",0)

f2:
if (max ne "")
goto and play continue

f3:
goto prev frame

f4 (label=continue):
rest of movie, where you duplicate the movieclip that has your button
in it max times (maybe put a textfield named max here for testing too to
make sure the php is passing back what you expect -- will be
automatically filled in with the value of max)

If you need more resources, there are quite a few in the archive
database in my sig file -- search on php.

hth,
Helen
---------------------------------------------------------------
Flash 5 Journal: http://i-technica.com/flash5 (new: alarm 8/31)
Flash Q&A archive: http://i-technica.com/flashlist

Rainer Egle wrote:
>
> Hi all,
>
> I am newbie and from Germany, so my English is not so great, but
> I need help and try to explain my problem, which may be very easy
> to solve.
>
> I want to get a variable from a php-page in flash. Ok I want to
> specify my problem.
>
> I have created a database (Lamp-SYSTEM) and got the amount of
> rows via PHP: 12 at the moment but variable
>
> The variable name in the php-script is $amount
>
> Now I want to duplicate a button in Flash x-times (depending on
> the rows in the database).
>
> How do I get 12 in a variable which is called max? Is this possible?
>
> Tried something with LoadVariable, but did not work.
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Flash and PHP, Rainer Egle

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]