Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Re: 3d carousel tutorial question

Cow Forums : Adobe Flash
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: 3d carousel tutorial question
by Sher Ali on Sep 18, 2007 at 10:48:12 pm

You can use only those html tags which are supported by flash. You also set the dynamic text field's text first setting its html property to true and then assign the text using its htmlText property.

You can use external css file to define rules for html tags. Following is a sample code, which I use in almost all of my projects.

import TextField.StyleSheet;
var flash_css:StyleSheet = new StyleSheet();
flash_css.onLoad = function(success:Boolean) {
if (success) {
//When the style css file is loaded succefully then do nothing
//as it will be used later when required
//trace("Styles loaded:");
} else {
//in case of error show a trace message
trace("Error loading CSS");
}
};
//load css file
flash_css.load("flash_css.css");


once the stylesheet is loaded and suppose you have a text field myDescriptionText which has some text along with html tags then apply the newly loaded stylesheet as:



myDescriptionText.html = true;
myDescriptionText.htmlText = "This is a bold text";
myDescriptionText.styleSheet = flash_css;


---------------
Sher Ali


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:
  • 3d carousel tutorial question by sbparke on Sep 18, 2007 at 7:12:42 pm
    • Re: 3d carousel tutorial question by Sher Ali on Sep 18, 2007 at 10:48:12 pm




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]