I want to be able to refer to my swf object via object id, so that I can focus it via javascript on page load, like this: http://flixel.org/forums/index.php?PHPSESSID=2bba6ecfa6909adf8c274df5393...

But I'm stumped as to how to accomplish this exactly with SWF Tools, because as far as I can see, there's nowhere to enter the equivalent of:

 var attributes = {
         id:"myUniqueID"
      };

And no way to assign:

<object id="myUniqueID"...

It appears that the object id is generated randomly by SWF Tools on each page request? I have an id like "swf12812044473" which changes with every page load, and which I cannot seem to set anywhere.

Any help is greatly appreciated! Thank you!

Any help is much appreciated!

Comments

jordanmagnuson’s picture

Project: Flash Node » SWF Tools
Version: 6.x-2.2 » 6.x-2.5

Moving this from Flash Node to SWF Tools. Any help would be great!

timdiacon’s picture

+1 for this - surely you must be able to assign a specfic object id?

timdiacon’s picture

Status: Active » Closed (fixed)

davidlerin - the random number is a timestamp in version 6.25

The ability to specify an object name manually is included in version 6.3

I've got beta 4 installed and it works perfectly so will set status to fixed.