Re: [Flashcoders] AS3 - Checking if root swf has completely loaded before executing script - Help?

2009-02-23 Thread Glen Pike
Carl Welch wrote: Hi Guys. I need to make sure that my swf has completely loaded in the page before I execute a particular script. Any suggestions on how to go about this? Point me in the direction... please? Thanks Cheers! Hi, If you mean calling JavaScript, could you call this

[Flashcoders] HTMLLoader problem

2009-02-23 Thread Lehr, Theodore M (N-SGIS)
I'm having a funny issue with HTMLLoader. I'm getting a 1046: Type was not found or was not a compile-time constant: HTMLLoader. Error for the line of code below. public var _htmlLoader:HTMLLoader = new HTMLLoader(); I'm importing HTMLLoader and URLLoader. The odd part to me is the code I am

Re: [Flashcoders] HTMLLoader problem

2009-02-23 Thread Fabio Pinatti
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/html/HTMLLoader.html On Mon, Feb 23, 2009 at 10:36 AM, Lehr, Theodore M (N-SGIS) theodore.m.l...@lmco.com wrote: I'm having a funny issue with HTMLLoader. I'm getting a 1046: Type was not found or was not a compile-time

Re: [Flashcoders] HTMLLoader problem

2009-02-23 Thread jonathan howe
Yes, that class is only for AIR. Adding rendering of HTML content using Webkit engine was one of the 3 or 4 most significant features introduced by AIR. In the docs, AIR only classes usually have the little red pinwheel icon next to them. -jonathan On Mon, Feb 23, 2009 at 8:36 AM, Lehr,

[Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-23 Thread ali drongo
Hi there, I'm animating some letters that are dynamically created in their own sprites across the screen as if they are being fired in a stream. Currently I am using a fixed width font so it's straight forward to find their final position. My problem is that I need to use a non fixed-width font

Re: [Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-23 Thread Glen Pike
Hi, You should be able to get the width of each sprite with the single letter in??? Maybe mask the stream area out. Start each letter at x - letterWidth, increase the x after each interval, when the letter reaches x=0, create show the next one, add it to your array. Loop

Re: [Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-23 Thread Hans Wichman
and for as2: http://objectpainters.com/blog/2008/10/12/finding-character-positions/ On Tue, Feb 24, 2009 at 1:24 AM, Matt Gitchell m...@moonbootmedia.comwrote: Is this AS3? you can use TextField.getCharBoundaries() I used it in an experiment a while back here to pretty good effect:

Re: [Flashcoders] How to know coordinates of letters in non fixed-width fonts

2009-02-23 Thread Matt Gitchell
the AS2 one is a cool idea! On Mon, Feb 23, 2009 at 10:16 PM, Hans Wichman j.c.wich...@objectpainters.com wrote: and for as2: http://objectpainters.com/blog/2008/10/12/finding-character-positions/ On Tue, Feb 24, 2009 at 1:24 AM, Matt Gitchell m...@moonbootmedia.com wrote: Is this AS3?