[Flashcoders] for statement stumper

2008-01-23 Thread Dwayne Neckles
Gang here is a stumper for you..

When in the first trace statement j is 0 through 4 but in the second trace 
statement j is 4, 4 times...

ive been playing with this for days.. so i guess the j value is not the same 
inside a nested function.. 
what can i do to make it the same?


for (var j = 0; j5; j++) {
trace(j is+j);
this[clip+j][button+j].onRollOver = function() {

Tweener.addTween(this._parent,{_xscale:100, _yscale:100, delay:0, 
time:2});
Tweener.addTween(_root[text+ j],{_alpha:100, delay:0, time:2});
_root.touchedButton = true
trace(j is+j);
};

this[clip+j][button+j].onRollOut = function() {

Tweener.addTween(this._parent,{_xscale:50, _yscale:50, delay:0, 
time:2});
Tweener.addTween(_root[text+j],{_alpha:0, delay:0, time:2});
_root.touchedButton = false

};



}


_
Helping your favorite cause is as easy as instant messaging. You IM, we give.
http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Form AS3 - variable name brackets []

2008-01-23 Thread Nick Terry

Hello,

I'm trying to set up a newsletter, sending some variables to a PHP 
script in AS3.  The problem is that one of the variable Name/IDs has 
brackets [] in it and flash does not like this, so I've put the variable 
in the URLRequest - but it doesn't work either.  I'm interested if 
anyone has any ideas in how to pass this variable to the PHP file. 

Should I put group_ids[]=2 in a text file and load that text file in 
the flash and then pass it to the PHP with the other variables?  If so, 
ideas in how?  Thanks for any help.


-Nick

Here's the code I have so far:

   var variables:URLVariables = new URLVariables();
   var varSend:URLRequest = new 
URLRequest(manage/public/listmessenger.php?group_ids[]=2);
   //var varSend:URLRequest = new 
URLRequest(manage/public/listmessenger.php);

   var varLoader:URLLoader = new URLLoader;
   varSend.method = URLRequestMethod.POST;
   varSend.data = variables;

   emailSubmit.addEventListener(MouseEvent.CLICK, sendActions);
   varLoader.addEventListener(Event.COMPLETE, loadComplete);

   function sendActions(event:MouseEvent):void {
   variables.email_address = email_txt.text;
   variables.action = String('subscribe');
   //variables.group_ids[] = String('2');
   varLoader.load(varSend);
   trace(variables.email_address);
   trace(variables.action);
   }

   function loadComplete(event:Event) {
   trace(Your message was sent.);
   }


--
Nick Terry
Designer

[EMAIL PROTECTED] | www.nickterry.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] MultiLanguage

2008-01-23 Thread Dave Mennenoh
Little update - I guess it is the font. I tried Lucida Sans Unicode and now 
the Chinese displays OK. However the Korean still shows boxes... Geez. I was 
hoping to not have to buy the Arial Unicode font, it's not on my system...


Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Form AS3 - variable name brackets []

2008-01-23 Thread Cor
Hi Nick,

group_ids[] indicates that you are referencing an Array, and it also needs a
index.

HTH
Cor 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Nick Terry
Verzonden: woensdag 23 januari 2008 7:36
Aan: Flash Coders List
Onderwerp: [Flashcoders] Form AS3 - variable name brackets []

Hello,

I'm trying to set up a newsletter, sending some variables to a PHP script in
AS3.  The problem is that one of the variable Name/IDs has brackets [] in it
and flash does not like this, so I've put the variable in the URLRequest -
but it doesn't work either.  I'm interested if anyone has any ideas in how
to pass this variable to the PHP file. 

Should I put group_ids[]=2 in a text file and load that text file in the
flash and then pass it to the PHP with the other variables?  If so, ideas in
how?  Thanks for any help.

-Nick

Here's the code I have so far:

var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new
URLRequest(manage/public/listmessenger.php?group_ids[]=2);
//var varSend:URLRequest = new
URLRequest(manage/public/listmessenger.php);
var varLoader:URLLoader = new URLLoader;
varSend.method = URLRequestMethod.POST;
varSend.data = variables;

emailSubmit.addEventListener(MouseEvent.CLICK, sendActions);
varLoader.addEventListener(Event.COMPLETE, loadComplete);

function sendActions(event:MouseEvent):void {
variables.email_address = email_txt.text;
variables.action = String('subscribe');
//variables.group_ids[] = String('2');
varLoader.load(varSend);
trace(variables.email_address);
trace(variables.action);
}

function loadComplete(event:Event) {
trace(Your message was sent.);
}


--
Nick Terry
Designer

[EMAIL PROTECTED] | www.nickterry.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release Date: 22-1-2008
20:12


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release Date: 22-1-2008
20:12
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release Date: 22-1-2008
20:12
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problem targeting a movieclip

2008-01-23 Thread Marcelo Wolfgang
Hi list,

I'm trying to access multiple movieclips that path names are stored in
an array, this array is populated with the names when an area load and
its cleaned when an area unload.

Here's the code I have so far:

trace(thisRoot.areaLoader_mc.txt_galeria_mc); // if I delete this the
next one traces undefined
trace(thisRoot.areaLoader_mc.txt_galeria_mc.txt_img05_mc); // this is
the full path, it works
trace(text_area_array[1]) // txt_galeria_mc.txt_img05_mc (is a string)

what I'm trying to do

trace(thisRoot.areaLoader.text_area_array[1]) // undefined
trace(eval('thisRoot.areaLoader.'+text_area_array[1])) // undefined

Can anyone help me figure out how I can target my mc so I can run some
stuff on it?

TIA
Marcelo Wolfgang
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] for statement stumper

2008-01-23 Thread Hans Wichman
Hi,
without going into activation objects or what're called and scope issues,
i'd go with:

for (var j = 0; j5; j++) {
trace(j is+j);
   this[clip+j][button+j].myJ = j;
   this[clip+j][button+j].onRollOver = function() {
   Tweener.addTween(this._parent,{_xscale:100, _yscale:100, delay:0,
time:2});
   Tweener.addTween(_root[text+ this.myJ],{_alpha:100, delay:0,
time:2});
_root.touchedButton = true
trace(j is+this.myJ);
   };
   this[clip+j][button+j].onRollOut = function() {
   Tweener.addTween(this._parent,{_xscale:50, _yscale:50, delay:0,
time:2});
   Tweener.addTween(_root[text+this.myJ],{_alpha:0, delay:0, time:2});
_root.touchedButton = false
   };

}
Haven't tested it though :)
greetz
JC


On Jan 23, 2008 4:38 PM, Dwayne Neckles [EMAIL PROTECTED] wrote:

 Gang here is a stumper for you..

 When in the first trace statement j is 0 through 4 but in the second trace
 statement j is 4, 4 times...

 ive been playing with this for days.. so i guess the j value is not the
 same inside a nested function..
 what can i do to make it the same?


 for (var j = 0; j5; j++) {
 trace(j is+j);
this[clip+j][button+j].onRollOver = function() {

Tweener.addTween(this._parent,{_xscale:100, _yscale:100, delay:0,
 time:2});
Tweener.addTween(_root[text+ j],{_alpha:100, delay:0, time:2});
 _root.touchedButton = true
 trace(j is+j);
};

this[clip+j][button+j].onRollOut = function() {

Tweener.addTween(this._parent,{_xscale:50, _yscale:50, delay:0,
 time:2});
Tweener.addTween(_root[text+j],{_alpha:0, delay:0, time:2});
 _root.touchedButton = false

};



 }


 _
 Helping your favorite cause is as easy as instant messaging. You IM, we
 give.

 http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Classes added

2008-01-23 Thread slangeberg
to save typing, merely hit control - enter when you start instantiating, and
code completion will enter the import for you, such as:

var c:DisplayOb...(ctrl-entr)...

-Scott

On Jan 15, 2008 3:42 PM, Merrill, Jason [EMAIL PROTECTED]
wrote:

 2) It makes it much easier to tell, at a glance, what a class
 depends on.  This can be beneficial in many cases.

 That's the main reason I do it, I like to see all dependancies, for my
 own benefit and for others who will come after me.   package.* always
 seemed like a cop-out to me, even if it saves some typing. :)

 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
: : ) Scott
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] for statement stumper

2008-01-23 Thread Merrill, Jason
When you do:

this[clip+j][button+j].onRollOver = function() {

You are assigning the clip's onRollOver even to an anonymous function.
So the variable j is not known inside the function.  To overcome this,
it is recommended you do not use anonymous functions, but use (and I
assume you are in the AS1/2 world, not AS3) delegate to assign events to
functions:

this[clip+j][button+j].onRollOver = mx.utils.Delegate.create(this,
doRollOver);

To bring the variable j along with it, one way is to assign an object
and then tag it on:

var del:Object = this[clip+j][button+j].onRollOver =
mx.utils.Delegate.create(this, doRollOver);
del.id = j;

function doRollOver()
{
trace(arguments.caller.id)//value of j
}

or, still use an anonymous function (yuck) and assign it as a property
of the button directly:

this[clip+j][button+j].id = j
this[clip+j][button+j].onRollOver = function(){
trace(this.id)//value of j
}



Jason Merrill
Bank of America  
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community



 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] MultiLanguage

2008-01-23 Thread Kerry Thompson
Dave Mennenoh wrote:
 
 Little update - I guess it is the font. I tried Lucida Sans Unicode and
now
 the Chinese displays OK. However the Korean still shows boxes... Geez. I
was
 hoping to not have to buy the Arial Unicode font, it's not on my system...

Microsoft claims that Arial Unicode comes installed with XP, but we have
found that's not the case. We ended up buying a license. Maybe if we had
pushed MS enough we would have gotten the font they claim is installed, but
it wasn't worth the time and effort for us.

We did have good luck with CCJK when we embedded Arial Unicode, though.

Cordially,

Kerry Thompson


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] for statement stumper

2008-01-23 Thread Bob Leisle

Hi Dwayne,

You're right it won't be the same. You need to store the value in each 
button, for retrieval when the functions are executed. Try something 
like this instead:


for (var j = 0; j5; j++) {
   trace(j is+j);
   this[clip+j][button+j].nbrID = j;
   this[clip+j][button+j].onRollOver = onClipRollOver;
   this[clip+j][button+j].onRollOut = onClipRollOut;
}

onClipRollOver = function() {
   Tweener.addTween(this._parent,{_xscale:100, _yscale:100, delay:0, 
time:2});
   Tweener.addTween(_root[text+ this.nbrID],{_alpha:100, delay:0, 
time:2});

   _root.touchedButton = true
   trace(nbrID: +this.nbrID);
};
onClipRollOut = function() {
   Tweener.addTween(this._parent,{_xscale:50, _yscale:50, delay:0, 
time:2});

   Tweener.addTween(_root[text+this.nbrID],{_alpha:0, delay:0, time:2});
   _root.touchedButton = false
   trace(nbrID: +this.nbrID);
};

hth,
Bob

Dwayne Neckles wrote:

Gang here is a stumper for you..

When in the first trace statement j is 0 through 4 but in the second trace 
statement j is 4, 4 times...

ive been playing with this for days.. so i guess the j value is not the same inside a nested function.. 
what can i do to make it the same?



for (var j = 0; j5; j++) {
trace(j is+j);
this[clip+j][button+j].onRollOver = function() {

Tweener.addTween(this._parent,{_xscale:100, _yscale:100, delay:0, time:2});

Tweener.addTween(_root[text+ j],{_alpha:100, delay:0, time:2});
_root.touchedButton = true
trace(j is+j);
};

this[clip+j][button+j].onRollOut = function() {

Tweener.addTween(this._parent,{_xscale:50, _yscale:50, delay:0, 
time:2});
Tweener.addTween(_root[text+j],{_alpha:0, delay:0, time:2});
_root.touchedButton = false

};



}


_
Helping your favorite cause is as easy as instant messaging. You IM, we give.
http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  


--
Thanks,
~
Bob Leisle 
Headsprout Software  Engineering

http://www.headsprout.com
Where kids learn to read! 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] for statement stumper

2008-01-23 Thread Helmut Granda
no the proper way to do it but you can add a dynammic variable to your
button:


for (var j = 0; j5; j++) {
trace(j is+j);
this[clip+j][button+j].value = j
   this[clip+j][button+j].onRollOver = function() {

   Tweener.addTween(this._parent,{_xscale:100, _yscale:100, delay:0,
time:2});
   Tweener.addTween(_root[text+ j],{_alpha:100, delay:0, time:2});
_root.touchedButton = true
trace(j is+j);
trace(Value is +this.value);
   };

   this[clip+j][button+j].onRollOut = function() {

   Tweener.addTween(this._parent,{_xscale:50, _yscale:50, delay:0,
time:2});
   Tweener.addTween(_root[text+j],{_alpha:0, delay:0, time:2});
_root.touchedButton = false

   };

}

Again... I would re-think your logic :)


On 1/23/08, Dwayne Neckles [EMAIL PROTECTED] wrote:

 Gang here is a stumper for you..

 When in the first trace statement j is 0 through 4 but in the second trace
 statement j is 4, 4 times...

 ive been playing with this for days.. so i guess the j value is not the
 same inside a nested function..
 what can i do to make it the same?


 for (var j = 0; j5; j++) {
 trace(j is+j);
 this[clip+j][button+j].onRollOver = function() {

 Tweener.addTween(this._parent,{_xscale:100, _yscale:100, delay:0,
 time:2});
 Tweener.addTween(_root[text+ j],{_alpha:100, delay:0, time:2});
 _root.touchedButton = true
 trace(j is+j);
 };

 this[clip+j][button+j].onRollOut = function() {

 Tweener.addTween(this._parent,{_xscale:50, _yscale:50, delay:0,
 time:2});
 Tweener.addTween(_root[text+j],{_alpha:0, delay:0, time:2});
 _root.touchedButton = false

 };



 }


 _
 Helping your favorite cause is as easy as instant messaging.You IM, we
 give.

 http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
...helmut
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem targeting a movieclip

2008-01-23 Thread Bob Leisle

Hi Marcelo,

You could store references to the clips in the array instead of String 
paths. Then you could access them directly with trace(text_area_array[1]);
If you need help doing that, post the code you use to store the paths in 
the array.


hth,
Bob

Marcelo Wolfgang wrote:

Hi list,

I'm trying to access multiple movieclips that path names are stored in
an array, this array is populated with the names when an area load and
its cleaned when an area unload.

Here's the code I have so far:

trace(thisRoot.areaLoader_mc.txt_galeria_mc); // if I delete this the
next one traces undefined
trace(thisRoot.areaLoader_mc.txt_galeria_mc.txt_img05_mc); // this is
the full path, it works
trace(text_area_array[1]) // txt_galeria_mc.txt_img05_mc (is a string)

what I'm trying to do

trace(thisRoot.areaLoader.text_area_array[1]) // undefined
trace(eval('thisRoot.areaLoader.'+text_area_array[1])) // undefined

Can anyone help me figure out how I can target my mc so I can run some
stuff on it?

TIA
Marcelo Wolfgang
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  


--
Thanks,
~
Bob Leisle 
Headsprout Software  Engineering

http://www.headsprout.com
Where kids learn to read! 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] BitmaData.paletteMap inspiration

2008-01-23 Thread Matthias Dittgen
Hello,

I would like to swap a colorgradient (red to darker red) in bitmaps to
another gradient using paletteMap, but I can't figure it out.
I am able of greyscale aand other more simple effects, but the nearest
I get, was to cut colors that have a huge part of red, but that also
effects lighter colors, because they also have a big part of red in
them.

e.g.
__blueArray[i] = i;
__greenArray[i] = i  8;
if (i0xcc)
__redArray[i] = i  16;
else
__redArray[i] = 0x33;

I am aware, that each Array r/g/b can consist of 256 32Bit values, but
I can't think of a better conspet right now.
I would welcome any help, tutorials or just ideas on that topic.

Matthias
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Form AS3 - variable name brackets []

2008-01-23 Thread Cory Petosky
Try:
variables[group_ids[]] = String('2');

On 1/23/08, Cor [EMAIL PROTECTED] wrote:
 Hi Nick,

 group_ids[] indicates that you are referencing an Array, and it also needs a
 index.

 HTH
 Cor

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Namens Nick Terry
 Verzonden: woensdag 23 januari 2008 7:36
 Aan: Flash Coders List
 Onderwerp: [Flashcoders] Form AS3 - variable name brackets []

 Hello,

 I'm trying to set up a newsletter, sending some variables to a PHP script in
 AS3.  The problem is that one of the variable Name/IDs has brackets [] in it
 and flash does not like this, so I've put the variable in the URLRequest -
 but it doesn't work either.  I'm interested if anyone has any ideas in how
 to pass this variable to the PHP file.

 Should I put group_ids[]=2 in a text file and load that text file in the
 flash and then pass it to the PHP with the other variables?  If so, ideas in
 how?  Thanks for any help.

 -Nick

 Here's the code I have so far:

 var variables:URLVariables = new URLVariables();
 var varSend:URLRequest = new
 URLRequest(manage/public/listmessenger.php?group_ids[]=2);
 //var varSend:URLRequest = new
 URLRequest(manage/public/listmessenger.php);
 var varLoader:URLLoader = new URLLoader;
 varSend.method = URLRequestMethod.POST;
 varSend.data = variables;

 emailSubmit.addEventListener(MouseEvent.CLICK, sendActions);
 varLoader.addEventListener(Event.COMPLETE, loadComplete);

 function sendActions(event:MouseEvent):void {
 variables.email_address = email_txt.text;
 variables.action = String('subscribe');
 //variables.group_ids[] = String('2');
 varLoader.load(varSend);
 trace(variables.email_address);
 trace(variables.action);
 }

 function loadComplete(event:Event) {
 trace(Your message was sent.);
 }


 --
 Nick Terry
 Designer

 [EMAIL PROTECTED] | www.nickterry.com

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release Date: 22-1-2008
 20:12


 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release Date: 22-1-2008
 20:12


 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release Date: 22-1-2008
 20:12


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] MultiLanguage

2008-01-23 Thread Dave Mennenoh

It's essential that you use a Unicode font--I use Arial Unicode for Asian

languages, because it has all the languages I typically need. Embed the
font, of course.

Gotcha. This is fairly new to me so I've been reading as much as I can. I 
found that true type fonts, like regular Arial, adhere to Unicode standards. 
In Flash, if I use Arial I can embed Korean (Hangul), and a few different 
Chinese glyphs. However, I cannot see the incoming UTF-8 encoded chinese 
text from my XML. Russian and all my other languages are working fine. But I 
get squares when trying to display Chinese or Korean, even though the glyphs 
are embedded for both. Hmmm... do I need a different font (Arial 'Unicode') 
or am I doing something wrong?


Thanks much.


Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] missing glyphs

2008-01-23 Thread Mendelsohn, Michael
Hi list...
I've embedded a font that I confirmed in Windows' character map that it has the 
glyphs for ≤ and ≥.  These glyphs trace fine, but they don't appear in my 
textField.  Any idea what I'm missing?

Thanks,
- Michael M.



var objMarkText:TextField = _root.createTextField(tf, 1, 0, 0, 1, 1);
objMarkText.embedFonts = true;
var symbol:String = (i==0)?\u2264:\u2265;
objMarkText.text = symbol;
trace(objMarkText.text);

// traces correctly...but glyph doesn't show up in objMarkText.text


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] MultiLanguage

2008-01-23 Thread Kerry Thompson
Dave Mennenoh wrote:
 
 Gotcha. This is fairly new to me so I've been reading as much as I can. I
 found that true type fonts, like regular Arial, adhere to Unicode
standards.
 In Flash, if I use Arial I can embed Korean (Hangul), and a few different
 Chinese glyphs. However, I cannot see the incoming UTF-8 encoded chinese
 text from my XML. Russian and all my other languages are working fine. But
I
 get squares when trying to display Chinese or Korean, even though the
glyphs
 are embedded for both. Hmmm... do I need a different font (Arial
'Unicode')
 or am I doing something wrong?

A font may adhere to Unicode standards, but it doesn't necessarily have
glyphs for all languages. I'm not entirely sure, but it's quite possible
that Arial doesn't have Hangul (Korean) glyphs--from what you're describing,
it sounds like it doesn't. I don't know for sure, but I do know that Arial
Unicode does.

There are a lot of languages, and a lot of different character sets--Roman
(basically European), Cyrillic, Greek, simplified Chinese, traditional
Chinese, Korean, Japanese, Arabic, Farsi, Sanskrit--you get the idea. The
Arial that's installed on your English machine may not support all the
languages defined by Unicode. I'm actually not sure that any font does--if
you were developing a font, would you include Khmer and Tibetan? (That's not
an idle question--I helped localize the Radio Free Asia Web site years ago,
and we included Khmer, Lao, Tibetan, Vietnamese, and of course Chinese and
Korean).

To me, everything points to yes, you are doing everything right, except
perhaps using the right font. Or, possibly, if you're embedding the font,
you simply need to include the Korean characters.

Cordially,

Kerry Thompson


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders