[Flashcoders] Re: Timeline coding
I just had a thought on this. Perhaps I just need _root.variableName inside the getURL since we are using a variable returned from FlashVars. Are anonymous functions such as clip_mc.btn1_btn.onRelease = function(){} subject to scoping issues? On 4/17/06, Jonathan Berry [EMAIL PROTECTED] wrote: Hello all, I know this is really basic, but I wanted to know something about timeline code. Everything I have read about placing your code says you should place it in a central location, so I set my code in the timeline first frame, actions layer - as recommended. However, I am finding that sometimes buttons do not react unless the onRelease event handler is in the same frame as where the movie stops. Is this correct? Do actions have to be in same frame as where the movie stops and you want the interactivity? Though I wanted to get the answer to this general question, what I have specifically is a movieclip with buttons inside of it. I have tried putting the code for these buttons in the first frame of the main timeline or in the last frame of the main timeline, where this movieclip is instantiated. But neither method works. I use something like this: clip_mc.btn1_btn.onRelease = function(){getURL(etcetcetc.);}; Where should one place this code? Are actions present in the first frame of the main timeline applicable to all subsequent frames, unless overwritten? In case you wish to know, the buttons and movieclips do have instance names. Thanks in advance. -- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) [EMAIL PROTECTED] www.mindarc.com --- This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- -- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) [EMAIL PROTECTED] www.mindarc.com --- This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: Timeline coding
For your first question - you will not be able to access clip_mc unless the playhead is on a frame where that movieclip exists. You should be able to access the mc and all child mcs immediately after going to the correct frame, however you will not be able to execute any script defined inside the movieclip until a frame has passed. With your second question, the scoping is not necessarily what you would expect. The scoping of the function is wherever you define it, for example having blah = 1; clip_mc.btn1_btn = 2; clip_mc.btn1_btn.onRelease = function(){ trace( this ); trace( blah ); } will trace _level0.clip_mc.btn1_btn 1 when you click. Of course, you don't have to worry about the scope of _root.variableName, as you are providing the absolute path to the variable. Regards, Grant Cox. Jonathan Berry wrote: I just had a thought on this. Perhaps I just need _root.variableName inside the getURL since we are using a variable returned from FlashVars. Are anonymous functions such as clip_mc.btn1_btn.onRelease = function(){} subject to scoping issues? On 4/17/06, Jonathan Berry [EMAIL PROTECTED] wrote: Hello all, I know this is really basic, but I wanted to know something about timeline code. Everything I have read about placing your code says you should place it in a central location, so I set my code in the timeline first frame, actions layer - as recommended. However, I am finding that sometimes buttons do not react unless the onRelease event handler is in the same frame as where the movie stops. Is this correct? Do actions have to be in same frame as where the movie stops and you want the interactivity? Though I wanted to get the answer to this general question, what I have specifically is a movieclip with buttons inside of it. I have tried putting the code for these buttons in the first frame of the main timeline or in the last frame of the main timeline, where this movieclip is instantiated. But neither method works. I use something like this: clip_mc.btn1_btn.onRelease = function(){getURL(etcetcetc.);}; Where should one place this code? Are actions present in the first frame of the main timeline applicable to all subsequent frames, unless overwritten? In case you wish to know, the buttons and movieclips do have instance names. Thanks in advance. -- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) [EMAIL PROTECTED] www.mindarc.com --- This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- -- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) [EMAIL PROTECTED] www.mindarc.com --- This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: Timeline coding
however you will not be able to execute any script defined inside the movieclip until a frame has passed. O.K. so I just wanted a little clarification on this. Say I have a clip that appears at the last frame of the main timeline and an action there on the main timeline applying to the clip. Will that action be accessible once the clip has reached its say 10th frame where the buttons are? Thanks in advance. On 4/18/06, Grant Cox [EMAIL PROTECTED] wrote: For your first question - you will not be able to access clip_mc unless the playhead is on a frame where that movieclip exists. You should be able to access the mc and all child mcs immediately after going to the correct frame, however you will not be able to execute any script defined inside the movieclip until a frame has passed. With your second question, the scoping is not necessarily what you would expect. The scoping of the function is wherever you define it, for example having blah = 1; clip_mc.btn1_btn = 2; clip_mc.btn1_btn.onRelease = function(){ trace( this ); trace( blah ); } will trace _level0.clip_mc.btn1_btn 1 when you click. Of course, you don't have to worry about the scope of _root.variableName, as you are providing the absolute path to the variable. Regards, Grant Cox. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Using ARP without Forms?
Hi ARP developers, I was wondering if it was easy to use ARP in a non-form flash application... After reading ARP documentation, it seems to be well-suited for form-enabled flash apps, but what about the applications completely created from scratch with MTASC for example? What do you use in replacement of Forms? Custom components/movieclips? Can someone provide a short example or some guidelines? Thanks, Julien ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Using ARP without Forms?
A form in the ARP context is typically just a MovieClip extended class. If your application uses MovieClips as container objects, then ARP is fine as it is. If, however, you don't want to use MovieClips as your base object, you can still make use of things like System events and the like. At least, that's if they're in the base ARP package. I use the ARPX extended version written by Grant Davies. Top bloke! :-) Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 09:22 To: Flash Coders Subject: [Flashcoders] Using ARP without Forms? Hi ARP developers, I was wondering if it was easy to use ARP in a non-form flash application... After reading ARP documentation, it seems to be well-suited for form-enabled flash apps, but what about the applications completely created from scratch with MTASC for example? What do you use in replacement of Forms? Custom components/movieclips? Can someone provide a short example or some guidelines? Thanks, Julien ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Using ARP without Forms?
Thanks Lee, I've found Grant's post about his ARPX extension and that seems pretty nice indeed ;-) I'm going to try it! By the way, my project is an intranet kiosk app that will only communicate via xml sockets instead of remoting or web services, do you think it will be easy to adapt this to ARP/X design ? Julien Lee McColl-Sylvester a écrit : A form in the ARP context is typically just a MovieClip extended class. If your application uses MovieClips as container objects, then ARP is fine as it is. If, however, you don't want to use MovieClips as your base object, you can still make use of things like System events and the like. At least, that's if they're in the base ARP package. I use the ARPX extended version written by Grant Davies. Top bloke! :-) Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 09:22 To: Flash Coders Subject: [Flashcoders] Using ARP without Forms? Hi ARP developers, I was wondering if it was easy to use ARP in a non-form flash application... After reading ARP documentation, it seems to be well-suited for form-enabled flash apps, but what about the applications completely created from scratch with MTASC for example? What do you use in replacement of Forms? Custom components/movieclips? Can someone provide a short example or some guidelines? Thanks, Julien ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Requesting reccomendation for testing already written classes
It would be extremely dangerous to use a tool that did so. However, AsUnit ships with some JSFL scripts will write your empty testcase stubs for you which will save you some work. HTH Alias On 4/17/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote: What is the best way to test classes that have already been written? Am I looking at manually writing tests as my only solution? Mani ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Howto randomize the elements of an array?
Hi, I have an array with up to 1 elements. These elements are sorted of some kind and I need to reorganize the elements so that their positions becomes absolutely random. I guess my best approach would be to assign my own sort function to the Array.sort() method which did nothing but return -1,0 or 1 randomly, but I guess it would be necessary to sort the array many times in order to make it truly random and that would take a lot of CPU power with that many elements. Is there a better way to do this from a performance point of view? Thanks in advance. Martin Baltzer ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Pass variable to asp page
Hi list, I need to pass a fiw variables from flash to an asp page in order to send an email from my application. I use the getURL method (getURL([EMAIL PROTECTED]message=hi )but this results a redirection from my application to the asp page. Is there a way to pass the variables without this redirection? Thanks in advance, Stathis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Using ARP without Forms?
hey that's cool :-) I don't know much about .NET Fluorine because my company is more java-oriented. I am developping the flash client from scratch (well no MM components, but intensive use of several frameworks) with the flash IDE (just for fonts and assets such as basic objects/tweens), and eclipse/FDT + MTASC (-keep power!) For the socket communication, I use the Offbeat server (Oregano would have done the job as well) but just as a proxy between clients and the server, which is a custom j2ee webapp... I don't know about the number of lines I wrote, but as the project grows, I think it needs more structure and flexibility (especially when it comes to event management) so that's why I was looking to ARP... Regards, Julien Lee McColl-Sylvester a écrit : What a coinsidence. That happens to be my main app, using Flash and .NET. I was using XML transfers, though I quickly switched to Fluorine once I realised the possibilities. The Flash side of my application uses ARPX and is around 6000 lines of ActionScript now. I use FlashDevelop, so the actual asset side is very very minimal. I find ARPX provides me with a great solid framework that reflects well in the .NET side of my applications. What are you using for the XML Sockets? Did you develop your own system or are you using something like Oregano? Regards, Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 09:52 To: Flashcoders mailing list Subject: Re: [Flashcoders] Using ARP without Forms? Thanks Lee, I've found Grant's post about his ARPX extension and that seems pretty nice indeed ;-) I'm going to try it! By the way, my project is an intranet kiosk app that will only communicate via xml sockets instead of remoting or web services, do you think it will be easy to adapt this to ARP/X design ? Julien Lee McColl-Sylvester a écrit : A form in the ARP context is typically just a MovieClip extended class. If your application uses MovieClips as container objects, then ARP is fine as it is. If, however, you don't want to use MovieClips as your base object, you can still make use of things like System events and the like. At least, that's if they're in the base ARP package. I use the ARPX extended version written by Grant Davies. Top bloke! :-) Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 09:22 To: Flash Coders Subject: [Flashcoders] Using ARP without Forms? Hi ARP developers, I was wondering if it was easy to use ARP in a non-form flash application... After reading ARP documentation, it seems to be well-suited for form-enabled flash apps, but what about the applications completely created from scratch with MTASC for example? What do you use in replacement of Forms? Custom components/movieclips? Can someone provide a short example or some guidelines? Thanks, Julien ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Pass variable to asp page
If I understand correctly, you wish to send the mail in the background? Use LoadVars send() to send the variables to the .asp -page. If you use LoadVars sendAndLoad() you can get data in return from the asp script to let flash know if your mailing was succesful and then present that information to the user. LoadVars on livedocs: http://livedocs.macromedia.com/flash/8/main/2323.html // Mikko Hi list, I need to pass a fiw variables from flash to an asp page in order to send an email from my application. I use the getURL method (getURL([EMAIL PROTECTED]message=hi )but this results a redirection from my application to the asp page. Is there a way to pass the variables without this redirection? Thanks in advance, Stathis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Howto randomize the elements of an array?
I have an array with up to 1 elements. These elements are sorted of some kind and I need to reorganize the elements so that their positions becomes absolutely random. I guess my best approach would be to assign my own sort function to the Array.sort() method which did nothing but return -1,0 or 1 randomly, but I guess it would be necessary to sort the array many times in order to make it truly random and that would take a lot of CPU power with that many elements. That sounds like a very bad idea :) As you say, you'd not be getting a very well randomised list even if you did the sort lots of times. The basic randomisation algorithm is: take a new array for each element in the old array: add it at a random position in the new array It's not really rocket science, but it should do the job perfectly well for your purposes. Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Pass variable to asp page
Yes, that's exactly what I need!! Many thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mikko Tormala Sent: Tuesday, April 18, 2006 2:36 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Pass variable to asp page If I understand correctly, you wish to send the mail in the background? Use LoadVars send() to send the variables to the .asp -page. If you use LoadVars sendAndLoad() you can get data in return from the asp script to let flash know if your mailing was succesful and then present that information to the user. LoadVars on livedocs: http://livedocs.macromedia.com/flash/8/main/2323.html // Mikko Hi list, I need to pass a fiw variables from flash to an asp page in order to send an email from my application. I use the getURL method (getURL([EMAIL PROTECTED]message=hi )but this results a redirection from my application to the asp page. Is there a way to pass the variables without this redirection? Thanks in advance, Stathis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Howto randomize the elements of an array?
I'd do it like this: Take a new array, take a random element from the oldArray and remove it from the oldArray. Then put it as the next element in the newArray. like so: var oldArray:Array = [item1,item2,item3,item4,item5,item6]; var newArray:Array = []; while (oldArray.length) { newArray.push(oldArray.splice(Math.random()*oldArray.length,1)); } trace(newArray); // Luppis The basic randomisation algorithm is: take a new array for each element in the old array: add it at a random position in the new array It's not really rocket science, but it should do the job perfectly well for your purposes. Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] good OOP way to re-assign class to clip
-- Steven Sacks wrote: The most obvious and simple solution to me: Duplicate the movieclip in your library and assign the duplicate the second class. I wish I can use this way... This is an interface element that is opened by user. And depending on situation in which it was opened, one of two symbols in the library is choosen. Usually that's all. But sometimes there's a need to change these two symbols w/o closing the mentione interface element. This ia how I came to re-assigning class idea :-). However, now I tend to try alternative solution from below: combine two classes into one and modify methods depending on parameters (element type in this case). Will inform you if I succeed with this. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. -- Steven Sacks wrote: The most obvious and simple solution to me: Duplicate the movieclip in your library and assign the duplicate the second class. -Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of GregoryN Sent: Monday, April 17, 2006 8:52 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] good OOP way to re-assign class to clip Well, let's say I have two classes: // code == class MyClass1 extends MovieClip{ function MyClass1(){} //... some stuff function showMyInfo(){ trace(I am +this+, class is MyClass1); } } class MyClass2 extends MovieClip{ function MyClass2(){} //... some stuff function showMyInfo(){ trace(I am +this+, class is MyClass2); } } // code ends == I have a mc symbol in the library associated with MyClass1. Thus, if I attach it using attachMovie(), and then call showMyInfo it'll output ... , class is MyClass1, right? Now imagine that for some reason at some point I'll need the same clip to be associated with MyClass2, while keep all properties etc collected while being an instance of MyClass1. BTW, these two classes are quite similar, but have several differencies. As I wrote before, so far just one way comes to my mind. It's about making an instantiate() method in MyClass2 to re-write all props/methods of the target clip with ones of MyClip2 (similar to EventDispatcher). Another possible solution is to combine two classes into one, and make methods working depending on parameters. In fact, the problem here is that in 90% cases I'll need the clip to carry only methods of one class, and in 10% there will be a need to swap classes (or use parameter-depended methods). -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. -- David Rorex wrote: In my opinion, there is no good OOP way of changing the class of an object (be it movieclip or otherwsie). You might want to see if you can handle it in a different way, normally you should never change the class of an object. Why exactly do you want to change the class? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Howto randomize the elements of an array?
Martin, Have you looked at http://proto.layer51.com/l.aspx?p=3 There are about 10 custom methods of shuffle-like. I haven't tested them for performance though :-). -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. From: Martin Baltzer [EMAIL PROTECTED] Subject: [Flashcoders] Howto randomize the elements of an array? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi, I have an array with up to 1 elements. These elements are sorted of some kind and I need to reorganize the elements so that their positions becomes absolutely random. I guess my best approach would be to assign my own sort function to the Array.sort() method which did nothing but return -1,0 or 1 randomly, but I guess it would be necessary to sort the array many times in order to make it truly random and that would take a lot of CPU power with that many elements. Is there a better way to do this from a performance point of view? Thanks in advance. Martin Baltzer -- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Using ARP without Forms?
That's good. The issue I have with Flash (at least I used to) was knowing where all my coding was. Because of the way Flash is structured, many developers tend to stuff AS into MovieClips instead of keeping a series of root clips / classes. Using ARPX, I can create completely reusable custom controls, while feeding all core functionality back through to the base class using events. It really does make for much cleaner code and makes management of the application far simpler. I'm surprised, though, by your usage of an XML Socket server. Do you have a need for persistent data that session handling won't provide? You should look at OpenAMF for Java remoting. It's what many of the other remoting frameworks were developed against. Regards, Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 12:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] Using ARP without Forms? hey that's cool :-) I don't know much about .NET Fluorine because my company is more java-oriented. I am developping the flash client from scratch (well no MM components, but intensive use of several frameworks) with the flash IDE (just for fonts and assets such as basic objects/tweens), and eclipse/FDT + MTASC (-keep power!) For the socket communication, I use the Offbeat server (Oregano would have done the job as well) but just as a proxy between clients and the server, which is a custom j2ee webapp... I don't know about the number of lines I wrote, but as the project grows, I think it needs more structure and flexibility (especially when it comes to event management) so that's why I was looking to ARP... Regards, Julien Lee McColl-Sylvester a écrit : What a coinsidence. That happens to be my main app, using Flash and .NET. I was using XML transfers, though I quickly switched to Fluorine once I realised the possibilities. The Flash side of my application uses ARPX and is around 6000 lines of ActionScript now. I use FlashDevelop, so the actual asset side is very very minimal. I find ARPX provides me with a great solid framework that reflects well in the .NET side of my applications. What are you using for the XML Sockets? Did you develop your own system or are you using something like Oregano? Regards, Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 09:52 To: Flashcoders mailing list Subject: Re: [Flashcoders] Using ARP without Forms? Thanks Lee, I've found Grant's post about his ARPX extension and that seems pretty nice indeed ;-) I'm going to try it! By the way, my project is an intranet kiosk app that will only communicate via xml sockets instead of remoting or web services, do you think it will be easy to adapt this to ARP/X design ? Julien Lee McColl-Sylvester a écrit : A form in the ARP context is typically just a MovieClip extended class. If your application uses MovieClips as container objects, then ARP is fine as it is. If, however, you don't want to use MovieClips as your base object, you can still make use of things like System events and the like. At least, that's if they're in the base ARP package. I use the ARPX extended version written by Grant Davies. Top bloke! :-) Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 09:22 To: Flash Coders Subject: [Flashcoders] Using ARP without Forms? Hi ARP developers, I was wondering if it was easy to use ARP in a non-form flash application... After reading ARP documentation, it seems to be well-suited for form-enabled flash apps, but what about the applications completely created from scratch with MTASC for example? What do you use in replacement of Forms? Custom components/movieclips? Can someone provide a short example or some guidelines? Thanks, Julien ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training
Re: [Flashcoders] Flash to jpg
Hello, if you can track all the manipulation user does with the image you may use GD library in PHP or MagicWand of ImageMagick. To make communication easy try to use AMFPHP. If you look for an example check www.edipix.com - I've implement only the simplest image manipulations like crop, compositing, text, drawing and geom figures overlaying. But there are API for implementing filters, blending etc... Best wishes, Oleg ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
SV: [Flashcoders] Howto randomize the elements of an array? [Closed]
Hi all, Thanks a lot for your help! While Mikko came with probably the fewest lines of code to solve this I found out that this method posted by iv here http://proto.layer51.com/d.aspx?f=893 (Read msg3) is far superior when it comes to speed ;-) I believe it's the use of local variables that does the trick. Cheers Martin -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af GregoryN Sendt: 18. april 2006 14:15 Til: Flashcoders mailing list Emne: Re: [Flashcoders] Howto randomize the elements of an array? Martin, Have you looked at http://proto.layer51.com/l.aspx?p=3 There are about 10 custom methods of shuffle-like. I haven't tested them for performance though :-). -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. From: Martin Baltzer [EMAIL PROTECTED] Subject: [Flashcoders] Howto randomize the elements of an array? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi, I have an array with up to 1 elements. These elements are sorted of some kind and I need to reorganize the elements so that their positions becomes absolutely random. I guess my best approach would be to assign my own sort function to the Array.sort() method which did nothing but return -1,0 or 1 randomly, but I guess it would be necessary to sort the array many times in order to make it truly random and that would take a lot of CPU power with that many elements. Is there a better way to do this from a performance point of view? Thanks in advance. Martin Baltzer -- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Using ARP without Forms?
Just chiming in here late... Straight up I haven't used ARPX - even tho I've been recommended to do so many times. Im interested in checking it out and seeing what it has to offer. I'd be interested in knowing the benefits, differences from ARP - if someone has used it extensively, please feel free to png me off list as to why you like it, use it, etc. As for me and the type of applications I develop, I find ARP *way* too structured. There are some things about it I think are great -for one the commands and service locator. Even tho I typically organize my stuff in this way, I now have a very structured table of contents idea for all of my service calls. I tend to dictate the service urls and names in xml and populate the service locator that way. What I find a bit too structured about ARP is the fact that, unless I'm mistaken which is quite possible, if you don't modify it, it assumes that you are always going to want the response from a command. So you issue a command, and because the command is tied to the view, it calls the callback on the view item when it is complete. You can't just remove the view from handling the callback, as its *wired* in so to speak. So you run into this scenario - lets say you have an alphabetical list and you're clicking through the letters because you want to see all your contacts by A or B - so forth. Clicking each letter populates the list underneath it with the results from the database. So you're like me, a mad clicker, and you hit A , and change your mind and hit H cos maybe you listed the person under the first name rather than the last name. Then you change your mind and you click S. Each of those commands get issued and are tied into that view - so your list, starts updating with the results of each command. But once you click a second item, you might not want the results from the first command anymore, you'd like to ignore it. For me, to achieve this, I had to return the command when I issued it so I could delete it if I issued it again. And if you don't have the luxury of using remoting in every project, then sometimes those command can take a while to complete - sending the variables, parsing the xml on the return etc. Once again, I might be showing my ignorance in regards to ARP, my only defense is that I have just recently explored the framework. Any insight as always is appreciated - if its not something that would benefit the entire list, shoot me an email. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee McColl-Sylvester Sent: Tuesday, April 18, 2006 8:38 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Using ARP without Forms? That's good. The issue I have with Flash (at least I used to) was knowing where all my coding was. Because of the way Flash is structured, many developers tend to stuff AS into MovieClips instead of keeping a series of root clips / classes. Using ARPX, I can create completely reusable custom controls, while feeding all core functionality back through to the base class using events. It really does make for much cleaner code and makes management of the application far simpler. I'm surprised, though, by your usage of an XML Socket server. Do you have a need for persistent data that session handling won't provide? You should look at OpenAMF for Java remoting. It's what many of the other remoting frameworks were developed against. Regards, Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 12:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] Using ARP without Forms? hey that's cool :-) I don't know much about .NET Fluorine because my company is more java-oriented. I am developping the flash client from scratch (well no MM components, but intensive use of several frameworks) with the flash IDE (just for fonts and assets such as basic objects/tweens), and eclipse/FDT + MTASC (-keep power!) For the socket communication, I use the Offbeat server (Oregano would have done the job as well) but just as a proxy between clients and the server, which is a custom j2ee webapp... I don't know about the number of lines I wrote, but as the project grows, I think it needs more structure and flexibility (especially when it comes to event management) so that's why I was looking to ARP... Regards, Julien Lee McColl-Sylvester a écrit : What a coinsidence. That happens to be my main app, using Flash and .NET. I was using XML transfers, though I quickly switched to Fluorine once I realised the possibilities. The Flash side of my application uses ARPX and is around 6000 lines of ActionScript now. I use FlashDevelop, so the actual asset side is very very minimal. I find ARPX provides me with a great solid framework that reflects well in the .NET side of my applications. What are you using for the XML Sockets? Did you develop your own system or are you using something like Oregano?
Re: [Flashcoders] How to prevent cache of flash .swf file in web page?
You can add this too: META HTTP-EQUIV=Cache-Control CONTENT=no-cache / but an unerring feature (if you can use server-side script) is: $swf=yourmovie.swf; $lastmod=date(YmdHis,filemtime($swf)); $swf.=?.$lastmod; and then: param name=movie value=? echo $swf; ? Enrico Tomaselli + web designer + [EMAIL PROTECTED] http://www.metatad.it ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Using ARP without Forms?
You can opt not to use everything Arp has to offer ;-) Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stacey Mulcahy Sent: 18 April 2006 14:00 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Using ARP without Forms? Just chiming in here late... Straight up I haven't used ARPX - even tho I've been recommended to do so many times. I'm interested in checking it out and seeing what it has to offer. I'd be interested in knowing the benefits, differences from ARP - if someone has used it extensively, please feel free to png me off list as to why you like it, use it, etc. As for me and the type of applications I develop, I find ARP *way* too structured. There are some things about it I think are great -for one the commands and service locator. Even tho I typically organize my stuff in this way, I now have a very structured table of contents idea for all of my service calls. I tend to dictate the service urls and names in xml and populate the service locator that way. What I find a bit too structured about ARP is the fact that, unless I'm mistaken which is quite possible, if you don't modify it, it assumes that you are always going to want the response from a command. So you issue a command, and because the command is tied to the view, it calls the callback on the view item when it is complete. You can't just remove the view from handling the callback, as its *wired* in so to speak. So you run into this scenario - lets say you have an alphabetical list and you're clicking through the letters because you want to see all your contacts by A or B - so forth. Clicking each letter populates the list underneath it with the results from the database. So you're like me, a mad clicker, and you hit A , and change your mind and hit H cos maybe you listed the person under the first name rather than the last name. Then you change your mind and you click S. Each of those commands get issued and are tied into that view - so your list, starts updating with the results of each command. But once you click a second item, you might not want the results from the first command anymore, you'd like to ignore it. For me, to achieve this, I had to return the command when I issued it so I could delete it if I issued it again. And if you don't have the luxury of using remoting in every project, then sometimes those command can take a while to complete - sending the variables, parsing the xml on the return etc. Once again, I might be showing my ignorance in regards to ARP, my only defense is that I have just recently explored the framework. Any insight as always is appreciated - if its not something that would benefit the entire list, shoot me an email. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee McColl-Sylvester Sent: Tuesday, April 18, 2006 8:38 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Using ARP without Forms? That's good. The issue I have with Flash (at least I used to) was knowing where all my coding was. Because of the way Flash is structured, many developers tend to stuff AS into MovieClips instead of keeping a series of root clips / classes. Using ARPX, I can create completely reusable custom controls, while feeding all core functionality back through to the base class using events. It really does make for much cleaner code and makes management of the application far simpler. I'm surprised, though, by your usage of an XML Socket server. Do you have a need for persistent data that session handling won't provide? You should look at OpenAMF for Java remoting. It's what many of the other remoting frameworks were developed against. Regards, Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 12:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] Using ARP without Forms? hey that's cool :-) I don't know much about .NET Fluorine because my company is more java-oriented. I am developping the flash client from scratch (well no MM components, but intensive use of several frameworks) with the flash IDE (just for fonts and assets such as basic objects/tweens), and eclipse/FDT + MTASC (-keep power!) For the socket communication, I use the Offbeat server (Oregano would have done the job as well) but just as a proxy between clients and the server, which is a custom j2ee webapp... I don't know about the number of lines I wrote, but as the project grows, I think it needs more structure and flexibility (especially when it comes to event management) so that's why I was looking to ARP... Regards, Julien Lee McColl-Sylvester a écrit : What a coinsidence. That happens to be my main app, using Flash and .NET. I was using XML transfers, though I quickly switched to Fluorine once I realised the possibilities. The Flash side of my application uses ARPX and is around 6000 lines of ActionScript now. I use
Re: [Flashcoders] Using ARP without Forms?
Actually, my project was almost structured like an ARP project but I needed some guidelines because the project tends to grow in several directions at the same time :-) In other words, I need more discipline! LOL My flash clients display real time incoming data. AFAIK, flash remoting (I mean OpenAMF, not Flex Data Services) doesn't provide server push... The realtime data is in fact filtered parsed on my project server and relayed to the appropriate flash clients thanks to the socket server. I agree that there are probably other ways to design the application, but well, my chief had to choose for one. Regards, Julien Lee McColl-Sylvester a écrit : That's good. The issue I have with Flash (at least I used to) was knowing where all my coding was. Because of the way Flash is structured, many developers tend to stuff AS into MovieClips instead of keeping a series of root clips / classes. Using ARPX, I can create completely reusable custom controls, while feeding all core functionality back through to the base class using events. It really does make for much cleaner code and makes management of the application far simpler. I'm surprised, though, by your usage of an XML Socket server. Do you have a need for persistent data that session handling won't provide? You should look at OpenAMF for Java remoting. It's what many of the other remoting frameworks were developed against. Regards, Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 12:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] Using ARP without Forms? hey that's cool :-) I don't know much about .NET Fluorine because my company is more java-oriented. I am developping the flash client from scratch (well no MM components, but intensive use of several frameworks) with the flash IDE (just for fonts and assets such as basic objects/tweens), and eclipse/FDT + MTASC (-keep power!) For the socket communication, I use the Offbeat server (Oregano would have done the job as well) but just as a proxy between clients and the server, which is a custom j2ee webapp... I don't know about the number of lines I wrote, but as the project grows, I think it needs more structure and flexibility (especially when it comes to event management) so that's why I was looking to ARP... Regards, Julien Lee McColl-Sylvester a écrit : What a coinsidence. That happens to be my main app, using Flash and .NET. I was using XML transfers, though I quickly switched to Fluorine once I realised the possibilities. The Flash side of my application uses ARPX and is around 6000 lines of ActionScript now. I use FlashDevelop, so the actual asset side is very very minimal. I find ARPX provides me with a great solid framework that reflects well in the .NET side of my applications. What are you using for the XML Sockets? Did you develop your own system or are you using something like Oregano? Regards, Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 09:52 To: Flashcoders mailing list Subject: Re: [Flashcoders] Using ARP without Forms? Thanks Lee, I've found Grant's post about his ARPX extension and that seems pretty nice indeed ;-) I'm going to try it! By the way, my project is an intranet kiosk app that will only communicate via xml sockets instead of remoting or web services, do you think it will be easy to adapt this to ARP/X design ? Julien Lee McColl-Sylvester a écrit : A form in the ARP context is typically just a MovieClip extended class. If your application uses MovieClips as container objects, then ARP is fine as it is. If, however, you don't want to use MovieClips as your base object, you can still make use of things like System events and the like. At least, that's if they're in the base ARP package. I use the ARPX extended version written by Grant Davies. Top bloke! :-) Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: 18 April 2006 09:22 To: Flash Coders Subject: [Flashcoders] Using ARP without Forms? Hi ARP developers, I was wondering if it was easy to use ARP in a non-form flash application... After reading ARP documentation, it seems to be well-suited for form-enabled flash apps, but what about the applications completely created from scratch with MTASC for example? What do you use in replacement of Forms? Custom components/movieclips? Can someone provide a short example or some guidelines? Thanks, Julien ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Requesting reccomendation for testing already written classes
Thanks. I'm going to try that today. Can you give me a link to the mention of the JSFL for the stub code for ASUnit? That would hopefully give me the guidance I need to get started. Mani ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger
I had forgotten about that. Really easy to overlook and burn an hour or two of frustration. On 4/14/06, elr [EMAIL PROTECTED] wrote: Hi Manuel, I finally got an answer to my problem. That was not an empty space but a kind of... In fact, my Sepy editor was set to add a UTF BOM code that corrupted my PHP file once I modified it. Pretty vicious trap ;-) Thanks. Eric At 2006-04-12 20:31, you wrote: Try making sure that there are absolutely no spaces at the start or end of the HelloWorld.php and the gateway.php. I'm not sure if you downloaded or cut and pasted the code but sometimes when cut and pasting if you inadvertently add a space you'll get that error. Mani On 4/12/06, elr [EMAIL PROTECTED] wrote: Unfortunately, that`s hard to see where exactly video author (P. Minault) is clicking as he uses Captivate that is absolutely not synchro. But in the amfphp browser windows, I get the following error message when I test HelloWorld sample service Warning: Cannot modify header information - headers already sent by (output started at .../amfphp/gateway.php:1) in .../amfphp/amf-core/exception/php4Exception.php on line 42 /1/onStatusnull?codeAMFPHP_RUNTIME_ERRORdescription?session_start(): Cannot send session cache limiter - headers already sent (output I'm not able to understand where trouble comes from Eric At 2006-04-12 12:39, you wrote: No, Kevin,I missed this area. I`m giving a look right now .Thx !!! At 2006-04-12 11:16, you wrote: Did you try watching the video tutorials? The ones for installing and testing were extremely helpful. From: elr [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger Date: Wed, 12 Apr 2006 10:50:59 -0400 Hi all, I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html) Gateway.php properly reacts and everything seems ok excepted that, running the HelloWorld sample, myNetConnection Debugger doesn`t report any Result event (while I get Connect and Call ones..) Any idea ? Eric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] DuplicateMovieClip - type mismatch error
Hi all, I'm trying to duplicate a clip and I'm getting a type mismatch error. Undoubtedly it's something silly but I'm not getting anywhere fast. I have a flash movie with a .as file attached. In the .as file, I want to copy a movie clip. Inside the _customerArt array are two MovieClips This is the code here: *_currentCustomer = _customerArt[customerType]; createEmptyMovieClip(_newCustomer, getNextHighestDepth()); //duplicateMovieClip(_currentCustomer, _newCustomer, this.getNextHighestDepth()); trace(_currentCustomer = [+_currentCustomer+] and _newCustomer = [+_newCustomer+]); * two things, the duplicate line is only commented out to allow the trace to work (the mismatch stops execution) the trace outputs the following: * _currentCustomer = [_level0.mcDavid] and _newCustomer = [_level0.mcSalesScreen._newCustomer]* I have tried creating the empty clip and not creating it - no difference. Both _currentCustomer and _newCustomer are vars declared at the top of the class. Any idea why I'm getting a type mismatch? Docs say: *duplicateMo**vieClip(target:String, newname:String, depth:Number) : Void * looks to me like I'm using two strings and a number. i have tried this definition: *duplicateMovieClip(target:MovieClip, newname:String, depth:Number) : Void* and I have also tried *_newCustomer = this.duplicateMovieClip(_currentCustomer, this.getNextHighestDepth());* But that's not working either. Any ideas? Cheers David ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] weird
Hello all, Got a very weird problem, i just compiled my movie and now 90% of the dynamic text fields ignore the font they are set too and just display in times new roman instead. for a couple of weeks they have been in tahoma! they are set to be bitmap text and have worked 100% fine up to now, any ideas why flash8 might be doing this?!?! the textFields in question are all contained within movieclips attached at runtime, the fields themselves are not dynamically created, there is no code in the fla, all the fields are set to tahoma but 90% of them are coming out as _serif or times new roman. cheers, tom. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] weird
greetings! did you embed tahoma in your textfields ? or are you using the 'system' font ? and are you testing your movie on the same computer ? cedric Hello all, Got a very weird problem, i just compiled my movie and now 90% of the dynamic text fields ignore the font they are set too and just display in times new roman instead. for a couple of weeks they have been in tahoma! they are set to be bitmap text and have worked 100% fine up to now, any ideas why flash8 might be doing this?!?! the textFields in question are all contained within movieclips attached at runtime, the fields themselves are not dynamically created, there is no code in the fla, all the fields are set to tahoma but 90% of them are coming out as _serif or times new roman. cheers, tom. m ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: marginLeft (ignoring style)
Lol. No, OF COURSE, i've tried _root.pagina.setStyle(marginLeft, 20); even if i was trying _root.pagina.setStyle(marginLeft, 20); implicit conversion would be OK. Words of Macromedia masters: Only the numeric part of the value is used. Units (px, pt) are not parsed; pixels and points are equivalent. LOL so i supposed that this kind of setStyle propertie is a bug. In another case, applying an external CSS it's ok. Thanks anyway 2006/4/17, julian atienza [EMAIL PROTECTED]: It's strange... color and other css properties that i have writed with setStyle doesn't goes ok (except backgroundColor, borderStyle that it's ok) Now i'm making something like (pagina=my textArea component): _root.pagina.text = span class='tipo'BREste es un ejemplo de BRtexto/span; import TextField.StyleSheet; var css_str:String = .tipo {font-family: Arial; font-size: 24px; margin-left: 120px; }; var my_styleSheet:StyleSheet = new StyleSheet(); if (my_styleSheet.parseCSS(css_str)) { pagina.styleSheet = my_styleSheet; } And then marginLeft It's OK what's a strange ... it's setStyle commands full of bugs=== 2006/4/17, julian atienza [EMAIL PROTECTED]: Hi, i only have in scene one textArea component, and in my actionscript this code: stop(); //TEXTAREA _root.pagina.setStyle(backgroundColor , 0xFF); _root.pagina.setStyle(color , 0x302513); _root.pagina.setStyle(borderStyle, none); _root.pagina.setStyle(line-height, 20px); _root.pagina.setStyle(fontSize, 14); _root.pagina.setStyle(embedFonts, true); _root.pagina.setStyle(fontFamily, Arial); _root.pagina.setStyle(marginLeft, 20); _root.pagina.text = BRthis is an example of BRtext; marginLeft is ignored always... i've tried _root.pagina.setStyle(marginleft, 10); _root.pagina.setStyle(margin-left, 10); _root.pagina.setStyle(margin-Left, 10); NOTHING APPEARS TO BE AFFECTED somebody knows the problem? thank u in advance!!! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] weird
Hello cedric, hope all's good with you! tahoma is used in all the static text, stranger and stranger, when i was embedding basic latin on the fields before this happened just now, the dynamix text wouldn't show. so i wasn't embedding for that reason, now on the fields that changed i'm embedding it and it shows in the right font, however the 10% that still work as they used to do not have it embedded and work as before. and yup i am testing on the same machine! very weird. if anyone's experienced anything similar then post on this thread but for now i'll be embedding again and hoping nothing disappears! ta cedric, tom. Cedric Muller wrote: greetings! did you embed tahoma in your textfields ? or are you using the 'system' font ? and are you testing your movie on the same computer ? cedric Hello all, Got a very weird problem, i just compiled my movie and now 90% of the dynamic text fields ignore the font they are set too and just display in times new roman instead. for a couple of weeks they have been in tahoma! they are set to be bitmap text and have worked 100% fine up to now, any ideas why flash8 might be doing this?!?! the textFields in question are all contained within movieclips attached at runtime, the fields themselves are not dynamically created, there is no code in the fla, all the fields are set to tahoma but 90% of them are coming out as _serif or times new roman. cheers, tom. m ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- __ Tom Rhodes - Developer / Composer Wheelhouse Creative Ltd, 2 Albion Place, Hammersmith, London. W6 0QT Tel: 020 8748 4466 Fax: 020 8748 4850 www.wheelhousecreative.co.uk __ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash to jpg
Hello, This might help: http://www.kaourantin.net/2005/10/more-fun-with-image-formats-in-as3.htm l -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juan Anzaldo Sent: Monday, April 17, 2006 9:39 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Flash to jpg Sorry at runtime I need to export a vector image from flash to a jpg or gif format, is it possible? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Howto randomize the elements of an array?
See: [Flashcoders] Array.shuffle http://chattyfig.figleaf.com/pipermail/flashcoders/2002-August/043766.html _ Danny Kodicek wrote: The basic randomisation algorithm is: take a new array for each element in the old array: add it at a random position in the new array It's not really rocket science, but it should do the job perfectly well for your purposes. Good luck, Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Access class' properties (in _root) from movieclip and other loaded swf timeline?
I'm trying to follow the advice class properties are better then _global variables, but how could I access a class' properties (imported in the main timeline) in a global way? I mean if I want to call a class property that I've already imported in the main timeline, should I import the same class again in any other movieclip or other swf loaded by the main movie? Wouldn't it make my files heavier (repeating the class inclusion for each swf file)? thanks Giovanni www.alt123.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash for none-flash users
I must produce a fla file that will be modified directly by people unfamiliar with Flash! I'm preparing components to be manipulated easily and want to produce, inside the component's property panel a list of all the items inside the library that has a linkaged ID... Is that possible? Thanks! -- === É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@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] how a loaded swf access variables from an host
Hi, 1- my main fla is driven by a singleton class nammed 'Main.as' so content of frame 1 is : var main= Main.getInstance(); main.init(this); 2 - this main instance do a loadMovie() to load an external movie called 'child.swf' ( this one is also driven by a class nammed 'child.as' ) I don't find any way to make 'child.swf' access to variables defined in 'main' instance. if,in child class, I define a reference to 'main' instance it won't compile anymore (but I precisely need swf to be loaded into its host...) Did I missed something ? Thx for your help Eric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: marginLeft (ignoring style)
julian atienza wrote: Lol. No, OF COURSE, i've tried _root.pagina.setStyle(marginLeft, 20); But ... I recreated your problem in my Flash 8 IDE, 20 and 20 produced different result : The latter had left margin while the former did not. -- Anggie Bratadinata Web|Graphic|Flash Jl. Raya Langsep 21 Malang - East Java I N D O N E S I A http://design.ibshastautama.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: Active X and Microsoft IE ...
Just a little note about this technique: It will void out the flashvars attribute (and potentially other less-frequently used attributes). If you do not use these special attributes, then this technique is perfectly fine. B. 2005/12/22, Geoffrey Knutzen [EMAIL PROTECTED]: Here is what I am using: !--[if IE]noscript id=flash1![endif]--object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase= http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 width=435 height=270 id=flash_home align=middle param name=allowScriptAccess value=sameDomain / param name=movie value=flash.swf / param name=loop value=false / param name=quality value=best / param name=bgcolor value=# / embed src=flash.swf loop=false quality=best bgcolor=#ff width=435 height=270 name=flash_home align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer; / /object!--[if IE]/noscriptscript language=JavaScript type=text/javascriptwriteExCtrl('flash1')/script![endif]-- and then in an exteranl .js file: function writeExCtrl(id){ if(document.getElementById document.getElementById(id) document.getElementById(id).innerHTML){ document.write(document.getElementById(id).innerHTML.replace(/gt;/gi, '').replace(/lt;/gi, '')); } } Basically, everything is the same as it always was for every browser other than ie using the ie conditional comments, http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp , put in noscript tags around the call to the flash file. So if the user is using ie and has javascript turned off, they will still see the flash, but will have to click on it to enable it. This is as good as it can get for a non javascript ie user. If they do have javascript, the function reads the innerHTML of the noscript tag and writes it out to the page and all is good. It might be possible to get a bit more specific on the conditional comments, like perhaps only targeting ie6, but I am not sure if microsoft will be rolling out this fix to ie 5 or not, so I have bee playing it safe for now. Can anyone answer this: What happens if a user doesn't have javascript enabled in their browser for the recommended Macromedia solution (see link: http://www.macromedia.com/devnet/activecontent/articles/devletter.html) to this whole Active X debacle ? ??? Please answer this if you can. It has me stressed. Thanks, Stephen. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash for none-flash users
Hello Eric, Thanks! You're welcome ;-) In such a situation I'd rather consider building custom interface (SWF) for your component(s), where you can describe everything in human language. Also, how about making XML configuration file? JSFL can help too... A lot depends on what these non-flash people are expected to edit... -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ---?ric Thibault wrote: I must produce a fla file that will be modified directly by people unfamiliar with Flash! I'm preparing components to be manipulated easily and want to produce, inside the component's property panel a list of all the items inside the library that has a linkaged ID... Is that possible? Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] offline SWF generation from XML
Quick question - are there any tools that can take an XML document, parse it and generate a swf file offline? We're looking for a way to avoid doing this parsing during runtime. Do JSFL, ANT or other tools have this capabiltiy? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] offline SWF generation from XML
Check out SWFMill: http://www.osflash.org/swfmill Might do what you want. - Original Message - From: August Gresens [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 18, 2006 1:00 PM Subject: [Flashcoders] offline SWF generation from XML Quick question - are there any tools that can take an XML document, parse it and generate a swf file offline? We're looking for a way to avoid doing this parsing during runtime. Do JSFL, ANT or other tools have this capabiltiy? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] offline SWF generation from XML
I might be able to help, I have a question though, is this swf file generated by the xml document? Is the xml document something like a swf describer? On 4/18/06, August Gresens [EMAIL PROTECTED] wrote: Quick question - are there any tools that can take an XML document, parse it and generate a swf file offline? We're looking for a way to avoid doing this parsing during runtime. Do JSFL, ANT or other tools have this capabiltiy? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] DuplicateMovieClip - type mismatch error
Hi all, I'm looking into this further and although I don't have a solution - I have a bit more info. The following code creates a duplicate of my movie clip: *var testClip:MovieClip; var david:MovieClip = _customerArt[0]; testClip = david.duplicateMovieClip(testClip, getNextHighestDepth());* when I put it on frame 0 of my movie But when I move it to an actionscript file it stops working. now, I know my _customerArt[0] movie clip IS being loaded into 'var david' because when I move it's _x around, it behaves accordingly. So, why is it that the movie clip doesn't create a duplicate when inside a function in an actionscript file? David ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Batch export SWCs
Hello again fine folks. Can someone enlighten me maybe - I got a document which contains my developed components (about a dozen) - I do all of the development in this .fla. When I want to export them to SWC I have to do it one by one - this is just one too many Ok for me. Maybe there is a JSFL script that handles this in batch fashion - i.e. select all the components to be exported, select the directory, done. -- Julian 'Julik' Tarkhanov me at julik.nl ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] DuplicateMovieClip - type mismatch error
Try doing this .. var testClip:MovieClip; var david:MovieClip = _customerArt[0]; testClip = david.duplicateMovieClip(testClip, this.getNextHighestDepth()); On 4/18/06, David Farrell [EMAIL PROTECTED] wrote: Hi all, I'm looking into this further and although I don't have a solution - I have a bit more info. The following code creates a duplicate of my movie clip: *var testClip:MovieClip; var david:MovieClip = _customerArt[0]; testClip = david.duplicateMovieClip(testClip, getNextHighestDepth());* when I put it on frame 0 of my movie But when I move it to an actionscript file it stops working. now, I know my _customerArt[0] movie clip IS being loaded into 'var david' because when I move it's _x around, it behaves accordingly. So, why is it that the movie clip doesn't create a duplicate when inside a function in an actionscript file? David ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Batch export SWCs
Look in the manual in Flash 8 under Extending Flash. You can loop through your Library and find the symbols and call exportSWC. fl.getDocumentDOM().library.items[0].exportSWC(file:///c|/tests/my.swc); - Original Message - From: Julian 'Julik' Tarkhanov [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 18, 2006 1:43 PM Subject: [Flashcoders] Batch export SWCs Hello again fine folks. Can someone enlighten me maybe - I got a document which contains my developed components (about a dozen) - I do all of the development in this .fla. When I want to export them to SWC I have to do it one by one - this is just one too many Ok for me. Maybe there is a JSFL script that handles this in batch fashion - i.e. select all the components to be exported, select the directory, done. -- Julian 'Julik' Tarkhanov me at julik.nl ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] OT: Adobe Licensing - FAO John Dowdell, Mike Chambers et al.
On Apr 18, 2006, at 5:21 AM, Mike Mountain wrote: Well we're getting very despondent now. We really want to use flash on our Win CE device - but it would seem the suits in charge of licensing are far too busy to get in touch with us. We've been in contact with Adobe UK, who said they'd 'ping' America for us - We've been in touch with Adobe US who said they'd 'nudge' the EU licensing peeps. But nothing, we're still waiting to hear. I don't have any problem with you bringing this up here. Seems close enough to On-Topic for me. But, can you tell us what exactly you are trying to negotiate? I'm curious because we have a product in prototype stages which will deliver on PDA as well. Maybe you need the ability to distribute the player... or?? -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] DuplicateMovieClip - type mismatch error
It does nothing. I don't see what you suggested differently to what I was already doing? The asterix in my code was my email client's way of demonstrating bold. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] how a loaded swf access variables from an host
I finally found a way... :) I defined an object 'myObj' directly in Main.fla (...not in its class) then, my 'child.swf' get access to this object using _root.myObj.vars. That maybe not the best way but it works. Eric At 2006-04-18 11:10, you wrote: Hi, 1- my main fla is driven by a singleton class nammed 'Main.as' so content of frame 1 is : var main= Main.getInstance(); main.init(this); 2 - this main instance do a loadMovie() to load an external movie called 'child.swf' ( this one is also driven by a class nammed 'child.as' ) I don't find any way to make 'child.swf' access to variables defined in 'main' instance. if,in child class, I define a reference to 'main' instance it won't compile anymore (but I precisely need swf to be loaded into its host...) Did I missed something ? Thx for your help Eric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] offline SWF generation from XML
I'd like to actually write out the file and then open it later using loadMovie - or include it another file using FlashAnt (which I believe can be used to nest clips inside each other?) For example, if the XML describes the contents of a text field with markup, I'd like to generate a SWF with a text field in it, that has the markup offline using the tool rather rather than doing this on the fly at runtime. Thanks, A On 4/18/06, elibol [EMAIL PROTECTED] wrote: . On 4/18/06, JesterXL [EMAIL PROTECTED] wrote: Check out SWFMill: http://www.osflash.org/swfmill Might do what you want. - Original Message - From: August Gresens [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 18, 2006 1:00 PM Subject: [Flashcoders] offline SWF generation from XML Quick question - are there any tools that can take an XML document, parse it and generate a swf file offline? We're looking for a way to avoid doing this parsing during runtime. Do JSFL, ANT or other tools have this capabiltiy? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Testing ExternalInterface on Windows for me.
I am at work right now. And we only have one windows machine. We are using some ExternalInterface functionality in one of our projects. It's not working on out windows machine. It doesn't work in either Firefox or Internet Explorer. It works fine in every browser on MAC. I've been doing some testing to figure out what it was. And could not figure it out. So I created an even smaller test. There is two lines of code in the fla that calls an ExternalInterface call to a js method that just displays an alert. Even that doesnt work. If someone could take a quick look at my src files. Test it on IE and Firefox Windows. And let me know if it works. If it does work for others it means we have a problem with our win machine. here is a zip ( www.smithaaronlee.net/ExtIntTest.zip ) file with the src (fla, swf, html) . just open it up and look at the test.html file in firefox and IE. it should just pop up an alert right away. I would really appreciate someone doing this. it will only take a sec. thanks, smith ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Q: Flash Object vs UFO for flash detection and as eolas workaround
I think Johns problem can be avoided by just resorting to old school embedding. I also think it can be avoided by using floating divs instead of popups, or popups within the player. I have here version 1.3 of FlashObject, I will talk from this since it's what I've based my arguments on. I understand that it's a package of various classes, however, this is in theory, where practically, the names of the functions become the only distinguishable aspect from one class to another. There may be very valid reasoning as to why the class prototype object is defined as one statement, as it takes less code to accually define, it is better optimized than a more readable and extendable definition would be, however, as it stands, all of the prototype members are defined in one massive statement. Again, I'm not trashing your code, I'm really dissapointed to have to make a point when everyone seems to be taking a jab at you right now. I think there are very valid reasons why it is the way it is, I just want my point to remain valid, so I will go on to say that better encapsulation could of been accomplished by including seperate .js files as seperated classes into various packaging .js files depending on various tasks, thus, if one were to just need the function of embeding swf files without any detection or express installing code they could do so without any redundancy. If one were to require a combination of functionality from the package, they could select a composite class that encapsulated this functionality. I guess this wouldn't take too long to do myself now that I think of it... What's important is that it's well programmed, it works and has passed various stress tests. There is one intrinsic problem that I've noticed with the current technique for implementing the express installer, I think we've discussed this already Geoff. The express installer page doesn't always close after the download and redirect. It's rather erratic, as it only sometimes happens. I haven't had time to spend on it. Has anyone else experienced anything like this? High Regards, M. On 4/17/06, Geoff Stearns [EMAIL PROTECTED] wrote: well that's cool, thanks for the response.. the only thing i'd like to address was this part: The FlashObject class would just embed swf files. Any additional concerns would be seperated from this class, where each class would interface to operate with one anotherAs it stands, all of the features are crammed into one class file, the FlashObject.js, making it very hard to add/remove functionality without fundamentally reprogramming the entire tool. If you take a look at the code, you'll see that it *is* split up into different 'classes' and objects that have their own methods... the FlashObject 'class' handles the base creation (constructor) and writing the HTML to the page. for plugin detection, I have another 'class' that handles lookups of the flash player version, this is under deconcept.FlashObjectUtil 'class'. To do this, it creates PlayerVersion objects, which contain methods for comparing versions to check if the user has the version that is required or not (PlayerVersion.versionIsValid) then, because it is extremely useful, I've included another 'class' for grabbing query parameters (and hash parameters) from the query string - this is packaged up in the 'deconcept.util' 'class' (or package i guess) Each of these can be modified / changed / added / removed just as you could in any other OOP language (obviously with a few more restrictions, since this is Javascript and not some other compiled language). So you can see that it is indeed split up into different sections for easier modification. I guess it helps if you look at the flashobject.js file as more of a 'package' than a 'class'. (and as an aside, John's problem can't be fixed by modifying the script) On Apr 17, 2006, at 9:54 PM, Jim Kremens wrote: Hi Geoff, I'll reply to your comments inline below... First, I guess I'm not sure why you would need to 'maintain' it. The script is basically just an API for writing the HTML to embed a swf file into an html document. This probably won't change significantly any time soon, so the need to 'maintain' a script like this is non- existent. I said 'maintain' - a more accurate word would have been 'modify.' John Grden ran into an 'edge case.' In a case like that, he might have chosen to dive into the script to refactor the code in a way that involved more than just extending it. Second, maybe you were looking at the compressed version? I include a version of the 'source' code that is much easier to read if you are into that. I was reading the compressed version. What a dumbass... For some reason I just didn't see the 'source' directory there. Certainly helps... :-) As far as the misc. accusations about FlashObject not being Object Oriented, (Jim said: 'IMHO, the code is very
RE: [Flashcoders] Testing ExternalInterface on Windows for me.
Did you upload it to a server and test it or just do it locally? It doesn't work for me if it is local but it works like a champ when uploaded and I am on windows too. I will look at your source. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:12 PM To: Flashcoders mailing list Subject: [Flashcoders] Testing ExternalInterface on Windows for me. I am at work right now. And we only have one windows machine. We are using some ExternalInterface functionality in one of our projects. It's not working on out windows machine. It doesn't work in either Firefox or Internet Explorer. It works fine in every browser on MAC. I've been doing some testing to figure out what it was. And could not figure it out. So I created an even smaller test. There is two lines of code in the fla that calls an ExternalInterface call to a js method that just displays an alert. Even that doesnt work. If someone could take a quick look at my src files. Test it on IE and Firefox Windows. And let me know if it works. If it does work for others it means we have a problem with our win machine. here is a zip ( www.smithaaronlee.net/ExtIntTest.zip ) file with the src (fla, swf, html) . just open it up and look at the test.html file in firefox and IE. it should just pop up an alert right away. I would really appreciate someone doing this. it will only take a sec. thanks, smith ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] offline SWF generation from XML
It seems like what Jesse suggested suits your need as best as atleast I know of. On 4/18/06, August Gresens [EMAIL PROTECTED] wrote: I'd like to actually write out the file and then open it later using loadMovie - or include it another file using FlashAnt (which I believe can be used to nest clips inside each other?) For example, if the XML describes the contents of a text field with markup, I'd like to generate a SWF with a text field in it, that has the markup offline using the tool rather rather than doing this on the fly at runtime. Thanks, A On 4/18/06, elibol [EMAIL PROTECTED] wrote: . On 4/18/06, JesterXL [EMAIL PROTECTED] wrote: Check out SWFMill: http://www.osflash.org/swfmill Might do what you want. - Original Message - From: August Gresens [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 18, 2006 1:00 PM Subject: [Flashcoders] offline SWF generation from XML Quick question - are there any tools that can take an XML document, parse it and generate a swf file offline? We're looking for a way to avoid doing this parsing during runtime. Do JSFL, ANT or other tools have this capabiltiy? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Testing ExternalInterface on Windows for me.
ok, yeah I wonder if thats the issue (local). I was just testing it locally. I'll try it on a server. On Apr 18, 2006, at 11:17 AM, Ryan Potter wrote: Did you upload it to a server and test it or just do it locally? It doesn't work for me if it is local but it works like a champ when uploaded and I am on windows too. I will look at your source. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:12 PM To: Flashcoders mailing list Subject: [Flashcoders] Testing ExternalInterface on Windows for me. I am at work right now. And we only have one windows machine. We are using some ExternalInterface functionality in one of our projects. It's not working on out windows machine. It doesn't work in either Firefox or Internet Explorer. It works fine in every browser on MAC. I've been doing some testing to figure out what it was. And could not figure it out. So I created an even smaller test. There is two lines of code in the fla that calls an ExternalInterface call to a js method that just displays an alert. Even that doesnt work. If someone could take a quick look at my src files. Test it on IE and Firefox Windows. And let me know if it works. If it does work for others it means we have a problem with our win machine. here is a zip ( www.smithaaronlee.net/ExtIntTest.zip ) file with the src (fla, swf, html) . just open it up and look at the test.html file in firefox and IE. it should just pop up an alert right away. I would really appreciate someone doing this. it will only take a sec. thanks, smith ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] OT: Adobe Licensing - FAO John Dowdell, Mike Chambers et al.
Mike Mountain wrote: Well we're getting very despondent now. We really want to use flash on our Win CE device - but it would seem the suits in charge of licensing are far too busy to get in touch with us. We've been in contact with Adobe UK, who said they'd 'ping' America for us - We've been in touch with Adobe US who said they'd 'nudge' the EU licensing peeps. But nothing, we're still waiting to hear. Were you trying to get the Flash Player source code for porting yourself elsewhere? Which website address is the relevant page? (This would allow me to target internal queries, thanks.) jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Testing ExternalInterface on Windows for me.
Yes I tried it out on yours and my server. works just fine. Now have a look at this. on Firefox and IE: ( http://www.smithaaronlee.net/ jstest/ImgScrollerTEST.html ) It works in firefox like it should. But in IE it doesn't work completely. I'm having troubles figuring out what is wrong in IE, IE throws errors when you click on a step button. Just viewsource to see the JS. this is what it is supposed to do: when you click a 'step' button it reloads different thumbnails in the scroller piece. when you click on a thumbnail it communicates through js to the other flash piece to load a larger img. On Apr 18, 2006, at 11:29 AM, Ryan Potter wrote: I tested it and it works. It is the testing locally issue. Here is your code on a server: http://www.thoughtwillrise.com/flash/exttest/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. ok, yeah I wonder if thats the issue (local). I was just testing it locally. I'll try it on a server. On Apr 18, 2006, at 11:17 AM, Ryan Potter wrote: Did you upload it to a server and test it or just do it locally? It doesn't work for me if it is local but it works like a champ when uploaded and I am on windows too. I will look at your source. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:12 PM To: Flashcoders mailing list Subject: [Flashcoders] Testing ExternalInterface on Windows for me. I am at work right now. And we only have one windows machine. We are using some ExternalInterface functionality in one of our projects. It's not working on out windows machine. It doesn't work in either Firefox or Internet Explorer. It works fine in every browser on MAC. I've been doing some testing to figure out what it was. And could not figure it out. So I created an even smaller test. There is two lines of code in the fla that calls an ExternalInterface call to a js method that just displays an alert. Even that doesnt work. If someone could take a quick look at my src files. Test it on IE and Firefox Windows. And let me know if it works. If it does work for others it means we have a problem with our win machine. here is a zip ( www.smithaaronlee.net/ExtIntTest.zip ) file with the src (fla, swf, html) . just open it up and look at the test.html file in firefox and IE. it should just pop up an alert right away. I would really appreciate someone doing this. it will only take a sec. thanks, smith ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FLV frame capture
Hi, I need to capture the first frame of an FLV video file and convert it to bmp or jpeg. What's the best way to do this? Is it possible? Thank you in advance, JP ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Batch export SWCs
On 18-apr-2006, at 19:51, JesterXL wrote: Look in the manual in Flash 8 under Extending Flash. You can loop through your Library and find the symbols and call exportSWC. fl.getDocumentDOM().library.items[0].exportSWC(file:///c|/tests/ my.swc); Brilliant, thanks - will try this one ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Q: Flash Object vs UFO for flash detection and as eolas workaround
Sorry John I hadn't read this post, seems like you've got a work around already and were just trying to gain some insight into the matter. On 4/17/06, John Grden [EMAIL PROTECTED] wrote: sounds like a very rare edge case to me - but first I have to point out that this isn't an issue with FlashObject, it's an issue with the way ExpressInstall works. There's just too many variables that have to be in place for this to actually be an issue. Yes and no, but I think we'd just go round and round, and it doesn't matter. i'd agree that it's NOT a vast majority. But there is a way for this to be worked around - when i built FlashObject, I allowed the user to be able to bypass the plugin detection, just add ?detectflash=false to the url and it skips it. This is documented on the FlashObject page and has been a feature since version 1.0. we love FlashObject btw - and yes, we know about that flag. If that really did happen to 5 people in a row, I would think that it may be something specific with that website: Maybe you put it in a popup window, and the page that launched the popup window already had a Flash movie playing in it? at first no, then yes, then no. LOL, they decided on a popup, but then switched back. But I don't remember it being an issue at the time we were dealing with the popup. It seems to me that this should be a fairly easy issue to work around, and if it's not, then it should be taken up with Adobe through their developer relations people. Still doesn't answer my question and it's an IE/windows problem more than Flash. I mean, you can't help it if the user has MSN open and it's using the Flash OCX or some othe program. It might be an edge scenario, but we had 5 people in a row do it AND those same 5 wouldn't let up on us until we had a site working around that IE bug. That solution, unfortunately didn't include the use of FlashObject. They said make it work no matter what happens with IE, and when it was all boiled down, there were no other options. Thanks Geoff, you're points are well taken, John On Apr 17, 2006, at 7:56 PM, John Grden wrote: Hey Geoff, thanks for the response. I have a question though, and it's not me being a smart-ass or anything -honestly! Ok, open IE6, load a flash site with version 6 of the flash player. Open another instance of IE6, load a different site and do the upgrade to flash 8 (without closing the other browser). After its all said and done, the upgrade never completed and now IE can't create an instance of the FLash object to do version detection OR show the site. The only way to show it, is to hardcode the object tag in an html page - then IE will display the content. Mind you, it doesn't have to be another instance of IE open, it can be anything using the FlashOCX. So, I guess what I'm missing here is the part where JS can't make an object and FlashObject works anyway. Huh? I mean, give me the technical reason *why* I should just use FlashObject anyway, despite the fact that it failed during the Hilton journey's site. There's a fortune 500 company, and it no worky. Now, for the vast majority of users, there probably wasn't a problem, but with the 5 executives who went home to show off their new site to the family, it happened to 100% of them. So, there's no trying to talk them out of what they experienced. In their eyes, 100% failure rate amongst themselves means big problems elsewhere etc. I feel like either I'm missing something fundamental here, or I haven't articulated the problem well enough. Thanks Geoff John On 4/17/06, Geoff Stearns [EMAIL PROTECTED] wrote: Since nobody really answered this, here you go: Neither one is really 'better' - they both do pretty much exactly the same thing. Some people like the syntax used in FlashObject, some people like the way UFO works instead. Check them both out and pick the one you like better. I'd also like to address some of the concerns about FlashObject: 1) Jim said My only reservation with FlashObject is that it's written in a style that makes it pretty un maintainable. First, I guess I'm not sure why you would need to 'maintain' it. The script is basically just an API for writing the HTML to embed a swf file into an html document. This probably won't change significantly any time soon, so the need to 'maintain' a script like this is non- existent. Second, maybe you were looking at the compressed version? I include a version of the 'source' code that is much easier to read if you are into that. As far as the misc. accusations about FlashObject not being Object Oriented, (Jim said: IMHO, the code is very procedural, not object oriented. The cues for this are the endless conditional statements. A good,
RE: [Flashcoders] Testing ExternalInterface on Windows for me.
I get the same as you. I looked at the external interface code that I have and the only difference I can see is I have swLiveConnect set to true but I don't think that is it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:46 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. Yes I tried it out on yours and my server. works just fine. Now have a look at this. on Firefox and IE: ( http://www.smithaaronlee.net/ jstest/ImgScrollerTEST.html ) It works in firefox like it should. But in IE it doesn't work completely. I'm having troubles figuring out what is wrong in IE, IE throws errors when you click on a step button. Just viewsource to see the JS. this is what it is supposed to do: when you click a 'step' button it reloads different thumbnails in the scroller piece. when you click on a thumbnail it communicates through js to the other flash piece to load a larger img. On Apr 18, 2006, at 11:29 AM, Ryan Potter wrote: I tested it and it works. It is the testing locally issue. Here is your code on a server: http://www.thoughtwillrise.com/flash/exttest/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. ok, yeah I wonder if thats the issue (local). I was just testing it locally. I'll try it on a server. On Apr 18, 2006, at 11:17 AM, Ryan Potter wrote: Did you upload it to a server and test it or just do it locally? It doesn't work for me if it is local but it works like a champ when uploaded and I am on windows too. I will look at your source. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:12 PM To: Flashcoders mailing list Subject: [Flashcoders] Testing ExternalInterface on Windows for me. I am at work right now. And we only have one windows machine. We are using some ExternalInterface functionality in one of our projects. It's not working on out windows machine. It doesn't work in either Firefox or Internet Explorer. It works fine in every browser on MAC. I've been doing some testing to figure out what it was. And could not figure it out. So I created an even smaller test. There is two lines of code in the fla that calls an ExternalInterface call to a js method that just displays an alert. Even that doesnt work. If someone could take a quick look at my src files. Test it on IE and Firefox Windows. And let me know if it works. If it does work for others it means we have a problem with our win machine. here is a zip ( www.smithaaronlee.net/ExtIntTest.zip ) file with the src (fla, swf, html) . just open it up and look at the test.html file in firefox and IE. it should just pop up an alert right away. I would really appreciate someone doing this. it will only take a sec. thanks, smith ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:
RE: [Flashcoders] FLV frame capture
On Mac (apple + shift 3) on PC (print screen). Then bring the pic into photoshop and crop and so forth. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Robert Sent: Tuesday, April 18, 2006 2:50 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] FLV frame capture Hi, I need to capture the first frame of an FLV video file and convert it to bmp or jpeg. What's the best way to do this? Is it possible? Thank you in advance, JP ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] New wrinkle in IE activation issue...
You need to load your flash into your HTML from an external .js file. See adobe/macormedia's site for more information. http://www.macromedia.com/devnet/activecontent/articles/before_after.html This shows the (ugly) workaround. Cheers John - On 4/17/06, ryanm [EMAIL PROTECTED] wrote: I have several workstations here at work that require activation every time, on every flash piece, on every site. No one is exempt: Adobe/Macromedia, Microsoft, Yahoo, etc (all sites that I know have activation workarounds in place), all of them have flash on their sites and all of it requires activation. I have one brand new machine running the absolute latest of everything (IE 6.0.2900.2180.xpsp_sp2_gdr.050301-1519, Flash 8.0.24.0, etc), and it has this issue, and I have an antique machine that was upgraded from win 95 to 98 to xp home to xp pro, and incrementally upgraded for each piece to a current Flash 7 and IE 6, and it has the same issue. So, there are people on the web right now who are seeing this problem, and my question is, is it even possible for me to do anything about it? FlashObject does not work, UFO does not work, none of the available OS libraries work, and no custom solution that I've been able to write so far has worked (the examples on each of these sites don't even work). So what do I do? ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Testing ExternalInterface on Windows for me.
Ryan: When testing locally with Windows/IE, you can set allowScriptAccess to 'always' - it'll save you having to upload to a server. Aaron: I was stalled with ExternalInterface myself yesterday; I had the hardest time getting it to work on the Windows/IE combo. The included samples from Macromedia didn't work, and several others on the web didn't work either. Other browsers (Firefox, Safari/Firefox on the Mac) worked fine. Since I was using flashobject to embed the swf, I wandered over to Geoff Stearns's blog and found this example: http://blog.deconcept.com/code/externalinterface.html. I eventually ended up taking that html (since it worked on Win/IE) and using it as the basis for my html page, just so I could figure out what was wrong. I found two things different between my page that didn't work and the deconcept example: If you look at the code on that page the reference to the flash movie isn't initialized until the entire page is loaded. That would be the first place I would look. The second thing I learned yesterday (and this is where it starts to devolve into voodoo) is that the order of items on the page matters greatly (but seemingly only on Win/IE). I was calling a flash movie from a javascript function triggered by a form button (http://www.dirtystylus.com/sandbox/feedroom/filebrowser/file_browser.html - an attempt to feed an flv on a local filesystem to a video object). When the form was placed before embedding the swf, it didn't work on Win/IE. As soon as I moved the form after the embedded swf in the html code, it worked. Extremely weird. -Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ryan Potter Sent: Tuesday, April 18, 2006 3:19 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Testing ExternalInterface on Windows for me. I get the same as you. I looked at the external interface code that I have and the only difference I can see is I have swLiveConnect set to true but I don't think that is it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:46 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. Yes I tried it out on yours and my server. works just fine. Now have a look at this. on Firefox and IE: ( http://www.smithaaronlee.net/ jstest/ImgScrollerTEST.html ) It works in firefox like it should. But in IE it doesn't work completely. I'm having troubles figuring out what is wrong in IE, IE throws errors when you click on a step button. Just viewsource to see the JS. this is what it is supposed to do: when you click a 'step' button it reloads different thumbnails in the scroller piece. when you click on a thumbnail it communicates through js to the other flash piece to load a larger img. On Apr 18, 2006, at 11:29 AM, Ryan Potter wrote: I tested it and it works. It is the testing locally issue. Here is your code on a server: http://www.thoughtwillrise.com/flash/exttest/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. ok, yeah I wonder if thats the issue (local). I was just testing it locally. I'll try it on a server. On Apr 18, 2006, at 11:17 AM, Ryan Potter wrote: Did you upload it to a server and test it or just do it locally? It doesn't work for me if it is local but it works like a champ when uploaded and I am on windows too. I will look at your source. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:12 PM To: Flashcoders mailing list Subject: [Flashcoders] Testing ExternalInterface on Windows for me. I am at work right now. And we only have one windows machine. We are using some ExternalInterface functionality in one of our projects. It's not working on out windows machine. It doesn't work in either Firefox or Internet Explorer. It works fine in every browser on MAC. I've been doing some testing to figure out what it was. And could not figure it out. So I created an even smaller test. There is two lines of code in the fla that calls an ExternalInterface call to a js method that just displays an alert. Even that doesnt work. If someone could take a quick look at my src files. Test it on IE and Firefox Windows. And let me know if it works. If it does work for others it means we have a problem with our win machine. here is a zip ( www.smithaaronlee.net/ExtIntTest.zip ) file with the src (fla, swf, html) . just open it up and look at the test.html file in firefox and IE. it should just pop up an alert right away. I would really appreciate someone doing this. it will only take a sec. thanks, smith
[Flashcoders] Extending Array Question
I have created a Class that extends Array, called ArrayExtension. The only way that I have found to add values to this is array is in the following manner: --- // CODE import com.ArrayExtension var myArray:ArrayExtension = new ArrayExtension(Hello,GoodBye,World) //CLASS class com.ArrayExtension extends Array { public function ArrayExtension() { super() for(var i=0; i arguments.length; i++) push(arguments[i]) } } --- The problem I am running into is if I want to add values to the array after initializing it, I get an error message. Here is an example: --- var myArray:ArrayExtension = new ArrayExtension; myArray = [Hello,GoodBye,World] --- How can I add values to the array without generating an error? Thanks for any and all replies. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Extending Array Question
Hi there (whoever you are!) Your problem is that the [1,2,3] initialiser syntax is actually a short cut for creating a new Array() object, not an ArrayExtension(). So you're replacing the object you just created with new(). What you need to do is to _modify_ your ArrayExtension() object, not replace it. If you try: var myArray:ArrayExtension = new ArrayExtension(); myArray.push(Hello); myArray.push(Goodbye); myArray.push(World); That should sort your problem. HTH, Ian On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have created a Class that extends Array, called ArrayExtension. The only way that I have found to add values to this is array is in the following manner: --- // CODE import com.ArrayExtension var myArray:ArrayExtension = new ArrayExtension(Hello,GoodBye,World) //CLASS class com.ArrayExtension extends Array { public function ArrayExtension() { super() for(var i=0; i arguments.length; i++) push(arguments[i]) } } --- The problem I am running into is if I want to add values to the array after initializing it, I get an error message. Here is an example: --- var myArray:ArrayExtension = new ArrayExtension; myArray = [Hello,GoodBye,World] --- How can I add values to the array without generating an error? Thanks for any and all replies. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] RE:Flashcoders] Extending Array Question
Thanks, that will work. So there is no definitive way to add the values all at once, i.e. [1,4,5,76,3] when extending an Array? Thanks again. Ian Thomasn wrote: Hi there (whoever you are!) Your problem is that the [1,2,3] initialiser syntax is actually a short cut for creating a new Array() object, not an ArrayExtension(). So you're replacing the object you just created with new(). What you need to do is to _modify_ your ArrayExtension() object, not replace it. If you try: var myArray:ArrayExtension = new ArrayExtension(); myArray.push(Hello); myArray.push(Goodbye); myArray.push(World); That should sort your problem. HTH, Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE:Flashcoders] Extending Array Question
You could also do: var myArray:ArrayExtension = new ArrayExtension(); myArray.push(Hello, Goodbye, World); same result as doing them separately. [EMAIL PROTECTED] wrote: Thanks, that will work. So there is no definitive way to add the values all at once, i.e. [1,4,5,76,3] when extending an Array? Thanks again. Ian Thomasn wrote: Hi there (whoever you are!) Your problem is that the [1,2,3] initialiser syntax is actually a short cut for creating a new Array() object, not an ArrayExtension(). So you're replacing the object you just created with new(). What you need to do is to _modify_ your ArrayExtension() object, not replace it. If you try: var myArray:ArrayExtension = new ArrayExtension(); myArray.push(Hello); myArray.push(Goodbye); myArray.push(World); That should sort your problem. HTH, Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE:Flashcoders] Extending Array Question
class com.ArrayExtension extends Array { public function ArrayExtension() { super() var argString = arguments[0].split(,); for(var i=0; i argString.length; i++) push(argString[i]); } } Usage: var arEx = new ArrayExtension(one,two,three); trace(arEx.length); hth, Mike On 4/18/06, Robert Leisle [EMAIL PROTECTED] wrote: You could also do: var myArray:ArrayExtension = new ArrayExtension(); myArray.push(Hello, Goodbye, World); same result as doing them separately. [EMAIL PROTECTED] wrote: Thanks, that will work. So there is no definitive way to add the values all at once, i.e. [1,4,5,76,3] when extending an Array? Thanks again. Ian Thomasn wrote: Hi there (whoever you are!) Your problem is that the [1,2,3] initialiser syntax is actually a short cut for creating a new Array() object, not an ArrayExtension(). So you're replacing the object you just created with new(). What you need to do is to _modify_ your ArrayExtension() object, not replace it. If you try: var myArray:ArrayExtension = new ArrayExtension(); myArray.push(Hello); myArray.push(Goodbye); myArray.push(World); That should sort your problem. HTH, Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Mike -- http://www.mikebritton.com http://www.mikenkim.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash MX Radio button and tab key
Hi Flashcoders, Can anyone give any insight on how to make a group of 5 radio button components tab enabled? That is each individual Radio Button can have its focus set by using the Tab key? The default behavior allows for the radio button group to receive focus and then the Up and Down arrow keys can be used to focus individual radio buttons. This is not what I need. I need each radio button to have its own tabIndex. 1. Is this possible without having to modify the component code? 2. Is there another radio button component (for Flash MX (yeah two versions ago)) available that supports this functionality? Please let me know if you have encountered this problem or know of any solutions or other components (they don't have to be free). Thanks in advance for any information you can provide. thotskee ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flashcoders Extending Array Question
That will work...thanks. Robert Leisle wrote; You could also do: var myArray:ArrayExtension = new ArrayExtension(); myArray.push(Hello, Goodbye, World); same result as doing them separately. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: Active X and Microsoft IE ...
I am using flashvars with this technique and am having no troubles at all Is there some circumstance where the flashvars wouldn't work? I don't know what I am missing here. This has worked for me on every test that I have come up with. 2006/04/18, Bernard Poulin [EMAIL PROTECTED] Just a little note about this technique: It will void out the flashvars attribute (and potentially other less-frequently used attributes). If you do not use these special attributes, then this technique is perfectly fine. B. 2005/12/22, Geoffrey Knutzen [EMAIL PROTECTED]: Here is what I am using: !--[if IE]noscript id=flash1![endif]--object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase= http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#versio n=6,0,0,0 width=435 height=270 id=flash_home align=middle param name=allowScriptAccess value=sameDomain / param name=movie value=flash.swf / param name=loop value=false / param name=quality value=best / param name=bgcolor value=# / embed src=flash.swf loop=false quality=best bgcolor=#ff width=435 height=270 name=flash_home align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer; / /object!--[if IE]/noscriptscript language=JavaScript type=text/javascriptwriteExCtrl('flash1')/script![endif]-- and then in an exteranl .js file: function writeExCtrl(id){ if(document.getElementById document.getElementById(id) document.getElementById(id).innerHTML){ document.write(document.getElementById(id).innerHTML.replace(/gt;/gi, '').replace(/lt;/gi, '')); } } Basically, everything is the same as it always was for every browser other than ie using the ie conditional comments, ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] New wrinkle in IE activation issue...
You need to load your flash into your HTML from an external .js file. See adobe/macormedia's site for more information. No, we all know about that. This is happening *after* using the innerHtml method to write object tags. All of the workarounds fail in some cases, apparently diue to an MS bug. ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] SharedObject folder name query
Not a high priority query but maybe someone knows the answer: On Mac OS 10.4, Flash 8 SharedObject files are stored in UserName/Library/Preferences/Macromedia/Flash Player/#SharedObjects//localhost where represents a variously named folder. Example of folder 's name are BBYLXPK3 and UTGQ8P8M. If I delete the folder Flash very kindly creates another one the next time it writes to a SharedObject BUT with a new name. The question is ... why the different name everytime? And what information does the name contain (if any)? Segar Rogers ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] offline SWF generation from XML
While not XML, here are some more open-source commandline tools which can generate swfs from plain text definition files: http://ming.sourceforge.net/ - AS1 and gfx http://www.swftools.org/swfc/swfc.html - AS1 and gfx http://mtasc.org/ - AS2 only -David R On 4/18/06, elibol [EMAIL PROTECTED] wrote: It seems like what Jesse suggested suits your need as best as atleast I know of. On 4/18/06, August Gresens [EMAIL PROTECTED] wrote: I'd like to actually write out the file and then open it later using loadMovie - or include it another file using FlashAnt (which I believe can be used to nest clips inside each other?) For example, if the XML describes the contents of a text field with markup, I'd like to generate a SWF with a text field in it, that has the markup offline using the tool rather rather than doing this on the fly at runtime. Thanks, A On 4/18/06, elibol [EMAIL PROTECTED] wrote: . On 4/18/06, JesterXL [EMAIL PROTECTED] wrote: Check out SWFMill: http://www.osflash.org/swfmill Might do what you want. - Original Message - From: August Gresens [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 18, 2006 1:00 PM Subject: [Flashcoders] offline SWF generation from XML Quick question - are there any tools that can take an XML document, parse it and generate a swf file offline? We're looking for a way to avoid doing this parsing during runtime. Do JSFL, ANT or other tools have this capabiltiy? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Testing ExternalInterface on Windows for me.
Mark, Ryan, Thanks for the input. I looked at that other guys ExternalInterface testing. I switched all of my code to follow what he is doing. I am still getting IE errors. I can't figure out what is going on. IE doesn't like calling methods on the flash object for some reason. When it calls ( flashMovieScroller.gotoStepFromJS(num) ) it errors out. Why would it be doing that for my methods and not Geoff's methods. Weird!. take a look again at this. Look at the update JS and HTML compared to that other guys. See if there's anything you notice that might be wrong. http://www.smithaaronlee.net/jstest/ImgScrollerTEST333.html The only thing I haven't tried yet was rearranging the flash objects on the page to see if that helps. I guess i'll give that a try thanks for taking the time. -Smith On Apr 18, 2006, at 12:46 PM, Mark Llobrera wrote: Ryan: When testing locally with Windows/IE, you can set allowScriptAccess to 'always' - it'll save you having to upload to a server. Aaron: I was stalled with ExternalInterface myself yesterday; I had the hardest time getting it to work on the Windows/IE combo. The included samples from Macromedia didn't work, and several others on the web didn't work either. Other browsers (Firefox, Safari/Firefox on the Mac) worked fine. Since I was using flashobject to embed the swf, I wandered over to Geoff Stearns's blog and found this example: http://blog.deconcept.com/code/externalinterface.html. I eventually ended up taking that html (since it worked on Win/IE) and using it as the basis for my html page, just so I could figure out what was wrong. I found two things different between my page that didn't work and the deconcept example: If you look at the code on that page the reference to the flash movie isn't initialized until the entire page is loaded. That would be the first place I would look. The second thing I learned yesterday (and this is where it starts to devolve into voodoo) is that the order of items on the page matters greatly (but seemingly only on Win/IE). I was calling a flash movie from a javascript function triggered by a form button (http://www.dirtystylus.com/sandbox/feedroom/filebrowser/ file_browser.html - an attempt to feed an flv on a local filesystem to a video object). When the form was placed before embedding the swf, it didn't work on Win/IE. As soon as I moved the form after the embedded swf in the html code, it worked. Extremely weird. -Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ryan Potter Sent: Tuesday, April 18, 2006 3:19 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Testing ExternalInterface on Windows for me. I get the same as you. I looked at the external interface code that I have and the only difference I can see is I have swLiveConnect set to true but I don't think that is it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:46 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. Yes I tried it out on yours and my server. works just fine. Now have a look at this. on Firefox and IE: ( http://www.smithaaronlee.net/ jstest/ImgScrollerTEST.html ) It works in firefox like it should. But in IE it doesn't work completely. I'm having troubles figuring out what is wrong in IE, IE throws errors when you click on a step button. Just viewsource to see the JS. this is what it is supposed to do: when you click a 'step' button it reloads different thumbnails in the scroller piece. when you click on a thumbnail it communicates through js to the other flash piece to load a larger img. On Apr 18, 2006, at 11:29 AM, Ryan Potter wrote: I tested it and it works. It is the testing locally issue. Here is your code on a server: http://www.thoughtwillrise.com/flash/exttest/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. ok, yeah I wonder if thats the issue (local). I was just testing it locally. I'll try it on a server. On Apr 18, 2006, at 11:17 AM, Ryan Potter wrote: Did you upload it to a server and test it or just do it locally? It doesn't work for me if it is local but it works like a champ when uploaded and I am on windows too. I will look at your source. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:12 PM To: Flashcoders mailing list Subject: [Flashcoders] Testing ExternalInterface on Windows for me. I am at work right now. And we only have one windows machine. We are using some ExternalInterface functionality in one of our projects. It's not working on out windows
Re: [Flashcoders] RE:Flashcoders] Extending Array Question
Another solution: // ActionScript 2.0 Class Definition: com/ArrayExtension.as dynamic class com.ArrayExtension extends Array { function ArrayExtension() { if (arguments.length == 1 !isNaN(arguments[0])) { this.length = arguments[0]; } else { this.push.apply(this, arguments); } } } // fla for Testing // Frame Action import com.ArrayExtension; var arEx0:ArrayExtension = new ArrayExtension(one, two, three); trace([arEx0.length, arEx0]); // Output: 3,one,two,three var arEx1:ArrayExtension = new ArrayExtension(3); trace([arEx1.length, arEx1]); // Output: 3,undefined,undefined,undefined // [Debug] [List Variables]: Variable _level0.arEx0 = [Object #3] [ 0:one, 1:two, 2:three ] Variable _level0.arEx1 = [Object #4] [] _ Mike Britton wrote: class com.ArrayExtension extends Array { public function ArrayExtension() { super() var argString = arguments[0].split(,); for(var i=0; i argString.length; i++) push(argString[i]); } } Usage: var arEx = new ArrayExtension(one,two,three); trace(arEx.length); Good luck, Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] images not loading on japanese site
check out these two urls: http://steve.buzznet.com/user/syndflash/ - US site (works) http://steve.buzznet.jp/user/syndflash/ - Japanese Site (doesn't work) the sites are pulling in an rss feed, http://steve.buzznet.com/user/rss10.xml http://steve.buzznet.jp/user/rss10.xml I added the domain to the System.security.allowDomain() list but it didn't seem to help it. The cross domain file is allowing all domains. Here's wat i have for the system.security call: System.security.allowDomain(img.buzznet.com, *.buzznet.com, buzznet.com,*.buzznet.jp,buzznet.jp); im not actually compiling the swfs and uplaoding on this one, so im not getting a chance to really see whats going on, but so far it looks like the rss feed is not being read in on the japanese site. anyone know why this would be, if both domains are set up exctly the same? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com