5/11/2010 12:38:26 AM
Title:
Adding special charecter on as3
Helo there,I'm new to this user group,Do you perhaps know how to add special charecters to a string of code that loads a menu something like this
var menu_label:Array = new Array( "EXECUTIVE WELLNESS ", " WHAT IS EXEC|care? "," SUMMARY OF SERVICES","CONTACT US" );so on the exec care,the special character isn't showing on AS3 .any ideas?
var menu_label:Array = new Array( "EXECUTIVE WELLNESS ", " WHAT IS EXEC|care? "," SUMMARY OF SERVICES","CONTACT US" );so on the exec care,the special character isn't showing on AS3 .any ideas?
5/11/2010 1:57:18 AM
I used your array as dataProvider to menuBar but it works fine and all special charters show up.
<mx:MenuBar id="myMenuBar" dataProvider="{menu_label}" >
</mx:MenuBar>
5/11/2010 2:05:55 AM
Helo,thanks for the reply
does it work fine with this charecter "|")
5/11/2010 3:10:44 AM
yes it shows exactly on MenuBar like "WHAT IS EXEC|care?" with question mark and Pipe separator
5/11/2010 3:34:15 AM
Ok,may be Im doing it the wrong way,where do I add this code?
<mx:MenuBar id="myMenuBar" dataProvider="{menu_label}" >
</mx:MenuBar>
Or do I have to remove something from here?
var menu_label:Array = new Array( "EXECUTIVE WELLNESS ", " WHAT IS EXEC|care? "," SUMMARY OF SERVICES","CONTACT US" );
var total:Number = menu_label.length;
var i:Number = 0;
var page:Number;
var main_menu:MovieClip = new MovieClip();
stage.addChild(main_menu);
5/11/2010 4:17:43 AM
I used it like this :
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
<mx:Script>
<![CDATA[
var menu_label:Array = new Array( "EXECUTIVE WELLNESS ", " WHAT IS EXEC|care? "," SUMMARY OF SERVICES","CONTACT US" );
]]>
</mx:Script>
<mx:MenuBar id="myMenuBar" dataProvider="{menu_label}" >
</mx:MenuBar>
</mx:Application>