[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] good OOP way to re-assign class to clip
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? > > > > > > > > --- Alain Rousseau wrote: > > I wasn??t sure, that??s why I proposed 2 ways, but I just > checked and neither > > will let you redefine the class associated with a > movieclip. So I guess it??s > > back to square one. > > So far you have to create an new instance for the class you > want to load > > using Object.registerclass and attachMovie. I can??t think > of any other way > > right now. > > > > I know it??s not what you had in mind, but maybe someone > else can think of > > something or try something out. > > ___ > 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] getURL from Windows Projector breaks in Firefox
Thanks, Anggie. I've added my observations to the report on Bugzilla. -Marc At 07:44 PM 4/17/2006, you wrote: Hi Marc, It's a bug in FF that hasn't been fixed yet. https://bugzilla.mozilla.org/show_bug.cgi?id=325014 -- 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 Marc Hoffman wrote: Anyone else have this problem? I have a Windows projector on a CD. A button onRelease calls getURL("index.html"), where index.html is also on the CD (same location as the projector). If I.E. is the default browser, index.html opens fine in it. If Firefox is the default browser, the first click opens one or two browser tabs that don't find the file. A second click opens another browser tab that correctly opens index.html. Clues? Solutions? thanks, Marc ___ 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] 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? > > > > --- Alain Rousseau wrote: > I wasn??t sure, that??s why I proposed 2 ways, but I just checked and neither > will let you redefine the class associated with a movieclip. So I guess it??s > back to square one. > So far you have to create an new instance for the class you want to load > using Object.registerclass and attachMovie. I can??t think of any other way > right now. > > I know it??s not what you had in mind, but maybe someone else can think of > something or try something out. ___ 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] getURL from Windows Projector breaks in Firefox
Hi Marc, It's a bug in FF that hasn't been fixed yet. https://bugzilla.mozilla.org/show_bug.cgi?id=325014 -- 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 Marc Hoffman wrote: Anyone else have this problem? I have a Windows projector on a CD. A button onRelease calls getURL("index.html"), where index.html is also on the CD (same location as the projector). If I.E. is the default browser, index.html opens fine in it. If Firefox is the default browser, the first click opens one or two browser tabs that don't find the file. A second click opens another browser tab that correctly opens index.html. Clues? Solutions? thanks, Marc ___ 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
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 procedural, not object oriented. The cues for this are the endless conditional statements. A good, encapsulated architecture can greatly minimize these...')" The code is object oriented - that comment was inaccurate. I think it could be *more* object oriented, if that makes sense... In other words, I would prefer it if it were refactored in a way that further encapsulated the various tasks it performs. As far as the conditional statements are concerned, the red flag for me is seeing conditionals that include seemingly unlike things: if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){ I'm sure all of that makes sense when you're the guy who wrote the code. And of course, I can take the time to figure it out so it makes sense to me as well. I just think that, for my taste, this file is trying to do too much. I'd rather the functionality were broken out into separate classes. I alluded to the Strategy pattern only because I use it all the time. It forces me to make small classes that really only do one thing. That style of coding used to annoy me, but I've learned to love it because once you understand how things fit together, everything's incredibly easy to modify. And it can eliminate the need for lots of conditional checks that are otherwise unavoidable. I still think Elibol said it extremely well: 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." It all comes down to a matter of taste. For better or worse, my code looks more like Java than it used to. (I think too much Java is a disease, but there's a lot that can be learned from Java or C#). I know Javascript isn't Java, and it isn't even Actionscript. So it's unfair of me to complain about it. The javascript that I do like typically resides in larger JS frameworks, like DOJO. Fram
Re: [Flashcoders] Q: Flash Object vs UFO for flash detection and as eolas workaround
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 procedural, not object oriented. The cues for this are the endless conditional statements. A good, encapsulated architecture can greatly minimize these...')" The code is object oriented - that comment was inaccurate. I think it could be *more* object oriented, if that makes sense... In other words, I would prefer it if it were refactored in a way that further encapsulated the various tasks it performs. As far as the conditional statements are concerned, the red flag for me is seeing conditionals that include seemingly unlike things: if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){ I'm sure all of that makes sense when you're the guy who wrote the code. And of course, I can take the time to figure it out so it makes sense to me as well. I just think that, for my taste, this file is trying to do too much. I'd rather the functionality were broken out into separate classes. I alluded to the Strategy pattern only because I use it all the time. It forces me to make small classes that really only do one thing. That style of coding used to annoy me, but I've learned to love it because once you understand how things fit together, everything's incredibly easy to modify. And it can eliminate the need for lots of conditional checks that are otherwise unavoidable. I still think Elibol said it extremely well: 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." It all comes down to a matter of taste. For better or worse, my code looks more like Java than it used to. (I think too much Java is a disease, but there's a lot that can be learned from Java or C#). I know Javascript isn't Java, and it isn't even Actionscript. So it's unfair of me to complain about it. The javascript that I do like typically resides in larger JS frameworks, like DOJO. Frameworks allow for more encapsulation, more OOP, listeners, and all the stuff that I've come to rely on in Actionscript. But FlashObject isn't a framework, and it shouldn't be measured by those standards. FlashObject is a tool that fills a very important niche and does so extremely well. I hope we can now end this thread... If you disagree with me (and it seems most people do!), it's just one guy's opinion :-) Jim Kremens ___ 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] Running FSCOMMAND EXEC with switches
You can execute a bat file, and put the switches and the command in the bat file, if i'm not mistaken, right? On 4/18/06, Tom Haschenburger <[EMAIL PROTECTED]> wrote: > Can you send switches to the command line with the executable using > FSCOMMAND EXEC function? > > button00_btn.onRelease = function(){ > fscommand ("exec", "winrar.exe a > g:\camrav40\backups\_TEST_04-11-06beforenp.zip g:\camrav40\camdata\*.dat > g:\camrav40\camdata\*.tag"); > } > > Thanks, > T > ___ > 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 > -- Ramon Miguel M. Tayag Managing Director Quirkworks ___ 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] Running FSCOMMAND EXEC with switches
A SWF file can't write a text file by itself. If you use a SWF to EXE tool you can write whatever you want to a text file. And they will probably have the functionality to do what you were looking to have the batch file do for you. Derek Vadneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Haschenburger Sent: Monday, April 17, 2006 5:26 PM To: Flashcoders mailing list Subject: SPAM-LOW: RE: [Flashcoders] Running FSCOMMAND EXEC with switches Is it possible to write text to a text file with out the variable names "&monthNames="? My thought is to write to a text file(bat file) and then execute the .bat file. Thanks,T ___ 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
> 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, encapsulated architecture can greatly minimize > >> these...") > >> > >> I say this: WTF? FlashObject is about os
Re: [Flashcoders] New wrinkle in IE activation issue...
I'll second the 'disable script debugging' issue... you should make sure that the box is checked and quit/restart the browser window. A reboot wouldn't hurt, but it shouldn't be necessary. On Apr 17, 2006, at 7:33 PM, ryanm wrote: Just for fun, you might want to see if this is limited to Flash, or if it affects other ActiveX controls. Unfortunately, I can't think of any other ActiveX controls on public sites offhand, but I ran into an issue today with a rich text editor that's an ActiveX control. Not limited to flash, all activex controls have this problem. 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] Q: Flash Object vs UFO for flash detection and as eolas workaround
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. 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. 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? 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. 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, encapsulated architecture can greatly minimize these...") I say this: WTF? FlashObject is about os OOP as you can get with Javascript. (and where are the 'endless conditional statements' you speak of?) It's not some compiled language that gets compressed and translated into machine language. FlashObject is also meant to be a *very* small file with one specific task. Comparing it to dojo or other js libraries makes absolutely no sense to me at all. That said, it's very easy to add more functionality to FlashObject because it *is* in fact written in an object oriented fashion (in the style of ECMA script, using prototype). I've written an extension for it for Flash/JS communication and it works great - I haven't officially released it yet, but if anyone is interested in seeing how to do this, you are welcome to grab the source code here: example page: http://blog.deconcept.com/code/intkit/fo_integrationkit.html source: http://blog.deconcept.com/code/intkit/fo_integrationkit.zip 2) elibol and I have discussed the ExpressInstall functionality in FlashObject very thoroughly, and he has a lot of very good points and had a couple of requests to make using ExpressInstall a bit easier, but I decided to not change how it works because I like giving people the choice of custom upgrade messages. During the exc
Re: [Flashcoders] AS2: Get Instance Name of Class?
On 4/7/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote: All, Is there a way to get the instance name of a class from within the class? I need to refer to a variable by its absolute targetPath, but the instance name of the class is not known until runtime. class Foo { var results:String; var resultVar:String; function foo () { this.resultVar = "_level0." + instanceName? + ".results"; } } // example myFoo = new Foo(); myFoo[resultVar] = "Bar"; How can I get instanceName? Thanks! If your class inherits from MovieClip you get _name for free. class Ball extends MovieClip { functuon ident():String { return "[Ball] at " + _name; } } ___ 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
Geoff Stearns wrote: 3) Kevin suggested using his Player.js script - while his other stuff is really awesome (HistoryKeeper, dang) the Player.js code doesn't support all the stuff that FlashObject or UFO provide. So really I think that Kevin should just use FlashObject ;) I missed the requirement for Express Install in the OP, or I wouldn't have said anything. My script doesn't have the same level of functionality, and hasn't been tested anywhere near as thoroughly. I've concentrated mostly on unFocus.History, and the Communication stuff to be honest, as those were the two that were needed to be done for history functionality (and with ExternalInterface my communication stuff will not be useful for much longer). I use unFocus.Flash.Player and unFocus.Flash.HTML mostly for testing out a new javascript technique here an there, and when I just want something to mess around with. Had I found either FlashObject or UFO or had Flash JS Integration kit been around when I started unFocus.History, which was years ago now (back when AJAX was a dish cleanser), I might have just used FlashObject, or UFO as a base to create unFocus.History (which is the only reason I started making Flash.HTML, Flash.Player, Flash.Communicator and all the rest anyway). I have nothing against those scripts, and if I need to do some of the stuff they do (like Express Install) I might even just use those scripts (Express Install looks complicated to implement). Actually, one of the reasons that my scripts are somewhat modular, is that I wanted to make sure that you could use unFocus.History (I got rid of the Keeper part) with existing scripts that are out there, since they are so popular (and useful). In fact one of the first sites to use unFocus.History.Keeper (I added that namespace emulation stuff after I saw the technique in FlashObject incidentally ;-) ), uses FlashObject to do detection and output html, and uses (if I'm not mistaken) ExternalInterface for JS<->AS communication, even though I have an alternative solution for all of that in my own library. So there's my two cents. :-) Kevin N. ___ 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
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, encapsulated architecture can greatly minimize > these...") > > I say this: WTF? FlashObject is about os OOP as you can get with > Javascript. (and where are the 'endless conditional statements' you > speak of?) It's not some compiled language that gets compressed and > translated into machine language. FlashObject is also meant to be a > *very* small file with one specific task. Comparing it to dojo or > other js libraries makes absolutely no sense to me at all. That said, > it's very easy to add more functionality to FlashObject because it > *is* in fact written in an object oriented fashion (in the style of > ECMA script, using prototype). I've written an extension for it for > Flash/JS communication and it works great - I haven't officially > released it yet, but if anyone is interested in seeing how to do > this, you are welcome to grab the source code here: example page: > http://blog.deconcept.com/code/intkit/fo_integrationkit.html > source: http://blog.deconcept.com/code/intkit/fo_integrationkit.zip > > 2) elibol and I have discussed the ExpressInstall functionality in > FlashObject very thoroughly, and he has a lot of very good points and > had a couple of requests to make using ExpressInstall a bit easier, > but I decided to not change how it works because I like giving people > the choice of custom upgrade messages. During the exchange with him, > I did realize that forcing people to use AS2 for something like that > was a bad idea and have since changed it to a simple AS include file > instead of an AS2 class. > > As for the need to couple your Flash content with FlashObject if you > use ExpressInstall - this is just wrong - All of the scripts I've > seen that use ExpressInstall pass in the same 3 variables (and they > have to) - take any Flash movie that is set up to support > ExpressInstall and it will work with any of the other javascript > embed solutions that also support ExpressInstall. > > 3) Kevin suggested using his Player.js script - while his other stuff > is really awesome (HistoryKeeper, dang) the Player.js code doesn't > support all the stuff that FlashObject or UFO provide. So really I > think that Kevin should just use FlashObject ;) > > 4) John Grden says: > "ummm, that's the problem - no JavaScript worky - no write out object > at all = screwed. He's got a great poi
Re: [Flashcoders] New wrinkle in IE activation issue...
Just for fun, you might want to see if this is limited to Flash, or if it affects other ActiveX controls. Unfortunately, I can't think of any other ActiveX controls on public sites offhand, but I ran into an issue today with a rich text editor that's an ActiveX control. Not limited to flash, all activex controls have this problem. 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
RE: [Flashcoders] External Interface and IE
You need to CTRL + click to activate the link in IE with service pack 2. This is the only 'workaround' I found and the best I could do was add it to the user documentation, or link to an html page (these links work) which then included the linked content (ie .doc, .mp3) etc. I'd be interested to know if anyone found a real workaround for this? Alison -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Asai Sent: Friday, May 19, 2006 8:56 AM To: Flashcoders mailing list Subject: [Flashcoders] External Interface and IE A while ago I was coding a pop up for a podcast using the Flash 8 external interface class. While it worked fine in Firefox, but IE blocked it completely. Is there any way around this? Is it an IE paranoia thing? I think I turned off all the security settings in IE and it still wouldn't work. Any insights? Thanks --asai ___ 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 ** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ** ___ 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...
Sounds like the debugging option in IE/Win: "External script technique does not work when the 'Disable Script Debugging (Internet Explorer)' check box is cleared. Microsoft is investigating this problem and plans to fix it in a future cumulative update." http://support.microsoft.com/kb/912945/en-us The problem persists even with those boxes checked, unless I need to reboot rather than simply closing all browsers (including checking task list for unterminated iexplore.exe processes). 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
Re: [Flashcoders] New wrinkle in IE activation issue...
ryanm wrote: > ... [all SWFs in IE/Win require "click to activate" ] Sounds like the debugging option in IE/Win: "External script technique does not work when the 'Disable Script Debugging (Internet Explorer)' check box is cleared. Microsoft is investigating this problem and plans to fix it in a future cumulative update." http://support.microsoft.com/kb/912945/en-us 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] New wrinkle in IE activation issue...
> 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. Just for fun, you might want to see if this is limited to Flash, or if it affects other ActiveX controls. Unfortunately, I can't think of any other ActiveX controls on public sites offhand, but I ran into an issue today with a rich text editor that's an ActiveX control. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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] New wrinkle in IE activation issue...
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] External Interface and IE
A while ago I was coding a pop up for a podcast using the Flash 8 external interface class. While it worked fine in Firefox, but IE blocked it completely. Is there any way around this? Is it an IE paranoia thing? I think I turned off all the security settings in IE and it still wouldn't work. Any insights? Thanks --asai ___ 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
Also, I forgot to include this link: For more info on why using FlashObject makes more sense than not, and some philosophical thought* on Flash embedding in general, read this: http://blog.deconcept.com/2006/03/13/modern-approach-flash-seo/ * i said 'philosophical thought' while talking about web development. ha! On Apr 17, 2006, at 6:17 PM, Geoff Stearns 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, encapsulated architecture can greatly minimize these...") I say this: WTF? FlashObject is about os OOP as you can get with Javascript. (and where are the 'endless conditional statements' you speak of?) It's not some compiled language that gets compressed and translated into machine language. FlashObject is also meant to be a *very* small file with one specific task. Comparing it to dojo or other js libraries makes absolutely no sense to me at all. That said, it's very easy to add more functionality to FlashObject because it *is* in fact written in an object oriented fashion (in the style of ECMA script, using prototype). I've written an extension for it for Flash/JS communication and it works great - I haven't officially released it yet, but if anyone is interested in seeing how to do this, you are welcome to grab the source code here: example page: http://blog.deconcept.com/code/intkit/fo_integrationkit.html source: http://blog.deconcept.com/code/intkit/fo_integrationkit.zip 2) elibol and I have discussed the ExpressInstall functionality in FlashObject very thoroughly, and he has a lot of very good points and had a couple of requests to make using ExpressInstall a bit easier, but I decided to not change how it works because I like giving people the choice of custom upgrade messages. During the exchange with him, I did realize that forcing people to use AS2 for something like that was a bad idea and have since changed it to a simple AS include file instead of an AS2 class. As for the need to couple your Flash content with FlashObject if you use ExpressInstall - this is just wrong - All of the scripts I've seen that use ExpressInstall pass in the same 3 variables (and they have to) - take any Flash movie that is set up to support ExpressInstall and it will work with any of the other javascript embed solutions that also support ExpressInstall. 3) Kevin suggested using his Player.js script - while his other stuff is really awesome (HistoryKeeper, dang) the Player.js code doesn't support all the stuff that FlashObject or UFO provide. So really I think that Kevin should just use FlashObject ;) 4) John Grden says: "ummm, that's the problem - no JavaScript worky - no write out object at all = screwed. He's got a great point that we've been dealing with as well. We are using the FlashObject code, but if a user has JavaScript disabled, there ain't no party. So, flash dectection is a bit more than just FlashObject." and "You don't just go and tell a fortune 500 company "um, sorry that it failed on your lame computer at home." To this I say: Dang, man. I work with those same fortune 500 companies (I work at Schematic - we use FlashObject in all of our Flash sites) and we never have issues with it. Assuming you create your pages to degrade gracefully (which FlashObject encourages), your users will be just fine if they don't have Flash or JS installed. I personally don't feel that embedding Flash *without* JS an option anymore. With all the different vesions of the Flash player out there, and all the benefits you get from using Javascript in search engines, it seems like a no brainer to use Javascript. If you have doubts about using FlashObject on a 'big' site, then you can rest assured that it's already being used an many many huge websites. Like what? oh how about: windows.com, youtube.com, and the library of c
[Flashcoders] Q: Flash Object vs UFO for flash detection and as eolas workaround
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, encapsulated architecture can greatly minimize these...") I say this: WTF? FlashObject is about os OOP as you can get with Javascript. (and where are the 'endless conditional statements' you speak of?) It's not some compiled language that gets compressed and translated into machine language. FlashObject is also meant to be a *very* small file with one specific task. Comparing it to dojo or other js libraries makes absolutely no sense to me at all. That said, it's very easy to add more functionality to FlashObject because it *is* in fact written in an object oriented fashion (in the style of ECMA script, using prototype). I've written an extension for it for Flash/JS communication and it works great - I haven't officially released it yet, but if anyone is interested in seeing how to do this, you are welcome to grab the source code here: example page: http://blog.deconcept.com/code/intkit/fo_integrationkit.html source: http://blog.deconcept.com/code/intkit/fo_integrationkit.zip 2) elibol and I have discussed the ExpressInstall functionality in FlashObject very thoroughly, and he has a lot of very good points and had a couple of requests to make using ExpressInstall a bit easier, but I decided to not change how it works because I like giving people the choice of custom upgrade messages. During the exchange with him, I did realize that forcing people to use AS2 for something like that was a bad idea and have since changed it to a simple AS include file instead of an AS2 class. As for the need to couple your Flash content with FlashObject if you use ExpressInstall - this is just wrong - All of the scripts I've seen that use ExpressInstall pass in the same 3 variables (and they have to) - take any Flash movie that is set up to support ExpressInstall and it will work with any of the other javascript embed solutions that also support ExpressInstall. 3) Kevin suggested using his Player.js script - while his other stuff is really awesome (HistoryKeeper, dang) the Player.js code doesn't support all the stuff that FlashObject or UFO provide. So really I think that Kevin should just use FlashObject ;) 4) John Grden says: "ummm, that's the problem - no JavaScript worky - no write out object at all = screwed. He's got a great point that we've been dealing with as well. We are using the FlashObject code, but if a user has JavaScript disabled, there ain't no party. So, flash dectection is a bit more than just FlashObject." and "You don't just go and tell a fortune 500 company "um, sorry that it failed on your lame computer at home." To this I say: Dang, man. I work with those same fortune 500 companies (I work at Schematic - we use FlashObject in all of our Flash sites) and we never have issues with it. Assuming you create your pages to degrade gracefully (which FlashObject encourages), your users will be just fine if they don't have Flash or JS installed. I personally don't feel that embedding Flash *without* JS an option anymore. With all the different vesions of the Flash player out there, and all the benefits you get from using Javascript in search engines, it seems like a no brainer to use Javascript. If you have doubts about using FlashObject on a 'big' site, then you can rest assured that it's already being used an many many huge websites. Like what? oh how about: windows.com, youtube.com, and the library of congress: http://www.loc.gov/bookfest/ (and thousands more) -- Ok, I think I've covered most of the issues - if anyone wants to discuss this further, or has suggestions on how to make FlashObject better (or just feature requests), you are welcome to join the mailing list I have set up, which is here: http://lists.deconcept.com/listinfo.cgi/flashobject-deconcept.com (or of
[Flashcoders] getURL from Windows Projector breaks in Firefox
Anyone else have this problem? I have a Windows projector on a CD. A button onRelease calls getURL("index.html"), where index.html is also on the CD (same location as the projector). If I.E. is the default browser, index.html opens fine in it. If Firefox is the default browser, the first click opens one or two browser tabs that don't find the file. A second click opens another browser tab that correctly opens index.html. Clues? Solutions? thanks, Marc ___ 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
you should write them yourself, even if a generation tool exists i would not recomend anybody to do this. 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 > -- j:pn http://www.lennel.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] Requesting reccomendation for testing already written classes
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
Re: [Flashcoders] Talking to Flash from JavaScript
works fine for me, in FF 1.5 Weldon MacDonald ___ 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] Running FSCOMMAND EXEC with switches
Is it possible to write text to a text file with out the variable names "&monthNames="? My thought is to write to a text file(bat file) and then execute the .bat file. Thanks,T > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Derek Vadneau > Sent: Monday, April 17, 2006 2:10 PM > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] Running FSCOMMAND EXEC with switches > > In Flash Player 5, yes. Anything afterwards, no. It was considered a > security risk. > > Your only choices are to execute an EXE for a specific task, or create an > EXE that can communicate with the SWF by other means. For instance, you > could wrap an EXE around a SWF that communicates via LocalConnection. > > Other than that your next best choice is to use one of the SWF to EXE > tools. A few have been mentioned here before so I won't reiterate unless > you can't find them in the archives. > > > Derek Vadneau > > - Original Message - > From: "Tom Haschenburger" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" > Sent: Monday, April 17, 2006 3:54 PM > Subject: SPAM-LOW: [Flashcoders] Running FSCOMMAND EXEC with switches > > > Can you send switches to the command line with the executable using > FSCOMMAND EXEC function? > > button00_btn.onRelease = function(){ > fscommand ("exec", "winrar.exe a > g:\camrav40\backups\_TEST_04-11-06beforenp.zip g:\camrav40\camdata\*.dat > g:\camrav40\camdata\*.tag"); > } > > Thanks, > T > > > ___ > 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] New IE blocking Flash. Automated solution?
I know I can output the HTML required to embed by Flash animation. Is there or has someone created an automated way to do the same for writing from aremote .js file? It don't think it would be hard to do... john- ___ 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] problems with unc paths in flash 8
We were having some weird issues with FLV files not loading either locally or over the network or via a URL. We were able to discover that putting in an abolute file path would work. Problem is when we test local verse over network verse via URL the paths would be different. Thus I wrote a little JS script that would return the absolute path to the current SWF no matter what context. Then just append on any relative pathing. See below for script. example: = .fla = //pull in full path name of FLV var thisPath:String; thisPath = String(flash.external.ExternalInterface.call("getThisPath")); thisPath += "myFLV.flv"; == I hope this is helpful. = .js == function getThisPath(){ var thisPathName = location.pathname; var tempArray = thisPathName.split("/"); var del = "/"; if(tempArray[0] == "http:"){ thisPathName = ""; } else { del = "\\"; tempArray = thisPathName.split(del); thisPathName = ""; if(tempArray[0] != "file:"){ thisPathName = "file://" } } for(var n = 0; n < tempArray.length-1; n++){ thisPathName += tempArray[n] + del; } return thisPathName; } Charles P. On 4/17/06, Thomas Wester <[EMAIL PROTECTED]> wrote: > > UNC: Universal Naming Convention: \\mysever\myshare\myfile.flv > > I've had problems with this and never found a solution/fix/workaround. I > would love to hear if somebody has found a security setting that works. > It used to work in Flash 7. > > -Thomas > > Thomas Wester > Programmer > www.secondstory.com > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of John > Dowdell > Sent: Monday, April 17, 2006 1:02 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] problems with unc paths in flash 8 > > Scott Brantley wrote: > > Does anyone have any idea how to get around Flash's new securities > > when playing an flv over a UNC? It works just fine in Flash 7. So the > > problem has to be with the new securities. > > "UNC" is undefined, and initial web searches decode it as "University of > North Carolina" which I assume is not at issue here, so it's hard for me > to answer directly. > > But I do know that for the answerable question "What changed with > security in Flash Player 8?" that resources are available with search > term "flash player 8 security". Full-domain-name matching is one of the > frequent catches, if that context is of help in this case. > > 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 > ___ > 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] problems with unc paths in flash 8
With the way the client wants this app set up, there will be no browser involved. Basically the interface will be a flash 7 (I wish 8) exe that people in the company will run on their computers at work (around the country). The exe will get UNC paths from a database and use those to play the flvs within their LAN. Basically the app is video heavy! So they don't want to install the videos and so forth on each of the computers. They can't play them over the net either because they weigh so much. There are also security issues they have with internet -- so that is most definitely out of the question with them. My fellow programmers and I have read every bit of documentation out there on all the new flash 8 security stuff. We didn't find anything. Doesn't mean there wasn't something there. I was recommended to this discussion list by a friend and I wanted to see if anybody here knows anything. Like I said it works in Flash 7 exe, so I do have a work around. I just really want to use the new Flash 8 components. Thanks, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: Monday, April 17, 2006 4:31 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] problems with unc paths in flash 8 Scott Brantley wrote: > That is exactly what I'm referring to -- Universal Naming Convention So, is the question something about accessing local files while in a browser, something along those lines? If so, then have you checked the docs on the changes in FP8, as referenced in the previous post? 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 ___ 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] Active X and Microsoft IE ...
Dave Mennenoh wrote: How to utilize the JavaScript fix when you're using FlashVars set by PHP? Is it possible for JS to retrieve data from PHP session variables? I've been doing some research this am but haven't been too lucky yet. I'm not sure I'm seeing this correctly yet... would I be on the right path if I understand this as something like "If I'm writing my OBJECT/EMBED tags from an external JavaScript file, then how can I have PHP pass certain values to my HTML page so that I can add these to the FLASHVARs parameter in the dynamically written OBJECT and EMBED tags?" If so, then it seems one approach would be to have your server's PHP engine dynamically write the .JS file which dynamically writes the HTML markup which then invokes the Flash Player. Another approach might be to instead have the PHP dynamically write some values into the HTML, which are then passed to a generic external .JS file which incorporates these when writing the markup which invokes the plugin. Another approach entirely, assuming the data lives on your server, would be to have the Flash applet itself call back to your server for the customization data, assuming you don't need to act upon that data immediately upon initial display. Are any of these close to the types of things you're working with here...? 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] problems with unc paths in flash 8
Hi John, Imagine a flv video player exported as a Flash Projector. The player loads "MyFlv.flv" without any extra path info. Flash will default to search for the flv file in the same directory as the .exe. Running the .exe locally this works, the flv streams: c:\test\MyPlayer.exe c:\test\MyFlv.flv Running 'over the network' (from a UNC path) this breaks, the flv with not stream: \\myserver\myshare\MyPlayer.exe \\myserver\myshare\MyFlv.flv Thanks, -Thomas Thomas Wester Programmer www.secondstory.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: Monday, April 17, 2006 1:31 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] problems with unc paths in flash 8 Scott Brantley wrote: > That is exactly what I'm referring to -- Universal Naming Convention So, is the question something about accessing local files while in a browser, something along those lines? If so, then have you checked the docs on the changes in FP8, as referenced in the previous post? 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 ___ 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 EventDispatcher in AS 1.0 code
I can't really compile it using the AS 2.0 setting. The code base is huge and it would create a lot of compiler errors and ripple effects throughout the system. Alas, compiling it strictly with AS 1.0 is the requirement here. Randy Troppmann <[EMAIL PROTECTED]> wrote: I am a big fan of EventDispatcher! If you are using Flash MX2004 or later you can use AS2.0 (class based or not) to code. It all compiles down to AS1 code within the swf when you publish. You can set the target flash player in publish settings to an earlier version to accomodate the most users (Flash 8 player sits around 60% acceptance at this time I believe). Some new features and classes are not backwards compatible, and Flash will warn you of these when you publish. You are safe if you want to write your application using an AS2.0 class based framework and publish back to Flash 6 compatibility. This includes EventDispatcher. Randy Troppmann On 4/17/06, Boon Chew wrote: > Hi all, I recently have had to work on some AS1.0 code (a requirement is that > the code must be published with AS 1.0 compiler). Since EventDispatcher is > not available in AS 1.0, I modified mx.events.EventDispatcher to work with in > AS 1.0 mode, and make EventDispatcher available in global namespace, since > it's not intrinsic like AsBroadcaster is. I have been able to use > EventDispatcher like I can in 2.0. Curious though, is there any downside or > potential caveat to using EventDispatcher in strictly AS 1.0 that I should be > aware of? > > Thanks much. > > > > > > > > - > Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! > Messenger with Voice. > ___ > 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 - New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. ___ 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] problems with unc paths in flash 8
Scott Brantley wrote: That is exactly what I'm referring to -- Universal Naming Convention So, is the question something about accessing local files while in a browser, something along those lines? If so, then have you checked the docs on the changes in FP8, as referenced in the previous post? 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
[Flashcoders] Timeline coding
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. --- ___ 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 targeting Quicktime to open in QT Player
On Apr 17, 2006, at 4:05 PM, John Dowdell wrote: Does this become "How does Apple recommend showing a QuickTime video in the standalone QuickTime Player (if available), rather than a new browser window?"? or...? Not quite. It's pretty straight forward to do that. Apple has a set of javascript QT object functions that will write an XHTML or HTML tag to your page with the proper information in the embed and object params. One of the properties is "target," which when set to "Quicktime Video Player" will automatically launch the Quicktime application to play the URL provided in the embed tag. The problem is two-fold here, and neither of which I can figure out: 1. Use a getURL call to call a javascript function without loading up a new page. For some reason, no matter what I do, getURL will always change the browser page (ie, it changes to a blank page removing the content you were looking at). I have no idea why it does this. 2. Call the javascript function to actually write the XHTML/HTML object immediately after the flash embed, so that this will work properly. With the javascript function call on a button in an HTML/XHTML page, this is no problem - as the script for the button is replaced with the embed tag. Not so with Flash. Delivering the video as Flash is not really an option, because it's no where near as good a the H.264 encoded QT video that I want to provide. I just wish there were an easier solution. cheers, jon Jon Bradley Animation / Interactive / Visual FX Post Central, Inc. [EMAIL PROTECTED] On Apr 17, 2006, at 4:05 PM, John Dowdell wrote: [I missed this new thread at first, because it was listed as part of the "Talking to Flash from JavaScript" thread. Using "New" for a new message keeps new topics from being hidden within old topics, as occurs when using "Reply-To" in the emailer.) Does this become "How does Apple recommend showing a QuickTime video in the standalone QuickTime Player (if available), rather than a new browser window?"? or...? 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 ___ 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] problems with unc paths in flash 8
UNC: Universal Naming Convention: \\mysever\myshare\myfile.flv I've had problems with this and never found a solution/fix/workaround. I would love to hear if somebody has found a security setting that works. It used to work in Flash 7. -Thomas Thomas Wester Programmer www.secondstory.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: Monday, April 17, 2006 1:02 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] problems with unc paths in flash 8 Scott Brantley wrote: > Does anyone have any idea how to get around Flash's new securities > when playing an flv over a UNC? It works just fine in Flash 7. So the > problem has to be with the new securities. "UNC" is undefined, and initial web searches decode it as "University of North Carolina" which I assume is not at issue here, so it's hard for me to answer directly. But I do know that for the answerable question "What changed with security in Flash Player 8?" that resources are available with search term "flash player 8 security". Full-domain-name matching is one of the frequent catches, if that context is of help in this case. 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 ___ 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] problems with unc paths in flash 8
That is exactly what I'm referring to -- Universal Naming Convention Thanks, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, April 17, 2006 4:08 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] problems with unc paths in flash 8 Could he be referring to the UNC being the Universal Naming Convention - the filepath to the FLV? Jason Merrill | E-Learning Solutions | icfconsulting.com >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of John Dowdell >>Sent: Monday, April 17, 2006 4:02 PM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] problems with unc paths in flash 8 >> >>Scott Brantley wrote: >>> Does anyone have any idea how to get around Flash's new securities when >>> playing an flv over a UNC? It works just fine in Flash 7. So the problem >>> has to be with the new securities. >> >>"UNC" is undefined, and initial web searches decode it as "University of >>North Carolina" which I assume is not at issue here, so it's hard for me >>to answer directly. >> >>But I do know that for the answerable question "What changed with >>security in Flash Player 8?" that resources are available with search >>term "flash player 8 security". Full-domain-name matching is one of the >>frequent catches, if that context is of help in this case. >> >>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 NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders@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] problems with unc paths in flash 8
> "UNC" is undefined, and initial web searches decode it as > "University of North Carolina" which I assume is not at issue > here, so it's hard for me to answer directly. Universal Naming Convention (UNC) is the syntax used to reference shared resources (filesystems, printers, named pipes) in Windows. ex: \\server\share Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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] Talking to Flash from JavaScript
http://www.permadi.com/tutorial/flashjscommand/ This example isn't working in firefox for me, although it claims to have been tested in FF. Anyone else having problems with this? Thanks, JP On 4/16/06, arturo 101 <[EMAIL PROTECTED]> wrote: > > I often use a code like this example: > http://www.permadi.com/tutorial/flashjscommand/ > > And here > > http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html > you have some methods to use with JS and actionscript. > > > - Original Message - > From: "Jon Robert" <[EMAIL PROTECTED]> > To: > Sent: Sunday, April 16, 2006 11:49 PM > Subject: [Flashcoders] Talking to Flash from JavaScript > > > Hi, > > I have a flash video playing in an HTML page. I want to be able to click a > link in the HTML (not in the movie) and have the flash video stop. What's > the best way to accomplish this? JavaScript? > > Thanks 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 > > __ Información de NOD32 1.1454 (20060321) __ > > Este mensaje ha sido analizado con NOD32 Antivirus System > http://www.nod32.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] Running FSCOMMAND EXEC with switches
In Flash Player 5, yes. Anything afterwards, no. It was considered a security risk. Your only choices are to execute an EXE for a specific task, or create an EXE that can communicate with the SWF by other means. For instance, you could wrap an EXE around a SWF that communicates via LocalConnection. Other than that your next best choice is to use one of the SWF to EXE tools. A few have been mentioned here before so I won't reiterate unless you can't find them in the archives. Derek Vadneau - Original Message - From: "Tom Haschenburger" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, April 17, 2006 3:54 PM Subject: SPAM-LOW: [Flashcoders] Running FSCOMMAND EXEC with switches Can you send switches to the command line with the executable using FSCOMMAND EXEC function? button00_btn.onRelease = function(){ fscommand ("exec", "winrar.exe a g:\camrav40\backups\_TEST_04-11-06beforenp.zip g:\camrav40\camdata\*.dat g:\camrav40\camdata\*.tag"); } Thanks, T ___ 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] Running FSCOMMAND EXEC with switches
Nope. You used to be able to sneak them in with a bit of metafied whitespace Macromedia forgot to disallow, but they plugged that hole. -Mark Hawley > > From: "Tom Haschenburger" <[EMAIL PROTECTED]> > Date: 2006/04/17 Mon PM 02:54:14 CDT > To: "Flashcoders mailing list" > Subject: [Flashcoders] Running FSCOMMAND EXEC with switches > > Can you send switches to the command line with the executable using > FSCOMMAND EXEC function? > > button00_btn.onRelease = function(){ > fscommand ("exec", "winrar.exe a > g:\camrav40\backups\_TEST_04-11-06beforenp.zip g:\camrav40\camdata\*.dat > g:\camrav40\camdata\*.tag"); > } > > Thanks, > T > ___ > 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 > -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ 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
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? -David R On 4/17/06, GregoryN <[EMAIL PROTECTED]> wrote: > Alain, > > I think you've misunderstood me. > > I already have a movie clip on the stage, which was placed by > attachMovie(), and before it was an instance in the library, > assotiated with MyClass1 . > > Then, after some things happen (e.g. user moved this clip), I wand to > assign ANOTHER class to the mentioned clip, so this very clip to > become an instance of MyClass2. > > That's why I need to RE-define the class for this clip. > > > -- > Best regards, > GregoryN > > http://GOusable.com > Flash components development. > Usability services. > > > -- Alain Rousseau wrote: > > > > You should look into this article in the FlashCoders Wiki > > > > http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo > > vieclip_without_a_symbol_in_the_library > > > > This is if you want to create dynamically a movie clip and then associate a > > class to it. > > If you allready have a moviclip that you want to use, you should look into > > Object.registerClass(³myClipID², MyClass); > > ___ > 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] problems with unc paths in flash 8
Could he be referring to the UNC being the Universal Naming Convention - the filepath to the FLV? Jason Merrill | E-Learning Solutions | icfconsulting.com >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of John Dowdell >>Sent: Monday, April 17, 2006 4:02 PM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] problems with unc paths in flash 8 >> >>Scott Brantley wrote: >>> Does anyone have any idea how to get around Flash's new securities when >>> playing an flv over a UNC? It works just fine in Flash 7. So the problem >>> has to be with the new securities. >> >>"UNC" is undefined, and initial web searches decode it as "University of >>North Carolina" which I assume is not at issue here, so it's hard for me >>to answer directly. >> >>But I do know that for the answerable question "What changed with >>security in Flash Player 8?" that resources are available with search >>term "flash player 8 security". Full-domain-name matching is one of the >>frequent catches, if that context is of help in this case. >> >>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 NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders@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 targeting Quicktime to open in QT Player
[I missed this new thread at first, because it was listed as part of the "Talking to Flash from JavaScript" thread. Using "New" for a new message keeps new topics from being hidden within old topics, as occurs when using "Reply-To" in the emailer.) Does this become "How does Apple recommend showing a QuickTime video in the standalone QuickTime Player (if available), rather than a new browser window?"? or...? 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] problems with unc paths in flash 8
Scott Brantley wrote: Does anyone have any idea how to get around Flash's new securities when playing an flv over a UNC? It works just fine in Flash 7. So the problem has to be with the new securities. "UNC" is undefined, and initial web searches decode it as "University of North Carolina" which I assume is not at issue here, so it's hard for me to answer directly. But I do know that for the answerable question "What changed with security in Flash Player 8?" that resources are available with search term "flash player 8 security". Full-domain-name matching is one of the frequent catches, if that context is of help in this case. 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
[Flashcoders] Running FSCOMMAND EXEC with switches
Can you send switches to the command line with the executable using FSCOMMAND EXEC function? button00_btn.onRelease = function(){ fscommand ("exec", "winrar.exe a g:\camrav40\backups\_TEST_04-11-06beforenp.zip g:\camrav40\camdata\*.dat g:\camrav40\camdata\*.tag"); } Thanks, T ___ 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] problems with unc paths in flash 8
Hey Everyone, Does anyone have any idea how to get around Flash's new securities when playing an flv over a UNC? It works just fine in Flash 7. So the problem has to be with the new securities. 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] [OT] FlashBelt.com
Anyone going to http://www.flashbelt.com this year??? -- Flash4Hire http://www.flash4hire.com Steve Killingbeck, MMCP, ACE Technical Director Certified Flash Developer & Designer [EMAIL PROTECTED] 612.709.6515 -- ___ 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] Active X and Microsoft IE ...
Here's a possible fix to the previous code: First of all, it works only on IE - because IE is the only one who needs this script... Second, it removes the jump problem mentioned in the previous code by adding two new style declarations to the page, and then switching between visibilities. Looking forward to your comments! (PS - the replaceFlash() function needs to be initiated on a window.onLoad() event or equivalent.) Karina New code: - //Replace all flash objects on the page with the same flash object, //by rewriting the outerHTML values //This bypasses the new IE ActiveX object activation issue replaceFlash = function(){ //Get a list of all ActiveX objects if (navigator.appName.indexOf("Microsoft") != -1){ var objects = document.getElementsByTagName('object'); for (var i=0; i")[0] + ">" tag = tag.replace ("flashInactive", "flashActive") //The outer html omits the param tags, so we must retrieve and insert these seperately var lst = d.getElementsByTagName('param') var params = "" for (var j = 0; j<=lst.length; j++) { if (lst[j] != null){ params += lst[j].outerHTML } } //Add up the various bits that comprise the object: //The tag with the attributes, the params and it's inner html var newObject = tag + params + d.innerHTML + " " //And rewrite the outer html of the tag d.outerHTML = newObject d.className = d.className.replace("flashInactive", "flashActive") } } } if (navigator.appName.indexOf("Microsoft") != -1){ document.write (".flashInactive{visibility:hidden;} .flashActive{visibility:visible;}") } ___ 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] getTimer oddness
> This feels like going back to procedural programming again and it makes > me wonder why the hell i even bother making a Bullet class in the first > place if the amount of functionality i can give a class has to be > supplied in raving great lumps like this or little to none at all. Hmmm... yeah... kinda. OOP is great -- it's easier to code in, easier to debug, easier to understand if you're looking at it, easier to re-use, easier to extend, etc, but, unfortunately, relies heavily on function calls which is the one thing you want to avoid more than anything else if you want speed in ActionScript. If you have ten bullets it doesn't really matter. If you have a few hundred it matters a great deal. What I mean is this: A Bullet class still makes sense, each instance would be a collection of properties, the state of the bullet etc. But, instead of keeping the logic in several methods you call on each bullet, have a BulletManager class that has the update(), move(), updateClip() etc methods that basically work the same like the ones you have now, but that loop through the bullets and operate on 'myBullet' instead of 'this'. If you have many bullets, then this will likely be the part that takes the longest to execute, and every little optimization you do pays off hundred fold, so being a bit anal about it can't hurt. Code that only gets executed once each frame doesn't matter much -- keep that clean, as readable as possible. But bullets are the things you'll have the most of, so this is where optimizing pays off. So, right now you have update() that you call on each bullet. update() checks if the bullet is expired, and if not, calls move(), which updates the position and then calls updateClip() which moves the clip. That's very readable and easy to follow, but once you have it working and move on to optimizing it just comment it all out (so you can go back to the easily readable and debuggable code if you want to improve it in a few months) and, yes, cram it into two lines: ... update ( time ) { // check if still alive here // and then...: this.clip._x = this.position.x += this.vector.x * time; this.clip._y = this.position.y += this.vector.y * time; } ... That's saving you two function calls per bullet and frame without too much pain. The reason why I explicitly wrote the 'this' is that, instead of calling the update() method on each bullet, you could have a BulletManager class that loops through the bullets (you have something like that anyway to call the update() method) and that would look the same inside the loop, but have 'myBullet' instead of 'this'. Third function call per bullet saved. Your handleEvent() method can well be called on the bullet like you have it now. That doesn't happen to often, so better keep it clean as it is. What bothers me, though, is the checkEvents() method you again call each frame on each bullet: private function checkEvents(){ for(var i = events.length;i--;){ if(age>=events[i].triggerTime){ handleEvent(events[i]); events.splice(i,1); } } } Depending on how many events you have cued up and if you add new ones, it could help to call sortOn( "triggerTime" ) on the events Array when you instantiate the bullet (Array.sortOn() is very fast). That way you'd only have to check the first event. If it isn't due yet, neither can be the ones after it. So, in your BulletManager loop, you could have something like this: while( myBullet.events[ 0 ].triggerTime <= age ) { myBullet.handleEvent( myBullet.shift() ); } instead of looping through all events each frame (plus a saved function call #4 on top of that). Yes, that all tastes a bit procedural. But if you can have more bullets flying around, that's a small price to pay, especially since you can optimize it after you're done debugging. While I'm at it: Your "for(var i = events.length;i--;){" loop is very fast (the fastest, AFAIK), but for the bullets I'd use an object instead of an array. for..in loops are slightly slower (contrary to popular belief), but if you reference them via an ID instead of an index you can remove them with a simple delete when they have hit instead of looping through the array and splicing them out. Also, you use "angle*180/Math.PI" -- in your updateClipRotation() method it doesn't really matter because it hardly ever gets called, but if you get used to writing "angle*(180/Math.PI)" instead the compiler will notice that (180/Math.PI) always yields the same result and optimize it for you. Hth, Mark -- http://snafoo.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:/
[Flashcoders] Dynamic DataGrid Columns
hi, anyone know how. or can point to a tutorial that: lets me create columns in my datagrid component based on number of results from my webservice then add the data. thanks ...russ ___ 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: User Group Meeting Notices Are AllowedonThisList
That's ok, an email request for the link is just as cool! - Original Message - From: "Kevin Mulvihill" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Monday, April 17, 2006 3:02 PM Subject: RE: [Flashcoders] OT: User Group Meeting Notices Are AllowedonThisList Turns out Adobe won't allow public release of the URL. Sorry. Also, a clarification on remote access: easiest thing is to just send an email to [EMAIL PROTECTED] with the subject "LAFU Breeze" to attend remotely. He'll send you the info on day of event. Thanks, Kevin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of JesterXL > Sent: Monday, April 17, 2006 11:26 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] OT: User Group Meeting Notices Are > Allowed onThisList > > You'd score a lot more points if you attached a Breeze URL so > those not located in such locales could remotely attend. ___ 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: User Group Meeting Notices Are Allowed onThisList
Turns out Adobe won't allow public release of the URL. Sorry. Also, a clarification on remote access: easiest thing is to just send an email to [EMAIL PROTECTED] with the subject "LAFU Breeze" to attend remotely. He'll send you the info on day of event. Thanks, Kevin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of JesterXL > Sent: Monday, April 17, 2006 11:26 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] OT: User Group Meeting Notices Are > Allowed onThisList > > You'd score a lot more points if you attached a Breeze URL so > those not located in such locales could remotely attend. ___ 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] April 19 Los Angeles Flash User Group Meeting (Also Available Remotely)
Wednesday April 19th is the next meeting of LAFU. This particular meeting features the Los Angeles Masters of Character Animation, who will reveal their skills and techniques in-depth! PLEASE NOTE: UNLIKE TYPICAL USER GROUP MEETINGS, THIS EVENT IS ACCESSIBLE BY ALL MEMBERS OF FLASHCODERS! Since there will be a Breeze presentation of the 4/19 meeting, if you wish to participate in this awesome animation-fest remotely, please check the URL below for info on the Breeze room, where you can RSVP for Breeze on the event site. Alternatively, you can email [EMAIL PROTECTED] with the subject "LAFU Breeze." You will receive viewing information on the day of the event. To conclude the night, we will have a special MOVIE SCREENING of "Flash Goes to Hollywood," Silvia Pompei's 28-minute documentary about the Hollywood Flash Character animation industry, including interviews with many of the top industry insiders. The meeting runs from 7:00 to 10:00 PM PST (GMT-8). If you can be there in person, you will hear the documentary on a seven speaker 1000 watt system! Details about the location, presenters, program and RSVP for remote access are available from http://www.laflash.org/community/?q=node/19. We look forward to seeing many of you there. Kevin ___ 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: User Group Meeting Notices Are Allowed on ThisList
You'd score a lot more points if you attached a Breeze URL so those not located in such locales could remotely attend. - Original Message - From: "Kevin Mulvihill" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Monday, April 17, 2006 2:22 PM Subject: [Flashcoders] OT: User Group Meeting Notices Are Allowed on ThisList Hi all, I just wanted you all to know - before you get mad at me and flame me - that I checked with the Figleaf powers-that-be and it turns out that user group meeting announcements are indeed allowed on the Flashcoders mailing list. Therefore, I plan to begin posting such announcements for the Flash user groups and associated meetings I attend that may be of interest to some of you. Please forgive me if you are not based in L.A. and/or consider these types of posts as either spam or Flash Lounge material... I am working within the guidelines of the list and others are posting similar content. Kevin ___ 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] OT: User Group Meeting Notices Are Allowed on This List
Hi all, I just wanted you all to know - before you get mad at me and flame me - that I checked with the Figleaf powers-that-be and it turns out that user group meeting announcements are indeed allowed on the Flashcoders mailing list. Therefore, I plan to begin posting such announcements for the Flash user groups and associated meetings I attend that may be of interest to some of you. Please forgive me if you are not based in L.A. and/or consider these types of posts as either spam or Flash Lounge material... I am working within the guidelines of the list and others are posting similar content. Kevin ___ 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] Increase perfomance
Hi all, I'm looking for some suggestions in order to find better perfomance in my flash application. First, I would like decrease "freeze time" when the components are instanced in stage. When maybe shared libraries a good option? When using "Export in first frame"? I have many components in stage in my application and I would like getting good perfomance. Thanks and regards. ___ 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 targeting Quicktime to open in QT Player
On Apr 17, 2006, at 10:44 AM, Jim Kremens wrote: "Could you do something with javascript and css and ExternalInterface? Something where a div of the QT player is hidden, and a javascript call would supply the embed src param and turn the visibility of the div on or something?" You can definitely do that (I've done it) but I don't think that's what he wants. He wants the file to open in the standalone Quicktime Player (right?). I can't think of how to do that... sorry. Jim Kremens I definitely want it to open in standalone QT Player, not the plugin. I think that solution could work, provided I can figure out how to call getURL without my page changing it's window location. I've not done much javascript <-> flash communication so, I have no idea why calling getURL("javascript:something") changes the browser location. So odd. I think I'll have to have the div there anyway, because the Player is opened through the "target" tag in the embed object. So, it's as if the quicktime movie is there, just not used inside the page. Argh. Jon Bradley Animation / Interactive / Visual FX Post Central, Inc. [EMAIL PROTECTED] www.cherrycrushthemovie.com On Apr 17, 2006, at 10:44 AM, Jim Kremens wrote: "Could you do something with javascript and css and ExternalInterface? Something where a div of the QT player is hidden, and a javascript call would supply the embed src param and turn the visibility of the div on or something?" You can definitely do that (I've done it) but I don't think that's what he wants. He wants the file to open in the standalone Quicktime Player (right?). I can't think of how to do that... sorry. Jim Kremens On 4/17/06, eric dolecki <[EMAIL PROTECTED]> wrote: Could you do something with javascript and css and ExternalInterface? Something where a div of the QT player is hidden, and a javascript call would supply the embed src param and turn the visibility of the div on or something? On 4/17/06, Jon Bradley <[EMAIL PROTECTED]> wrote: This one is tough. I'm trying to have Flash (version 8) call a javascript function that will write a quicktime object to the page and open this quicktime in the QT player, not in the page. I've got the usage of QT write object javascript functions (from Apple) that will write out an embed or object tag to put a quicktime in a page. Problem is that we're running a Flash 8 site that needs to target this qt object to open up in the Quicktime Player, not into an embedded movie on the page. Popup windows are a no go, so I need to figure out a way for Flash to communicate with the page to tell it to write an embed to the page and load up the QT player, without changing the current window. Unfortunately, any getURL call I make always changes the location of the page - and I can't even figure out how to keep it from changing the page location. Is this possible with an FSCommand? Has anyone ever done anything like this? Many many many thanks if anyone can help out. I've got a site I need to make live today and I have everything working fine except this (major) part. thanks, Jon Bradley Animation / Interactive / Visual FX Post Central, Inc. [EMAIL PROTECTED] www.cherrycrushthemovie.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 -- Jim Kremens ___ 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] good OOP way to re-assign class to clip
Gregory, I wasn’t sure, that’s why I proposed 2 ways, but I just checked and neither will let you redefine the class associated with a movieclip. So I guess it’s back to square one. So far you have to create an new instance for the class you want to load using Object.registerclass and attachMovie. I can’t think of any other way right now. I know it’s not what you had in mind, but maybe someone else can think of something or try something out. Good luck ! Alain From: GregoryN <[EMAIL PROTECTED]> Reply-To: Flashcoders mailing list Date: Mon, 17 Apr 2006 21:32:11 +0400 To: Flashcoders mailing list Subject: Re: [Flashcoders] good OOP way to re-assign class to clip Alain, I think you've misunderstood me. I already have a movie clip on the stage, which was placed by attachMovie(), and before it was an instance in the library, assotiated with MyClass1 . Then, after some things happen (e.g. user moved this clip), I wand to assign ANOTHER class to the mentioned clip, so this very clip to become an instance of MyClass2. That's why I need to RE-define the class for this clip. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. > -- Alain Rousseau wrote: > > You should look into this article in the FlashCoders Wiki > > http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo > vieclip_without_a_symbol_in_the_library > > This is if you want to create dynamically a movie clip and then associate a > class to it. > If you allready have a moviclip that you want to use, you should look into > Object.registerClass(³myClipID², MyClass); ___ 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 to jpg
Juan Anzaldo wrote: Sorry at runtime I need to export a vector image from flash to a jpg or gif format, is it possible? What is your end goal? If it's to have end users save out an image, you can do it by passing data to a server and having something like Batik render it to an image. If it's for personal use, just screenshot it. -Ricky ___ 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] FLV preloading question
My understanding is that preloading implies that you are loading the entire movie before playing, whereas buffering would be to load a small amount before starting a progressive stream playback. I think that by definition, if you are using progressive streaming flv's, you want to size them so that they *stream* - and other than a very short buffer, there should be no need for preloading. jimbo - Original Message - From: "Wouter Steidl" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Monday, April 17, 2006 12:12 PM Subject: [Flashcoders] FLV preloading question Hi list! I`m working on a project that uses a lot of FLVs, My issue is this: The visitor of the website is watching a flv (1st flv ) and when he is done he can choose an option that will result in showing another FLV (2nd flv). What would be the best way to preload the "2nd flv" while the user is watching the "1st FLV"? And while I`m at it, can anyone explain the difference between buffering a flv and preloading a flv ? Thx a lot! Wout ___ 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] good OOP way to re-assign class to clip
Alain, I think you've misunderstood me. I already have a movie clip on the stage, which was placed by attachMovie(), and before it was an instance in the library, assotiated with MyClass1 . Then, after some things happen (e.g. user moved this clip), I wand to assign ANOTHER class to the mentioned clip, so this very clip to become an instance of MyClass2. That's why I need to RE-define the class for this clip. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. > -- Alain Rousseau wrote: > > You should look into this article in the FlashCoders Wiki > > http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo > vieclip_without_a_symbol_in_the_library > > This is if you want to create dynamically a movie clip and then associate a > class to it. > If you allready have a moviclip that you want to use, you should look into > Object.registerClass(³myClipID², MyClass); ___ 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] optimize lineTo algorithm
> Say I have 500 points all fairly close that I'd like to reduce to fewer points. > I guess what I'm really after is an algorithm similar to the "Modify > Shape > Optimize" command in the Flash API. http://www.motiondraw.com/md/as_samples/t/LineGeneralization/demo.html hth -- Andreas Weber motiondraw.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 to jpg
with Flash8 it's possible but: "The bigger problem is that for a movie of 550x400 whe should collect 22 colors values, and converting the value into an hexadecimal string this means that the final string to send will be 132 chars long. This means a lot of data!" http://www.sephiroth.it/tutorials/flashPHP/print_screen/ - Original Message - From: "Juan Anzaldo" <[EMAIL PROTECTED]> To: Sent: Monday, April 17, 2006 6:39 PM 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
[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
Re: [Flashcoders] AS2: Get Instance Name of Class?
You need to store the reference to the instance somewhere where you new class can get at it. On 4/17/06, matjaž <[EMAIL PROTECTED]> wrote: > Check out http://dynamicflash.com/2005/03/class-finder/ > > Mh23 > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Manuel > Saint-Victor > Sent: Friday, April 07, 2006 11:45 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] AS2: Get Instance Name of Class? > > You might try creating a _name property and passing each instance its name > as a param of the constructor. > then you can retrieve that name. I tried some other ways and got the > dreaded [Object object] trace > > Mani > > On 4/7/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote: > > > > All, > > > > Is there a way to get the instance name of a class from within the > > class? I need to refer to a variable by its absolute targetPath, but > > the instance name of the class is not known until runtime. > > > > class Foo { > > > > var results:String; > > var resultVar:String; > > > > function foo () { > > this.resultVar = "_level0." + instanceName? + ".results"; > > } > > > > } > > > > // example > > myFoo = new Foo(); > > > > myFoo[resultVar] = "Bar"; > > > > How can I get instanceName? Thanks! > > > > -Geoff > > ___ > > 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] getTimer oddness
It's ok to have "die" as a method because bullets don't die often. But "update" should be called only once and then loop through the bullets, not the other way round (looping through the bullets and calling "update" on each). Same with "checkEvents" and "move". I'm not entirely sure how you intend me to do this Mark.. I have a Bullet class, and an array of instances of this class. I want to keep whatever is related to positioning and moving bullets *in this array* to the best of my abilities. As for hit detection and such, that's a separate task altogether, what i'm primarily concerned with now is moving programmatic points along vectors. updateBullets() must call every screen update, because it is what makes sure all bullet transformations happen in one operation, ie BEFORE hit detection. Bullet.update(); must call for every bullet looped through during updateBullets(), because it is what actually moves the bullets according to their event arrays. Every single bullet can do any number of things every update, from acceleration to aiming for the player to exploding and emitting more bullets. So if i'm reading you right, you're saying this: public function update(time:Number){ age+=time; for(var i = events.length;i--;){ if(age>=events[i].triggerTime){ switch(e.eventType){ case 1: //random vector add vector.x += -4+random(8); vector.y += -4+random(8); break; case 2: //aim for mouse break; case 3: //change velocity break; case 4: //change direction break; } events.splice(i,1); var angle = Math.atan2(vector.y,vector.x); angle = angle*180/Math.PI; clip._rotation = angle; } } if(age>=lifeSpan){ die(); }else{ position.x=position.x+vector.x*time; position.y=position.y+vector.y*time; clip._x = position.x; clip._y = position.y; } } Is better than: public function update(time:Number){ age+=time; checkEvents(); if(age>=lifeSpan){ die(); }else{ move(time); } } private function checkEvents(){ for(var i = events.length;i--;){ if(age>=events[i].triggerTime){ handleEvent(events[i]); events.splice(i,1); } } } private function handleEvent(e:BulletEvent){ trace("event is type "+e.eventType); switch(e.eventType){ case 1: //random vector add vector.x += -4+random(8); vector.y += -4+random(8); break; case 2: //aim for mouse aimForMouse(); break; case 3: //change velocity break; case 4: //change direction break; } updateClipRotation(); } private function updateClipRotation(){ var angle = Math.atan2(vector.y,vector.x); angle = angle*180/Math.PI; clip._rotation = angle; } etc? This feels like going back to procedural programming again and it makes me wonder why the hell i even bother making a Bullet class in the first place if the amount of functionality i can give a class has to be supplied in raving great lumps like this or little to none at all. Also, when you create them, you can give them a deathDate property you test "time" against. I already do that, mailing you everything i have right now off-list :) - Andreas ___ 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 preloading question
Hi list! I`m working on a project that uses a lot of FLVs, My issue is this: The visitor of the website is watching a flv (1st flv ) and when he is done he can choose an option that will result in showing another FLV (2nd flv). What would be the best way to preload the "2nd flv" while the user is watching the "1st FLV"? And while I`m at it, can anyone explain the difference between buffering a flv and preloading a flv ? Thx a lot! Wout ___ 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 EventDispatcher in AS 1.0 code
I am a big fan of EventDispatcher! If you are using Flash MX2004 or later you can use AS2.0 (class based or not) to code. It all compiles down to AS1 code within the swf when you publish. You can set the target flash player in publish settings to an earlier version to accomodate the most users (Flash 8 player sits around 60% acceptance at this time I believe). Some new features and classes are not backwards compatible, and Flash will warn you of these when you publish. You are safe if you want to write your application using an AS2.0 class based framework and publish back to Flash 6 compatibility. This includes EventDispatcher. Randy Troppmann On 4/17/06, Boon Chew <[EMAIL PROTECTED]> wrote: > Hi all, I recently have had to work on some AS1.0 code (a requirement is that > the code must be published with AS 1.0 compiler). Since EventDispatcher is > not available in AS 1.0, I modified mx.events.EventDispatcher to work with in > AS 1.0 mode, and make EventDispatcher available in global namespace, since > it's not intrinsic like AsBroadcaster is. I have been able to use > EventDispatcher like I can in 2.0. Curious though, is there any downside or > potential caveat to using EventDispatcher in strictly AS 1.0 that I should be > aware of? > > Thanks much. > > > > > > > > - > Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! > Messenger with Voice. > ___ > 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] AS2: Get Instance Name of Class?
Check out http://dynamicflash.com/2005/03/class-finder/ Mh23 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manuel Saint-Victor Sent: Friday, April 07, 2006 11:45 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] AS2: Get Instance Name of Class? You might try creating a _name property and passing each instance its name as a param of the constructor. then you can retrieve that name. I tried some other ways and got the dreaded [Object object] trace Mani On 4/7/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote: > > All, > > Is there a way to get the instance name of a class from within the > class? I need to refer to a variable by its absolute targetPath, but > the instance name of the class is not known until runtime. > > class Foo { > > var results:String; > var resultVar:String; > > function foo () { > this.resultVar = "_level0." + instanceName? + ".results"; > } > > } > > // example > myFoo = new Foo(); > > myFoo[resultVar] = "Bar"; > > How can I get instanceName? Thanks! > > -Geoff > ___ > 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] Re: marginLeft (ignoring style)
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 = "Este es un ejemplo de texto"; 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 = "this is an example of text"; > > > > 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] Flash targeting Quicktime to open in QT Player
"Could you do something with javascript and css and ExternalInterface? Something where a div of the QT player is hidden, and a javascript call would supply the embed src param and turn the visibility of the div on or something?" You can definitely do that (I've done it) but I don't think that's what he wants. He wants the file to open in the standalone Quicktime Player (right?). I can't think of how to do that... sorry. Jim Kremens On 4/17/06, eric dolecki <[EMAIL PROTECTED]> wrote: > Could you do something with javascript and css and ExternalInterface? > > Something where a div of the QT player is hidden, and a javascript call > would supply the embed src param and turn the visibility of the div on or > something? > > On 4/17/06, Jon Bradley <[EMAIL PROTECTED]> wrote: > > > > This one is tough. > > > > I'm trying to have Flash (version 8) call a javascript function that > > will write a quicktime object to the page and open this quicktime in > > the QT player, not in the page. > > > > I've got the usage of QT write object javascript functions (from Apple) > > that will write out an embed or object tag to put a quicktime in a > > page. Problem is that we're running a Flash 8 site that needs to target > > this qt object to open up in the Quicktime Player, not into an embedded > > movie on the page. > > > > Popup windows are a no go, so I need to figure out a way for Flash to > > communicate with the page to tell it to write an embed to the page and > > load up the QT player, without changing the current window. > > > > Unfortunately, any getURL call I make always changes the location of > > the page - and I can't even figure out how to keep it from changing the > > page location. Is this possible with an FSCommand? > > > > Has anyone ever done anything like this? > > > > Many many many thanks if anyone can help out. I've got a site I need to > > make live today and I have everything working fine except this (major) > > part. > > > > thanks, > > > > Jon Bradley > > Animation / Interactive / Visual FX > > Post Central, Inc. > > [EMAIL PROTECTED] > > www.cherrycrushthemovie.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 > -- Jim Kremens ___ 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] getTimer oddness
> Also, when you > create them, you can give them a deathDate property you test "time" > against. That way you move part of the math to creation/death time and > not do it each frame when it can be avoided. Plus, if they all live for the same time, you can even avoid the "if" entirely by having them in a FIFO pipe ("first in first out") and only checking the first one. If the oldest one is still good, newer ones can't possibly be out of date, either. That would mean you'd have to loop through the array and remove bullets that have hit a target, but since it hardly ever happens it doesn't matter that much compared to the time saved each frame. Mark On 4/17/06, Mark Winterhalder <[EMAIL PROTECTED]> wrote: > Hi Andreas, > > as for why it behaves like this, it would be easier if you sent more > code (especially the "die" method, where you declare "age", etc). But > if I were you I'd totally rewrite that part anyway. > > I remember that you asked about lookup tables, so you try to be > efficient. You likely want to have as many bullets as possible at a > time, and still have some time left to do other stuff (like steering > the baddies). *Avoid* *function* *calls*. I can't stress this enough. > Calling a method on an object is the most expensive thing you can do > in AS. Trying to save time with lookup-tables and then doing three > function calls on each bullet is being "penny wise and pound foolish". > It's ok to have "die" as a method because bullets don't die often. But > "update" should be called only once and then loop through the bullets, > not the other way round (looping through the bullets and calling > "update" on each). Same with "checkEvents" and "move". Also, when you > create them, you can give them a deathDate property you test "time" > against. That way you move part of the math to creation/death time and > not do it each frame when it can be avoided. > > Hth, > Mark > > > > On 4/17/06, Andreas Rønning <[EMAIL PROTECTED]> wrote: > > So i'm just playing around building a bullet system for my shooting > > game. I want two things from the outset; i want it time based rather > > than frame based, and i want it to support events for bullets based on > > their age, for instance dying when 30 seconds have passed, aiming at the > > player when 10 seconds have passed etc. > > > > This is all basic stuff and i just set up a prototype to play around > > with as i think it through. My issue is with getTimer() > > > > > > > > //BEFORE > > //on the root > > function updateBullets() { > > for (var i = bullets.length; i--; ) { > > bullets[i].update(); > > } > > } > > //in Bullet instance > > public function update(){ > > var thisTime = getTimer(); > > var time = (thisTime-lastTime)/100; > > lastTime = thisTime; > > age+=time; > > trace(ID+":"+age); > > checkEvents(); > > if(age>=lifeSpan){ > > die(); > > }else{ > > move(time); > > } > > } > > > > > > > > Now i realize putting the time checking in every bullet instance on every > > update may not be the cleverest thing in the book, but it was just to get > > it done so what the hell. > > However, i get odd, ODD results this way. I would trace out the bullet's > > ID, it's current age and the value of the time variable on every update, > > and it'd read something like this: > > > > 1 - 10.24 - 0.61 > > 1 - 10.83 - 0.60 > > > > etc etc. This is all fine and dandy, and what i was expecting to see. But > > as soon as one of the bullets reach their lifespan and die() (which removes > > the bullet from the bullets array) > > all the remaining bullets and all bullets created from there on trace out > > their age and time like this: > > > > 2 - 42.04 - 42.04 > > 2 - 42.24 - 42.24 > > > > At the same time, all bullets somehow get the same age at all times, from > > creation and so forth (even though they are all instanced with age = 0), > > which means ALL bullets will immediatly reach their lifespan and die(), > > and they will all be at the same position too since i get their position by > > multiplying their vector by time. > > > > So i'm tearing my hair out, what the hell? While i'm knocking things over > > to work it out, i decide to put my mind at rest by simply copy pasting the > > time calculation from the Bullet class > > into the updateBullets function, so the result becomes as such: > > > > > > > > //NOW > > //on the root > > function updateBullets() { > > var thisTime = getTimer(); > > var time = (thisTime-lastTime)/100; > > lastTime = thisTime; > > for (var i = bullets.length; i--; ) { > > bullets[i].update(time); > > } > > } > > //in Bullet instance > > public function update(time:Number){ > > age+=time; > > trace(ID+":"+age); > > checkEvents(); > > if(age>=lifeSpan){ > > die(); > > }else{ > > move(time); > > } > > } > > > > > > > > And ta-da, now it all works admirably. I can't for the love of god > > f
RE: [Flashcoders] Active X and Microsoft IE ...
Hi all and happy Easter or Passover to anyone who celebrates either. I've just finished working on an alternative solution to this issue, which _uses_ JavaScript, but doesn't actually _require_ it... It goes like this. I noticed that some of the solutions out there involve replacing the outerHTML of the div that contains the script to generate the flash ActiveX. So I thought - what would happen if you started off with an tag, and then replaced the outerHTML with itself??? Well, it turned out to be slightly more complicated than that, but not by much. The outerHTML value omits the param tags, which are pretty much essential. But with a few lines of code you can reconstruct the object and replace the outerHTML with pretty much the same outer HTML. Sounds crazy? I didn't even think it would work, but it was worth a try! You can see it at work on my website - www.neo-archaic.net on the home page and the gallery page. I think it still has a few short comings and could also do with some browser and flash detection. Also, it does a little jump from the original to the flash version, which I need to have a think on (hmm... Start with the object invisible and show it after it's been replaced?). In any case, I'm very interested in what you think about it, and any ideas on how to improve this. - Here's the code: //Replace all flash objects on the page with the same flash object, //by rewriting the outerHTML values //This bypasses the new IE ActiveX object activation issue replaceFlash = function(){ //Get a list of all ActiveX objects var objects = document.getElementsByTagName('object'); for (var i=0; i")[0] + ">" //The outer html omits the param tags, so we must retrieve and insert these seperately var lst = d.getElementsByTagName('param') var params = "" for (var j = 0; j<=lst.length; j++) { if (lst[j] != null){ params += lst[j].outerHTML } } //Add up the various bits that comprise the object: //The tag with the attributes, the params and it's inner html var newObject = tag + params + d.innerHTML + " " //And rewrite the outer html of the tag d.outerHTML = newObject } } -- Here's an example object: http://www.neo-archaic.net/index_old.html"; width="620" height="350"> Alternative text --- Note that I'm using an alternative object tag, that doesn't have the classid, codebase etc. This is a standards compliant way of handling this, doesn't require an embed tag to work on Mozilla etc., shows the alternative text if flash is not enabled, and is incredibly ligthweight. So... What do you guys think? Karina Karina Steffens | Neo-Archaic creative & technical new media design www.neo-archaic.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] Flash targeting Quicktime to open in QT Player
Could you do something with javascript and css and ExternalInterface? Something where a div of the QT player is hidden, and a javascript call would supply the embed src param and turn the visibility of the div on or something? On 4/17/06, Jon Bradley <[EMAIL PROTECTED]> wrote: > > This one is tough. > > I'm trying to have Flash (version 8) call a javascript function that > will write a quicktime object to the page and open this quicktime in > the QT player, not in the page. > > I've got the usage of QT write object javascript functions (from Apple) > that will write out an embed or object tag to put a quicktime in a > page. Problem is that we're running a Flash 8 site that needs to target > this qt object to open up in the Quicktime Player, not into an embedded > movie on the page. > > Popup windows are a no go, so I need to figure out a way for Flash to > communicate with the page to tell it to write an embed to the page and > load up the QT player, without changing the current window. > > Unfortunately, any getURL call I make always changes the location of > the page - and I can't even figure out how to keep it from changing the > page location. Is this possible with an FSCommand? > > Has anyone ever done anything like this? > > Many many many thanks if anyone can help out. I've got a site I need to > make live today and I have everything working fine except this (major) > part. > > thanks, > > Jon Bradley > Animation / Interactive / Visual FX > Post Central, Inc. > [EMAIL PROTECTED] > www.cherrycrushthemovie.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] getTimer oddness
Hi Andreas, as for why it behaves like this, it would be easier if you sent more code (especially the "die" method, where you declare "age", etc). But if I were you I'd totally rewrite that part anyway. I remember that you asked about lookup tables, so you try to be efficient. You likely want to have as many bullets as possible at a time, and still have some time left to do other stuff (like steering the baddies). *Avoid* *function* *calls*. I can't stress this enough. Calling a method on an object is the most expensive thing you can do in AS. Trying to save time with lookup-tables and then doing three function calls on each bullet is being "penny wise and pound foolish". It's ok to have "die" as a method because bullets don't die often. But "update" should be called only once and then loop through the bullets, not the other way round (looping through the bullets and calling "update" on each). Same with "checkEvents" and "move". Also, when you create them, you can give them a deathDate property you test "time" against. That way you move part of the math to creation/death time and not do it each frame when it can be avoided. Hth, Mark On 4/17/06, Andreas Rønning <[EMAIL PROTECTED]> wrote: > So i'm just playing around building a bullet system for my shooting > game. I want two things from the outset; i want it time based rather > than frame based, and i want it to support events for bullets based on > their age, for instance dying when 30 seconds have passed, aiming at the > player when 10 seconds have passed etc. > > This is all basic stuff and i just set up a prototype to play around > with as i think it through. My issue is with getTimer() > > > > //BEFORE > //on the root > function updateBullets() { > for (var i = bullets.length; i--; ) { > bullets[i].update(); > } > } > //in Bullet instance > public function update(){ > var thisTime = getTimer(); > var time = (thisTime-lastTime)/100; > lastTime = thisTime; > age+=time; > trace(ID+":"+age); > checkEvents(); > if(age>=lifeSpan){ > die(); > }else{ > move(time); > } > } > > > > Now i realize putting the time checking in every bullet instance on every > update may not be the cleverest thing in the book, but it was just to get it > done so what the hell. > However, i get odd, ODD results this way. I would trace out the bullet's ID, > it's current age and the value of the time variable on every update, and it'd > read something like this: > > 1 - 10.24 - 0.61 > 1 - 10.83 - 0.60 > > etc etc. This is all fine and dandy, and what i was expecting to see. But as > soon as one of the bullets reach their lifespan and die() (which removes the > bullet from the bullets array) > all the remaining bullets and all bullets created from there on trace out > their age and time like this: > > 2 - 42.04 - 42.04 > 2 - 42.24 - 42.24 > > At the same time, all bullets somehow get the same age at all times, from > creation and so forth (even though they are all instanced with age = 0), > which means ALL bullets will immediatly reach their lifespan and die(), > and they will all be at the same position too since i get their position by > multiplying their vector by time. > > So i'm tearing my hair out, what the hell? While i'm knocking things over to > work it out, i decide to put my mind at rest by simply copy pasting the time > calculation from the Bullet class > into the updateBullets function, so the result becomes as such: > > > > //NOW > //on the root > function updateBullets() { > var thisTime = getTimer(); > var time = (thisTime-lastTime)/100; > lastTime = thisTime; > for (var i = bullets.length; i--; ) { > bullets[i].update(time); > } > } > //in Bullet instance > public function update(time:Number){ > age+=time; > trace(ID+":"+age); > checkEvents(); > if(age>=lifeSpan){ > die(); > }else{ > move(time); > } > } > > > > And ta-da, now it all works admirably. I can't for the love of god > figure out why this didnt work the other way (no matter how dirty that > was), and it's making me feel like an amateur again, so please.. Can > someone put my mind at ease and explain this behavior? Literally all i > did to make it work was copy paste the 3 lines of AS. Aggrevating. > > Cheers, > > - Andreas > ___ > 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 > -- http://snafoo.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 Co
Re: [Flashcoders] marginLeft (ignoring style)
_root.pagina.setStyle("marginLeft", "20"); _root.pagina.setStyle("marginLeft", 20); -- 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 julian atienza wrote: 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 = "this is an example of text"; 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
[Flashcoders] Flash targeting Quicktime to open in QT Player
This one is tough. I'm trying to have Flash (version 8) call a javascript function that will write a quicktime object to the page and open this quicktime in the QT player, not in the page. I've got the usage of QT write object javascript functions (from Apple) that will write out an embed or object tag to put a quicktime in a page. Problem is that we're running a Flash 8 site that needs to target this qt object to open up in the Quicktime Player, not into an embedded movie on the page. Popup windows are a no go, so I need to figure out a way for Flash to communicate with the page to tell it to write an embed to the page and load up the QT player, without changing the current window. Unfortunately, any getURL call I make always changes the location of the page - and I can't even figure out how to keep it from changing the page location. Is this possible with an FSCommand? Has anyone ever done anything like this? Many many many thanks if anyone can help out. I've got a site I need to make live today and I have everything working fine except this (major) part. thanks, Jon Bradley Animation / Interactive / Visual FX Post Central, Inc. [EMAIL PROTECTED] www.cherrycrushthemovie.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] marginLeft (ignoring style)
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 = "this is an example of text"; 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] good OOP way to re-assign class to clip
Hi Gregory You should look into this article in the FlashCoders Wiki http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo vieclip_without_a_symbol_in_the_library This is if you want to create dynamically a movie clip and then associate a class to it. If you allready have a moviclip that you want to use, you should look into Object.registerClass(³myClipID², MyClass); HTH Alain From: GregoryN <[EMAIL PROTECTED]> Reply-To: Flashcoders mailing list Date: Mon, 17 Apr 2006 17:44:23 +0400 To: Flashcoders mailing list Subject: [Flashcoders] good OOP way to re-assign class to clip Hello Flashcoders, I have a clip (myClip_mc) associated with class, which is subclassing MovieClip (say, MyClass1). class MyClass1 extends MovieClip ... To do this, I entered class name as "AS 2.0 Class" in "Export for Actionscript" dialog. All this works OK (of course). But under some circumstances I'd like this clip to be associated with ANOTHER class (say, MyClass2). class MyClass2 extends MovieClip ... How do I acomplish this in good OOP style? Few ways I can imagine right now are: 1) myClip_mc.prototype.__proto__ = MyClass2.prototype; 2) Create an "instantiate()" method in MyClass2 to re-write all props/methods of the target clip with ones of MyClip2 (similar to EventDispatcher). Both "ways" above don't seem good from OOP point of view, though... Can anyone offer something more elegant? -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ 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] getTimer oddness
So i'm just playing around building a bullet system for my shooting game. I want two things from the outset; i want it time based rather than frame based, and i want it to support events for bullets based on their age, for instance dying when 30 seconds have passed, aiming at the player when 10 seconds have passed etc. This is all basic stuff and i just set up a prototype to play around with as i think it through. My issue is with getTimer() //BEFORE //on the root function updateBullets() { for (var i = bullets.length; i--; ) { bullets[i].update(); } } //in Bullet instance public function update(){ var thisTime = getTimer(); var time = (thisTime-lastTime)/100; lastTime = thisTime; age+=time; trace(ID+":"+age); checkEvents(); if(age>=lifeSpan){ die(); }else{ move(time); } } Now i realize putting the time checking in every bullet instance on every update may not be the cleverest thing in the book, but it was just to get it done so what the hell. However, i get odd, ODD results this way. I would trace out the bullet's ID, it's current age and the value of the time variable on every update, and it'd read something like this: 1 - 10.24 - 0.61 1 - 10.83 - 0.60 etc etc. This is all fine and dandy, and what i was expecting to see. But as soon as one of the bullets reach their lifespan and die() (which removes the bullet from the bullets array) all the remaining bullets and all bullets created from there on trace out their age and time like this: 2 - 42.04 - 42.04 2 - 42.24 - 42.24 At the same time, all bullets somehow get the same age at all times, from creation and so forth (even though they are all instanced with age = 0), which means ALL bullets will immediatly reach their lifespan and die(), and they will all be at the same position too since i get their position by multiplying their vector by time. So i'm tearing my hair out, what the hell? While i'm knocking things over to work it out, i decide to put my mind at rest by simply copy pasting the time calculation from the Bullet class into the updateBullets function, so the result becomes as such: //NOW //on the root function updateBullets() { var thisTime = getTimer(); var time = (thisTime-lastTime)/100; lastTime = thisTime; for (var i = bullets.length; i--; ) { bullets[i].update(time); } } //in Bullet instance public function update(time:Number){ age+=time; trace(ID+":"+age); checkEvents(); if(age>=lifeSpan){ die(); }else{ move(time); } } And ta-da, now it all works admirably. I can't for the love of god figure out why this didnt work the other way (no matter how dirty that was), and it's making me feel like an amateur again, so please.. Can someone put my mind at ease and explain this behavior? Literally all i did to make it work was copy paste the 3 lines of AS. Aggrevating. Cheers, - Andreas ___ 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] good OOP way to re-assign class to clip
Hello Flashcoders, I have a clip (myClip_mc) associated with class, which is subclassing MovieClip (say, MyClass1). class MyClass1 extends MovieClip ... To do this, I entered class name as "AS 2.0 Class" in "Export for Actionscript" dialog. All this works OK (of course). But under some circumstances I'd like this clip to be associated with ANOTHER class (say, MyClass2). class MyClass2 extends MovieClip ... How do I acomplish this in good OOP style? Few ways I can imagine right now are: 1) myClip_mc.prototype.__proto__ = MyClass2.prototype; 2) Create an "instantiate()" method in MyClass2 to re-write all props/methods of the target clip with ones of MyClip2 (similar to EventDispatcher). Both "ways" above don't seem good from OOP point of view, though... Can anyone offer something more elegant? -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ 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] Talking to Flash from JavaScript
Hi... :) Hm... That's something very new to me... Interesting one... The site says following... Your browser must be JavaScript enabled to see this example. This tutorial has been tested on Netscape 4.7, Netscape 7, Internet Explorer 5, Internet Explorer 6, Firefox 1.04, and Opera 8, for the PC. Other browsers and Macintosh browsers might have problems running this. Flash 4 player or newer is required. This tutorial is intended for Flash 4 or better. Does anybody, by any chance, have more updated compatibility matrix for this one??? Thanks... CyanBlue - Original Message - From: "arturo 101" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, April 17, 2006 1:40 AM Subject: Re: [Flashcoders] Talking to Flash from JavaScript I often use a code like this example: http://www.permadi.com/tutorial/flashjscommand/ And here http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html you have some methods to use with JS and actionscript. - Original Message - From: "Jon Robert" <[EMAIL PROTECTED]> To: Sent: Sunday, April 16, 2006 11:49 PM Subject: [Flashcoders] Talking to Flash from JavaScript Hi, I have a flash video playing in an HTML page. I want to be able to click a link in the HTML (not in the movie) and have the flash video stop. What's the best way to accomplish this? JavaScript? Thanks 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] ScrollPane Pain
Thanks for the help everyone... The end problem was something obscure, an external Class I was using had a line of code set like: myObj = Object = {something:"something"} A typo but one that didn't show up, and was causing utter chaos behind the scenes. Dan On 7 Apr 2006, at 10:10, Yotam Laufer wrote: Make sure you execute everything after the component has initialized. A good way is to handle things with your Class's onLoad event. class a extends MovieClip { private var __sp:ScrollPane function a () { } function onLoad () { __sp.content = "yourlinkage" } } other than that maybe you just need to __sp.invalidate () ? Yotam. ___ Dan Efergan [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] Using EventDispatcher in AS 1.0 code
Hi all, I recently have had to work on some AS1.0 code (a requirement is that the code must be published with AS 1.0 compiler). Since EventDispatcher is not available in AS 1.0, I modified mx.events.EventDispatcher to work with in AS 1.0 mode, and make EventDispatcher available in global namespace, since it's not intrinsic like AsBroadcaster is. I have been able to use EventDispatcher like I can in 2.0. Curious though, is there any downside or potential caveat to using EventDispatcher in strictly AS 1.0 that I should be aware of? Thanks much. - Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. ___ 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