Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 12:40
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  V2 Components (Flash MX 2004 - Flash 8) (Moderators: vesa kortelainen, Ronald Wernecke, Jorge Solis, ..:: Mazhar Hasan ::.., papachan)
| | |-+  exported .swc layout problems
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: exported .swc layout problems  (Read 1351 times)
fomeng
Server what's that
*
Posts: 28



View Profile WWW Email
« on: 08/13/04, 14:43 »

hi.

i've built a calendar component with several columns and rows. it lays out real nicely in my development .fla but when i export it as .swc and then bring it into another .fla i'm getting an enormous amount of white space between my 2nd and 3rd rows.  

why would it lay out correctly in my development .fla and then create all this space after i export it and bring it into another .fla?

i've traced out the values for each row and column and everything looks good. can't understand where the problem might be coming from.

thanks!
Logged
fomeng
Server what's that
*
Posts: 28



View Profile WWW Email
« Reply #1 on: 08/16/04, 11:00 »

quick update. when you drag and drop an instance of a component (any component) onto the stage, there is a blue box which encapsulates the component and every piece of artwork and data inside.

with mine, when i drag an instance of it onto the stage, two of my rows will appear in the correct place in the box (at the very top) but the third row will start at the very bottom of the box and continue drawing new rows below and outside the box.

does this have something to do with live preview or my bounding box movie clip??

thanks. fumeng.
Logged
fomeng
Server what's that
*
Posts: 28



View Profile WWW Email
« Reply #2 on: 08/16/04, 16:05 »

hi. -- another update.

i'm using setSize() to retrieve the new width and height values when a user uses the property inspector to change the size of my component during authoring time.

the weird thing is that in the authoring environment the component will resize to the new dimensions and lay everything out right.

but when i compile it still stays at the old size (i'm losing the __width and __height attributes i just retrieved from setSize the moment i compile). is that weird or is that me?

thanks. fumeng.
« Last Edit: 08/16/04, 16:34 by fomeng » Logged
fomeng
Server what's that
*
Posts: 28



View Profile WWW Email
« Reply #3 on: 08/16/04, 16:56 »

oops. just realized that within setSize() i set:

__width = newWidth;
__height = newHeight;

and in init i set:

__width = _width;
__height = _height;

every time the component was instantiated during runtime it would somehow overwrite the values i retrieved in setSize().

got it working now. on to the next problem.

thanks for all those following my travails!

fumeng.
Logged
fomeng
Server what's that
*
Posts: 28



View Profile WWW Email
« Reply #4 on: 08/17/04, 08:54 »

ok. i'm back with the original problem that i cannot seem to find a solution for.

my calendar component has 8 rows. the first 2 lay out at the top of the bounding box but my remaing 6, well...the first one lays out on the very last row of the bounding box and the next 5 outside and below the bounding box. any ideas??

thanks for taking a look. - fumeng.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!