Re: [Flashcoders] Trouble with é FIXED
I used a try catch block to handle my error...worked well. So I don't use the 'ol Try - catch too often and forgot about using it for my situation. On 4/1/11 7:02 PM, Creighton, Gerry gcreigh...@discmakers.com wrote: So I¹m trying to place a textField at the end of a title by getting the bounds of the last character in the title string BUT This is all dynamic and there is one title that has ³ é² as the last character. Flash doesn¹t like this. How can I get the following code to work in this instance? I¹m pulling what¹s left of my hair out. I tried escaping and unescaping but no go. code var charI:String = String(_albumTitle.charAt(_albumTitle.length-1)); var charInt:int = _albumTitle.indexOf(charI); var frame:Rectangle = _albumTF.getCharBoundaries(charInt); //_releaseDateTF is the textField I¹m positioning at the end of the title which also may wrap to a second line //so I can¹t just get the width of the textField to place my _releaseDateTF _releaseDateTF.x = (frame.x+frame.width)+4;//get last character position _releaseDateTF.y = frame.y+1;//get last character position /code Thanks, -Gerry ___ 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
[Flashcoders] fms videostream thumbnails
What is the best setup to export a small set of thumbnails of a flash media server recorded stream ? The idea is content moderation, and therefore I need 2 or 3 snapshots of what the client recorded and the stream that got archived. Has FMS that functionality serverside or do I have to create bmp snaps on the client and upload them ? Has anybody has some illustrative FMS code ? Thanks, Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Trouble with é
Did you embed the font and the basic latin chars? On 4/2/2011 1:02 AM, Creighton, Gerry wrote: So I’m trying to place a textField at the end of a title by getting the bounds of the last character in the title string BUT This is all dynamic and there is one title that has “ é” as the last character. Flash doesn’t like this. How can I get the following code to work in this instance? I’m pulling what’s left of my hair out. I tried escaping and unescaping but no go. code var charI:String = String(_albumTitle.charAt(_albumTitle.length-1)); var charInt:int = _albumTitle.indexOf(charI); var frame:Rectangle = _albumTF.getCharBoundaries(charInt); //_releaseDateTF is the textField I’m positioning at the end of the title which also may wrap to a second line //so I can’t just get the width of the textField to place my _releaseDateTF _releaseDateTF.x = (frame.x+frame.width)+4;//get last character position _releaseDateTF.y = frame.y+1;//get last character position /code Thanks, -Gerry ___ 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: [SPAM?] Re: [Flashcoders] Trouble with é
Yes, font is embedded and I even included the offending characters as well as a couple others. On 4/4/11 9:28 AM, Latcho spamtha...@gmail.com wrote: Did you embed the font and the basic latin chars? On 4/2/2011 1:02 AM, Creighton, Gerry wrote: So I¹m trying to place a textField at the end of a title by getting the bounds of the last character in the title string BUT This is all dynamic and there is one title that has ³ é² as the last character. Flash doesn¹t like this. How can I get the following code to work in this instance? I¹m pulling what¹s left of my hair out. I tried escaping and unescaping but no go. code var charI:String = String(_albumTitle.charAt(_albumTitle.length-1)); var charInt:int = _albumTitle.indexOf(charI); var frame:Rectangle = _albumTF.getCharBoundaries(charInt); //_releaseDateTF is the textField I¹m positioning at the end of the title which also may wrap to a second line //so I can¹t just get the width of the textField to place my _releaseDateTF _releaseDateTF.x = (frame.x+frame.width)+4;//get last character position _releaseDateTF.y = frame.y+1;//get last character position /code Thanks, -Gerry ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [SPAM?] Re: [Flashcoders] Trouble with é
Gerry Creighton wrote: Yes, font is embedded and I even included the offending characters as well as a couple others. Are you sure you're using the embedded font? If a font by the same name is on the system, it will use that. I always put an asterisk in font of my embedded font names, e.g. *Arial, so it will show up first in the font list. What system are you developing on, and what font are you using? The ĂŠ looks like it may be expecting an ANSI character, and getting a Unicode character instead. Also, there are some funny characters in the body of your e-mail--I'm is coming through as Išm. There's something system-related, or font-related, going on here. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [SPAM?] Re: [Flashcoders] Trouble with é
Font is DEF embedded...ArialReg and ArialBold are the names...I didn't embed the entire font so that I don't bloat my application. I selected upper, lower, numbers and punctuation and included:.$()_-=+ é™℠ System: Mac - CS5 Thanks, -Gerry On 4/4/11 12:43 PM, Kerry Thompson al...@cyberiantiger.biz wrote: Gerry Creighton wrote: Yes, font is embedded and I even included the offending characters as well as a couple others. Are you sure you're using the embedded font? If a font by the same name is on the system, it will use that. I always put an asterisk in font of my embedded font names, e.g. *Arial, so it will show up first in the font list. What system are you developing on, and what font are you using? The ĂŠ looks like it may be expecting an ANSI character, and getting a Unicode character instead. Also, there are some funny characters in the body of your e-mail--I'm is coming through as Išm. There's something system-related, or font-related, going on here. Cordially, Kerry Thompson ___ 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: [SPAM?] Re: [Flashcoders] Trouble with é
Ok, a couple more things to consider. Are the fonts Unicode? They should be. Are ArialReg and ArialBold the actual name of the embedded version of the font? Do you have ArialReg and ArialBold on your system? Cordially, Kerry Thompson On Mon, Apr 4, 2011 at 1:01 PM, Creighton, Gerry gcreigh...@discmakers.com wrote: Font is DEF embedded...ArialReg and ArialBold are the names...I didn't embed the entire font so that I don't bloat my application. I selected upper, lower, numbers and punctuation and included:.$()_-=+ é™℠ System: Mac - CS5 Thanks, -Gerry On 4/4/11 12:43 PM, Kerry Thompson al...@cyberiantiger.biz wrote: Gerry Creighton wrote: Yes, font is embedded and I even included the offending characters as well as a couple others. Are you sure you're using the embedded font? If a font by the same name is on the system, it will use that. I always put an asterisk in font of my embedded font names, e.g. *Arial, so it will show up first in the font list. What system are you developing on, and what font are you using? The ĂŠ looks like it may be expecting an ANSI character, and getting a Unicode character instead. Also, there are some funny characters in the body of your e-mail--I'm is coming through as Išm. There's something system-related, or font-related, going on here. Cordially, Kerry Thompson ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [SPAM?] Re: [Flashcoders] Trouble with é
No Kerry...the actionscript name is ArialReg which is the regular vers of Arial. ArialBold is Arial Bold. Fonts are embedded properly and work everywhere in the app except for that instance of a strange character. I got it working but thanks for the help. -Gerry On 4/4/11 1:26 PM, Kerry Thompson al...@cyberiantiger.biz wrote: Ok, a couple more things to consider. Are the fonts Unicode? They should be. Are ArialReg and ArialBold the actual name of the embedded version of the font? Do you have ArialReg and ArialBold on your system? Cordially, Kerry Thompson On Mon, Apr 4, 2011 at 1:01 PM, Creighton, Gerry gcreigh...@discmakers.com wrote: Font is DEF embedded...ArialReg and ArialBold are the names...I didn't embed the entire font so that I don't bloat my application. I selected upper, lower, numbers and punctuation and included:.$()_-=+ é™℠ System: Mac - CS5 Thanks, -Gerry On 4/4/11 12:43 PM, Kerry Thompson al...@cyberiantiger.biz wrote: Gerry Creighton wrote: Yes, font is embedded and I even included the offending characters as well as a couple others. Are you sure you're using the embedded font? If a font by the same name is on the system, it will use that. I always put an asterisk in font of my embedded font names, e.g. *Arial, so it will show up first in the font list. What system are you developing on, and what font are you using? The ĂŠ looks like it may be expecting an ANSI character, and getting a Unicode character instead. Also, there are some funny characters in the body of your e-mail--I'm is coming through as Išm. There's something system-related, or font-related, going on here. Cordially, Kerry Thompson ___ 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 ___ 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: [SPAM?] Re: [Flashcoders] Trouble with é
You have to actually embed the desired chars (ie: you have to include: é) hth, Cedric (actually: Cédric ;) ) No Kerry...the actionscript name is ArialReg which is the regular vers of Arial. ArialBold is Arial Bold. Fonts are embedded properly and work everywhere in the app except for that instance of a strange character. I got it working but thanks for the help. -Gerry On 4/4/11 1:26 PM, Kerry Thompson al...@cyberiantiger.biz wrote: Ok, a couple more things to consider. Are the fonts Unicode? They should be. Are ArialReg and ArialBold the actual name of the embedded version of the font? Do you have ArialReg and ArialBold on your system? Cordially, Kerry Thompson On Mon, Apr 4, 2011 at 1:01 PM, Creighton, Gerry gcreigh...@discmakers.com wrote: Font is DEF embedded...ArialReg and ArialBold are the names...I didn't embed the entire font so that I don't bloat my application. I selected upper, lower, numbers and punctuation and included:.$()_-=+ é™℠ System: Mac - CS5 Thanks, -Gerry On 4/4/11 12:43 PM, Kerry Thompson al...@cyberiantiger.biz wrote: Gerry Creighton wrote: Yes, font is embedded and I even included the offending characters as well as a couple others. Are you sure you're using the embedded font? If a font by the same name is on the system, it will use that. I always put an asterisk in font of my embedded font names, e.g. *Arial, so it will show up first in the font list. What system are you developing on, and what font are you using? The ĂŠ looks like it may be expecting an ANSI character, and getting a Unicode character instead. Also, there are some funny characters in the body of your e-mail--I'm is coming through as Išm. There's something system-related, or font-related, going on here. Cordially, Kerry Thompson ___ 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 ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [SPAM?] Re: [Flashcoders] Trouble with é
I do... As I mentioned below. Thanks, -Gerry On 4/4/11 1:46 PM, Cédric Muller flashco...@benga.li wrote: You have to actually embed the desired chars (ie: you have to include: é) hth, Cedric (actually: Cédric ;) ) No Kerry...the actionscript name is ArialReg which is the regular vers of Arial. ArialBold is Arial Bold. Fonts are embedded properly and work everywhere in the app except for that instance of a strange character. I got it working but thanks for the help. -Gerry On 4/4/11 1:26 PM, Kerry Thompson al...@cyberiantiger.biz wrote: Ok, a couple more things to consider. Are the fonts Unicode? They should be. Are ArialReg and ArialBold the actual name of the embedded version of the font? Do you have ArialReg and ArialBold on your system? Cordially, Kerry Thompson On Mon, Apr 4, 2011 at 1:01 PM, Creighton, Gerry gcreigh...@discmakers.com wrote: Font is DEF embedded...ArialReg and ArialBold are the names...I didn't embed the entire font so that I don't bloat my application. I selected upper, lower, numbers and punctuation and included:.$()_-=+ é™℠ System: Mac - CS5 Thanks, -Gerry On 4/4/11 12:43 PM, Kerry Thompson al...@cyberiantiger.biz wrote: Gerry Creighton wrote: Yes, font is embedded and I even included the offending characters as well as a couple others. Are you sure you're using the embedded font? If a font by the same name is on the system, it will use that. I always put an asterisk in font of my embedded font names, e.g. *Arial, so it will show up first in the font list. What system are you developing on, and what font are you using? The ĂŠ looks like it may be expecting an ANSI character, and getting a Unicode character instead. Also, there are some funny characters in the body of your e-mail--I'm is coming through as Išm. There's something system-related, or font-related, going on here. Cordially, Kerry Thompson ___ 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 ___ 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 ___ 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: [SPAM?] Re: [Flashcoders] Trouble with é
Gerry Creighton wrote: I got it working but thanks for the help. So, what was the issue? How did you get it to work? Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Security Sandbox Violation question
Hi list... I'm building an AIR app that brings in a swf from the user's hard drive. The swf is simply a linear animation with a button to replay the animation on its last frame. The swf plays fine, but when I click the replay button, I get: ** Security Sandbox Violation *** SecurityDomain 'file:///C:/ProgramData/myPath/animation.swf' tried to access incompatible context 'app:/air.swf' I am reluctant to set Security.allowDomain(*); I tried it and it didn't work anyway. Code on the button: StartOverButton.addEventListener(flash.events.MouseEvent.CLICK, function(m:MouseEvent){gotoAndPlay(1);}); stop(); Any suggestions? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] useCapture = true is faster?
Hello all, I'm curious - if I use someObj.addEventListener(MouseEvent.CLICK, someFunc, true); then do evt.stopPropagation - is that faster than if I don't set useCapture = true? The thinking is that it won't have to climb the display list hierarchy down to the target, then back up again - it'll just fire the event at stage, the one time, then cancel futher propagation. I'd guess that I'd have to use evt.currentTarget in place of evt.target. Is that correct? Or is there no real benefit, and I should stick to useCapture = false? Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] constructor interpreted?
Hey all, A long while ago I read that the constructor is interpreted, unlike the rest of the class methods, which are compiled. Is that still true? thanks, Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders