Home Forums General XMetaL Discussion Read Flash (SWF) dimensions Reply To: Read Flash (SWF) dimensions

Derek Read

Reply to: Read Flash (SWF) dimensions

Depending on the desired workflow it might also be possible to call up this control without rendering it, or if that is not possible to call up IE and render it invisibly (that is possible) then query the value there, or maybe you don't mind rendering it (if a dialog is involved).

I'm thinking about a custom dialog (XFT) that would be similar to a standard “Browse for Image” dialog but that would call the ShockWave control (or actually embed it), at which point you could query the width and height, then when the control is dismissed it would populate the @width and @height.

To provide similar behavior (to force the user to select a file so that such an element never gets into the document without the width and height set) you could trigger the same dialog from an block inside the CTM file (see the journalist.ctm demo for a simple example).