Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Fixed size CSXS Flash Panel

New Here ,
Oct 13, 2009 Oct 13, 2009

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!

TOPICS
Actions and scripting
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guru ,
Oct 13, 2009 Oct 13, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2009 Oct 13, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 13, 2009 Oct 13, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2009 Oct 13, 2009

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 14, 2009 Oct 14, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines