Re: [Flashcoders] Full screen mode and KeyboardEvents
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 wrote: > sheesh. Instead of removing features, I wish they would have built in a > warning message telling people to be aware of such activities. > > Oh well : / > > Thanks for the info! > -- > Carl Welch > http://www.carlwelch.com > http://blog.jointjam.com > carlwelchdes...@gmail.com > 805.403.4819 > > > > > > On Mar 29, 2009, at 4:40 PM, jonathan howe wrote: > >> The reasoning behind disabling all/most (9/10 respectively) keyboard input >> in fullscreen is because someone could easily make a fake login screen >> that >> looks like the OS. Carl, I hope that you don't have too much riding on it >> being able to do that because I don't know of a workaround (maybe use the >> browser in fullscreen... ??). If it's not essential that it be web >> deployed >> consider AIR... >> >> -jonathan >> >> >> >> 2009/3/29 Fabio Pinatti >> >>> >>> >>> http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_03.html#head5 >>> >>> On Sun, Mar 29, 2009 at 6:25 PM, Carl Welch >>> wrote: >>> Hi all, I've built an app uses KeyboardEvents. All works fine until I go into FULLSCREEN Mode, the KeyboardEvents seem to stop working... and, of >>> >>> course when I go back to normal mode the KeyboardEvents start working again. Is there a work around for this issue? Thanks! -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> >>> >>> -- >>> Fábio Pinatti >>> :: web.developer >>> www.pinatti.com.br >>> :: 19. 9184.3745 / 3342.1130 >>> ___ >>> Flashcoders mailing list >>> Flashcoders@chattyfig.figleaf.com >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >> >> >> -- >> -jonathan howe >> ___ >> 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] Strategies to cope with different encodings of XML data?
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 the xml to have special characters rendered correctly. Right now the only idea I came up with was to load the data, check how it is encoded, set the codepage property and load the data again- possibly not the best way to do it? Did I mention it must be done in AS2? Every hint/discussion on the matter is highly appreciated!!! Regards Thomas ** Aufregend Neues, vertraut Bekanntes und noch viel mehr erfahren Sie unter www.stodt.de http://www.stodt.de/> Die Informationen in dieser Nachricht und eventuellen Anhängen sind vertraulich und nur zum Gebrauch der/des Adressaten bestimmt. Personen oder Organisationen, für die diese Information nicht bestimmt ist, ist es nicht gestattet, diese zu lesen, erneut zu übertragen, zu verbreiten, anderweitig zu verwenden oder sich durch sie veranlasst zu sehen, Maßnahmen irgendeiner Art zu ergreifen. Sollten Sie diese Nachricht irrtümlich erhalten haben, bitten wir Sie, sich mit dem Absender in Verbindung zu setzen und das Material von Ihrem Computer zu löschen. Herkömmliche E-Mails sind nicht gegen den Zugriff von Dritten geschützt und deshalb ist auch die Vertraulichkeit unter Umständen nicht gewahrt. Wir haften deshalb nicht für die Unversehrtheit von E-Mails nachdem sie unseren Herrschaftsbereich verlassen haben und können Ihnen hieraus entstehende Schäden nicht ersetzen. Sollte trotz der von uns verwendeten Virus-Schutz-Programme durch die Zusendung von E-Mails ein Virus in Ihre Systeme gelangen, haften wir nicht für eventuell hieraus entstehende Schäden. Dieser Haftungsausschluss gilt nur soweit gesetzlich zulässig. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Best data type for Zend AMF
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 more specifically; what datatype is the fastest. Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Storing x and y in a bytearray
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 using a bytearray, for storing and possibly faster lookup using bitwise operators. I am very knew to this, so I am ot sure where to begin and how to deal with it. The range of int is sufficient to store all the data, because a full walkarea would take 370560 (772*480) elements in the previous mentioned multi array. I could be completely wrong, but would like some advice. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Storing x and y in a bytearray
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. greetz JC On Mon, Mar 30, 2009 at 12:41 PM, Jiri wrote: 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 using a bytearray, for storing and possibly faster lookup using bitwise operators. I am very knew to this, so I am ot sure where to begin and how to deal with it. The range of int is sufficient to store all the data, because a full walkarea would take 370560 (772*480) elements in the previous mentioned multi array. I could be completely wrong, but would like some advice. Jiri ___ 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: [Flashcoders] Storing x and y in a bytearray
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 can be when using compressed image formats... On Mon, Mar 30, 2009 at 1:13 PM, Jiri wrote: 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. greetz JC On Mon, Mar 30, 2009 at 12:41 PM, Jiri wrote: 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 using a bytearray, for storing and possibly faster lookup using bitwise operators. I am very knew to this, so I am ot sure where to begin and how to deal with it. The range of int is sufficient to store all the data, because a full walkarea would take 370560 (772*480) elements in the previous mentioned multi array. I could be completely wrong, but would like some advice. Jiri ___ 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] can you pease take me off of this list
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
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 wrote: > 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 can be >> when using compressed image formats... >> >> On Mon, Mar 30, 2009 at 1:13 PM, Jiri >> wrote: >> >> 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. greetz JC On Mon, Mar 30, 2009 at 12:41 PM, Jiri wrote: 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 using a bytearray, for storing > and > possibly faster lookup using bitwise operators. I am very knew to this, > so I > am ot sure where to begin and how to deal with it. > The range of int is sufficient to store all the data, because a full > walkarea would take 370560 (772*480) elements in the previous mentioned > multi array. > > I could be completely wrong, but would like some advice. > > Jiri > > > ___ > 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: [Flashcoders] Storing x and y in a bytearray
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 wrote: > 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. >> >> greetz JC >> >> On Mon, Mar 30, 2009 at 12:41 PM, Jiri >> wrote: >> >> 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 using a bytearray, for storing and >>> possibly faster lookup using bitwise operators. I am very knew to this, >>> so I >>> am ot sure where to begin and how to deal with it. >>> The range of int is sufficient to store all the data, because a full >>> walkarea would take 370560 (772*480) elements in the previous mentioned >>> multi array. >>> >>> I could be completely wrong, but would like some advice. >>> >>> Jiri >>> >>> >>> ___ >>> 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: [Flashcoders] Storing x and y in a bytearray
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 wrote: 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 can be when using compressed image formats... On Mon, Mar 30, 2009 at 1:13 PM, Jiri wrote: 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. greetz JC On Mon, Mar 30, 2009 at 12:41 PM, Jiri wrote: 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 using a bytearray, for storing and possibly faster lookup using bitwise operators. I am very knew to this, so I am ot sure where to begin and how to deal with it. The range of int is sufficient to store all the data, because a full walkarea would take 370560 (772*480) elements in the previous mentioned multi array. I could be completely wrong, but would like some advice. Jiri ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Storing x and y in a bytearray
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 wrote: > 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 using a bytearray, for storing and > possibly faster lookup using bitwise operators. I am very knew to this, so I > am ot sure where to begin and how to deal with it. > The range of int is sufficient to store all the data, because a full > walkarea would take 370560 (772*480) elements in the previous mentioned > multi array. > > I could be completely wrong, but would like some advice. > > Jiri > > > ___ > 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: [Flashcoders] can you pease take me off of this list
unsubscribe here http://chattyfig.figleaf.com/mailman/listinfo/flashcoders On Mon, Mar 30, 2009 at 2:22 PM, krayg bartley wrote: > can you pease take me off of this list > > > > > ___ > 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: [Flashcoders] Best data type for Zend AMF
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 transformed into an Array of Objects automatically. In CF it's as simple as: SELECT * FROM table_name Seems they're still working on mapping PHP to AS objects: http://wadearnold.com/blog/?p=54 Allthough, the article is from sept 2008, so it may have been implemented by now. So if class mappings are implemented (still have to take Zend AMF for a spin) then that's the *best* option, but probably not the *fastest*. At least in Coldfusion transforming plain vanilla objects into typed objects slows things down (especially with lots of data). regards, Muzak - Original Message - From: "Sidney de Koning" To: "Flash Coders List" Sent: Monday, March 30, 2009 12:05 PM Subject: [Flashcoders] Best data type for Zend AMF 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 more specifically; what datatype is the fastest. Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ 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: [Flashcoders] Best data type for Zend AMF
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: SELECT * FROM table_name Seems they're still working on mapping PHP to AS objects: http://wadearnold.com/blog/?p=54 Allthough, the article is from sept 2008, so it may have been implemented by now. So if class mappings are implemented (still have to take Zend AMF for a spin) then that's the *best* option, but probably not the *fastest*. At least in Coldfusion transforming plain vanilla objects into typed objects slows things down (especially with lots of data). regards, Muzak - Original Message - From: "Sidney de Koning" To: "Flash Coders List" Sent: Monday, March 30, 2009 12:05 PM Subject: [Flashcoders] Best data type for Zend AMF 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 more specifically; what datatype is the fastest. Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best data type for Zend AMF
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 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 transformed into an Array of Objects automatically. In CF it's as simple as: SELECT * FROM table_name Seems they're still working on mapping PHP to AS objects: http://wadearnold.com/blog/?p=54 Allthough, the article is from sept 2008, so it may have been implemented by now. So if class mappings are implemented (still have to take Zend AMF for a spin) then that's the *best* option, but probably not the *fastest*. At least in Coldfusion transforming plain vanilla objects into typed objects slows things down (especially with lots of data). regards, Muzak - Original Message - From: "Sidney de Koning" > To: "Flash Coders List" Sent: Monday, March 30, 2009 12:05 PM Subject: [Flashcoders] Best data type for Zend AMF 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 more specifically; what datatype is the fastest. Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ 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 Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best data type for Zend AMF
>> 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 is a Flex framework only feature. Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology & Media Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] ShareThis +Flash
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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best data type for Zend AMF
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 framework - that's an implementation of the observer pattern, so you could roll your own if you wanted. You can use the "Watcher" stuff that comes with the framework for a pure AS3 implementation - can't remember where it is, but look in the doc's - you can set up property watchers in Flex AS3 which you respond to (bit like registering listeners...) Glen Sidney de Koning wrote: 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 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 transformed into an Array of Objects automatically. In CF it's as simple as: SELECT * FROM table_name Seems they're still working on mapping PHP to AS objects: http://wadearnold.com/blog/?p=54 Allthough, the article is from sept 2008, so it may have been implemented by now. So if class mappings are implemented (still have to take Zend AMF for a spin) then that's the *best* option, but probably not the *fastest*. At least in Coldfusion transforming plain vanilla objects into typed objects slows things down (especially with lots of data). regards, Muzak - Original Message - From: "Sidney de Koning" To: "Flash Coders List" Sent: Monday, March 30, 2009 12:05 PM Subject: [Flashcoders] Best data type for Zend AMF 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 more specifically; what datatype is the fastest. Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ 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 Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ 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: [Flashcoders] Best data type for Zend AMF
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 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 is a Flex framework only feature. Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology & Media Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] mouse cursors and hrefs
Hi, Im building an app with a custom mouse cursor. My issue comes when rolling over href links inside html text fields. The href link sets the system mouse over icon to visible, though previously Ive set mouse.hide. Any idea what I need to override inside Textfield class to stop this? Thanks Reen _ Free photo editing software from Windows Live . Try it now! http://clk.atdmt.com/UKM/go/134665240/direct/01/___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best data type for Zend AMF
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 Flex/Flash is that table column names all become uppercase. Not sure if AMFPHP did the same (been too long since I used it). So that might be something to look out for with Zend AMF as well, but it may just be a (annoying) CF thing. Let's say you have a user table with "firstName" and "lastName" columns. When sending a query result straight to Flex/Flash (from CF) it looks like this: [{FIRSTNAME:"value", LASTNAME:"value"}, {FIRSTNAME:"value", LASTNAME:"value"}]; rather than: [{firstName:"value", lastName:"value"}, {firstName:"value", lastName:"value"}]; regards, Muzak - Original Message - From: "Glen Pike" To: "Flash Coders List" Sent: Monday, March 30, 2009 4:23 PM Subject: Re: [Flashcoders] Best data type for Zend AMF 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 transformed into an Array of Objects automatically. In CF it's as simple as: SELECT * FROM table_name Seems they're still working on mapping PHP to AS objects: http://wadearnold.com/blog/?p=54 Allthough, the article is from sept 2008, so it may have been implemented by now. So if class mappings are implemented (still have to take Zend AMF for a spin) then that's the *best* option, but probably not the *fastest*. At least in Coldfusion transforming plain vanilla objects into typed objects slows things down (especially with lots of data). regards, Muzak ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best data type for Zend AMF
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 [RemoteClass] metadata tag. So in the VO constructor, make a call to registerClassAlias(): registerClassAlias("php.package.classname", VOClass); No idea if PHP does packages tho (someone else does the PHP stuff for me, I'm a CF guy), so you might just need the php class name (without package). http://www.roboncode.com/articles/187 http://framework.zend.com/manual/en/zend.amf.server.html#zend.amf.server.typedobjects regards, Muzak - Original Message - From: "Sidney de Koning" To: "Flash Coders List" Sent: Monday, March 30, 2009 4:40 PM Subject: Re: [Flashcoders] Best data type for Zend AMF 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3 Object reference
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 Sent: Saturday, March 28, 2009 7:50 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Object reference There's no "_width" in AS3.. it's "width". Array access notation should work fine: photoStrip_mc["thumbnail" + i + "_mc"].width; As a sidenote, you're better off storing references in an array for easy access later. myClips = new Array(); var len:uint = 10; for(var i:uint=0; i To: "'Flash Coders List'" Sent: Sunday, March 29, 2009 3:09 AM Subject: [Flashcoders] AS3 Object reference > Trying to cylec through some objects. This doesn't seem to work in AS3 as it > does in AS2. Is there an equivalent in AS3? > > > > photoStrip_mc["thumbnail" + i + "_mc"]._width > > > > Thanks ahead, T > ___ 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: [Flashcoders] AS3 Object reference
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: photoStrip_mc["thumbnail" + i + "_mc"]._width The only issue I see wrong is using "._width" instead of ".width" Then again, it is out of context, so I don't know what the rest of your code is, it might be that you are not properly assigning the values. As Muzak mentioned, I also usually just store mc's that I need to loop through in an array and do it that way. - Taka On Mon, Mar 30, 2009 at 12:02 PM, TS wrote: > 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 > Sent: Saturday, March 28, 2009 7:50 PM > To: Flash Coders List > Subject: Re: [Flashcoders] AS3 Object reference > > There's no "_width" in AS3.. it's "width". > Array access notation should work fine: > > photoStrip_mc["thumbnail" + i + "_mc"].width; > > > As a sidenote, you're better off storing references in an array for easy > access later. > > myClips = new Array(); > var len:uint = 10; > for(var i:uint=0; i var mc:MovieClip = new MovieClip(); > photoStrip_mc.addChild(mc); > myClips.push(mc); > } > > > If you need to access the clips at some later time, just loop through the > myClips Array. > > var len:uint = myClips.length; > for(var i:uint=0; i var mc:MovieClip = myClips[i]; > mc.width = someValue; > } > > regards, > Muzak > > > - Original Message - > From: "TS" > To: "'Flash Coders List'" > Sent: Sunday, March 29, 2009 3:09 AM > Subject: [Flashcoders] AS3 Object reference > > >> Trying to cylec through some objects. This doesn't seem to work in AS3 as > it >> does in AS2. Is there an equivalent in AS3? >> >> >> >> photoStrip_mc["thumbnail" + i + "_mc"]._width >> >> >> >> Thanks ahead, T >> > > ___ > 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: [Flashcoders] AS3 Object reference
Just remember that the mc's aren't available for garbage collection until they are removed from the array. On Mon, Mar 30, 2009 at 3:19 PM, Taka Kojima wrote: > 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: photoStrip_mc["thumbnail" + i + > "_mc"]._width > > The only issue I see wrong is using "._width" instead of ".width" > > Then again, it is out of context, so I don't know what the rest of > your code is, it might be that you are not properly assigning the > values. > > As Muzak mentioned, I also usually just store mc's that I need to loop > through in an array and do it that way. > > - Taka > > On Mon, Mar 30, 2009 at 12:02 PM, TS wrote: > > 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 > > Sent: Saturday, March 28, 2009 7:50 PM > > To: Flash Coders List > > Subject: Re: [Flashcoders] AS3 Object reference > > > > There's no "_width" in AS3.. it's "width". > > Array access notation should work fine: > > > > photoStrip_mc["thumbnail" + i + "_mc"].width; > > > > > > As a sidenote, you're better off storing references in an array for easy > > access later. > > > > myClips = new Array(); > > var len:uint = 10; > > for(var i:uint=0; i >var mc:MovieClip = new MovieClip(); > >photoStrip_mc.addChild(mc); > >myClips.push(mc); > > } > > > > > > If you need to access the clips at some later time, just loop through the > > myClips Array. > > > > var len:uint = myClips.length; > > for(var i:uint=0; i >var mc:MovieClip = myClips[i]; > >mc.width = someValue; > > } > > > > regards, > > Muzak > > > > > > - Original Message - > > From: "TS" > > To: "'Flash Coders List'" > > Sent: Sunday, March 29, 2009 3:09 AM > > Subject: [Flashcoders] AS3 Object reference > > > > > >> Trying to cylec through some objects. This doesn't seem to work in AS3 > as > > it > >> does in AS2. Is there an equivalent in AS3? > >> > >> > >> > >> photoStrip_mc["thumbnail" + i + "_mc"]._width > >> > >> > >> > >> Thanks ahead, T > >> > > > > ___ > > 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 > -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] free lynda AS3 videos in safaribooks online through the Toronto public library
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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] free lynda AS3 videos in safaribooks online through the Toronto public library
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 regular fps? All of this to simulate "no lag". Karl Sent from losPhone ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FPS question
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 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 regular fps? All of this to simulate "no lag". Karl Sent from losPhone ___ 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] AS3 - have a problem parsing my data from JSON
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 example, how would I pull out the "date_created"? I've tried calling it with dot syntax but I keep getting errors. Can someone shed some light on this for me? Thank you in advance... Cheers! The script I'm using with corelib: import com.adobe.serialization.json.JSON; var loader:URLLoader = new URLLoader() ; var request:URLRequest = new URLRequest() ; request.url = "someJSON_URL" ; loader.load(request) ; loader.addEventListener(Event.COMPLETE, decodeJSON) ; function decodeJSON(event:Event):void { var loader:URLLoader = URLLoader(event.target); var evData:Array = JSON.decode("["+loader.data+"]"); myFlashVars.appendText("\n" + String(evData[0].xml)); for (var key:Object in evData) { myFlashVars.appendText("\n" + "\n" + String(evData[key])); } } My JSON looks like this: { "xml": { "device": { "view": { "action": "getsummary", "device": { "date_created": "2/28/2009 2:59:24 PM", "date_modified": "2/28/2009 2:59:24 PM", "device_id": "", "device_status": "active", "device_type": "other", "friendly_name": "Foo", "make": "Bar", "model": "999", "serial_number": "Test Serial No" }, "error": { "code": 0, "message": "" }, "owner": { "guid": "99", "partner_id": 0 } } }, "session": { "class": "Device", "first_name": "Frank", "guid": "S999", "language": "en-us", "last_name": "Zappa", "partner_id": 0, "proc": "View", "valid": 1 } } } THANKS!!! -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FPS question
in this i mean movie = swf . i am not necessarily asking about just a moviclip but the whole movie. Hope that clarifies. Karl DeSaulniers Design Drumm http://designdrumm.com On Mar 30, 2009, at 8:47 PM, Anthony Pace wrote: 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 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 regular fps? All of this to simulate "no lag". Karl Sent from losPhone ___ 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