Hello and thanks in advanced for reading into this.
I´m looking for a way (if its possible at all with AS2.0) to read the main time line and placing its current frame name into a variable.
So if my maintime line exists of the frames “start”, “page1”, “page2”, ect. and i’m looking at “page1” by example. That Flash grabs the frame name and place it into a variable “currentpage”.
I’ve found for AS3.0 on Adobe.com a string in the object Movie that should be able to do this. Its name “TCurrentLabel”.
TCurrentLabel
Syntax TCurrentLabel(target)]
Description Returns the label of the current frame of the timeline specified by target. If there is no current frame label, an empty string is returned. The argument type is string.
Example var currentLabel = movie.TCurrentLabel(“/MovieClip”);
Is there a function like this in AS2.0 what could do almost a simular handling? I’ve been crawling the internet for days now and can’t find a good description of how to use it.
Switching to AS3 is not an option, a) no knowledge of as3 and b) no knowledge of how transform as2 in as3 (will learn this later on this year)
The goal is that a function grabs the framename and ads it to a Var. This var will be send to a php script which uses it in a “Select mysql” statement.
PHP receives the mysql data and returns it into vars back to flash.
With this you have 1 php script 1 movieclip and a framebased var. This will saves heaps of time since you can create one content movieclip for all pages which displays content bases on the main timeline/framelabel/var.
My current work around is creating a content movieclip for each page/framelabel and code the “currentpage” var hard into the clip. The PHP script is ready this usage. So all i need now is that flash create this var based on the framelabel. I just want to reduce the amount of different content movieclips from 20 to 1.
If you need an example fla and the content of the php script let me know and i publish them. The table is named “paginas” en contians the following colums “titel, content, pic1, pic2, flashframelabel”. The table rows contain the data per page (start, page1, page2, etc)