Re: [Flashcoders] binary-coded image

2008-12-04 Thread laurent
yes, thanks everyone it made sens last night when I got to bed for a while...:) yes it's just an image where color are black or white1/0...binary-coded...wow! :) Only for processing, not less space... thanks ;) L Daniel Boey a écrit : Hi, BitmapData class has a threshold method that

[Flashcoders] Loader bytesTotal equals to 0

2008-12-04 Thread Christian Giordano
I've a strange bug which seems on the Flash Player. Basically on Windows / IE when the page is reloaded, the preloader logs the progress of the bytesLoaded correctly, but the totalBytes are incredibily 0. I tried both to check the ProgressEvent or the loader.contentLoaderInfo itself, the result

[Flashcoders] display trace() in text field

2008-12-04 Thread Michael Stocke
Good morning everyone. Is it possible to display trace actions in a text field? I realize there are numerous other troubleshooting tools similar to trace, but I specifically want to display trace actions without any additional coding required in the target file. I want to create a debugging

[Flashcoders] Different class instances with socket using same port number?

2008-12-04 Thread Eric E. Dolecki
Wondering if it's possible to have different classes open sockets to the same port number? Going to throw stuff in an if/else and depending on a variable, send to the socket with different values. They all currently open to the same port number. ie. inside each of the class constructors being

Re: [Flashcoders] display trace() in text field

2008-12-04 Thread Gregory Boland
I'm not quite sure what your asking. The trace output is nothing more than strings of text. Its completely possible to make a class that does the same thing for you but displays it in the Flash. On 12/4/08 9:44 AM, Michael Stocke [EMAIL PROTECTED] wrote: Good morning everyone. Is

RE: [Flashcoders] display trace() in text field

2008-12-04 Thread Merrill, Jason
Trace only sends strings to the Flash or Flexbuilder output window, so no. However, all you have to do is set the variable you want to see to the text property of the textfield: myTextField.text = myVariableIdLikeToSee Jason Merrill Bank of America Instructional Technology Media ·

Re: [Flashcoders] Different class instances with socket using same port number?

2008-12-04 Thread Glen Pike
Eric E. Dolecki wrote: Wondering if it's possible to have different classes open sockets to the same port number? Going to throw stuff in an if/else and depending on a variable, send to the socket with different values. They all currently open to the same port number. ie. inside each of the

RE: [Flashcoders] Different class instances with socket using same portnumber?

2008-12-04 Thread Eamonn Faherty
I don’t think that is possible but even if it is, it doesn’t sound that graceful. Why not have a single SocketProxy or SocketWrapper class with a single socket connection. You can pass that as a reference to two or more classes. -Original Message- From: [EMAIL PROTECTED]

Re: [Flashcoders] Different class instances with socket using same portnumber?

2008-12-04 Thread Eric E. Dolecki
I have class const values that i was calling up and passing through... so it seemed easier to make an instance of the class, which connects to a socket (all the same), and then based on logic, pull a const out of the class and send it through. On Thu, Dec 4, 2008 at 10:41 AM, Eamonn Faherty

Re: [Flashcoders] display trace() in text field

2008-12-04 Thread Sidney de Koning
Hi Mike, I'm working on a similair project, check it out here: http://www.funky-monkey.nl/blog/2008/05/13/air-logger-v100/ Right now i'm working on a version that from any swf traces to my air app, traces to the debug panel in Flex and traces out to FireBug plugin in Firefox, (will be

Re: [Flashcoders] display trace() in text field

2008-12-04 Thread Joel Stransky
In Firefox you can use flashtracer https://addons.mozilla.org/en-US/firefox/addon/3469so I imagine using a similar method you could pull trace commands into an Air app. If you do end up using a textField, make sure to use += and a newline character \n in each call. On Thu, Dec 4, 2008 at 10:42

Re: [Flashcoders] display trace() in text field

2008-12-04 Thread Sidney de Koning
or you can override trace like so: override public function trace(...args) : void { super(); textFieldYouWantToTraceIn.appendText(args.toString()); } This is from the top of my head, so the code could have errors in it. Test it to see. Cheers, Sid PS. You can ony do this from

Re: [Flashcoders] Different class instances with socket using same portnumber?

2008-12-04 Thread Eric E. Dolecki
Actually, thats the best thing for me to do... I'll nail that up. On Thu, Dec 4, 2008 at 10:41 AM, Eamonn Faherty [EMAIL PROTECTED]wrote: I don't think that is possible but even if it is, it doesn't sound that graceful. Why not have a single SocketProxy or SocketWrapper class with a single

Re: [Flashcoders] display trace() in text field

2008-12-04 Thread allandt bik-elliott (thefieldcomic.com)
function debug(s:String):Void { _root.pathToTextField.myText.text += /n+s; } then instead of trace(someString); you use debug(someString); a On Thu, Dec 4, 2008 at 3:42 PM, Merrill, Jason [EMAIL PROTECTED] wrote: Trace only sends strings to the Flash or Flexbuilder output window, so no.

[Flashcoders] Arabic flipping

2008-12-04 Thread Mike Grunwald
OK... I think I've reached the end of the internet as well as the end of my patients. I've been trying to figure out a way to take translations that I've received in an Excel spreadsheet and paste them into an XML document. The XML is UTF-8 and it's plain text (of course). No matter what

RE: [Flashcoders] display trace() in text field

2008-12-04 Thread Michael Stocke
Maybe I should have been a little more clear: I already know how to display text in a text field. I specifically want to use the trace command. My vision is to create a tool that will display trace commands from existing .swfs. However, based on Jason's remarks, I guess I can't do this.

RE: [Flashcoders] display trace() in text field

2008-12-04 Thread Michael Stocke
I was really hoping to just use the trace command, but I guess I can't. Thanks for your response. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sidney de Koning Sent: Thursday, December 04, 2008 10:55 AM To: Flash Coders List Subject: Re: [Flashcoders]

Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Sidney de Koning
Here we usually dont embed the text in the textfield, and grab the text from XML or you when you embed the font with code, include all the unicode codes of the arabic chars you need. And do use fonts that support Arabic like Arial, Verdana and i think Times New Roman

Re: [Flashcoders] display trace() in text field

2008-12-04 Thread Sidney de Koning
Michael, When you override the exsisting trace function, you can do this. Just include your own functionality in the overwritten trace function. Its all because you want to have the same function call to trace() i presume? Sid On Dec 4, 2008, at 5:10 PM, Sidney de Koning wrote: or you

Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Glen Pike
Hi, This is just a thought, but could you export the file as a CSV and use some kind of scripting language to generate an XML file - I may be way off, but you could set language options for PHP which might mean you are reading in the same charset as you are writing??? I don't have any

Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Ian Thomas
This is probably a stupid question - but does it matter? By which I mean - it may flip RTL text so that it's LTR in the XML file, but when it actually gets to the screen, is it still flipped? Can you control the flipping in the display on the screen, rather than worrying about it in the XML file?

Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Mike Grunwald
The fonts are coming through fine. I have all the characters I need embedded in the library (using Arial Unicode MS). Characters display properly. It's the order of words in the XML file that I'm having a problem with. Thanks for any help. Much appreciated. On Dec 4, 2008, at 10:48 AM,

Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Mike Grunwald
@Glen That seems like a reasonable idea. The problem is, I'm not too sharp on the PHP. I think you might be onto something with the CSV thing though. I'm going to try a couple things. Thanks! On Dec 4, 2008, at 10:52 AM, Glen Pike wrote: Hi, This is just a thought, but could you

Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Fabio Pinatti
I just finished developing an english website, with arabic ( http://www.nakheelharbour.com/). Actually the arabic isnt ready due the complications I found in my way. I tried a lot of things... Load xmls with arabic text, load css to align to right, use system fonts, embedding fonts, etc etc etc.

[Flashcoders] E4x replace nodename

2008-12-04 Thread Jiri Heitlager
Hello list, i make the following query on an xml file to retrieve a list with certain node names: var tXML:XML = data findname_H1[EMAIL PROTECTED]/findname_H1 findname_H2[EMAIL PROTECTED]/findname_H2 /data var pat:RegExp = new RegExp('findname' , 'i') var tList:XMLList =

Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Mike Grunwald
Not a stupid question @Ian. It's not a matter of each individual character reversing the order. If it were I could convert the string to an array and reorder it ah la: var myCharity_L2R:String = myXML.ARB.CHARITY; var myCharity_R2L:String = myCharity_L2R.split().reverse().join(); The

Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Mike Grunwald
Thanks @Fabio Mike Grunwald McDill Design 626 N Water St Milwaukee, WI 53202 414.277.8111 mcdilldesign.com On Dec 4, 2008, at 11:14 AM, Fabio Pinatti wrote: I just finished developing an english website, with arabic ( http://www.nakheelharbour.com/). Actually the arabic isnt ready due the

Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Cedric Muller
OT but could you open the XLS and take a snapshot of the text, and then send to your client, to check if it is correct. Then, if ok, could you copy / paste this text into another document (like word, txt, xml) and take snapshots in order to send them to your client ? I find 'the order of

[Flashcoders] To support FP10 or not to support FP10

2008-12-04 Thread Joel Stransky
I normally wait until much higher penetration before I start compiling my swf's in a new player version but certain aspects of fp10 are extremely hard to resist namely .unloadAndStop() Would it be a good idea to start using it now or would that be a disservice to my clients? -- --Joel Stransky

RE: [Flashcoders] To support FP10 or not to support FP10

2008-12-04 Thread Merrill, Jason
What is your audience? How many? What kind of Flash site/app are you building? I think audience consideration trumps features or convenience, but it all depends on what you're doing. Jason Merrill Bank of America Instructional Technology Media · GCIB Staff Support LLD Interested

Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Mike Grunwald
@Cedric It is weird and crazy.I know it's happening, so there's no need to show the client. PS I haven't taken hallucinogens in quite sometime so I'm ruling out a Flashback. Other people see it too. Mike Grunwald McDill Design 626 N Water St Milwaukee, WI 53202 414.277.8111

Re: [Flashcoders] To support FP10 or not to support FP10

2008-12-04 Thread Joel Stransky
I try not to base those kinds of decisions on target audience. These sites are not candy viral and are meant to act as my clients presence on the web meaning they should be widely accessible. Of course there is some concession being made by choosing to use flash at all but that's a different

RE: [Flashcoders] To support FP10 or not to support FP10

2008-12-04 Thread Merrill, Jason
[my web sites are] meant to act as my clients presence on the web meaning they should be widely accessible... Then as you said, they should be widely accessible. Why would you force many of your users to upgrade to Flash player 10 before it's widely ubiquitous? Without deep market penetration

Re: [Flashcoders] Loader bytesTotal equals to 0

2008-12-04 Thread Glen Pike
Hi, Are you waiting until the totalBytes 7 (or some other small value) First time round on some preloaders I have noticed that totalBytes was 0, so put in a catch for this: if(lb == tb tb 7) { loaded = true; } Christian Giordano wrote: I've a strange bug which seems on

Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Cedric Muller
:( Did you see this post ? http://joeabiraad.com/design/how-to-write-arabic-in-flash-8/36 hth, Cedric @Cedric It is weird and crazy.I know it's happening, so there's no need to show the client. PS I haven't taken hallucinogens in quite sometime so I'm ruling out a Flashback. Other

Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Mike Grunwald
@Cedric I did see that. The problem with that is it's not XML. When I try to wrap any of the translations in tags, the words shift order. It has to have something to do with mixing Eastern and Western characters. I think it's tied to the alignment. Since Arabic is right justified, it

Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-04 Thread Bassam M
I have the same problem I tried everything but I couldn't solve the text broken at the end of the of the line If anybody know how to solve this problem please let me know it's know years I'm having this prb Thanks On Thu, Dec 4, 2008 at 6:59 PM, Mike Grunwald [EMAIL PROTECTED]wrote: @Cedric

RE: [Flashcoders] display trace() in text field

2008-12-04 Thread Michael Stocke
That is what I'm trying to do. Unfortunately I tried something like this yesterday and it only worked when I used this.trace, rather than just trace. Thank you for the response, though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sidney de Koning

Re: [Flashcoders] Loader bytesTotal equals to 0

2008-12-04 Thread Steven Sacks
Just for clarification, it was 4 bytes (the size of an empty MovieClip in AS2). I don't know if it's the same in AS3 (don't care enough to look into it). I don't think that's the issue he's having. I think he's saying the bytesLoaded is returning correctly, but the bytesTotal is 0 the

Re: [Flashcoders] Loader bytesTotal equals to 0

2008-12-04 Thread Daniel Boey
Hi, If you have 20 items that needs to be loaded, all 20 items have to have started loading before bytesTotal can be determined. Otherwise it'll remain at 0. This best explains it and an alternative provided as well: http://code.google.com/p/bulk-loader/wiki/ReportingLoadingProgress HTH Thanks