Copy link to clipboard
Copied
Hi all, I've been trying to fix the hight of a Flash panel in Photoshop exactly the same way that the width of the Kuler panel is fixed.
I have read this thread:
http://forums.adobe.com/message/203439#203439
This method does work but is buggy. As I replied in the thread there MUST be a better way of doing this since Kuler does it.
PS: I've tralled all relevent doco and can't find anything so please don't reply with "it's in the doco somewhere". Sorry dont want to sound narky but if you read the above thread you'll see what I'm talking about.
TNKS!
Copy link to clipboard
Copied
I know that it's not any help but I was also unable to stop the panel from being resized. All adding an event handler for StateChangeEvent.WINDOW_RESIZE seems to do is let you reset the size( undo the resize ) after the resize. And as you pointed out even that doesn't always work.
Copy link to clipboard
Copied
I thought maybe there was some meta data or something somewhere so I *Ahemm* decompiled the kuler.swf to see what made it tick. In the decompiled code at least I couldn't see anything that looked like a property to set width/height etc.
Also tried this:
<mx:Metadata>
[SWF(width='800', height='600')]
</mx:Metadata>
to no avail.
Copy link to clipboard
Copied
I'll admit that I have only use the bindable and embed metadata tags in my panels but I would think that the only metadata tag that would used for panel sizing would be the event tag. And I wouldn't think events would work any better in the mx block than it does in the script block.
Copy link to clipboard
Copied
Thanks for the input Michael, could you point me towards any doco about matadata tags for flash apps? I could only find some general info.
TNK!
Copy link to clipboard
Copied
Never mind, found some info.
Here's in the doco for Metadata tags and look in the comments for SWF
http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html#comments
And here's a simple format example:
http://www.joeflash.ca/blog/2008/03/the-swf-metadata-tag-documented.html
Not that this makes any differece to the resize problem, just wanted to make sure this avenue was fully explored.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now