Flasher Archive

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


Subject: FLASH: Question (newbie) concering perhaps eval
From: Rainer Egle
Date: Tue, 28 Nov 2000 15:19:38 GMT

Hi all,

I load several movies in a main.fla via php. The result of the php-file look like:

menu_count=12&menu_text1=Eckhard Ammann&menu_text2=Thomas
Baltzer-Fabarius&menu_text3=Herbert Bauer&menu_text4=Dietmar
B�nke&menu_text5=Anton Frick&menu_text6=Herbert
Gl�ckle&menu_text7=Gerhard Killy&menu_text8=Fritz
Laux&menu_text9=Armin Roth&menu_text10=Helmut
Seichter&menu_text11=Michael Wobbermin&menu_text12=Alfred
Zimmermann&moviename1=ammann.swf&moviename2=baltzer-
fabarius.swf&moviename3=bauer.swf&moviename4=boenke.swf&moviena
me5=frick.swf&moviename6=gloeckle.swf&moviename7=killy.swf&movien
ame8=laux.swf&moviename9=roth.swf&moviename10=seichter.swf&movie
name11=wobbermin.swf&moviename12=zimmermann.swf&menu_loaded=
1

In frame 3 of the main-movies I load them with following script:

Set Variable: "/menu_template:menu_count" = menu_count
Set Variable: "x" = 1
Loop While (x <= /:menu_count)
Load Movie (eval("moviename" & x), x)
Set Variable: "x" = x+1
End Loop

this works fine. But now I want to control if they were loaded with a script
like this in the next frame:

Set Variable: "s" = 1
Loop While (s <= /:menu_count)
Set Variable: "fl" & s = GetProperty ( "_level" & s, _framesloaded )
Set Variable: "tf" & s = GetProperty ( "_level" & s, _totalframes )
Set Variable: "percent" & s = Int(fl & s/tf & s*100)
Set Variable: "s" = s+1
End Loop


what I want is to get the values framesloaded and totalframes of the loaded
movies

And in the next frame I want to display the value of e.g. fl1 in a textfield, but
I think the is a bug in the script which starts with set variable:"s"....

Can someone give me a hint, perhaps I need the command eval or
something like this, but I am a newbie and any help is appreciated.

TIA
Rainer



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Question (newbie) concering p, Muzak

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