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.
kayotic
Points:10
Posts:0

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?




1
Brad
Points: 750
Posts:0
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>

2
kayotic
Points: 10
Posts:0
5/11/2010 2:05:55 AM



Helo,thanks for the reply
does it work fine with this charecter "|")



                

3
Brad
Points: 750
Posts:0
5/11/2010 3:10:44 AM



yes it shows exactly on MenuBar like "WHAT IS EXEC|care?" with question mark and Pipe separator

4
kayotic
Points: 10
Posts:0
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
Brad
Points: 750
Posts:0
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>


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 5+0 



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