RE: [Flashcoders] AI Personalities...

2005-11-30 Thread Karim Beyrouti
should have mentioned that this is for a simple Chat Bot -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: 30 November 2005 16:08 To: Flashcoders mailing list Subject: Re: [Flashcoders] AI Personalities... Anyone got any good

[Flashcoders] Images in textFields..

2006-02-28 Thread Karim Beyrouti
Hello !... I am working with HTML and images in textField's, and am wondering how one would keep images ( img src=myimg.jpg ) inline with the text? I am trying to have text on one line then the image on another line. Also Another problem I get with img src=myimg1.jpgimg src=myimg2.jpg is that

RE: [Flashcoders] Images in textFields..

2006-02-28 Thread Karim Beyrouti
it myself I can't answer your first question but for your second question, have you tried specifying the width and height attributes of your img tags? This might prevent overlapping. e.g. img src=myimg1.jpg width=20 height=20 On 2/28/06, Karim Beyrouti [EMAIL PROTECTED] wrote: Hello !... I am working

RE: [Flashcoders] Images in textFields..

2006-02-28 Thread Karim Beyrouti
in textFields.. Without trying it myself I can't answer your first question but for your second question, have you tried specifying the width and height attributes of your img tags? This might prevent overlapping. e.g. img src=myimg1.jpg width=20 height=20 On 2/28/06, Karim Beyrouti [EMAIL PROTECTED

RE: [Flashcoders] Images in textFields..

2006-02-28 Thread Karim Beyrouti
On 28 Feb 2006, at 12:48, Karim Beyrouti wrote: I am working with HTML and images in textField's, and am wondering how one would keep images ( img src=myimg.jpg ) inline with the text? I am trying to have text on one line then the image on another line. Also Another problem I get with img

RE: [Flashcoders] Images in textFields..

2006-02-28 Thread Karim Beyrouti
for a long time. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Karim Beyrouti Sent: Tuesday, February 28, 2006 8:06 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders

RE: [Flashcoders] Images in textFields..

2006-02-28 Thread Karim Beyrouti
: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Karim Beyrouti Sent: Tuesday, February 28, 2006 11:09 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Images in textFields.. I guess there is no workarround ? -Original Message- From: [EMAIL PROTECTED

RE: [Flashcoders] casting string to bool

2006-03-03 Thread Karim Beyrouti
Or ... Just to be sure: myBool= ( myString.toLowerCase() == true) - karim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: 03 March 2006 14:51 To: Flashcoders mailing list Subject: Re: [Flashcoders] casting string to bool how

[Flashcoders] Masking Movieclips with BitmapData

2006-03-09 Thread Karim Beyrouti
Hi All, I am trying to mask an object on stage with a bitmapData Object that was generated from a movieclip. I am hopeing that this will enable me to use strokes to mask object.. Anyway, I've found an example online that will help me clone a movieclip, to a bitmap, and managed to keep the

RE: [Flashcoders] Images in textFields..

2006-03-21 Thread Karim Beyrouti
March 2006 11:24 To: Flashcoders mailing list Subject: Re: [Flashcoders] Images in textFields.. for the seconf problem try this img hspace='4' vspace='4' src='myimg.jpg' horizontal around space and vertical around space!!! Karim Beyrouti wrote: Hello !... I am working with HTML and images

[Flashcoders] PDF's in flash

2006-10-04 Thread karim beyrouti
I remember seing a component, to output pdf's from flash... Anyone has the link to it?... Cheers Karim ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] which Symbol?

2006-12-04 Thread karim beyrouti
Hi All... I don’t think this is possible, but just thought I'd ask if it's possible to get the linkageID of a symbol that a class is assigned to?.. Cheers - karim -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.15.2/559 -

RE: [Flashcoders] which Symbol?

2006-12-04 Thread karim beyrouti
. If you add them to your own class, then you're done. Get the linkageID by calling Classname.symbolName; Of course you should use the same identifier that you set in your class. Bart 2006/12/4, karim beyrouti [EMAIL PROTECTED]: Hi All... I don't think this is possible, but just thought I'd ask

[Flashcoders] Embedding Flv in SWF

2007-03-08 Thread Karim Beyrouti
This file I am working with contains an Flv embedded that’s SWF. Do any of you know of any issues where loadOjb.getBytesLoaded() and loadOjb.getBytesTotal() do not report the correct size of the file? Nb. The flv is encoded using - on2 VBR - through sorenson squeeze? -- No virus found in this

[Flashcoders] Flash - using the back button

2007-03-15 Thread Karim Beyrouti
Hi All, I was just wondering what the best way to activate the browser's back button for a Flash(8) app?... are there any up to date resources / tutorial about this?... Kind regards Karim -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus

RE: [Flashcoders] Flash - using the back button

2007-03-16 Thread Karim Beyrouti
the back button Hi, I've been using SWFAddress (http://www.asual.com/swfaddress/), no tutorials needed really... Steven Karim Beyrouti wrote: Hi All, I was just wondering what the best way to activate the browser's back button for a Flash(8) app?... are there any up to date resources

RE: [Flashcoders] Flash Over HTML

2007-03-27 Thread Karim Beyrouti
HTML try wmode = opaque -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karim Beyrouti Sent: Tuesday, March 27, 2007 7:37 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Flash Over HTML Hi All, I am a bit stuck with this one - I am

[Flashcoders] Flash Over HTML

2007-03-27 Thread Karim Beyrouti
Hi All, I am a bit stuck with this one - I am trying to get a flash menu to show over HTML. I am using swfObject, and have set so.addParam(wmode, transparent); I tried playing with the z-index: property in the CSS, to sort the layers accordingly - but have had no luck so far.

RE: [Flashcoders] Text to MP3

2007-03-28 Thread Karim Beyrouti
Aha, I am trying to do the opposite (analyze an audio mp3 and turn it into voiceXML), using some kind of audio recognition tool... Anyway, back to the point - text to speech... I've just cepstral to convert text to an MP3 on the fly and load it back into flash... http://www.cepstral.com/ . You

RE: [Flashcoders] Flash controling Z with div layers

2007-03-28 Thread Karim Beyrouti
1) Make sure that the DIV that contains your flash content uses: position: absolute; 2) make sure that wmode=transparent in your flash embed and object tag. ( I used SWFObject, so.addParam(wmode, transparent); worked a treat. If it helps - I have a sample here:

RE: [Flashcoders] London flash developer

2007-05-08 Thread Karim Beyrouti
Ooops... that’s what you get when you hit reply to post a new email. we are looking for London based developers... details below... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karim Beyrouti Sent: 08 May 2007 16:37 To: flashcoders

[Flashcoders] Drawing API

2007-07-25 Thread Karim Beyrouti
Hi There, Just on the off chance any of you can help - Does anyone have any resources, or knows a good example online to simulate slightly blotchy ink using the drawing API? Regards Karim No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus

[Flashcoders] Dynamically setting properties...

2007-08-08 Thread Karim Beyrouti
Hi List, I am trying to add values to properties a classes, the classes properties are defined like this: function get isActive():Boolean{ return _isActive; } function set isActive( val:Boolean):Void{ _isActive= val; } so instead of douing this to add values to the class:

[Flashcoders] DrawAPI - Curves

2007-08-13 Thread Karim Beyrouti
Hi all... I am struggling a little drawing curves in flash. Say I have 25 randomish points , and would like to join them up with a nice smooth curve. How would I calculate the control points for the curve?... Here is a code sample: code numberOfPoints = 25; xSpacing = Stage.width /

RE: [Flashcoders] DrawAPI - Curves

2007-08-13 Thread Karim Beyrouti
=catmullromspline Cheers, Ian On 8/13/07, Karim Beyrouti [EMAIL PROTECTED] wrote: Hi all... I am struggling a little drawing curves in flash. Say I have 25 randomish points , and would like to join them up with a nice smooth curve. How would I calculate the control points for the curve

RE: [Flashcoders] DrawAPI - Curves

2007-08-13 Thread Karim Beyrouti
Got it, thank you so much for the pointers here is my sample code for this one: code numberOfPoints = 25 xSpacing = Stage.width / numberOfPoints this.lineStyle( 5, 0x00, 100); this.moveTo( 0,Stage.height / 2 ); points = []; for ( var c = 0 ; c numberOfPoints ; c ++ ) {

[Flashcoders] Sorting Date Array...

2007-09-20 Thread Karim Beyrouti
Hi All, I am trying to sort a date array by hour:minute - and not the day/month. So far I have: function sortFnc(a, b):Number { if ( a.date.getHours() b.date.getHours() ) { return -1; } else {

[Flashcoders] osX - ActionScript Editor

2008-01-17 Thread Karim Beyrouti
Hi All, I know this is an old topic. I am looking for a good As2 ( and maybe As3 ) editor for OS-X. for the moment I have found these: http://macromates.com/ - which has not got great reviews. http://www.jedit.org/ - I have tried SEPY but was unable to get it working.

[Flashcoders] bitMapData - function optimization

2008-02-28 Thread Karim Beyrouti
Hello Hello, Just wondering if anyone has any tips or ideas on optimizing this function, as its really slow.. Basically, it creates an inverted alpha mask from a bitmap by going through every pixel in the bit map. Here is the function: code private function createInvertedMask() {

RE: [Flashcoders] bitMapData - function optimization

2008-02-28 Thread Karim Beyrouti
@chattyfig.figleaf.com Sent: Thursday, February 28, 2008 3:47 PM Subject: Re: [Flashcoders] bitMapData - function optimization You could use the paletMap function or the threshold function of the bitmapData object. Check the documentation for details. Greetz Erik On 2/28/08, Karim

RE: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Karim Beyrouti
Yeh - saw that a while ago, Hans got this in answer to a question I posted here a while ago. However, I just managed to get it working, and yeh - it's really fast. Thanks for the reminder... - karim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Karim Beyrouti
How about: class Classes.NoAnswerBut extends Classes.AnswerBut{ function NoAnswerBut(){trace(NoAnswerBut created);} public function onPress(){}//no actions here public function onRelease(){}//no actions here } Another option is to override

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Karim Beyrouti
On 1 May 2008, at 12:44, Karim Beyrouti wrote: How about: class Classes.NoAnswerBut extends Classes.AnswerBut{ function NoAnswerBut(){trace(NoAnswerBut created);} public function onPress(){}//no actions here public function onRelease(){}//no actions

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Karim Beyrouti
Sadly - override is AS3 only ... not AS2... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 01 May 2008 15:26 To: Flash Coders List Subject: RE: [Flashcoders] How do I remove methods of superclass in AS2? Override the functions

RE: [Flashcoders] Re: Is it possible to display in the xml file

2008-06-12 Thread Karim Beyrouti
Or you could use CDATA tags in your XML: title![CDATA[TC's]]/title -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: 12 June 2008 15:31 To: Flash Coders List Subject: Re: [Flashcoders] Re: Is it possible to display in the xml file

RE: [Flashcoders] Insert breakpoints and run debugger withoutFlashCS3? - not an automatic reply..

2008-06-16 Thread Karim Beyrouti
Hmmm... so, here is a little trick I used to use. In the _root of your movie, make a global function like; _global.breakPoint = function (){ var setBreakPointHere = null; } And send a break point ( using the IDE at: setBreakPointHere ); Then simply call that function wherever you

RE: [Flashcoders] Insert breakpoints and run debuggerwithoutFlashCS3? - not an automatic reply..

2008-06-16 Thread Karim Beyrouti
] Insert breakpoints and run debuggerwithoutFlashCS3? - not an automatic reply.. Hey Karim, thanks for your tip. Will this work in AS3 too? Thanks, Ali On 16 Jun 2008, at 10:45, Karim Beyrouti wrote: Hmmm... so, here is a little trick I used to use. In the _root of your movie, make a global

[Flashcoders] synchronize FLV with SWF

2008-09-02 Thread Karim Beyrouti
Hi All - I am synchronizing a loaded SWF with an FLV using the FLVPlayback component (AS3). I've got it quite close, but there is still some slight delay. I have this on a timer: var frame:Number = Math.round( content.totalFrames * ( ( FLVPlayer.playheadPercentage - .25 ) / 100 ) );

[Flashcoders] Perlin Noise / Displacement

2008-09-30 Thread Karim Beyrouti
Hello groovy list... I am trying to generate a chrome effect by applying a displacement map to Bitmap. The Displacement map is generated from perlin noise, and the target is a single colour filled bitmap. However it's not working with the single colour filled bitmap (I think it's because there

RE: [Flashcoders] Perlin Noise / Displacement

2008-10-01 Thread Karim Beyrouti
),,0x006f6f6f,0x,0x00FF); } Karim Beyrouti wrote: Hello groovy list... I am trying to generate a chrome effect by applying a displacement map to Bitmap. The Displacement map is generated from perlin noise, and the target is a single colour filled bitmap. However it's

RE: [Flashcoders] Advice on creating nodes on elastic

2008-10-03 Thread Karim Beyrouti
I started working on something similar, and converted some AS2 Code I found to AS3. It's not finished, or well commented - but should give you a good starting point: http://kurst.co.uk/transfer/GGear.rar . I was thinking of making this open source once I got further down the road, but want to

[Flashcoders] TextField - autoSize

2008-10-10 Thread Karim Beyrouti
Hi List, I seem to be having issues getting my textfield to autoResize - and I am sure this is just me being silly. This is my code: code import flash.text.TextField; import flash.text.TextDisplayMode; import flash.text.TextFieldAutoSize; import flash.text.TextFormatAlign; import

RE: [Flashcoders] TextField - autoSize

2008-10-10 Thread Karim Beyrouti
:[EMAIL PROTECTED] On Behalf Of Karim Beyrouti Sent: 10 October 2008 14:49 To: 'Flash Coders List' Subject: [Flashcoders] TextField - autoSize Hi List, I seem to be having issues getting my textfield to autoResize - and I am sure this is just me being silly. This is my code: code import

RE: [Flashcoders] TextField - autoSize

2008-10-10 Thread Karim Beyrouti
Found the culprit: txt.wordWrap = true; all is fine if I remove that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karim Beyrouti Sent: 10 October 2008 15:17 To: 'Flash Coders List' Subject: RE: [Flashcoders] TextField - autoSize

[Flashcoders] ComBox Box - Font Issues

2008-10-18 Thread karim beyrouti
); cmb_mc.dropdown.setRendererStyle(textFormat, tf); cmb_mc.textField.setStyle(embedFonts, true); cmb_mc.textField.setStyle(textFormat, tf); /code Kind regards Karim Beyrouti

Re: [Flashcoders] ComBox Box - Font Issues

2008-10-18 Thread karim beyrouti
. hmmm... On 18 Oct 2008, at 17:38, Glen Pike wrote: Hi, Try putting a text field off the stage set and embed your chosen font into it - that used to do the trick with AS2. Glen karim beyrouti wrote: Hi list - I am using the flash CS3 components - and have hit a little snag

Re: [Flashcoders] ComBox Box - Font Issues

2008-10-18 Thread karim beyrouti
); cmb_mc.textField.textField.defaultTextFormat = tf /code Regards Karim On 18 Oct 2008, at 18:14, karim beyrouti wrote: Hi Glen - thanks for the answer.. Yep - i remember that one - I tried this at first and sadly it did not work... however to make things stranger - the fonts work in the textfield when i use

RE: [Flashcoders] ComBox Box - Font Issues

2008-10-20 Thread Karim Beyrouti
? That may have a bearing. Have a look at this article: http://blogs.adobe.com/pdehaan/2008/03/using_embedded_fonts_with_the_3.html Which may / may not help? Glen T karim beyrouti wrote: Hi Glen - thanks for the answer.. Yep - i remember that one - I tried this at first

[Flashcoders] FLVPlayback - Buffering

2008-10-21 Thread Karim Beyrouti
Hello groovy list... I can't seem to find a property for buffering percentage in the FLVPlayback component - there must be something as there is a bufferingBar property. any thoughts? Kind regards Karim ___ Flashcoders mailing list

RE: [Flashcoders] FLVPlayback - Buffering

2008-10-21 Thread Karim Beyrouti
Coders List Subject: Re: [Flashcoders] FLVPlayback - Buffering Let me get this: you want to set the buffer or just get its percentage? If so, you expect a percentage from what? If you want to change the buffer length, try bufferTime. Leandro Ferreira On Tue, Oct 21, 2008 at 10:14 AM, Karim

[Flashcoders] AS3 - Checking if a Function Exists

2008-10-27 Thread Karim Beyrouti
Hello Group - This should be really easy. I am trying to find out how to check if a function exists or not in AS3 - I tried this: code If ( currentSection.refresh != null ) { currentSection.refresh(); } /code But I get ReferenceError: Error #1069: Property

RE: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-28 Thread Karim Beyrouti
This is great - thank you -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: 28 October 2008 08:46 To: Flash Coders List Subject: Re: [Flashcoders] AS3 - Checking if a Function Exists Method: public static function

RE: [Flashcoders] ComboBox not dropping down in browser?

2008-10-31 Thread Karim Beyrouti
The problem with the drop down not working could be you removing some needed assets from the styling MovieClips. I suggest if you need to remove some bits of components you just test a lot and try to set the alpha to 0 from the palette if you need to remove something... As for the fonts - I had

[Flashcoders] MP4

2008-11-04 Thread Karim Beyrouti
Hello ! - just wondering what is the lowest version of flash that plays MP4?... Kind regards Karim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] MP4

2008-11-04 Thread Karim Beyrouti
. MovieStar Kenneth Kawamoto http://www.materiaprima.co.uk/ Karim Beyrouti wrote: Hello ! - just wondering what is the lowest version of flash that plays MP4?... Kind regards Karim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

[Flashcoders] Text field - input caret..

2008-11-07 Thread Karim Beyrouti
Hi groovy list... just wondering how I move the input caret to end of a textfield in as3? Regards Karim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Text field - input caret..

2008-11-07 Thread Karim Beyrouti
, myTextField.length); Regards, -Keith http://keithreinfeld.home.comcast.net -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Karim Beyrouti Sent: Friday, November 07, 2008 8:37 AM To: 'Flash Coders List' Subject: [Flashcoders] Text field - input

RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Karim Beyrouti
CursorManager or adding the cursor in some other way? Peter On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti [EMAIL PROTECTED] wrote: Hello All - I am a little stumped by this one. I am using a custom cursor ( added to the stage ), one of my loaded SWF's has a drop down comboBox

[Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Karim Beyrouti
Karim Beyrouti ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Karim Beyrouti
, AS3 Are you using CursorManager or adding the cursor in some other way? Peter On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti [EMAIL PROTECTED] wrote: Hello All - I am a little stumped by this one. I am using a custom cursor ( added to the stage ), one of my loaded SWF's has a drop down

Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread karim beyrouti
Perfect - thank you ! it seems a little odd that the ComboBox adds the List to the stage and not one of its own children. Maybe memory/resource managment. h. On 12 Nov 2008, at 16:26, Keith Reinfeld wrote: Karim, Try adding the following line of code to your MOUSE_MOVE event

RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-13 Thread Karim Beyrouti
content including the combo box to the content pane and the cursor to the cursor pane. I can't say for sure if the combo box will still display on top but may be worth a shot if you're big on freeing up resources. On Wed, Nov 12, 2008 at 5:47 PM, karim beyrouti [EMAIL PROTECTED] wrote: Perfect

[Flashcoders] Controlling Sound in the timeline - AS3

2008-11-14 Thread Karim Beyrouti
Hi ! Another simple AS3 question - well at least I hope so. I am trying to set the volume of a sound that has been embedded in the 'root' timeline of a loaded movieclip (as3). So I tried: Themc.soundTransform.volume = 0; But nothing happened - no mute or anything in AS2 we used

Re: [Flashcoders] Controlling Sound in the timeline - AS3

2008-11-15 Thread karim beyrouti
thanks... On 14 Nov 2008, at 21:30, Kenneth Kawamoto wrote: Shouldn't it be more like: var stfm:SoundTransform = theMC.soundTransform; stfm.volume = 0; theMC.soundTransform = stfm; Kenneth Kawamoto http://www.materiaprima.co.uk/ Karim Beyrouti wrote: Hi ! Another simple AS3 question - well

[Flashcoders] FDT SVN + Code Assist

2009-02-14 Thread Karim Beyrouti
Hello All, I am using eclipse SVN with FDT - and for the most part it really works a treat. However, I am getting all the SVN paths appearing in my code hinting. Do you know a way to get code assist to ignore svn paths? Regards Karim ___

Re: [Flashcoders] FDT SVN + Code Assist

2009-02-14 Thread Karim Beyrouti
choose the item filters and select the .svn files. PS : you use Subclipse ? for me the best solution in eclipse to work with SVN EKA + :) 2009/2/14 Karim Beyrouti ka...@kurst.co.uk Hello All, I am using eclipse SVN with FDT - and for the most part it really works a treat. However, I am

Re: [Flashcoders] Image loader problem

2009-07-26 Thread Karim Beyrouti
I went for bulkloader over making my own queued loader - as it has so many tested features. Here is a little code to help get you started ( if you need it )... Instantiate the loader... code // New Bulk Loader imgLoader = new BulkLoader( 'NameOfLoaderInstance');

[Flashcoders] Resizing Bitmap - Preserving Alpha

2009-08-23 Thread Karim Beyrouti
Hi All - I have this code that resizes a bitmap, which works very well. However - it does not preserve the alpha channel. I am not sure where i am going wrong: public static function resizeBitmap( originalBitmap : Bitmap , scaleFactor : Number ) : BitmapData{ var

[Flashcoders] Re: Resizing Bitmap - Preserving Alpha

2009-08-23 Thread Karim Beyrouti
On 23 Aug 2009, at 16:56, Karim Beyrouti wrote: Hi All - I have this code that resizes a bitmap, which works very well. However - it does not preserve the alpha channel. I am not sure where i am going wrong: public static function resizeBitmap( originalBitmap : Bitmap , scaleFactor : Number

[Flashcoders] Error #2101 - String passed to URLVariables.decode() ... must be URL encoded...

2010-02-10 Thread Karim Beyrouti
Hello List - I am using 'URLLoader' to get some data from the server and get an error: Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. The dataFormat is set to : URLLoaderDataFormat.VARIABLES; The Data source

[Flashcoders] AIR - AS3 Badge

2010-05-11 Thread Karim Beyrouti
Hi All, I've not been able to find anything on this one, and am wondering if there is an AS3 AIR installer badge - so i can embed it in a flash site? Thanks Karim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] AIR - ByteArray to BitmapData

2010-05-24 Thread Karim Beyrouti
Hi All do any of you how to convert a ByteArray (of a JPG) back into a BitmapData object? Actually - i just need to get the dimensions of the bitmap before trashing it. I know you can do 'myloader.loadBytes( byteArray )' - but i am avoiding that for now - as i just need to get the size of

Re: [Flashcoders] swfObject, flashVars, loaded swf

2010-05-24 Thread Karim Beyrouti
how you pass the flash vars to flash depends on the version of SWFObject you are using - however - from flash - you can access the variable like so (as3): stage.loaderInfo.parameters.myflashparam However - you might need to make sure the swf has been 'AddedToStage' - k On 24 May 2010, at

Re: [Flashcoders] AIR - ByteArray to BitmapData

2010-05-24 Thread Karim Beyrouti
= data.readUnsignedShort(); trace(w,h); } } Cheers Juan Pablo Califano 2010/5/24 Karim Beyrouti ka...@kurst.co.uk Hi All do any of you how to convert a ByteArray (of a JPG) back into a BitmapData object? Actually - i just need to get the dimensions of the bitmap before trashing it. I know you can do

Re: [Flashcoders] Question about approximate vowel detection in AS3

2010-06-04 Thread Karim Beyrouti
Yeh - not sure this will help however - a (very talented) colleague of mine worked on a simple speech recognition software for mobile - it was built to recognise about 20 commands with 90% success rate. His approach (in my simplistic terms) was: 1) get recordings / audio samples of the

Re: [Flashcoders] AIR - ByteArray to BitmapData

2010-06-10 Thread Karim Beyrouti
Thanks for your help - uploaded the finished code to the google SVN - so it's free for all... https://code.google.com/p/kurstcode/source/browse/trunk/libs/com/kurst/air/utils/ImageUtils.as Regards Karim On 24 May 2010, at 20:44, Karim Beyrouti wrote: Perfect - thank you for the extended

Re: [Flashcoders] AIR - ByteArray to BitmapData

2010-06-10 Thread Karim Beyrouti
... enjoy... - karim On 10 Jun 2010, at 23:01, Juan Pablo Califano wrote: No worries! And thanks for sharing. Cheers Juan Pablo Califano 2010/6/10 Karim Beyrouti ka...@kurst.co.uk Thanks for your help - uploaded the finished code to the google SVN - so it's free for all

[Flashcoders] JPG Encoder - Issue: file may be truncated or incomplete

2010-06-14 Thread Karim Beyrouti
Hi All, I have a little bug with JPGs encoded through flash ( AIR app ). The application exports resized JPG's, which seem fine and display correctly in the browser - also all good when loaded back into flash. However when opening them with photoshop i get the following error :

[Flashcoders] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Karim Beyrouti
Hi All - Wondering if there are any hacks to trigger a 'RollOver' script when hovering over a 'a href' link in an html textfield. Currently using TextEvent.LINK,to trigger links - but would like to show a tooltip on rollover (of that part of text). So far the only solution i can think of is

Re: [Flashcoders] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Karim Beyrouti
coordinates? On 15/06/2010 13:24, Karim Beyrouti wrote: Hi All - Wondering if there are any hacks to trigger a 'RollOver' script when hovering over a 'a href' link in an html textfield. Currently using TextEvent.LINK,to trigger links - but would like to show a tooltip on rollover

Re: [Flashcoders] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Karim Beyrouti
) { var fmt:TextFormat = txt.getTextFormat (index, index + 1); if (fmt.url) url = fmt.url; } if (url) { // begin tooltip code } ktu On Tue, Jun 15, 2010 at 8:49 AM, Glen Pike g...@engineeredarts.co.ukwrote: Why not use the mouse coordinates? On 15/06/2010 13:24, Karim Beyrouti

Re: [Flashcoders] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Karim Beyrouti
; tf.backgroundColor = 0x00FF; tf.x = pos.x + 5; tf.y = pos.y + 15; addChild(tf); } function removeTooltip ():void { var t:TextField = getChildByName(ToolTip) as TextField; if (t) removeChild(t); } On Tue, Jun 15, 2010 at 9:06 AM, Karim Beyrouti ka...@kurst.co.uk wrote

Re: [Flashcoders] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Karim Beyrouti
Projects/a/p'; addChild(tf); Kevin N. On 6/15/10 8:24 AM, Karim Beyrouti wrote: Hi All - Wondering if there are any hacks to trigger a 'RollOver' script when hovering over a 'a href' link in an html textfield. Currently using TextEvent.LINK,to trigger links - but would like to show a tooltip

Re: [Flashcoders] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Karim Beyrouti
trigger functions http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/text/TextField.html#htmlText Ktu On Tue, Jun 15, 2010 at 12:14 PM, Karim Beyrouti ka...@kurst.co.uk wrote: Yep... However I was trying to get roll overs to trigger a function. Am going to build a textfield roll over

Re: [Flashcoders] html in textfield

2010-06-15 Thread Karim Beyrouti
try trashing returns before setting the htmltext in your field: function trashReturns ( val:String , charToReplace:String = ) :String { return replaceChar( val, \r, charToReplace ) ; } function replaceChar( str : String, charToRemove : String ,

Re: [Flashcoders] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Karim Beyrouti
, at 18:47, Karim Beyrouti wrote: TextEvents were a big improvement over asfunction (AS2 hack) - still - it would be nice if TextEvent had listeners for link rollovers / rollouts. I like the fact you can still get to the url through using textformat/getCharAtPoint. Tooltip data is stored

[Flashcoders] FullScreen - not working

2010-06-23 Thread Karim Beyrouti
Kinda feel silly with this question, I can't get fullscreen mode to work: URL: http://clients.kurst.co.uk/ycommaz/12 HTML contains - allowFullScreen:'true' - and the fullscreen code is: private function ToggleFullScreen(event : MenuEvent) : void {

Re: [Flashcoders] FullScreen - not working

2010-06-23 Thread Karim Beyrouti
of America associates) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karim Beyrouti Sent: Wednesday, June 23, 2010 10:22 AM To: Flashcoders List Subject: [Flashcoders] FullScreen

Re: [Flashcoders] FullScreen - not working

2010-06-23 Thread Karim Beyrouti
= {}; params.wmode= opaque, params.menu = false; params.allowScriptAccess = 'always'; params.allowFullScreen = true; params.bgcolor = '#ff'; Ángel Ambrosio Interactive Developer angelambro...@gmail.com 2010/6/23 Karim Beyrouti ka...@kurst.co.uk Kinda feel silly with this question, I

Re: [Flashcoders] FullScreen - not working

2010-06-23 Thread Karim Beyrouti
from MouseEvent. Ángel Ambrosio Interactive Developer angelambro...@gmail.com 2010/6/23 Karim Beyrouti ka...@kurst.co.uk Cheers - however- it does not work Example with Boolean instead of string in param: http://clients.kurst.co.uk/ycommaz/13 - karim On 23 Jun 2010

Re: [Flashcoders] FullScreen - not working

2010-06-23 Thread Karim Beyrouti
param in boolean type and your MenuEvent class extending from MouseEvent. Ángel Ambrosio Interactive Developer angelambro...@gmail.com 2010/6/23 Karim Beyrouti ka...@kurst.co.uk Cheers - however- it does not work Example with Boolean instead of string in param: http

Re: [Flashcoders] FullScreen - not working

2010-06-23 Thread Karim Beyrouti
Fixed - forgot the a param in the SWFObject code: swfobject.embedSWF(YZLoader.swf, flashcontent, 100%, 100%, 10.0.0 , false, flashvars, params ); Again - Thanks for taking the time to reply ... Regards Karim Beyrouti On 23 Jun 2010, at 16:30, Karim Beyrouti wrote: also - just

[Flashcoders] OT: Adobe Air Marketplace

2010-07-15 Thread Karim Beyrouti
Sorry for the OT post - however i was just wondering what your experiences with the Adobe Air marketplace have been like? I have added an item on there about two weeks ago, and it's still not approved. The Adobe site says it takes about 2-3 working days to approve apps - but have read reports

Re: [Flashcoders] OT: Adobe Air Marketplace

2010-07-15 Thread Karim Beyrouti
Will do - Thank you ... On 15 Jul 2010, at 17:11, Dave Watts wrote: Sorry for the OT post - however i was just wondering what your experiences with the Adobe Air marketplace have been like? If you don't get a good answer here, you might want to post on the AIR-Tight list - lots of Adobe

Re: [Flashcoders] OT: Adobe Air Marketplace

2010-07-19 Thread Karim Beyrouti
Thanks David, i moved this conversation to Air Tight list, and overall Marketplace feedback was quite positive ( well - there was not much feedback, but it was positive). I was just saying the same thing about a mobile 10.1 marketplace, which i think would be a good move forward. Also, my app

[Flashcoders] FaceBook / Flash

2010-07-21 Thread Karim Beyrouti
Hi All, I am trying to add a SWF to a Facebook group, and wondering if you know of any good an recent tutorial or can advise on best method to do so... Muchos thanks - karim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] A fast FFT in Flash?

2010-08-03 Thread Karim Beyrouti
Just a thought - try moving the variable declarations out of the loops: http://www.rozengain.com/blog/2007/05/01/some-actionscript-30-optimizations/ http://osflash.org/as3_speed_optimizations

[Flashcoders] OT: FDT 4.0 M4

2010-08-19 Thread Karim Beyrouti
Hello list - Cannot sign up to bugs.powerflasher.com/jira - Captcha seems to be having problems. tried using Firefox / Chrome and Safary ( and on PC too ) - could not sign up to submit bug. Contacted the FDT team, but no reply yet... anyway thought i'd post it here - in case someone from

Re: [Flashcoders] Link text indexes in a TextField

2010-08-31 Thread Karim Beyrouti
I have textfield link detection in this class - https://code.google.com/p/kurstcode/source/browse/trunk/libs/com/kurst/utils/TextFieldUtils.as using it for link roll-over / roll-out events. And I think it could be extended to get the link's start/end position. Have a look at the

Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps

2010-09-12 Thread Karim Beyrouti
found this method quite interesting: http://insideria.com/2010/08/advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the

  1   2   >