Re: [Flashcoders] Decompile swf to get your own classes
Franto, You may have a look also to KinesicFusion at www.kinesissoftware.com... It saves me several times ;-) Julien. franto a écrit : Thanks Campbell and John for your help sure, i've tried recovery software, today i will try another 2 softs, because 1st one, has predefined file types, and there is no .as, so it has recovered just few .as as TXT files, but my main classes are not recovered... i got ASV as well, and i will try it, Sothink decompiles classes to correct folder structure, hopefully ASV will does it in same way... I will try it now... I appreciate your help, guys Franto On 12/20/05, John Grden [EMAIL PROTECTED] wrote: Hey Franto, I'm not sure that ASV does it any better, but without a doubt, it's a MUCH stronger decompiler than Sothink (light years IMHO) www.buraks.com/asv/ It might not show you your classes any cleaner than SOThink, but it's worth a shot. I just looked at a couple of my SWF's and I could reconstruct the classes with out a problem from ASV's output. hth, John On 12/19/05, franto [EMAIL PROTECTED] wrote: HEEELP... today i lost my 1 year project, im totally dumb... i just move my project to my Eclipse worskpace directory, and then create Project with same name as folder i got all my work inside and guess what :( Eclipse, or FDT plugin, do not know which one, deleted all my files... 3GB of data, thousands of files :( I've recovered almost all now, but do not know why, my 15 classes, are not recovered :( just main 15 files from all of thousands files :( usre, i got backups, but older ones, and i think it will be no problem, but i'm in a hurry with project, you know, Xmas I've tried to decompile swf's with Sothink Decompiler, i got all my classes back, but in dirty way, awful variables names, and such stuff... Does anybody knows, if there is a way to get .as back in a way, they were before? And i got also .aso files for all my classes, so anoter question, is it possible to convert .aso files to origin .as files? Thank you all, please help me Sd Franto :( http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- John Grden - Blitz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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] Eclipse and Flash
flashextensions.com has screen tutorials using eclipse Fredrik Lantz wrote: Hi I am intrested in trying to develop with eclipse, does anyone have any good links to provide for seting things up. Happy for all help i can get. //Fredrik ___ 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] Decompile swf to get your own classes
Julien, is it decompiler? or what? On 12/20/05, Julien Vignali [EMAIL PROTECTED] wrote: Franto, You may have a look also to KinesicFusion at www.kinesissoftware.com... It saves me several times ;-) Julien. franto a écrit : Thanks Campbell and John for your help sure, i've tried recovery software, today i will try another 2 softs, because 1st one, has predefined file types, and there is no .as, so it has recovered just few .as as TXT files, but my main classes are not recovered... i got ASV as well, and i will try it, Sothink decompiles classes to correct folder structure, hopefully ASV will does it in same way... I will try it now... I appreciate your help, guys Franto On 12/20/05, John Grden [EMAIL PROTECTED] wrote: Hey Franto, I'm not sure that ASV does it any better, but without a doubt, it's a MUCH stronger decompiler than Sothink (light years IMHO) www.buraks.com/asv/ It might not show you your classes any cleaner than SOThink, but it's worth a shot. I just looked at a couple of my SWF's and I could reconstruct the classes with out a problem from ASV's output. hth, John On 12/19/05, franto [EMAIL PROTECTED] wrote: HEEELP... today i lost my 1 year project, im totally dumb... i just move my project to my Eclipse worskpace directory, and then create Project with same name as folder i got all my work inside and guess what :( Eclipse, or FDT plugin, do not know which one, deleted all my files... 3GB of data, thousands of files :( I've recovered almost all now, but do not know why, my 15 classes, are not recovered :( just main 15 files from all of thousands files :( usre, i got backups, but older ones, and i think it will be no problem, but i'm in a hurry with project, you know, Xmas I've tried to decompile swf's with Sothink Decompiler, i got all my classes back, but in dirty way, awful variables names, and such stuff... Does anybody knows, if there is a way to get .as back in a way, they were before? And i got also .aso files for all my classes, so anoter question, is it possible to convert .aso files to origin .as files? Thank you all, please help me Sd Franto :( http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- John Grden - Blitz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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 -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Decompile swf to get your own classes
Yes it's a decompiler... Browse to your SWF file in the file explorer, and choose Decompile SWF in the right-click context menu. It should recreate your repository structure of .as files and a actionscript 1 dump in a xml-like .RVML file. Anyway, each time I tried to recover .as files with all the swf tools I could find, the result wasn't perfect and sometimes structure content wasn't exactly like the original and needed some manual editing tweaking, but still better than nothing ;-) Good luck! Julien franto a écrit : Julien, is it decompiler? or what? On 12/20/05, Julien Vignali [EMAIL PROTECTED] wrote: Franto, You may have a look also to KinesicFusion at www.kinesissoftware.com... It saves me several times ;-) Julien. franto a écrit : Thanks Campbell and John for your help sure, i've tried recovery software, today i will try another 2 softs, because 1st one, has predefined file types, and there is no .as, so it has recovered just few .as as TXT files, but my main classes are not recovered... i got ASV as well, and i will try it, Sothink decompiles classes to correct folder structure, hopefully ASV will does it in same way... I will try it now... I appreciate your help, guys Franto On 12/20/05, John Grden [EMAIL PROTECTED] wrote: Hey Franto, I'm not sure that ASV does it any better, but without a doubt, it's a MUCH stronger decompiler than Sothink (light years IMHO) www.buraks.com/asv/ It might not show you your classes any cleaner than SOThink, but it's worth a shot. I just looked at a couple of my SWF's and I could reconstruct the classes with out a problem from ASV's output. hth, John On 12/19/05, franto [EMAIL PROTECTED] wrote: HEEELP... today i lost my 1 year project, im totally dumb... i just move my project to my Eclipse worskpace directory, and then create Project with same name as folder i got all my work inside and guess what :( Eclipse, or FDT plugin, do not know which one, deleted all my files... 3GB of data, thousands of files :( I've recovered almost all now, but do not know why, my 15 classes, are not recovered :( just main 15 files from all of thousands files :( usre, i got backups, but older ones, and i think it will be no problem, but i'm in a hurry with project, you know, Xmas I've tried to decompile swf's with Sothink Decompiler, i got all my classes back, but in dirty way, awful variables names, and such stuff... Does anybody knows, if there is a way to get .as back in a way, they were before? And i got also .aso files for all my classes, so anoter question, is it possible to convert .aso files to origin .as files? Thank you all, please help me Sd Franto :( http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- John Grden - Blitz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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 -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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] .NET SWF proxy
I need a proxy able to load images from remote servers and return them as SWF files. The SWF files also have to be in version 4 (you guessed it, Flash Lite...). Oh, and I have to use ASP.NET. The only tool I've found this far is ActiveSWF ( http://activeswf.com ) that seems to do the job. Is there any other, cheaper, solutions? I don't need all the functionality ActiveSWF offer. Any ideas? /Nisse Bryngfors ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Drag Drop Windows - Flash
Hi Nick, Im 99% sure of the answer to this but I'll ask anyway: Is it possible to have any interaction between the Windows desktop and a flash movie? i.e. drag an object from Windows and drop into the flash movie? You'll need a third party projector building tool for this. Not sure if screenweaver [1] did/does this, but I know that Zinc [2] does. [1] http://osflash.org/screenweaver [2] http://www.multidmedia.com/ -- Steve Webster Head of Development Featurecreep Ltd. www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH 0117 905 5047 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] CreateTextField question
Hi, Is it possible to dynamically set the height of the CreateTextField ? Here's my need. I import datas from a file and generate textfields on fly Some datas can have a lot of rows and some of them just 2 or 3 rows. So I would like to adjust for each textfield the height value to get all the rows visible. If someone could show me how to do this or tell me if there's another approach. Thanks for your help Stan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Decompile swf to get your own classes
Hi Franto, i got ASV as well, and i will try it, Sothink decompiles classes to correct folder structure, hopefully ASV will does it in same way... Yes, ASV can save class AS with correct folder structure. If there's any problem with the decompile, if possible, please send me your SWF(s) and we can investigate and get back to you asap (in at most 24 hours). Best regards, Burak www.asvguy.com Burak KALAYCI, Manitu Group http://www.buraks.com http://www.manitugroup.com - Original Message - From: franto [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, December 20, 2005 09:56 AM Subject: Re: [Flashcoders] Decompile swf to get your own classes Thanks Campbell and John for your help sure, i've tried recovery software, today i will try another 2 softs, because 1st one, has predefined file types, and there is no .as, so it has recovered just few .as as TXT files, but my main classes are not recovered... i got ASV as well, and i will try it, Sothink decompiles classes to correct folder structure, hopefully ASV will does it in same way... I will try it now... I appreciate your help, guys Franto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Localconnect communication
You have to set up a local connection object in each swf movie with different names They are one way communications classes so you cannot talk in both directions via just one. So add another one to your other file. Cheers alan -- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of DA Group. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Elastic ribbon
Sorry... had no intention of sending this 3 times... actually... I only sent it once... Must be a hick-up in the list I guess... So yeah... Still looking for input on this... Serge ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] CreateTextField question
Thanks, I ve seen this property after posting the question.. Just a quick question (sorry for my ignorance). Behind this texfield, I have a MovieClip (it's a rectangle), and I would like to adjust the height depending the textfield height (and I would like to preserve my size font). Right now, here's my code : var container_mc:MovieClip=this.createEmptyMovieClip(container,10); container_mc.attachMovie(background,newbackground,11); var mytext_txt:TextFiled=container.createTextField (mytext_txt,12,0,0,150,5); mytext_txt.autosize=true; mytext_txt.text=bla bla bla \r bla bla...; container_mc.newbackground._height=mytext._height; It doesn't adjust the background. Where's my mistake ? 2005/12/20, martin schioeth [EMAIL PROTECTED]: Hi, You'll need to do this: createTextField(myField,depth,x,y,defWidth,defheight); //set the defWidth to the number you want defheight can be anything the //autoSize increases the height until all of the text can fit in the field myField.autoSize = true; myField.text = myText; -martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stan Sainte-Rose Sent: 20. december 2005 10:07 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] CreateTextField question Hi, Is it possible to dynamically set the height of the CreateTextField ? Here's my need. I import datas from a file and generate textfields on fly Some datas can have a lot of rows and some of them just 2 or 3 rows. So I would like to adjust for each textfield the height value to get all the rows visible. If someone could show me how to do this or tell me if there's another approach. Thanks for your help Stan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 16-12-2005 ___ 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] Elastic ribbon
i just have this, but it's implemented in AS3 http://www.franto.com/blog2/as3-cloth-simulation-verlet-algorithm On 12/20/05, Serge Jespers [EMAIL PROTECTED] wrote: Sorry... had no intention of sending this 3 times... actually... I only sent it once... Must be a hick-up in the list I guess... So yeah... Still looking for input on this... Serge ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML GALLERY
Jose Maria Barros wrote: Hello! Im trying to do a portfolio gallery with a grid and small thumbnails with xml. I ve been doing some tutorials to help me..but this thing doesnt work. [snip] The xml file is made correctly and the path for the images is link=imagens/somepic.jpg The problem is...? Not loading? Not clickable? Not right size? :) -- Morten Barklund - Information Architect - Shockwaved Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Webservices best practices
Really? I'm working on a project where most of my data is to be supplied via webservices and it will most certainly be more than 2-3 methods. I'm putting together a serviceLocator class (singleton) that takes care of all my webservice calls. You're not using the MX 04 web service connector are you? /Johan On 12/20/05, Weyert de Boer [EMAIL PROTECTED] wrote: Are their any rules about how much webservices calls you can do in a flash movie? It always stops after 2-3 methods. ___ 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] XML GALLERY
ups..sorry..forgot..well...it doesnt download the thumbnails..here is the code in the debugger Variable _level0.picHolder = [object #6, class 'XMLNode'] { foto thmb=imagens/img3.jpg main=imagens/img3.jpg / } Variable _level0.thumbHolder = [movieclip:_level0.thumbnails.thumbnail8] Variable _level0.thumbLoader = undefined On 12/20/05, Morten Barklund Shockwaved [EMAIL PROTECTED] wrote: Jose Maria Barros wrote: Hello! Im trying to do a portfolio gallery with a grid and small thumbnails with xml. I ve been doing some tutorials to help me..but this thing doesnt work. [snip] The xml file is made correctly and the path for the images is link=imagens/somepic.jpg The problem is...? Not loading? Not clickable? Not right size? :) -- Morten Barklund - Information Architect - Shockwaved Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ 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] Array like access to custom class?
Can I provide array like access to a custom collection object? E.g. Class MyClass { private var myArray:Array; public function getArray():Array { return this.myArray; } } This would allow access to the array items as so: var someClass:MyClass = new MyClass; thisItem = someClass.getArray[0]; How can I change it so I can achieve the same thing but with access to the items like this: var someClass:MyClass = new MyClass; thisItem = someClass[0]; Hope that makes some sort of sense? Cheers, DannyT This message and any attachments should only be read by those persons to whom it is addressed and be used by them for its intended purpose. It must not otherwise be reproduced, modified, distributed, published or actioned. If you have received this e-mail in error, please notify us immediately by telephone on 01202 237000 and delete it from your computer immediately. This e-mail address must not be passed to any third party or be used for any other purpose. Every reasonable precaution has been taken to ensure that this e-mail, including attachments, does not contain any viruses. However, no liability can be accepted for any damage sustained as a result of such viruses, and recipients are advised to carry out their own checks. Moov2 Ltd cannot accept liability for statements made which are clearly the senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business purposes. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML GALLERY
looks like your xml and your code dont match. the debugger says your xmlnode has attributes thmb and main, your code says 'swf' and 'link' ? maybe thats it. martin Jose Maria Barros wrote: ups..sorry..forgot..well...it doesnt download the thumbnails..here is the code in the debugger Variable _level0.picHolder = [object #6, class 'XMLNode'] { foto thmb=imagens/img3.jpg main=imagens/img3.jpg / } Variable _level0.thumbHolder = [movieclip:_level0.thumbnails.thumbnail8] Variable _level0.thumbLoader = undefined ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] help the tabIndex
How do I enabled custom tab indexes? the following example doesnt seem to work for me user_movie.user_input.inputText.tabIndex = 1; pass_movie.pass_input.inputText.tabIndex = 2; tabEnabled = true ? --- erixtekila http://blog.v-i-a.net/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Array like access to custom class?
Dan Thomas wrote: Can I provide array like access to a custom collection object? E.g. Class MyClass { private var myArray:Array; public function getArray():Array { return this.myArray; } } [snip] How can I change it so I can achieve the same thing but with access to the items like this: var someClass:MyClass = new MyClass; thisItem = someClass[0]; Use __resolve: class MyClass { private var myArray:Array; public function __resolve(name:String):Object { if (!isNaN(name)) { return myArray[Number(name)]; } else { return false; } } } But it will not strict type properly at all, so you lose major benefits of using as2 this way. I'd do it: class MyClass { private var myArray:Array; public function elem(n:Number):Object { return myArray[n]; } } And: var someClass:MyClass = new MyClass; thisItem = someClass.elem(0); Then you will get proper validation of argument, parameter and return types. -- Morten Barklund - Information Architect - Shockwaved Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] text warp in flash
http://www.storyabout.net/typedrawing This is an application that uses bulging text in a static manner. It might give you an idea.. 2005/12/20, rishi [EMAIL PROTECTED]: Hi I have been trying to achieve text warp , with all the technologies and the skillset I possess, but to no success. I tried to achieve the same using displacement filter but to no success. Problem definition: I want the user to add text on stage at runtime and then select from certain built in effects, like bulge down, arc up, arc down and bridge text. Therafter the same text effects should be applicable to the textfield added at runtime added on Stage. I am unable to figure ou how to draw these bridge,bulge text effect in flash for a multiline text field. Please help me out. Regards Rishi ___ 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] Flash webservice puzzle
Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash webservice puzzle
it's hard to say, i think it depens of your 4 views :) can it be matematically told that you can assign ID to every seat by some math formulas? or you want just create your views after you will find a good way to populate them? (sorry for my english :) On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Array like access to custom class?
Thanks very much Morten DannyT -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Morten Barklund Shockwaved Sent: 20 December 2005 13:15 To: Flashcoders mailing list Subject: Re: [Flashcoders] Array like access to custom class? Dan Thomas wrote: Can I provide array like access to a custom collection object? E.g. Class MyClass { private var myArray:Array; public function getArray():Array { return this.myArray; } } [snip] How can I change it so I can achieve the same thing but with access to the items like this: var someClass:MyClass = new MyClass; thisItem = someClass[0]; Use __resolve: class MyClass { private var myArray:Array; public function __resolve(name:String):Object { if (!isNaN(name)) { return myArray[Number(name)]; } else { return false; } } } But it will not strict type properly at all, so you lose major benefits of using as2 this way. I'd do it: class MyClass { private var myArray:Array; public function elem(n:Number):Object { return myArray[n]; } } And: var someClass:MyClass = new MyClass; thisItem = someClass.elem(0); Then you will get proper validation of argument, parameter and return types. -- Morten Barklund - Information Architect - Shockwaved Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This message and any attachments should only be read by those persons to whom it is addressed and be used by them for its intended purpose. It must not otherwise be reproduced, modified, distributed, published or actioned. If you have received this e-mail in error, please notify us immediately by telephone on 01202 237000 and delete it from your computer immediately. This e-mail address must not be passed to any third party or be used for any other purpose. Every reasonable precaution has been taken to ensure that this e-mail, including attachments, does not contain any viruses. However, no liability can be accepted for any damage sustained as a result of such viruses, and recipients are advised to carry out their own checks. Moov2 Ltd cannot accept liability for statements made which are clearly the senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business purposes. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash webservice puzzle
Hi franto, Thanks for your reply. Dude, your english is not that bad :) The current idea I'm working on is to get the Flash designer to place an empty MovieClip on every seat of the stadium and name this empty clip with a unique ID (Tier1_Block1_Stand1_Row1_SeatNumber1). Pretty much as you suggested. But how am I going to connect the avatar's seat number (given to him when he registers) with his specific seat on stage? Thanks again, Jan On 12/20/05, franto [EMAIL PROTECTED] wrote: it's hard to say, i think it depens of your 4 views :) can it be matematically told that you can assign ID to every seat by some math formulas? or you want just create your views after you will find a good way to populate them? (sorry for my english :) On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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] Flash webservice puzzle
Just a suggestion... Are your users choosing their seat or are you populating your stadium in a orderly fashion? One way or the other, when they register you attribute them their seat and store that info (the seat id) in a BD...And when they return to the stadium, just pullout the seat... (It gives me an idea for project of mine!) Thanks. Johan Lopes wrote: Hi franto, Thanks for your reply. Dude, your english is not that bad :) The current idea I'm working on is to get the Flash designer to place an empty MovieClip on every seat of the stadium and name this empty clip with a unique ID (Tier1_Block1_Stand1_Row1_SeatNumber1). Pretty much as you suggested. But how am I going to connect the avatar's seat number (given to him when he registers) with his specific seat on stage? Thanks again, Jan On 12/20/05, franto [EMAIL PROTECTED] wrote: it's hard to say, i think it depens of your 4 views :) can it be matematically told that you can assign ID to every seat by some math formulas? or you want just create your views after you will find a good way to populate them? (sorry for my english :) On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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 -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Elastic ribbon
On Dec 20, 2005, at 5:58 AM, franto wrote: i just have this, but it's implemented in AS3 http://www.franto.com/blog2/as3-cloth-simulation-verlet-algorithm That's interesting. Only thing is that cloth doesn't stretch (unless it's spandex or something). :) Aside: a particle spring system is better for cloth simulation than verlet integration. Jon Bradley Animation / Interactive / Visual FX Post Central, Inc. [EMAIL PROTECTED] www.cherrycrushthemovie.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash webservice puzzle
Yeah, the users are allowed to choose their seat. And I can loop trough the avatar object and pull out his seatNumber but we need a good way to link that seatID in the db with the one onstage. Thanks Jan On 20/12/05, Éric Thibault [EMAIL PROTECTED] wrote: Just a suggestion... Are your users choosing their seat or are you populating your stadium in a orderly fashion? One way or the other, when they register you attribute them their seat and store that info (the seat id) in a BD...And when they return to the stadium, just pullout the seat... (It gives me an idea for project of mine!) Thanks. Johan Lopes wrote: Hi franto, Thanks for your reply. Dude, your english is not that bad :) The current idea I'm working on is to get the Flash designer to place an empty MovieClip on every seat of the stadium and name this empty clip with a unique ID (Tier1_Block1_Stand1_Row1_SeatNumber1). Pretty much as you suggested. But how am I going to connect the avatar's seat number (given to him when he registers) with his specific seat on stage? Thanks again, Jan On 12/20/05, franto [EMAIL PROTECTED] wrote: it's hard to say, i think it depens of your 4 views :) can it be matematically told that you can assign ID to every seat by some math formulas? or you want just create your views after you will find a good way to populate them? (sorry for my english :) On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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 -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ 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] flash and cfm
Instead, use Flash Remoting to return an array. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Monday, December 19, 2005 6:06 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] flash and cfm What is the best practice for grabbing variables from a database using cfm and the using these inside of a flash movie? I am not a cfm developer but I have one here at work that has been helping me with a project I am currently working on. We are running into a problem that flash cannot interpret a query large string... What we are ending up with when trying to bring the variables into flash is a long string in the embed tag with delimiters for an array. Something like... Characters.swf?character1description1episoes1etc... All I can figure out is that there is a limit to the string length that flash is able to grab. Is this true? If so what's a work around? I hope all this makes sense! Thanks all! And I am looking forward to the in site! Thanks! Corban Baxter | rich media designer | www.funimation.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Scrolling Landscape by Mouse position
Hey all, I've seen a few examples of a scenic landscape that is scrolled to view more by the mouse cursor and can't seem to find any references to them a la google. Does anyone have a clue where to find these sources or have an example handy? I've just gotten pinned by my boss to have this done by the end of the day, or I'd do it from scratch. Cheers, Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Array like access to custom class?
someClass.elem(0) = myObj; Nope - of course not. elem is a function - you can't use it that way. You can do anything you like, though. Create your own function for instance: someClass.setElem(0, myObj); Or a general addElem, that doesn't take a position argument but just pushes to the end: someClass.addElem(myObj); Anything you like :) -- Morten Barklund - Information Architect - Shockwaved Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash webservice puzzle
OK! The empty MC (or component) placed on every seat representation by your Flash designer could have a load image fonction to place the avatar (jpg image outside your flash?) inside itself and scalled to fit? 1. the user logs in to your system 2. you tell the MC corresponding to his seat to load his/her avatar Or are the seats reservé once a user registers (logged in or not)? In that case, on init of the flash application, pullout all the users and init their seat (with a active / inactive representation based on the component settings like _alpha)? Just thinking out loud! A+ Jan Huzelius wrote: Yeah, the users are allowed to choose their seat. And I can loop trough the avatar object and pull out his seatNumber but we need a good way to link that seatID in the db with the one onstage. Thanks Jan On 20/12/05, Éric Thibault [EMAIL PROTECTED] wrote: Just a suggestion... Are your users choosing their seat or are you populating your stadium in a orderly fashion? One way or the other, when they register you attribute them their seat and store that info (the seat id) in a BD...And when they return to the stadium, just pullout the seat... (It gives me an idea for project of mine!) Thanks. Johan Lopes wrote: Hi franto, Thanks for your reply. Dude, your english is not that bad :) The current idea I'm working on is to get the Flash designer to place an empty MovieClip on every seat of the stadium and name this empty clip with a unique ID (Tier1_Block1_Stand1_Row1_SeatNumber1). Pretty much as you suggested. But how am I going to connect the avatar's seat number (given to him when he registers) with his specific seat on stage? Thanks again, Jan On 12/20/05, franto [EMAIL PROTECTED] wrote: it's hard to say, i think it depens of your 4 views :) can it be matematically told that you can assign ID to every seat by some math formulas? or you want just create your views after you will find a good way to populate them? (sorry for my english :) On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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 -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ 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 -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash and cfm
Looks like you're running into the character limit of URL strings. I second Jason's recommendation of remoting. Either that or use coldfusion to write XML files. Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash and cfm
You could try using flashVars instead of appending the parameters to the end of the URL. I don't think flashVars has a limit. May be less hassle than switching to Remoting. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Cheers, Ian On 12/19/05, Corban Baxter [EMAIL PROTECTED] wrote: What is the best practice for grabbing variables from a database using cfm and the using these inside of a flash movie? I am not a cfm developer but I have one here at work that has been helping me with a project I am currently working on. We are running into a problem that flash cannot interpret a query large string... What we are ending up with when trying to bring the variables into flash is a long string in the embed tag with delimiters for an array. Something like... Characters.swf?character1description1episoes1etc... All I can figure out is that there is a limit to the string length that flash is able to grab. Is this true? If so what's a work around? I hope all this makes sense! Thanks all! And I am looking forward to the in site! Thanks! Corban Baxter |rich media designer |www.funimation.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash webservice puzzle
Hi Eric, Thanks for thinking out loud! :) Or are the seats reservé once a user registers (logged in or not)? Yes. Apparently, once they register they get a seat and they can't change seats. they can reserve a seat though (expires after 24hrs) The reason why we've chosen to place the empty movieClip on stage manually is because the drawing of the stadium is quite arbritrary. It would be difficult but not impossible to come with a fool-proof solid way of doing this dynamic because of the way the stadium is drawn. By placing the mcs on stage, will let the designer decide exactly where he wants to place an object/avatar! your Flash designer could have a load image fonction to place the avatar (jpg image outside your flash?) inside itself and scalled to fit? The avatars are actually created based on various component elements a use chooses duing registration process (head, top, bottom, skincolor) not through loading jpgs). 2. you tell the MC corresponding to his seat to load his/her avatar Currently, we're close to having a solid solution that scales (depending on amount of users we have), but we can't seem to be able to link the MC corresponding to his seat with the seat number he is given. --- if that makes any sense? Thanks On 20/12/05, Éric Thibault [EMAIL PROTECTED] wrote: OK! The empty MC (or component) placed on every seat representation by your Flash designer could have a load image fonction to place the avatar (jpg image outside your flash?) inside itself and scalled to fit? 1. the user logs in to your system 2. you tell the MC corresponding to his seat to load his/her avatar Or are the seats reservé once a user registers (logged in or not)? In that case, on init of the flash application, pullout all the users and init their seat (with a active / inactive representation based on the component settings like _alpha)? Just thinking out loud! A+ Jan Huzelius wrote: Yeah, the users are allowed to choose their seat. And I can loop trough the avatar object and pull out his seatNumber but we need a good way to link that seatID in the db with the one onstage. Thanks Jan On 20/12/05, Éric Thibault [EMAIL PROTECTED] wrote: Just a suggestion... Are your users choosing their seat or are you populating your stadium in a orderly fashion? One way or the other, when they register you attribute them their seat and store that info (the seat id) in a BD...And when they return to the stadium, just pullout the seat... (It gives me an idea for project of mine!) Thanks. Johan Lopes wrote: Hi franto, Thanks for your reply. Dude, your english is not that bad :) The current idea I'm working on is to get the Flash designer to place an empty MovieClip on every seat of the stadium and name this empty clip with a unique ID (Tier1_Block1_Stand1_Row1_SeatNumber1). Pretty much as you suggested. But how am I going to connect the avatar's seat number (given to him when he registers) with his specific seat on stage? Thanks again, Jan On 12/20/05, franto [EMAIL PROTECTED] wrote: it's hard to say, i think it depens of your 4 views :) can it be matematically told that you can assign ID to every seat by some math formulas? or you want just create your views after you will find a good way to populate them? (sorry for my english :) On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ 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 -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval,
Re: [Flashcoders] Flash webservice puzzle
BTW, what's BD short for? On 20/12/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi Eric, Thanks for thinking out loud! :) Or are the seats reservé once a user registers (logged in or not)? Yes. Apparently, once they register they get a seat and they can't change seats. they can reserve a seat though (expires after 24hrs) The reason why we've chosen to place the empty movieClip on stage manually is because the drawing of the stadium is quite arbritrary. It would be difficult but not impossible to come with a fool-proof solid way of doing this dynamic because of the way the stadium is drawn. By placing the mcs on stage, will let the designer decide exactly where he wants to place an object/avatar! your Flash designer could have a load image fonction to place the avatar (jpg image outside your flash?) inside itself and scalled to fit? The avatars are actually created based on various component elements a use chooses duing registration process (head, top, bottom, skincolor) not through loading jpgs). 2. you tell the MC corresponding to his seat to load his/her avatar Currently, we're close to having a solid solution that scales (depending on amount of users we have), but we can't seem to be able to link the MC corresponding to his seat with the seat number he is given. --- if that makes any sense? Thanks On 20/12/05, Éric Thibault [EMAIL PROTECTED] wrote: OK! The empty MC (or component) placed on every seat representation by your Flash designer could have a load image fonction to place the avatar (jpg image outside your flash?) inside itself and scalled to fit? 1. the user logs in to your system 2. you tell the MC corresponding to his seat to load his/her avatar Or are the seats reservé once a user registers (logged in or not)? In that case, on init of the flash application, pullout all the users and init their seat (with a active / inactive representation based on the component settings like _alpha)? Just thinking out loud! A+ Jan Huzelius wrote: Yeah, the users are allowed to choose their seat. And I can loop trough the avatar object and pull out his seatNumber but we need a good way to link that seatID in the db with the one onstage. Thanks Jan On 20/12/05, Éric Thibault [EMAIL PROTECTED] wrote: Just a suggestion... Are your users choosing their seat or are you populating your stadium in a orderly fashion? One way or the other, when they register you attribute them their seat and store that info (the seat id) in a BD...And when they return to the stadium, just pullout the seat... (It gives me an idea for project of mine!) Thanks. Johan Lopes wrote: Hi franto, Thanks for your reply. Dude, your english is not that bad :) The current idea I'm working on is to get the Flash designer to place an empty MovieClip on every seat of the stadium and name this empty clip with a unique ID (Tier1_Block1_Stand1_Row1_SeatNumber1). Pretty much as you suggested. But how am I going to connect the avatar's seat number (given to him when he registers) with his specific seat on stage? Thanks again, Jan On 12/20/05, franto [EMAIL PROTECTED] wrote: it's hard to say, i think it depens of your 4 views :) can it be matematically told that you can assign ID to every seat by some math formulas? or you want just create your views after you will find a good way to populate them? (sorry for my english :) On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list
Re: [Flashcoders] Flash webservice puzzle
Surely all you need to do is just name the placeholder MovieClip instances appropriately? So if the database returns a seat identifier, then access a clip named seat_someID with: var seatClip:MovieClip=myTimeline[seat_+seatID]; where we assume seatID is a string returned from the database (e.g. 2A), and myTimeline is whatever timeline all your clips are on. (e.g. _root, if you must). And we assume clip instances are named seat_1A,seat_2A etc. Note that's clip instances (the 'instance name' box in the Properties dialog), not library symbol names. Or am I missing something? Ian On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi Eric, Thanks for thinking out loud! :) Or are the seats reservé once a user registers (logged in or not)? Yes. Apparently, once they register they get a seat and they can't change seats. they can reserve a seat though (expires after 24hrs) The reason why we've chosen to place the empty movieClip on stage manually is because the drawing of the stadium is quite arbritrary. It would be difficult but not impossible to come with a fool-proof solid way of doing this dynamic because of the way the stadium is drawn. By placing the mcs on stage, will let the designer decide exactly where he wants to place an object/avatar! your Flash designer could have a load image fonction to place the avatar (jpg image outside your flash?) inside itself and scalled to fit? The avatars are actually created based on various component elements a use chooses duing registration process (head, top, bottom, skincolor) not through loading jpgs). 2. you tell the MC corresponding to his seat to load his/her avatar Currently, we're close to having a solid solution that scales (depending on amount of users we have), but we can't seem to be able to link the MC corresponding to his seat with the seat number he is given. --- if that makes any sense? Thanks On 20/12/05, Éric Thibault [EMAIL PROTECTED] wrote: OK! The empty MC (or component) placed on every seat representation by your Flash designer could have a load image fonction to place the avatar (jpg image outside your flash?) inside itself and scalled to fit? 1. the user logs in to your system 2. you tell the MC corresponding to his seat to load his/her avatar Or are the seats reservé once a user registers (logged in or not)? In that case, on init of the flash application, pullout all the users and init their seat (with a active / inactive representation based on the component settings like _alpha)? Just thinking out loud! A+ Jan Huzelius wrote: Yeah, the users are allowed to choose their seat. And I can loop trough the avatar object and pull out his seatNumber but we need a good way to link that seatID in the db with the one onstage. Thanks Jan On 20/12/05, Éric Thibault [EMAIL PROTECTED] wrote: Just a suggestion... Are your users choosing their seat or are you populating your stadium in a orderly fashion? One way or the other, when they register you attribute them their seat and store that info (the seat id) in a BD...And when they return to the stadium, just pullout the seat... (It gives me an idea for project of mine!) Thanks. Johan Lopes wrote: Hi franto, Thanks for your reply. Dude, your english is not that bad :) The current idea I'm working on is to get the Flash designer to place an empty MovieClip on every seat of the stadium and name this empty clip with a unique ID (Tier1_Block1_Stand1_Row1_SeatNumber1). Pretty much as you suggested. But how am I going to connect the avatar's seat number (given to him when he registers) with his specific seat on stage? Thanks again, Jan On 12/20/05, franto [EMAIL PROTECTED] wrote: it's hard to say, i think it depens of your 4 views :) can it be matematically told that you can assign ID to every seat by some math formulas? or you want just create your views after you will find a good way to populate them? (sorry for my english :) On 12/20/05, Jan Huzelius [EMAIL PROTECTED] wrote: Hi list, I'm creating a 2D football stadium in Flash (4 views) which will be populated with avatars/users from a .NET webservice. The football stadium is illustrated - it's not 3D. The avatars are simple animated MovieClips. Every section of the stadium has a stand with a certain number of seats. What's the most elegant or most scalable way to populate my stadium seats with a bunch of MovieClip avatars? Bearing in mind that a single avatar must be placed in the exact same seat everytime (no random seats). Any suggestions welcome. Thanks in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Re: [Flashcoders] Flash webservice puzzle
If all the seats (manualy placed empty MC) have an id identifier, just use that id to store inside your DB! It's a direct connection between your user (databasewise) and that particular seat! then use myStadium[MyUserSeat].DoFonctionX(params); //(if your empty MC contains that particular fonction...) A+ Jan Huzelius wrote: Hi Eric, Thanks for thinking out loud! :) Or are the seats reservé once a user registers (logged in or not)? Yes. Apparently, once they register they get a seat and they can't change seats. they can reserve a seat though (expires after 24hrs) The reason why we've chosen to place the empty movieClip on stage manually is because the drawing of the stadium is quite arbritrary. It would be difficult but not impossible to come with a fool-proof solid way of doing this dynamic because of the way the stadium is drawn. By placing the mcs on stage, will let the designer decide exactly where he wants to place an object/avatar! your Flash designer could have a load image fonction to place the avatar (jpg image outside your flash?) inside itself and scalled to fit? The avatars are actually created based on various component elements a use chooses duing registration process (head, top, bottom, skincolor) not through loading jpgs). 2. you tell the MC corresponding to his seat to load his/her avatar Currently, we're close to having a solid solution that scales (depending on amount of users we have), but we can't seem to be able to link the MC corresponding to his seat with the seat number he is given. --- if that makes any sense? Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash webservice puzzle
Cool! Thanks Ian, and Eric for your suggestions! Cheers, Jan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Webservices best practices
Really? I'm working on a project where most of my data is to be supplied via webservices and it will most certainly be more than 2-3 methods. I have got it fixed, i think it was a timing issue when I added a setInterval( this, flightRequest, 1000 ); it works to trigger the 3-4 methods in queue. It all fixed for now -- tech demo is finished. Oh well, time to find out how to handle this the best way, though. I had some nice collection of scope issues. Planning to play with some events stuff. Oh well! Done is done ;) I'm putting together a serviceLocator class (singleton) that takes care of all my webservice calls. You're not using the MX 04 web service connector are you? Yes, I am using the WebService class. -- Yours, Weyert de Boer ([EMAIL PROTECTED]) innerfuse* http://www.innerfuse.biz/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash and cfm
Hi Corban, If you're looking for books I recommend the following: 1) Flash Remoting - The definitive guide (Tom Muck) (oldie but goodie) 2) Flash MX Professional 2004 for Server Geeks (Nate Weiss) - Demystifies quite a lot of things Otherwise checkout the tutorials on these sites for more: http://www.flash-remoting.com/notablog/ http://www.flash-db.com Also, checkout MM's/Adobe site for some great tutorials HTH, /Johan On 12/20/05, Corban Baxter [EMAIL PROTECTED] wrote: Ok so if I know nothing about remoting but I could learn it fast what are some good resources to get on track and fast? Thanks! Corban Baxter |rich media designer |www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, December 20, 2005 9:39 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm You could try using flashVars instead of appending the parameters to the end of the URL. I don't think flashVars has a limit. May be less hassle than switching to Remoting. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Cheers, Ian On 12/19/05, Corban Baxter [EMAIL PROTECTED] wrote: What is the best practice for grabbing variables from a database using cfm and the using these inside of a flash movie? I am not a cfm developer but I have one here at work that has been helping me with a project I am currently working on. We are running into a problem that flash cannot interpret a query large string... What we are ending up with when trying to bring the variables into flash is a long string in the embed tag with delimiters for an array. Something like... Characters.swf?character1description1episoes1etc... All I can figure out is that there is a limit to the string length that flash is able to grab. Is this true? If so what's a work around? I hope all this makes sense! Thanks all! And I am looking forward to the in site! Thanks! Corban Baxter |rich media designer |www.funimation.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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML GALLERY
OK..ive found it..i forgot to put the this in the thumbHolder Variable... On 12/20/05, Jose Maria Barros [EMAIL PROTECTED] wrote: Heelo---well ive made some progress, but the problem is that it only shows one thumbnail of the xml grid--..can anyone help me? ///XML myPhoto = new XML(); myPhoto.ignoreWhite = true; myPhoto.onLoad = function(success) { //portfolioTag = this.firstChild; gridx = 58; gridy = 58; num = 0; for (i=0; i3; i++) for (j=0; j3; j++) { this.picHolder = this.firstChild.childNodes[i+(j*3)]; this.thumbHolder = thumbnails.createEmptyMovieClip(thumbnail+num, num); thumbHolder._x=gridx*i; thumbHolder._y=gridy*j; num++; this.thumbLoader = this.thumbHolder.createEmptyMovieClip(thumbnail_image, 0); this.thumbLoader.loadMovie(this.picHolder.attributes.thmb); this.thumbHolder.main = this.picHolder.attributes.main; this.thumbHolder.onRelease = function() { loader.loadMovie(this.main); }; } }; myPhoto.load(design.xml); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML GALLERY
Ok..sorry to bother...but i have one question...its possible to insert this code in a movie clip? because ive tried.. putting _root in all..but it didnt worked. Ive wanted to put this in other movie because i wanted to this code load after and animation Thanks... On 12/20/05, Jose Maria Barros [EMAIL PROTECTED] wrote: OK..ive found it..i forgot to put the this in the thumbHolder Variable... On 12/20/05, Jose Maria Barros [EMAIL PROTECTED] wrote: Heelo---well ive made some progress, but the problem is that it only shows one thumbnail of the xml grid--..can anyone help me? ///XML myPhoto = new XML(); myPhoto.ignoreWhite = true; myPhoto.onLoad = function(success) { //portfolioTag = this.firstChild; gridx = 58; gridy = 58; num = 0; for (i=0; i3; i++) for (j=0; j3; j++) { this.picHolder = this.firstChild.childNodes[i+(j*3)]; this.thumbHolder = thumbnails.createEmptyMovieClip(thumbnail+num, num); thumbHolder._x=gridx*i; thumbHolder._y=gridy*j; num++; this.thumbLoader = this.thumbHolder.createEmptyMovieClip(thumbnail_image, 0); this.thumbLoader.loadMovie(this.picHolder.attributes.thmb); this.thumbHolder.main = this.picHolder.attributes.main; this.thumbHolder.onRelease = function() { loader.loadMovie(this.main); }; } }; myPhoto.load(design.xml); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Out of curiosity, XPath and String Datatype Oddity
I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Running Locally vs on a Server - Testing (Kevin Cannon)
if (System.capabilities.playerType == External) { //do something } Hope the above helps. cp : Cole Peterson : ZAAZ, Inc : Interactive developer : [EMAIL PROTECTED] : t 206.341.9885 x4867 : www.zaaz.com -- Message: 14 Hi, Hopefully an easy one for you. What's the best way to check if your flash file is running locally/ in the Flash IDE compared to when it's running online. Occasioanlly when testing htings I uncomment a small block of code to fill in fluff data, it would be cleaner if there was a way to check it with code. Thanks, - Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] test
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How to Handle Licensing for Flash Applications
Hello all, I'm looking for some information regarding licensing and how to apply some anti-piracy measures for Flash. I was recently approached to build a rather robust enterprise application and I'd like to protect the code from redistribution without consent. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flash and cfm
Is flash remoting a server side app I need like cfm or is it native in the flash player? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 10:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm Hi Corban, If you're looking for books I recommend the following: 1) Flash Remoting - The definitive guide (Tom Muck) (oldie but goodie) 2) Flash MX Professional 2004 for Server Geeks (Nate Weiss) - Demystifies quite a lot of things Otherwise checkout the tutorials on these sites for more: http://www.flash-remoting.com/notablog/ http://www.flash-db.com Also, checkout MM's/Adobe site for some great tutorials HTH, /Johan On 12/20/05, Corban Baxter [EMAIL PROTECTED] wrote: Ok so if I know nothing about remoting but I could learn it fast what are some good resources to get on track and fast? Thanks! Corban Baxter |rich media designer |www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, December 20, 2005 9:39 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm You could try using flashVars instead of appending the parameters to the end of the URL. I don't think flashVars has a limit. May be less hassle than switching to Remoting. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Cheers, Ian On 12/19/05, Corban Baxter [EMAIL PROTECTED] wrote: What is the best practice for grabbing variables from a database using cfm and the using these inside of a flash movie? I am not a cfm developer but I have one here at work that has been helping me with a project I am currently working on. We are running into a problem that flash cannot interpret a query large string... What we are ending up with when trying to bring the variables into flash is a long string in the embed tag with delimiters for an array. Something like... Characters.swf?character1description1episoes1etc... All I can figure out is that there is a limit to the string length that flash is able to grab. Is this true? If so what's a work around? I hope all this makes sense! Thanks all! And I am looking forward to the in site! Thanks! Corban Baxter |rich media designer |www.funimation.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 ___ 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] flash and cfm
The Remoting Gateway is built into the ColdFusion application server. You use the Remoting components on the Flash side. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Tuesday, December 20, 2005 12:50 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] flash and cfm Is flash remoting a server side app I need like cfm or is it native in the flash player? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 10:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm Hi Corban, If you're looking for books I recommend the following: 1) Flash Remoting - The definitive guide (Tom Muck) (oldie but goodie) 2) Flash MX Professional 2004 for Server Geeks (Nate Weiss) - Demystifies quite a lot of things Otherwise checkout the tutorials on these sites for more: http://www.flash-remoting.com/notablog/ http://www.flash-db.com Also, checkout MM's/Adobe site for some great tutorials HTH, /Johan On 12/20/05, Corban Baxter [EMAIL PROTECTED] wrote: Ok so if I know nothing about remoting but I could learn it fast what are some good resources to get on track and fast? Thanks! Corban Baxter |rich media designer |www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, December 20, 2005 9:39 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm You could try using flashVars instead of appending the parameters to the end of the URL. I don't think flashVars has a limit. May be less hassle than switching to Remoting. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Cheers, Ian On 12/19/05, Corban Baxter [EMAIL PROTECTED] wrote: What is the best practice for grabbing variables from a database using cfm and the using these inside of a flash movie? I am not a cfm developer but I have one here at work that has been helping me with a project I am currently working on. We are running into a problem that flash cannot interpret a query large string... What we are ending up with when trying to bring the variables into flash is a long string in the embed tag with delimiters for an array. Something like... Characters.swf?character1description1episoes1etc... All I can figure out is that there is a limit to the string length that flash is able to grab. Is this true? If so what's a work around? I hope all this makes sense! Thanks all! And I am looking forward to the in site! Thanks! Corban Baxter |rich media designer |www.funimation.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 ___ 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] Out of curiosity, XPath and String Datatype Oddity
Hi Jason, I've noticed simliar behavior but I think it's just in how you are using it. Generally I think Xpath will return an array of XMLNode types unless you grab a small enough piece of information. If you look in the class files you can also use selectNodesAsString. This will force all your returned data to be strings. Unfortunately I myself just started using Xpath and I love it...so I help this helps or points you in the right direction maybe someone else can shed more light. Regards, -Ralph -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, December 20, 2005 9:21 AM To: Flashcoders mailing list Subject: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] Out of curiosity, XPath and String Datatype Oddity
Hi Jason, AFAIK, XPath.selectNodes() returns an Array. snippet from the docs /** 10 *selectNodes 11 * 12 *returns an array of nodes that match the given XPath 13 *expression using the the XMLNode (context) as the 14 *starting context for the expression. 15 * 16 *This is the description 17 *@param (XMLNode)context 18 *@param (String)XPath expression 19 *@return (Array) matching nodes 20 */ 21 static function selectNodes(context,path:String):Array{ 22 return XPathParser.parseQuery(context,path) 23 } 24 /snippet from the docs HTH, /Johan On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote: I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] Out of curiosity, XPath and String Datatype Oddity
Hmm. I now see what you mean. Maybe when you pass the value without casting it in the raw, some V2 components such as textArea etc, does an auto cast toString and therefore can deal with it but the MediaPlayback component is expecting a proper String and doesn't no what to grab it if you pass MyVar[0]. As always I need to warn ya I might be talking out of my ass here :) /Johan On 12/20/05, Johan Lopes [EMAIL PROTECTED] wrote: Hi Jason, AFAIK, XPath.selectNodes() returns an Array. snippet from the docs /** 10 *selectNodes 11 * 12 *returns an array of nodes that match the given XPath 13 *expression using the the XMLNode (context) as the 14 *starting context for the expression. 15 * 16 *This is the description 17 *@param (XMLNode)context 18 *@param (String)XPath expression 19 *@return (Array) matching nodes 20 */ 21 static function selectNodes(context,path:String):Array{ 22 return XPathParser.parseQuery(context,path) 23 } 24 /snippet from the docs HTH, /Johan On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote: I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] flash and cfm
Remoting are AS2 classes you import and use in Flash, as well as the gateway built into ColdFusion MX 7. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Tuesday, December 20, 2005 12:50 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] flash and cfm Is flash remoting a server side app I need like cfm or is it native in the flash player? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 10:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm Hi Corban, If you're looking for books I recommend the following: 1) Flash Remoting - The definitive guide (Tom Muck) (oldie but goodie) 2) Flash MX Professional 2004 for Server Geeks (Nate Weiss) - Demystifies quite a lot of things Otherwise checkout the tutorials on these sites for more: http://www.flash-remoting.com/notablog/ http://www.flash-db.com Also, checkout MM's/Adobe site for some great tutorials HTH, /Johan On 12/20/05, Corban Baxter [EMAIL PROTECTED] wrote: Ok so if I know nothing about remoting but I could learn it fast what are some good resources to get on track and fast? Thanks! Corban Baxter |rich media designer |www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, December 20, 2005 9:39 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm You could try using flashVars instead of appending the parameters to the end of the URL. I don't think flashVars has a limit. May be less hassle than switching to Remoting. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Cheers, Ian On 12/19/05, Corban Baxter [EMAIL PROTECTED] wrote: What is the best practice for grabbing variables from a database using cfm and the using these inside of a flash movie? I am not a cfm developer but I have one here at work that has been helping me with a project I am currently working on. We are running into a problem that flash cannot interpret a query large string... What we are ending up with when trying to bring the variables into flash is a long string in the embed tag with delimiters for an array. Something like... Characters.swf?character1description1episoes1etc... All I can figure out is that there is a limit to the string length that flash is able to grab. Is this true? If so what's a work around? I hope all this makes sense! Thanks all! And I am looking forward to the in site! Thanks! Corban Baxter |rich media designer |www.funimation.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 ___ 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 NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity
Very Interesting - thank you. I've had a hard time finding this kind of documentation. At least some that is readable. The w3c pages are pretty over-spec'd and impossible to me for the most part. Interesting to have to open the class files to find out what you can do. Thanks again! Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ralph Caraveo Sent: Tuesday, December 20, 2005 1:00 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Hi Jason, I've noticed simliar behavior but I think it's just in how you are using it. Generally I think Xpath will return an array of XMLNode types unless you grab a small enough piece of information. If you look in the class files you can also use selectNodesAsString. This will force all your returned data to be strings. Unfortunately I myself just started using Xpath and I love it...so I help this helps or points you in the right direction maybe someone else can shed more light. Regards, -Ralph NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] What not to do
Does anyone have any links on stuff Not to do in flash that maybe cause the plugin to slow down or halt. Maybe even some best practices when working on large projects? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity
AFAIK, XPath.selectNodes() returns an Array. How do you use Xpath to return node values then? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 1:07 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Hi Jason, AFAIK, XPath.selectNodes() returns an Array. snippet from the docs /** 10*selectNodes 11* 12*returns an array of nodes that match the given XPath 13*expression using the the XMLNode (context) as the 14*starting context for the expression. 15* 16*This is the description 17*@param (XMLNode)context 18*@param (String)XPath expression 19*@return (Array) matching nodes 20*/ 21static function selectNodes(context,path:String):Array{ 22return XPathParser.parseQuery(context,path) 23} 24 /snippet from the docs HTH, /Johan On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote: I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] Out of curiosity, XPath and String Datatype Oddity
Ralph, FYI - As per your suggestion, selectNodesAsString does not work. If I use that, I still have to cast it to String first. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ralph Caraveo Sent: Tuesday, December 20, 2005 1:00 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Hi Jason, I've noticed simliar behavior but I think it's just in how you are using it. Generally I think Xpath will return an array of XMLNode types unless you grab a small enough piece of information. If you look in the class files you can also use selectNodesAsString. This will force all your returned data to be strings. Unfortunately I myself just started using Xpath and I love it...so I help this helps or points you in the right direction maybe someone else can shed more light. Regards, -Ralph -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, December 20, 2005 9:21 AM To: Flashcoders mailing list Subject: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] Out of curiosity, XPath and String Datatype Oddity
Maybe something like this may help? myText=XMLNode((XPath.selectNodes(myxml,myNodePath/mynode())[0])).nodeValue; Mike Boutin Merrill, Jason wrote: AFAIK, XPath.selectNodes() returns an Array. How do you use Xpath to return node values then? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 1:07 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Hi Jason, AFAIK, XPath.selectNodes() returns an Array. snippet from the docs /** 10 *selectNodes 11 * 12 *returns an array of nodes that match the given XPath 13 *expression using the the XMLNode (context) as the 14 *starting context for the expression. 15 * 16 *This is the description 17 *@param (XMLNode)context 18 *@param (String)XPath expression 19 *@return (Array) matching nodes 20 */ 21 static function selectNodes(context,path:String):Array{ 22 return XPathParser.parseQuery(context,path) 23 } 24 /snippet from the docs HTH, /Johan On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote: I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] What not to do
LOL. That's a great title for a Flash book. Quick, let's contact a publisher :) /Johan On 12/20/05, Mike Boutin [EMAIL PROTECTED] wrote: Does anyone have any links on stuff Not to do in flash that maybe cause the plugin to slow down or halt. Maybe even some best practices when working on large projects? Thanks! ___ 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] Who's using AS2 Flash remoting with ServerSideActionscript?
Hi H, If you're asking about client-side AS3 in Flex 2 I highly recommend you try it out. It's the best way to get a sense of it. Download Flex 2 from here: http://labs.macromedia.com The help is remarkably good - even amazing for an alpha. I'm not a Flex 2/MXML expert but you can: 1. write AS3 classes 2. instantiate an AS3 class using an MXML tag. 3. use the mx:Script tag: mx:Script ![CDATA[ // your AS3 code goes here. ]] /mx:Script 4. put code inside tag attributes - for example to respond to a click: mx:Button id=loginButton label=Login width=200 enabled=false click=dispatchEvent( new LoginRequestEvent(credentials) ); /mx:Button Yours truly, -Brian Great question and great response, it is a shame about SS AS2. How is AS 3.0integrated with Flex? I guess I'm really wondering whether it has a tag similiar to cfscript that would let you code in AS 3.0. H __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Drawing dotted lines
Hi all. Is it possible to draw a dotted line between two points or do I have to custom something with a function? I have the nead for plain, dotted, double-dotted... Thanks a lot. -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flex vs OpenLaszo
Has anyone played with OpenLaszo as well as Flex? Does flex allow you to compile a stand-alone swf file such as OpenLaszlo does? Thanks! Mike Boutin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What not to do
If you're working on large projects: A while back, I think it was Ryan Matsikas (I hope I spelled his surname right) that said something really profound and which I try to apply to every Flash project I work on: Just because Flash/ActionScript is getting more and more powerful and potent with every release doesn't mean we should use it for everything in a web RIA project. If you're working with a good back-end, database developer or software engineer, your app is better off leaving the heavy-duty stuff to back-end or server-side, letting Flash to do what it's best at - dealing with the front-end. We seem to forget this as Flash developers and spend too much time cooking up ways of letting Flash do things that a more powerful server-side language can do a lot faster without breaking a sweat. Why does the server-side do it faster? For one, it's got (often times) more RAM to play with... Just my 2 pence. /Johan On 12/20/05, Johan Lopes [EMAIL PROTECTED] wrote: LOL. That's a great title for a Flash book. Quick, let's contact a publisher :) /Johan On 12/20/05, Mike Boutin [EMAIL PROTECTED] wrote: Does anyone have any links on stuff Not to do in flash that maybe cause the plugin to slow down or halt. Maybe even some best practices when working on large projects? Thanks! ___ 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] What not to do
I belive both the Flashcoders Flashnewbie have 2 threads on this in the archives; good stuff. Thing to keep in mind is there are don'ts and there are optimizations which are 2 different things. - Original Message - From: Johan Lopes [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, December 20, 2005 1:49 PM Subject: Re: [Flashcoders] What not to do LOL. That's a great title for a Flash book. Quick, let's contact a publisher :) /Johan On 12/20/05, Mike Boutin [EMAIL PROTECTED] wrote: Does anyone have any links on stuff Not to do in flash that maybe cause the plugin to slow down or halt. Maybe even some best practices when working on large projects? Thanks! ___ 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] Flex vs OpenLaszo
Flex 1.5 and 2 allow you to compile stand alone SWF's. Flex 1.5, however, requires the Flex server to be installed on the box where the SWF is deployed to. - Original Message - From: Mike Boutin [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, December 20, 2005 2:04 PM Subject: [Flashcoders] Flex vs OpenLaszo Has anyone played with OpenLaszo as well as Flex? Does flex allow you to compile a stand-alone swf file such as OpenLaszlo does? Thanks! Mike Boutin ___ 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] Drawing dotted lines
Hi Eric, I think Aled Ulhmanns's animation package does this: http://www.alex-uhlmann.de/flash/animationpackage/ Also, I recall an old article on MMs dev site about this: http://www.macromedia.com/devnet/flash/articles/adv_draw_methods.html HTH, /Johan On 12/20/05, Éric Thibault [EMAIL PROTECTED] wrote: Hi all. Is it possible to draw a dotted line between two points or do I have to custom something with a function? I have the nead for plain, dotted, double-dotted... Thanks a lot. -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015 Courriel : [EMAIL PROTECTED] === Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm ___ 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] Out of curiosity, XPath and String Datatype Oddity
Yes, I have come across this as well and always use: String(XPath.selectNodes(temp_xml,myPath/text())[0]) Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Tuesday, December 20, 2005 1:43 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Maybe something like this may help? myText=XMLNode((XPath.selectNodes(myxml,myNodePath/mynode())[0])).node Va lue; Mike Boutin Merrill, Jason wrote: AFAIK, XPath.selectNodes() returns an Array. How do you use Xpath to return node values then? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 1:07 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Hi Jason, AFAIK, XPath.selectNodes() returns an Array. snippet from the docs /** 10 *selectNodes 11 * 12 *returns an array of nodes that match the given XPath 13 *expression using the the XMLNode (context) as the 14 *starting context for the expression. 15 * 16 *This is the description 17 *@param (XMLNode)context 18 *@param (String)XPath expression 19 *@return (Array) matching nodes 20 */ 21 static function selectNodes(context,path:String):Array{ 22 return XPathParser.parseQuery(context,path) 23 } 24 /snippet from the docs HTH, /Johan On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote: I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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 This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Array like access to custom class?
Can I provide array like access to a custom collection object? The easiest way would be to extend Array. Then you start with all the functionality of the Array object, and you can add or remove functionality as needed. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity
Doesnt XPath.selectNodes(myxml, pathtocontent/text()); return the text value as well? Doug Coning wrote: Could it be because the Xpath may return either a string or an array depending on how you structure your query? I agree that if there was a selectText type method where you pass in an xpath where you expect only one (or the first) resulting text value would be great. Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, December 20, 2005 2:55 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity That's using Flash's XML object with XPath to grab the node value - sure that works, and is good for nodes with CDATA, but overly complex - wrapping String() around it is easier. I was wondering just about the XPath implementation and why it doesn't return a native string, thanks though. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Tuesday, December 20, 2005 1:43 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Maybe something like this may help? myText=XMLNode((XPath.selectNodes(myxml,myNodePath/mynode())[0])).no de Value; Mike Boutin Merrill, Jason wrote: AFAIK, XPath.selectNodes() returns an Array. How do you use Xpath to return node values then? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 1:07 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Hi Jason, AFAIK, XPath.selectNodes() returns an Array. snippet from the docs /** 10 *selectNodes 11 * 12 *returns an array of nodes that match the given XPath 13 *expression using the the XMLNode (context) as the 14 *starting context for the expression. 15 * 16 *This is the description 17 *@param (XMLNode)context 18 *@param (String)XPath expression 19 *@return (Array) matching nodes 20 */ 21 static function selectNodes(context,path:String):Array{ 22 return XPathParser.parseQuery(context,path) 23 } 24 /snippet from the docs HTH, /Johan On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote: I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by
Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity
Mike Boutin wrote: Doesnt XPath.selectNodes(myxml, pathtocontent/text()); return the text value as well? The documentation says, that selectNodes *always* returns an array of XMLNode-objects - and it does. Always. The text()-syntax is only used to get the XMLNode representing a text node - that has no nodeName and thus cannot be accessed otherwise. -- Morten Barklund - Information Architect - Shockwaved ApS Larsbjoernsstraede 8 - DK-1454 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What not to do
A while back, I think it was Ryan Matsikas (I hope I spelled his surname right) that said something really profound and which I try to apply to every Flash project I work on: Mattes, thanks... ;-) It's really not that profound, it's just that when all you have is a hammer, everything starts to look like a nail. Just use the right tool for the job. That includes not trying to make Flash do things that it doesn't do well, especially when there are alternatives that do a much better job. And keep in mind that the job of software development is 80% planning and 20% writing code. If you plan well, you will write less code that is more efficient, not to mention easier to modify and maintain. To be perfectly honest, though, best practices really depend on the specifics of your situation. In some companies, writing efficient, stable, and well documented code is far more important than the deadline or the budget, while at other companies the opposite will be true. Your best practices will depend heavily on your employer's priorities, and the team (or lack therof) that you have to work with. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flash and cfm
Man I wish I understood l33t speak. Jason thanks but all this lingo is a bit over my head. I understand the AS2 Classes but gateway in Coldfusion MX 7. What is a gateway? Oh and to all that helped thanks. They FlashVars=etc... worked for this project. When I get more time I am going to try and decode all this remoting talk and see what I can come up with... Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, December 20, 2005 12:29 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] flash and cfm Remoting are AS2 classes you import and use in Flash, as well as the gateway built into ColdFusion MX 7. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Tuesday, December 20, 2005 12:50 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] flash and cfm Is flash remoting a server side app I need like cfm or is it native in the flash player? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 10:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm Hi Corban, If you're looking for books I recommend the following: 1) Flash Remoting - The definitive guide (Tom Muck) (oldie but goodie) 2) Flash MX Professional 2004 for Server Geeks (Nate Weiss) - Demystifies quite a lot of things Otherwise checkout the tutorials on these sites for more: http://www.flash-remoting.com/notablog/ http://www.flash-db.com Also, checkout MM's/Adobe site for some great tutorials HTH, /Johan On 12/20/05, Corban Baxter [EMAIL PROTECTED] wrote: Ok so if I know nothing about remoting but I could learn it fast what are some good resources to get on track and fast? Thanks! Corban Baxter |rich media designer |www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, December 20, 2005 9:39 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm You could try using flashVars instead of appending the parameters to the end of the URL. I don't think flashVars has a limit. May be less hassle than switching to Remoting. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Cheers, Ian On 12/19/05, Corban Baxter [EMAIL PROTECTED] wrote: What is the best practice for grabbing variables from a database using cfm and the using these inside of a flash movie? I am not a cfm developer but I have one here at work that has been helping me with a project I am currently working on. We are running into a problem that flash cannot interpret a query large string... What we are ending up with when trying to bring the variables into flash is a long string in the embed tag with delimiters for an array. Something like... Characters.swf?character1description1episoes1etc... All I can figure out is that there is a limit to the string length that flash is able to grab. Is this true? If so what's a work around? I hope all this makes sense! Thanks all! And I am looking forward to the in site! Thanks! Corban Baxter |rich media designer |www.funimation.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 ___ 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 NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] What not to do
Mattes, thanks... ;-) Doh! /Johan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity
Doesnt XPath.selectNodes(myxml, pathtocontent/text()); return the text value as well? Sure, but I don't think that works on attribute values (as in my example in my post). Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flash and cfm
Just think of the Remoting Gateway as just the part of the ColdFusion Server software that allows remoting to happen on the server from a Flash file, that's all you really need to know. I mean you need to use the remoting components to connect to the gateway, but that's pretty simple and there are examples of doing so available from Macromedia. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Tuesday, December 20, 2005 3:58 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] flash and cfm Man I wish I understood l33t speak. Jason thanks but all this lingo is a bit over my head. I understand the AS2 Classes but gateway in Coldfusion MX 7. What is a gateway? Oh and to all that helped thanks. They FlashVars=etc... worked for this project. When I get more time I am going to try and decode all this remoting talk and see what I can come up with... Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, December 20, 2005 12:29 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] flash and cfm Remoting are AS2 classes you import and use in Flash, as well as the gateway built into ColdFusion MX 7. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Tuesday, December 20, 2005 12:50 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] flash and cfm Is flash remoting a server side app I need like cfm or is it native in the flash player? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 10:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm Hi Corban, If you're looking for books I recommend the following: 1) Flash Remoting - The definitive guide (Tom Muck) (oldie but goodie) 2) Flash MX Professional 2004 for Server Geeks (Nate Weiss) - Demystifies quite a lot of things Otherwise checkout the tutorials on these sites for more: http://www.flash-remoting.com/notablog/ http://www.flash-db.com Also, checkout MM's/Adobe site for some great tutorials HTH, /Johan On 12/20/05, Corban Baxter [EMAIL PROTECTED] wrote: Ok so if I know nothing about remoting but I could learn it fast what are some good resources to get on track and fast? Thanks! Corban Baxter |rich media designer |www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, December 20, 2005 9:39 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] flash and cfm You could try using flashVars instead of appending the parameters to the end of the URL. I don't think flashVars has a limit. May be less hassle than switching to Remoting. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Cheers, Ian On 12/19/05, Corban Baxter [EMAIL PROTECTED] wrote: What is the best practice for grabbing variables from a database using cfm and the using these inside of a flash movie? I am not a cfm developer but I have one here at work that has been helping me with a project I am currently working on. We are running into a problem that flash cannot interpret a query large string... What we are ending up with when trying to bring the variables into flash is a long string in the embed tag with delimiters for an array. Something like... Characters.swf?character1description1episoes1etc... All I can figure out is that there is a limit to the string length that flash is able to grab. Is this true? If so what's a work around? I hope all this makes sense! Thanks all! And I am looking forward to the in site! Thanks! Corban Baxter |rich media designer |www.funimation.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 ___ 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 NOTICE: This message is for the designated recipient only and may contain privileged or
RE: [Flashcoders] CreateTextField question
Actually, the person who told you to use just autosize has it wrong. If you set a textfield to autosize, it will expand the right edge to fit the text, so unless you're putting linebreaks in your text manually, it won't adjust the height of the textfield. There's a kludge workaround for making textfields have width and height and be autosized with wordwrap, and here it is: this.createTextField(label, 1, 0, 0, myWidth, lineHeight); this.label.wordWrap = true; this.label.multiline = true; this.label.autoSize = true; this.label.text = someText; // KLUDGE var textHgt = this.label.textHeight; var tfHgt = this.label._height; var diff = tfHgt - textHgt; this.label.autoSize = false; this.label._height = textHgt + diff; // END KLUDGE HTH, Steven ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Job Opportunity in Tucson
Work is ON-SITE AND PART TIME in gorgeous Tucson, AZ. NO TELECOMMUTE. GUI PROGRAMMER Looking for a coder with quality OOP principles, understands layout management and a sense of design. Code will be written in Flash ActionScript. ActionScript experience is a major plus, but more important are good coding fundamentals and a willingness to learn. Also important is that this is not a ‘scripting’ position, this is full-on OOP development. ASP.NET/WEB DEVELOPER Looking for ASP.NET developer who can also work on legacy VBScript applications. Needs strong understanding of SQL, .NET and C# essentials, and quality coding practices. Position entails building custom CMS applications, and doing work on existing CMS front and backends. FLASH PRODUCTION ASSISTANT Looking for a non-coder who can handle production issues in Flash applications. Work would involve: laying out Flash apps based off comps, converting assets from clients into flash-friendly forms. Needs strong understanding of Flash, Photoshop, and Illustrator. GET IN TOUCH WITH ME If you’re available to work ON-SITE PART-TIME, write/call me: 520.777.0032 [EMAIL PROTECTED] -- _ __ __ | | \/ ___\ Chris Hill | | / /_/ [EMAIL PROTECTED] |/\___ / http://ubergeek.tv /_/ The Smell of Geek! - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Webservices best practices
Not to confuse things but has anyone looked at JSON? I'm not a programmer (all the time ;) but I was wondering if it would have any relevance here since it returns data in flash's native format (ecmascript) http://en.wikipedia.org/wiki/JSON Parser here: http://www.designvox.com/%7Eborys/JSON/JSON.as And more: http://ajaxian.com/archives/2005/12/yahoo_json_api.html Jared -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de Boer Sent: Tuesday, December 20, 2005 8:14 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Webservices best practices Really? I'm working on a project where most of my data is to be supplied via webservices and it will most certainly be more than 2-3 methods. I have got it fixed, i think it was a timing issue when I added a setInterval( this, flightRequest, 1000 ); it works to trigger the 3-4 methods in queue. It all fixed for now -- tech demo is finished. Oh well, time to find out how to handle this the best way, though. I had some nice collection of scope issues. Planning to play with some events stuff. Oh well! Done is done ;) I'm putting together a serviceLocator class (singleton) that takes care of all my webservice calls. You're not using the MX 04 web service connector are you? Yes, I am using the WebService class. -- Yours, Weyert de Boer ([EMAIL PROTECTED]) innerfuse* http://www.innerfuse.biz/ ___ 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] generating documentation
I've used a number of different auto-documentation generators before, but not with actionscript. I was wondering what everyone was using, if AS2Doc was the defacto standard, or if there are others that are as good or better for documenting actionscript. I'm tasked with writing a coding and documentation standard for Flash developers (and recommending a documentation app) for my company, so I thought I would see what is out there before I go making any decisions. Any recommendations or warnings about specific software are appreciated. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] generating documentation
I've used Natural Docs for ActionScript documentation in the past http://naturaldocs.org/ Brooks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Wierd split
Im having a wierd problem with using .split on an array. I create an array 3 frames before in the same timeline like so: _root.cat_colors = new Array(); _root.cat_colors[0] = bob,john,betty; Then 2 frames down the timeline I run a loop like so: for (i=0; i_root.cat_colors.length; i++) { trace(String: +_root.cat_colors[i]); // The string traces properly here ex. bob,jim,john etc... var tempColor:Array = _root.cat_colors[i].split(,); trace(Total: +tempColor[i]); // traces out undefined for the next loop never happens for (j=0; jtempColor.length; j++) { trace(Color: +tempColor[j]); } } Anyone know why this doesnt work? is there another way to achieve this? If i create the array on the same frame as the loop, everything works like it should. Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Job Opportunity in Tucson
Yeah, I've already gone and posted with the university. Perhaps I should say that its on a part-time project basis? I'm not really expecting anyone on this list to be available, but just in case. Chris Merrill, Jason wrote: On-site only and PART time? I sure hope you find someone! :) Might want to check with the local colleges/universities for fresh blood. Jason Merrill | E-Learning Solutions | icfconsulting.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Wierd split
I tried it like you said, putting them in different frames, and it works fine for me. Frame 1: _root.cat_colors = new Array(); _root.cat_colors[0] = bob,john,betty; Frame 3: for (i=0; i_root.cat_colors.length; i++) { trace(String: +_root.cat_colors[i]); var tempColor:Array = _root.cat_colors[i].split(,); trace(Total: +tempColor[i]); for (j=0; jtempColor.length; j++) { trace(Color: +tempColor[j]); } } stop(); Trace result: String: bob,john,betty Total: bob Color: bob Color: john Color: betty As expected. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Tuesday, December 20, 2005 6:41 PM To: Flashcoders mailing list Subject: [Flashcoders] Wierd split Im having a wierd problem with using .split on an array. I create an array 3 frames before in the same timeline like so: _root.cat_colors = new Array(); _root.cat_colors[0] = bob,john,betty; Then 2 frames down the timeline I run a loop like so: for (i=0; i_root.cat_colors.length; i++) { trace(String: +_root.cat_colors[i]); // The string traces properly here ex. bob,jim,john etc... var tempColor:Array = _root.cat_colors[i].split(,); trace(Total: +tempColor[i]); // traces out undefined for the next loop never happens for (j=0; jtempColor.length; j++) { trace(Color: +tempColor[j]); } } Anyone know why this doesnt work? is there another way to achieve this? If i create the array on the same frame as the loop, everything works like it should. Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Wierd split
Just took your code and plonked it in a new .fla and it works for me. Is anything else happening in the movie or any included movies? See it here: http://www.adrianlynch.co.uk/temp/colours.fla Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Boutin Sent: 20 December 2005 23:41 To: Flashcoders mailing list Subject: [Flashcoders] Wierd split Im having a wierd problem with using .split on an array. I create an array 3 frames before in the same timeline like so: _root.cat_colors = new Array(); _root.cat_colors[0] = bob,john,betty; Then 2 frames down the timeline I run a loop like so: for (i=0; i_root.cat_colors.length; i++) { trace(String: +_root.cat_colors[i]); // The string traces properly here ex. bob,jim,john etc... var tempColor:Array = _root.cat_colors[i].split(,); trace(Total: +tempColor[i]); // traces out undefined for the next loop never happens for (j=0; jtempColor.length; j++) { trace(Color: +tempColor[j]); } } Anyone know why this doesnt work? is there another way to achieve this? If i create the array on the same frame as the loop, everything works like it should. Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Wierd split
The movie the script is in gets loaded into another movie. I can trace out _root.cat_color[0] etc... with no problems, even doing so in the for loop outputs proper values for _root.cat_colors[i]. If i trace out tempColor.length after the split, it always comes back undefined, thus the loop after that never happens. trace(String: +_root.cat_colors[0]); // traces out bob,jim,john var tempColor:Array = _root.cat_colors[0].split(,); trace(Total: +tempColor.length); // traces out undefined when it should be 3 Adrian Lynch wrote: Just took your code and plonked it in a new .fla and it works for me. Is anything else happening in the movie or any included movies? See it here: http://www.adrianlynch.co.uk/temp/colours.fla Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Boutin Sent: 20 December 2005 23:41 To: Flashcoders mailing list Subject: [Flashcoders] Wierd split Im having a wierd problem with using .split on an array. I create an array 3 frames before in the same timeline like so: _root.cat_colors = new Array(); _root.cat_colors[0] = bob,john,betty; Then 2 frames down the timeline I run a loop like so: for (i=0; i_root.cat_colors.length; i++) { trace(String: +_root.cat_colors[i]); // The string traces properly here ex. bob,jim,john etc... var tempColor:Array = _root.cat_colors[i].split(,); trace(Total: +tempColor[i]); // traces out undefined for the next loop never happens for (j=0; jtempColor.length; j++) { trace(Color: +tempColor[j]); } } Anyone know why this doesnt work? is there another way to achieve this? If i create the array on the same frame as the loop, everything works like it should. Thanks! ___ 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] Wierd split
Thanks Adrian, your code works exactly like mine should but for some reason mine doesnt get the same results (though its the same code) ;) Mike Boutin Adrian Lynch wrote: Just took your code and plonked it in a new .fla and it works for me. Is anything else happening in the movie or any included movies? See it here: http://www.adrianlynch.co.uk/temp/colours.fla Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Boutin Sent: 20 December 2005 23:41 To: Flashcoders mailing list Subject: [Flashcoders] Wierd split Im having a wierd problem with using .split on an array. I create an array 3 frames before in the same timeline like so: _root.cat_colors = new Array(); _root.cat_colors[0] = bob,john,betty; Then 2 frames down the timeline I run a loop like so: for (i=0; i_root.cat_colors.length; i++) { trace(String: +_root.cat_colors[i]); // The string traces properly here ex. bob,jim,john etc... var tempColor:Array = _root.cat_colors[i].split(,); trace(Total: +tempColor[i]); // traces out undefined for the next loop never happens for (j=0; jtempColor.length; j++) { trace(Color: +tempColor[j]); } } Anyone know why this doesnt work? is there another way to achieve this? If i create the array on the same frame as the loop, everything works like it should. Thanks! ___ 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] generating documentation
AS2API (via Ant) and Doxygen. Jim Kremens On 12/20/05, Johan Lopes [EMAIL PROTECTED] wrote: I've used Natural Docs too but I highly recommend Doxygen. I've used it on 3 commercial projects with great success. Although it doesn't officially support AS2, it works! Unlike other packages, it also generates UML collaboration diagrams with all the trimmings, straight from your classes. I've put together a tutorial on how to use it with AS2 and Eclipse here: http://www.statik1.com/mt-weblog/archives/92.html. If you decide to use it too and need any help to get the best out of it, just give me a shout. I've got a doxyfile that can easily output everything you'd ever wanted from your classes/packages to the UML diagrams. HTH, /Johan On 12/20/05, Brooks Andrus [EMAIL PROTECTED] wrote: I've used Natural Docs for ActionScript documentation in the past http://naturaldocs.org/ Brooks ___ 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] assigning the same class to multiple library objects
Hi Everyone, I've got a bit of an issue with Flash 8 at the moment. Basically I have a single frame movie with a number of movieclips on the stage that are dragged from the library. The library movieclips have all been extended using the same custom class via their linkage properties. My problem is that one of the movieclips does not register as an instance of the custom class. If I delete the problem clip and republish the movie another clip assumes the problem. Is this a known issue? There are six library symbols, all with the same custom class. Any Ideas??? Kev ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] generating documentation
I've been using AS2DOC which works pretty well so far. It creates both traditional HTML/DOC files as well as Flash Help files as MXP extensions you can install into Flash. Someone on the list mentioned development on it has stopped a while back tho. JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.net ryanm wrote: I've used a number of different auto-documentation generators before, but not with actionscript. I was wondering what everyone was using, if AS2Doc was the defacto standard, or if there are others that are as good or better for documenting actionscript. I'm tasked with writing a coding and documentation standard for Flash developers (and recommending a documentation app) for my company, so I thought I would see what is out there before I go making any decisions. Any recommendations or warnings about specific software are appreciated. ryanm ___ 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] .NET SWF proxy
No, unfortunately not this time. It's a windows 2003 server where I have no rights to install the php engine. If there's no free/opensource alternatives I guess I have to try out ActiveSWF. /Nisse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of A3D Sent: den 20 december 2005 10:40 To: Flashcoders mailing list Subject: Re: [Flashcoders] .NET SWF proxy Bryngfors Nils wrote: I need a proxy able to load images from remote servers and return them as SWF files. The SWF files also have to be in version 4 (you guessed it, Flash Lite...). Oh, and I have to use ASP.NET. The only tool I've found this far is ActiveSWF ( http://activeswf.com ) that seems to do the job. Is there any other, cheaper, solutions? I don't need all the functionality ActiveSWF offer. Any ideas? /Nisse Bryngfors ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Isn't Ming (php) an option? http://www.php.net/ming ___ 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] assigning the same class to multiple library objects
I'm attaching 2 different mc's, both menuItem class bound. No problem. Check what happens in your fla when you attach dynamically? On 21 Dec 2005, at 02:04, Kevin McCormick (iStyle) wrote: Hi Everyone, I've got a bit of an issue with Flash 8 at the moment. Basically I have a single frame movie with a number of movieclips on the stage that are dragged from the library. The library movieclips have all been extended using the same custom class via their linkage properties. My problem is that one of the movieclips does not register as an instance of the custom class. If I delete the problem clip and republish the movie another clip assumes the problem. Is this a known issue? There are six library symbols, all with the same custom class. Any Ideas??? Kev ___ 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