Adobe Dreamweaver Forums



Last 10 THreads :         pdf question (Last Post : Joseph Kunz - Replies : 0 - Views : 1 )           »          Can't upload selected pdf's to remote server (Last Post : sw2gtg - Replies : 4 - Views : 5 )           »          Video page not opening from link. (Last Post : Team Liquid Fire - Replies : 2 - Views : 3 )           »          Javahelp/Oracle Help (Last Post : cindys@ddms.com - Replies : 10 - Views : 11 )           »          Refreshing xml data in flex (Last Post : ntsiii - Replies : 1 - Views : 4 )           »          move tab with embedded image (Last Post : VPI MkIII - Replies : 1 - Views : 2 )           »          DataGrid CheckBox ItemRenderer (Last Post : fccobb - Replies : 0 - Views : 1 )           »          Passing variable between components (Last Post : ntsiii - Replies : 2 - Views : 3 )           »          CS3 - Export/Save as vector file??? (Last Post : JoshB20 - Replies : 8 - Views : 9 )           »          CF8 Help in Dreamweaver CS3 (Last Post : A.J.cfm - Replies : 2 - Views : 3 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 10-03-2008, 03:11 PM
jkpritchard
 
Posts: n/a
Diggs:
Default Scaling Flex Components

Hi,
I'm a Flash developer, and I have a lot of graphical content stored in my
Flash project libraries that I intend to integrate into my Flex project. I've
downloaded the extension that allows me to export a swc as a Flex component.
That all works fine, but I can't seem to scale the objects properly
(specifically using the scaleX and scaleY).

From what I can gather the reason why has to do with the way Flex handles
content in it's individual containers, but I still can't seem to grasp how I
can get my graphics to scale to the size I need them.

There are probably over a hundred MovieClip objects (linked to AS3 classes for
controlling their appearance and behavior) in my .fla libraries that I need to
use, but this is a major obstacle right now. I realize it is going to be
tedious to convert them all over to Flex components, but the graphics are
required for the app.

I know I can't be the only one to try to do this, but I'm at a loss for how to
get this accomplished. I haven't been using Flex that long, so if this is a
stupid question, I apologize.

Any guidance on where I can find out what to do would be appreciated.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-03-2008, 04:31 PM
LuigiL
 
Posts: n/a
Diggs:
Default Re: Scaling Flex Components

Adding the attached override to the class that is connected to the Flash symbol
seems to resolve this.



override public function setActualSize(newWidth:Number, newHeight:Number):void
{
_width = newWidth;
_height = newHeight;
}

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk