Flasher Archive

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


Subject: Re: FLASH: Question (newbie) concering perhaps eval
From: Muzak
Date: Tue, 28 Nov 2000 16:26:42 GMT

Not 100% sure and it's been a while since I used Flash 4, but I think you need the Eval() action all the way through.

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


HTH,
Muzak

----- Original Message -----
From: "Rainer Egle" <rainer [dot] egleatFH-Reutlingen [dot] DE>
To: <flasheratchinwag [dot] com>
Sent: Tuesday, November 28, 2000 4:02 PM
Subject: FLASH: Question (newbie) concering perhaps eval


> Hi all,
>
> I load several movies in a main.fla via php. The result of the php-file look like:
>
> 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
  FLASH: Question (newbie) concering perha, Rainer Egle

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