hide side navigation
    5 most recent
    Web Services
    Library's
    Component's
    Applications
    Articles
  Flash button as Flex icon  Flex form by email  Hello Remoting with AS3  AS3 Saving data from Flash  AS3 Loading data into Flash  Fire Effect  Contact form  Dragable buttons  Hello World with openamf  Loading helper classes  Upload with Flash 8  Transitions effects  Snapshot with Flash 8  Hello World Remoting AS2  Flash AS2 Remoting Connector  Saving data from Flash  Loading data into Flash  FlashCom & Remoting login  Cell Renderer API  Editing a table using remoting components  Flash MX2004 web service classes  Browsing a catalog  amfphp Documentation  Hello World Remoting  Online Store with AMFPHP  Flash clients for Web Services  Web Service Walk Though with NuSoap  Popup windows in flash with javascript  Installing Apache/PHP  MoreOver News Feeds  Load Edit Save Text Files via CGI  Save Movie Clip Postion via PHP and MySQL
Current Page (1) Next Page >> 1 | 2 | 3 | 4 | 5

Flex tricks : Flash icon as maximize panel button
(translated from my original spanish article by me, sorry for mispellings, sometimesmy english sucks)

Many developpers that comes from a Flash background probably miss the freedom that we use to have in Flash to position graphics elements, fire events from everywhere, modify elements or call methods whitout worry about Cast or undefined objetcs, etc. That's the cost of using a more serious language like AS3 and also a solid framework like Flex. Anyway sometimes we want all: be rigorous but have more freedom. About graphic elements, as far as you come familiar with styles (specially if you have some CSS background) things goes better.

Anyway, sometimes problem arise of course, and this is the story of a little hack I was forced to use. But let's go to the story

Problem

Client: Can't we use an icon to maximize the panel?
Me: Of course, we can put in the left top corner, behind the title

<!-- Developper subtext: this is a Panel component, I can use a titleIcon, but there's no style to align the icon to rigth, just the title-->

Client: Nop, I prefer it on the rigth top corner, like Guindows
Developper: Ok... (arrggghhhhh)

Of course, one solid principle of coding is that always exists some workaround. If the Panel documentation doesn't mention a style to align the titleIcon to the rigth, let's search ... F1 ... searching .... Google ...searching ... arghhh. Should I ask on flash-db forums ?

Ok, can't find and this is the situation

I can't find a property to align the Icon to the other side ... probably exists, but can't find it (and I writed the tutorial because this, so if you find, DON'T let me know) Anyway I consider some workaround: using an swf file with some code ... in fact doing a little hack to Flex styles

To follow the example, please download the source files. This files are a Flex project that you can import from menu File->Import->Flex Project, and selecting the FlexHack folder

Those with more experience can skip the step to step explanation and go directly to resume

The working example in the last page

Current Page (1) Next Page >> 1 | 2 | 3 | 4 | 5