header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
safi
Points:0
Posts:0

6/27/2010 9:43:50 AM

Title: How to set the htmlString as panel title


I need to give a html text as a panel title, how to achieve this ?i am using the folowing method
override mx_internal function createTitleTextField(childIndex:int):void
{
// Create the titleTextField as a child of the titleBar.
super.createTitleTextField(childIndex);

titleTextField.htmlText = title;

}
}
but its not taking the html text.



1
Flash_Guy
Points: 850
Posts:0
6/27/2010 10:44:59 AM



you can extend the Panel class and override the createChildren method to add a new text box for HTML title , also declare a setter function to set the property

protected override function createChildren(): void {
super.createChildren();
var mytext:TextField= new TextField();
//position the text box
mytext.x= 10;
mytext.y= 5;

}
// setter method to set title

public function htmlTitle(str:String):void{
mytext.htmlText=str;
}

I have written code in notepad so there can be some syntax problem . but the logic is fine .


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions