Adobe Dreamweaver Forums



Last 10 THreads :         Re: Photoshop won't launch (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 0 - Views : 1 )           »          Eventlistener for exiting frame (Last Post : Andrei1 - Replies : 1 - Views : 2 )           »          CS4 Motion Editor issues (Last Post : jdehaan - Replies : 3 - Views : 9 )           »          Flash file won't display (Last Post : Murray *ACE* - Replies : 18 - Views : 19 )           »          How do I centre Tables ? (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »          3 overlapping background images on same page (Last Post : Murray *ACE* - Replies : 9 - Views : 10 )           »          Can I make a 4 state CSS Sprite nav bar. (Last Post : Murray *ACE* - Replies : 7 - Views : 8 )           »          Re: Photoshop CS3 Keeps on Crashing at Random - Help! (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 0 - Views : 1 )           »          bad luck (Last Post : Andrei1 - Replies : 1 - Views : 2 )           »          ActivMail (cf_mail) and Bare LF problem (Last Post : Fetch - Replies : 1 - Views : 2 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:38 AM
ericbelair
 
Posts: n/a
Diggs:
Default Displaying Content in Flex - Best Practice

I'm curious as to people's thoughts for the best methods to display content in
Flex. In particular, I'm creating a UI and want one of the first panels that is
displayed to the user to display some simple instructions on how to use the UI.
Should I import HTML from an external file? Should I embed XML or HTML in the
SWF? Or, should I simply code the content into the SWF? I want the content to
be styled like the rest of my application - fonts, colors, etc.

Any suggestions would be greatly appreciated.

Thank you.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:38 AM
_funkyboy
 
Posts: n/a
Diggs:
Default Re: Displaying Content in Flex - Best Practice

You can embed the content in the swf (unless you want it to change).
Then you can style it using standard css.
This way the resulting application is modular, and if you change the css in
the future, changes are reflected in all your styled components.

More here:

http://livedocs.adobe.com/flex/1/fle...mmon/html/wwhe
lp.htm?context=Using_Flex_Builder&file=brady510.ht m


Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 04:38 AM
Greg Lafrance
 
Posts: n/a
Diggs:
Default Re: Displaying Content in Flex - Best Practice

Just put the text in a TextArea control, but ensure the backgroundColor is set
to the backgroundColor of its parent, borderStyle is set to "none", selectable
is set to "false", focusThickness is set to "0", and verticalScrollPolicy is
set to "off".

Define the instructions in the htmlText property.

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 01:26 AM.


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.
Inactive Reminders By Mished.co.uk