Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-10-2008, 10:03 AM   #1
josnajoseph2007
Senior Member
 
Join Date: Apr 2008
Posts: 106
Question Flex containers

Hi,

I have a bit confusing question here..........
Can I have containers with different shapes, like curved and some other....Please help.................!
__________________
JJ
josnajoseph2007 is offline   Reply With Quote
Old 07-10-2008, 08:50 PM   #2
Stealth86
Registered User
 
Join Date: Apr 2008
Posts: 27
Default

Quote:
Originally Posted by josnajoseph2007 View Post
Hi,

I have a bit confusing question here..........
Can I have containers with different shapes, like curved and some other....Please help.................!
When you say containers, are you referring to things like VBoxes & HBoxes?
Stealth86 is offline   Reply With Quote
Old 07-11-2008, 04:44 AM   #3
josnajoseph2007
Senior Member
 
Join Date: Apr 2008
Posts: 106
Default

yeah.It could be any container..canvas,vbox, panel etc.
__________________
JJ
josnajoseph2007 is offline   Reply With Quote
Old 07-11-2008, 08:15 PM   #4
fathwad
Registered User
 
Join Date: Jul 2008
Posts: 52
Default

For different shaped containers, you probably need a custom component. A good guide for this can be found here:

Part 1
Part 2
Part 3
Part 4
Part 5
fathwad is offline   Reply With Quote
Old 07-12-2008, 11:08 AM   #5
mojito
Senior Member
 
mojito's Avatar
 
Join Date: Jun 2001
Location: London
Posts: 523
Default expand on the flash vs flex..

This series is a great example of the blurred lines between flex and flash. It is a good article but demonstrates the confusion I have. I still don't know what flex is good for. In the first example we have a flex component system using components created in mxml, and then he goes on to do it in action script.

So why use flex then ? If we use import mx...things then are we using the flex framework ? And is there a list of all the components available in the flex framework somewhere, until I know what is available then im blind a bit. I know the standard components that flash has had for ages. What doesn flex bring ?
__________________
Random Life and other painful life.
mojito is offline   Reply With Quote
Old 07-13-2008, 01:09 AM   #6
fathwad
Registered User
 
Join Date: Jul 2008
Posts: 52
Default

mojito: MXML files and AS files are the same when compiled. In fact, MXML is converted first to AS before being compiled. The advantage of working with MXML over AS is that its format provides a clear visual outline of what you will see on the screen. On the other hand, working in AS provides a very familiar environment to non-Flash coders. Some useful things you can do in AS that can't be achieved (by any reasonable means) in MXML: (By no means is this a comprehensive list)
  • Pass constructor parameters
  • Static classes
  • Interfaces
  • Programmtic skins
  • Non-component classes
fathwad is offline   Reply With Quote
Old 07-15-2008, 06:12 AM   #7
josnajoseph2007
Senior Member
 
Join Date: Apr 2008
Posts: 106
Default

Hi,
Wold like to know in detail...........
What I am supposed to is:
I have an appllicationControlBar(outside container),Inside that I have another container which should contain 3 Analog Clocks,Also the inside container should have curved shape which inturn goes with the shape of the clock.Like car speedometer shape(curved shape) I need for the inside container.
I am attaching a sample sketch and accordingly I need to design;

Click image for larger version

Name:	Sketch.JPG
Views:	79
Size:	22.6 KB
ID:	28134
__________________
JJ

Last edited by josnajoseph2007; 07-15-2008 at 06:52 AM.
josnajoseph2007 is offline   Reply With Quote
Old 07-15-2008, 07:04 AM   #8
mojito
Senior Member
 
mojito's Avatar
 
Join Date: Jun 2001
Location: London
Posts: 523
Default

I'd say use a Hbox for the centre things , but have a custom class for the dials, or clocks, which have their own clock class for each clock.
Or do the lot in as 3 pure flash, I dont see any advantages to using flex for this.

It just isnt custom enough, consider my trials with tileList, I started to use it its nice but to achieve the level of customisation I want I should have created a grid class myself.
__________________
Random Life and other painful life.
mojito is offline   Reply With Quote
Old 07-15-2008, 07:57 AM   #9
josnajoseph2007
Senior Member
 
Join Date: Apr 2008
Posts: 106
Smile

Yeah, I have separate class for Analog Clock with circular shape.
The problem is with the inside container.Can I have curved surfaces for HBOx like the clock surface. If so please give a small implementation for HBox shape
__________________
JJ
josnajoseph2007 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel and Flex interaction rico Flex 2, 3 & 4 1 08-01-2008 03:31 PM
Flex Project Data services RR_QQ Flex 2, 3 & 4 0 01-28-2008 10:33 PM
Is flex for me??? roshankolar Flex 2, 3 & 4 4 09-27-2007 06:34 PM
Flex 2 vs Flex 2.1 Chuck Taylor Flex 2, 3 & 4 2 03-13-2007 07:13 PM
Question about Flex 2 vistasoul Flex 2, 3 & 4 1 02-28-2006 04:07 AM


All times are GMT. The time now is 01:21 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.