IsItMe – Get flash html object id within flash|IsItMe – Hämta flash html object id innifrån flash

IsItMe är en actionscriptklass som gör det möjligt att hämta flashens html object-id innifrån flashen.
Klassen skapar ett javascript som som körs i webbläsaren. Scriptet loopar igenom alla object-taggar och försöker anropa flashens callback-funktion.
Lyckas javascriptet anropa funktionen med objectets id och den unika nyckeln som genererats tas denna emot av klassen och du vet där med flashens html objekt ID.

IsItMe is a actionscript class that makes it possible to get flash html object id withinFlash.
The class creates a javascript that running in the browser. The script loops through all the object tags and try calling Flash call-back function.
When the javascript call the function in each element with the html object ID and the correct unique key are received by this class, then you know the flash html object ID.

Observera att du inte behöver lägga massa javascript i html koden, utan allt körs innifrån klassen. Klassen finns till både as2 och as3.
Note that you do not need to add javascript in html code, everything running inside the actionscript class. The class exist in as2 and as3.

Hur man använderUsage

import warting.swf.IsItMe;
trace(‘Flashens html object id är: ‘ + IsItMe.getId();

ExempelSample


Get Adobe Flash player

Fungerar även med flera flashar på samma sida:
Also works with more than one flash on the same page:


Get Adobe Flash player

Ladda nerDownload

IsItMe V1.1 (AS2) (232)
IsItMe V1.1 (AS3) (258)
  • Share/Bookmark