Re: [Flashcoders] Full screen mode and KeyboardEvents

2009-03-30 Thread Ian Thomas
As an addition - AIR lets you use FULL_SCREEN_INTERACTIVE mode, because the assumption is that the users _knows_ that they have started the AIR app (like starting a normal .exe/.app). Ian On Mon, Mar 30, 2009 at 1:27 AM, Carl Welch carlwelchdes...@gmail.com wrote: sheesh. Instead of removing

[Flashcoders] Strategies to cope with different encodings of XML data?

2009-03-30 Thread Wenzler, Thomas
Hi there, I need to find the best way to cope with different encodings of XML documents that are loaded at runtime. The documents are user-selected newsfeeds that happen to be encoded in both ISO and UTF-8, so I have to switch System.useCodepage to true or false depending on the encoding of

[Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Sidney de Koning
Hi List, I'm using Zend AMF, and i'd like to know what is the best way and fastest to transfer data. For instance; do i create an array from database data in PHP and send it to flash? Or do i formatted array data from a database to xml and send that to flash? Which is the fastest? And

[Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Jiri
I have a byte question. I have to store a walkable area so a character 'knows' where it can walk or not. Currently I am using a multi-dim array based on the x and y pos of the tiles . so [[1],[0],[1]..etc] where pos(0,0) = array[0][0] = 1 (walkable) I was wondering if I could store this

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Jiri
Good point, i can use getPixel to retrieve the color value and based on that 'know' if it is walkable. Cheers. Jiri Hans Wichman wrote: Hi, why not use an image? Eg use an image that represents your area, lookup the pixel values, AND them and decide what you can or cannot do in that area.

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Jiri
On stage there is a draw shape. I copy it to BitmapData and use the transparancy for testing walkable or not. So i dont use compressed image format, just raw bitmap data. Or am i missing something? Jiri Hans Wichman wrote: yup exactly, only thing is that I'm not sure how detailed this info

[Flashcoders] can you pease take me off of this list

2009-03-30 Thread krayg bartley
can you pease take me off of this list ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Hans Wichman
ah no then you'll be fine ! Although if it's just a simple shape, hittest will work as well of course, depending on the performance you need. On Mon, Mar 30, 2009 at 1:52 PM, Jiri jiriheitla...@googlemail.com wrote: On stage there is a draw shape. I copy it to BitmapData and use the

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Hans Wichman
yup exactly, only thing is that I'm not sure how detailed this info can be when using compressed image formats... On Mon, Mar 30, 2009 at 1:13 PM, Jiri jiriheitla...@googlemail.com wrote: Good point, i can use getPixel to retrieve the color value and based on that 'know' if it is walkable.

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Jiri
Hittest is to expensive, i try to avoid it at all times. J Hans Wichman wrote: ah no then you'll be fine ! Although if it's just a simple shape, hittest will work as well of course, depending on the performance you need. On Mon, Mar 30, 2009 at 1:52 PM, Jiri jiriheitla...@googlemail.com

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Hans Wichman
Hi, why not use an image? Eg use an image that represents your area, lookup the pixel values, AND them and decide what you can or cannot do in that area. greetz JC On Mon, Mar 30, 2009 at 12:41 PM, Jiri jiriheitla...@googlemail.com wrote: I have a byte question. I have to store a walkable

Re: [Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Glen Pike
AMFPHP did this really well with result sets too - straight out of the box like CF. Muzak wrote: For database type data, Array of Objects. Forget about XML. With Coldfusion (and remoting) you can grab a database query result and just send that straight to Flash/Flex and it will be

Re: [Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Muzak
For database type data, Array of Objects. Forget about XML. With Coldfusion (and remoting) you can grab a database query result and just send that straight to Flash/Flex and it will be transformed into an Array of Objects automatically. In CF it's as simple as: cfset var rsResult= / cfquery

Re: [Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Sidney de Koning
Nice one guys, thanks for the response. Since i'm not at all into Flex, in the video he talks about binding (and mapping them to ValueObjects). My question is can i do this with pure AS3? Cheers, Sid On Mar 30, 2009, at 4:23 PM, Glen Pike wrote: AMFPHP did this really well with result sets

RE: [Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Merrill, Jason
Since i'm not at all into Flex, in the video he talks about binding (and mapping them to ValueObjects). My question is can i do this with pure AS3? You can certainly do Value Objects (which are simply just simple classes with properties you set and get - anyone can write one), but databinding

[Flashcoders] ShareThis +Flash

2009-03-30 Thread artur
Is anyone using shareThis successfully from within Flash/AS3? If so, could you comment on any problems installing it and/or share any example websites? Thanks. *artur :.* - *www.artur.com* - *ar...@artur.com* - *ph:646.797.3320* ___ Flashcoders

Re: [Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Glen Pike
You can set the dataprovider of a DataGrid with a result set from MySQL or similar. I have an experiment with AS2 + AMFPHP + datagrid at home, so guessing that AS3 is similar - will try and find it later if you are interested. Although you can't do data-binding in the {Flex} way without the

Re: [Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Sidney de Koning
Hi Jason, Yes i know :) maybe my question was a bit unclear; is there a way I can accomplish the same thing in pure AS3 without using the data binding? Sid On Mar 30, 2009, at 5:14 PM, Merrill, Jason wrote: Since i'm not at all into Flex, in the video he talks about binding (and

Re: [Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Muzak
AMFPHP did this really well with result sets too - straight out of the box like CF. Yeah, that's what I expect Zend AMF to do as well, but I haven't tried it yet. Maybe I'll take it for a spin this evening if I find the time.. The only *gotcha* with sending query results straight from CF to

Re: [Flashcoders] Best data type for Zend AMF

2009-03-30 Thread Muzak
If Zend AMF supports mapping, then it should be possible with pure AS3. Think you'll need to use flash.net.registerClassAlias() to map the AS class to a PHP class. http://livedocs.adobe.com/flex/3/langref/flash/net/package.html#registerClassAlias() That will do the same thing as the Flex

RE: [Flashcoders] AS3 Object reference

2009-03-30 Thread TS
Ok that was my other question. Bouncing back from PHP to AS3 is making me insane. Thanks for the info. Arrays are def the way to go. Thanks again, T -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak

Re: [Flashcoders] AS3 Object reference

2009-03-30 Thread Taka Kojima
photoStrip_mc[thumbnail + I]_mc._width and photoStrip_mc.thumbnail[I]_mc._width won't work. [] basically serve the purpose of periods they represent heirarchy, they don't perform an eval() (there is no AS3 equivalent of AS2's eval() btw). You were on the right path with:

[Flashcoders] free lynda AS3 videos in safaribooks online through the Toronto public library

2009-03-30 Thread Anthony Pace
all the lynda videos pertaining to as3 are free through safaribooks online's public library access deals. not to mention tons of free math and comp sci books. Thank goodness my gf has a library card. ___ Flashcoders mailing list

Re: [Flashcoders] free lynda AS3 videos in safaribooks online through the Toronto public library

2009-03-30 Thread Karl DeSaulniers
Ok here is a new one. Is there a way to control the way your swf plays according to the bandwidth it's getting? For eg: control how fast FPS your movie plays according to the stream of info it's getting from the server? If the stream is low play fast and if the stream is good then play

Re: [Flashcoders] FPS question

2009-03-30 Thread Anthony Pace
First you say swf, and yes, controlling the frame rate for an swf is doable; yet, then you say movie... do you mean movie clip, or stream? Karl DeSaulniers wrote: Ok here is a new one. Is there a way to control the way your swf plays according to the bandwidth it's getting? For eg: control

[Flashcoders] AS3 - have a problem parsing my data from JSON

2009-03-30 Thread Carl Welch
Hi, I'm having a difficult time pulling data out of some JSON I'm currently working with. The following script is something that I found online using Adobe's corelib to parse the JSON, but the sample JSON the guy used was really basic. The one I'm working with has a few levels. For