Re: [Flashcoders] onEnterFrame() and delete onEnterFrame()
oh boy.. - Original Message - From: Jesse Graupmann [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, July 18, 2007 7:13 AM Subject: RE: [Flashcoders] onEnterFrame() and delete onEnterFrame() Ok, so no scope change and no extra tween class. Isn't over engineering considered bad practice? And aren't all the cool kids are using http://code.google.com/p/tweener/ right now anyway? ;) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] RE: obfuscation swf !
I agree with JC that it wasn't really necessary to be quite so spiteful about defeating his code. I think the problem may have come from a here's my solution, try and break it attitude instead of simply giving details of how it (was supposed to) work. Everyone here shares their knowledge to help other people, where in this case it didn't seem like it. As far as I know, any flash file (.swf) is downloaded to a client's computer to be played, so its impossible to stop people from downloading your swf files. Sunil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: 18 July 2007 05:56 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] RE: obfuscation swf ! Hi, I might be wrong but like Bart said, I think SWFEncrypt does all this already. At least I haven't had any problems with this andits fast too AND usable from a build file. But I'm sure some of you will be able to crack it. What I do have problems with is the attitude displayed towards Jimbo by some of the responders for trying to come up with a nice and easy solution, even it isn't foolproof. Putting a donkey sign over someones head is less than motivating. He offered us a challenge, some of us took it and won. No need to get all nasty about it imo. greetz JC ___ 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] Variable argument list
Hi all, I want to implement an function funcA that takes a variable list of arguments, and passes on that list to another function funcB, just like setInterval does. funcA = function() { // Here I can access the arguments through the arguments array. // But how do I pass it on the arguments to funcB that I am calling below. // I mean I cannot write funcB(arguments[0], arguments[1], arguments[n]); // as the last index n will be specified at runtime. funcB(); } ___ 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] Variable argument list
funcB.apply(this, arguments); Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:Swapnil Dubey [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Wednesday, July 18, 2007, 12:55:23 PM Subject: [Flashcoders] Variable argument list --===-- Hi all, I want to implement an function funcA that takes a variable list of arguments, and passes on that list to another function funcB, just like setInterval does. funcA = function() { // Here I can access the arguments through the arguments array. // But how do I pass it on the arguments to funcB that I am calling below. // I mean I cannot write funcB(arguments[0], arguments[1], arguments[n]); // as the last index n will be specified at runtime. funcB(); } ___ 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] Variable argument list
you could pass an object and have properties on that object serve as arguments. - eric On 7/18/07, Swapnil Dubey [EMAIL PROTECTED] wrote: Hi all, I want to implement an function funcA that takes a variable list of arguments, and passes on that list to another function funcB, just like setInterval does. funcA = function() { // Here I can access the arguments through the arguments array. // But how do I pass it on the arguments to funcB that I am calling below. // I mean I cannot write funcB(arguments[0], arguments[1], arguments[n]); // as the last index n will be specified at runtime. funcB(); } ___ 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] Variable argument list
function funcB() { trace(arguments); } function funcA() { funcB.apply(null, arguments); } Function.apply() http://livedocs.adobe.com/flash/8/main/2235.html regards, Muzak - Original Message - From: Swapnil Dubey [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, July 18, 2007 12:55 PM Subject: [Flashcoders] Variable argument list Hi all, I want to implement an function funcA that takes a variable list of arguments, and passes on that list to another function funcB, just like setInterval does. funcA = function(){ // Here I can access the arguments through the arguments array. // But how do I pass it on the arguments to funcB that I am calling below. // I mean I cannot write funcB(arguments[0], arguments[1], arguments[n]); // as the last index n will be specified at runtime. funcB(); } ___ 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] Variable argument list
Hi, I want to implement an function funcA that takes a variable list of arguments, and passes on that list to another function funcB, just like setInterval does. funcA = function() { funcB.apply(this,arguments) regards, Claudius ___ 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: obfuscation swf !
good call Hans, Agreed. This list may one of the most 'decent' i have ever seen and the tone of the response scared me too. We have all worried about our work being stolen by others - ridiculing another for these same concerns violates the tone of 'our' group. I also think the original poster handled the negative feedback in a very sophisticated manner, hats off to you sir for being so tolerant. sorry for the noise, Dave_Matthews http://www.2GoTo.com --original- Date: Wed, 18 Jul 2007 06:55:52 +0200 From: Hans Wichman [EMAIL PROTECTED] Subject: Re: [Flashcoders] RE: obfuscation swf ! Hi, I might be wrong but like Bart said, I think SWFEncrypt does all this already. At least I haven't had any problems with this andits fast too AND usable from a build file. But I'm sure some of you will be able to crack it. What I do have problems with is the attitude displayed towards Jimbo by some of the responders for trying to come up with a nice and easy solution, even it isn't foolproof. Putting a donkey sign over someones head is less than motivating. He offered us a challenge, some of us took it and won. No need to get all nasty about it imo. greetz JC _ Don't get caught with egg on your face. Play Chicktionary! http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: obfuscation swf !
On 7/18/07, Jim Berkey [EMAIL PROTECTED] wrote: Wonderful folks, don't worry about my feelings because my methods were so quickly destroyed. I'm a big boy, and have enjoyed the search for the holy swf-grail for some time now. Thanks to Rákos, I believe I am one brick away from that wall that is higher than anyone wants to climb, and may return today with a challenge for Rákos and others. Cool -- I like challenges like that. While I'm convinced that total protection is impossible, I do believe that there /might/ be a way to make it too difficult to be worthwhile. As to why I just don't post my methods for examination by all, I found early on that so many people can tear down a wall and condemn it easily when they see the skeleton, without ever trying to climb the wall, and that is not a good judge of the effectiveness of the wall. But if you do not see the skeleton, it is much harder to climb that wall. All of a sudden instead of multitudes saying how silly, only a few can actually climb the wall . . . maybe one day only one or two will be able to climb the wall. Yesterday Rákos captured the swf, and then others decompiled and re-compiled it. I have slept on the method that I believe Rákos used to capture the swf, and may have an answer for it later today. http://en.wikipedia.org/wiki/Kerckhoffs%27_principle Just to give you a heads up, here's how I did it, presumably Attila used similar techniques: I captured the SWF with Wireshark, then sent it through swfmill swf2xml, changed the domain name, and it worked. I'm not going to tell you what I would have done next, though. :) Thanks for all input, none of it was taken in a bad way, jimbo Thanks for the challenge, Mark ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: obfuscation swf !
Ok, yesterday was 7 minutes of work to capture . . . another try today. Is the wall higher yet? http://jimbo.us/Games/jumpPeg/ jimbo ___ 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[2]: [Flashcoders] RE: obfuscation swf !
It was even easier than the yesterday's one, since there was no need for modifying the swf. Obtaining the game's swf was done by the same way as yesterday. http://www.tengerstudio.com/public/jumppeg/ Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:Jim Berkey [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Wednesday, July 18, 2007, 3:07:01 PM Subject: [Flashcoders] RE: obfuscation swf ! --===-- Ok, yesterday was 7 minutes of work to capture . . . another try today. Is the wall higher yet? http://jimbo.us/Games/jumpPeg/ jimbo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: obfuscation swf !
On Jul 18, 2007, at 7:24 AM, Jim Berkey wrote: I found early on that so many people can tear down a wall and condemn it easily when they see the skeleton, without ever trying to climb the wall, and that is not a good judge of the effectiveness of the wall. But if you do not see the skeleton, it is much harder to climb that wall. All of a sudden instead of multitudes saying how silly, only a few can actually climb the wall . . . maybe one day only one or two will be able to climb the wall. Yesterday Rákos captured the swf, and then others decompiled and re-compiled it. I have slept on the method that I believe Rákos used to capture the swf, and may have an answer for it later today. We all definitely appreciate that you are trying. Just remember there's a huge difference in making it difficult to get the file and making it impossible to get the file (the latter being, literally, impossible). The simple fact is that the SWF needs to be sent to the client, in a form the Flash Player can render. At this point in time, the technology does not exist in the Player or in the communication between the server and the Player (browser/plugin). It is absolutely impossible to keep the end user from gaining access to the SWF content in some manner or another. You can obfuscate, but you cannot hide the content itself. I think what some of us are saying is - there is no way to keep us from getting the file. The most difficult method I am aware of is by using FP9 (AS3) and Loader.loadBytes (combined with ByteArray). You could use a secured socket connection and load binary data, decrypted through ByteArray and a client-server handshake (say Blowfish as the encryption method - it'll just take forever to decrypt the data). That still won't protect you. All one needs is a packet sniffer to get the data (including any keys or other information) and use the SWF that loaded the data in the first place to decrypt it. It'll take a bit longer to get the file (a long time if implemented properly) but you can still get the file. http://www.bytearray.org/?p=32 good luck. - jon ___ 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] This account is not active
I've unsubscribed the offending account. 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! This email has been processed by SmoothZap - www.smoothwall.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] RE: obfuscation swf !
Hm. Just a side thought on that - again, making it difficult rather than impossible. Use the same FP9 idea - loading via a binary socket - but instead of using Blowfish or something heavyweight to decrypt, just split the source .swf into chunks on the server, load each chunk seperately, reassemble and loadBytes on the client side. Easy to get around if you know what's going on, granted. But no longer just a case of lifting a cached file from somewhere and renaming it to SWF. Particularly if you're clever about how the chunks are ordered. Just a thought. :-) Ian On 7/18/07, Jon Bradley [EMAIL PROTECTED] wrote: The most difficult method I am aware of is by using FP9 (AS3) and Loader.loadBytes (combined with ByteArray). You could use a secured socket connection and load binary data, decrypted through ByteArray and a client-server handshake (say Blowfish as the encryption method - it'll just take forever to decrypt the data). That still won't protect you. All one needs is a packet sniffer to get the data (including any keys or other information) and use the SWF that loaded the data in the first place to decrypt it. It'll take a bit longer to get the file (a long time if implemented properly) but you can still get the file. http://www.bytearray.org/?p=32 good luck. - jon ___ 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] obfuscation swf, and client demands
There's a constant demand for SWF obfuscation -- any good application, especially things like standalone games, is a ripe target for theft and rebranding. *cough ebaumsworld cough* And business clients are often afraid of plagiarism by real or imagined rivals: if they didn't want to be the first and the fanciest, they wouldn't be hiring us, right? Personally, I figure that if someone copies directly, it's obvious, and does them no credit; if they borrow ideas or even code concepts, good: a fellow programmer or designer is learning from my work. But clients don't always think that way -- and we have to keep them happy -- so this avenue of experiment is valuable and important. We always have to tell the client that absolute protection is impossible... but we can also tell them that we've put plenty of obstacles down. Code-hiders and code-crackers, play on! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: obfuscation swf !
but instead of using Blowfish or something heavyweight to decrypt, just split the source .swf into chunks on the server, load each chunk seperately, reassemble and loadBytes on the client side. Great concept, Ian : Diviser pour mieux régner --- Eric Priou aka erixtekila Dev notes : http://www.v-i-a.net/inprogress Oregano XMLSocket server forum : http://www.v-i-a.net/forum ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: obfuscation swf !
Thanks Ian, your ideas look promising . . . Thanks Frederic, that's on the same vein as Mark's link to Kerckhoffs' assumption - btw, I think I can defeat the way you found it, Frederic, with one more layer of php . . . maybe . . . (you got to 'path' but not to 'rainbow' - hmmm) Seems we can protect from the casual swf grabber/decompiler, but as long as swf's are delivered in some manner to the player as one complete file, I can prevent it from caching on the users machine, I can hide the location of the file, but it can still be captured, even if it isn't a proper swf file when it hits the player . . . . . . I'll be back . . . :~) jimbo - Original Message - From: Ian Thomas [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, July 18, 2007 9:47 AM Subject: Re: [Flashcoders] RE: obfuscation swf ! Hm. Just a side thought on that - again, making it difficult rather than impossible. Use the same FP9 idea - loading via a binary socket - but instead of using Blowfish or something heavyweight to decrypt, just split the source .swf into chunks on the server, load each chunk seperately, reassemble and loadBytes on the client side. Easy to get around if you know what's going on, granted. But no longer just a case of lifting a cached file from somewhere and renaming it to SWF. Particularly if you're clever about how the chunks are ordered. Just a thought. :-) Ian On 7/18/07, Jon Bradley [EMAIL PROTECTED] wrote: The most difficult method I am aware of is by using FP9 (AS3) and Loader.loadBytes (combined with ByteArray). You could use a secured socket connection and load binary data, decrypted through ByteArray and a client-server handshake (say Blowfish as the encryption method - it'll just take forever to decrypt the data). That still won't protect you. All one needs is a packet sniffer to get the data (including any keys or other information) and use the SWF that loaded the data in the first place to decrypt it. It'll take a bit longer to get the file (a long time if implemented properly) but you can still get the file. http://www.bytearray.org/?p=32 good luck. - jon ___ 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] Drawing API :: curveTo assistance, code and example inside
Thank you sooo much. It works perfectly! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: Wednesday, July 18, 2007 12:26 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Drawing API :: curveTo assistance, code and example inside Hi Ash, i smashed a quick and dirty sample together, you can find it here: http://www.objectpainters.com/flashExamples/controlPointDrawing/controlPoint .swf The fla is here: http://www.objectpainters.com/flashExamples/controlPointDrawing/controlPoint .fla Basically I think you are very close, except for one things: The first moveTo should be an average of the last and first point. In addition you'll see in my sample that I've separated the controlpoint data from the control points view, but that doesnt really matter. hope that helps, greetz JC On 7/18/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, pretty cool :) If I had to guess I'd say the twist is caused by moving to a controlpoint instead of the average of one. Could you try moving to (firstPoint+lastPoint)/2 ? greetz JC On 7/18/07, Ash Warren [EMAIL PROTECTED] wrote: Oh I feel like I'm sooo close. Here is what I have after your last suggestion: http://www.ashbrand.com/curveTo_circle_3.swf It looks pretty good at first glance but if you zoom in on the file you will see that the vector looks twisted at the top. Here is the code that is driving that file: /**/ this.displayClip.beginFill (0xF0A0B9, 45); var lastPoint:MovieClip = this.controlPoints [this.controlPoints.length- 1]; var endX:Number, endY:Number; var thisPoint:MovieClip; var nextPoint:MovieClip; this.displayClip.moveTo (lastPoint._x, lastPoint._y); for (var i:Number = 0; i this.controlPoints.length; i++) { thisPoint = this.controlPoints[i]; nextPoint = this.controlPoints[(i + 1) % this.controlPoints.length ]; endX = (thisPoint._x + nextPoint._x) / 2; endY = (thisPoint._y + nextPoint._y) / 2; this.displayClip.curveTo (thisPoint._x, thisPoint._y, endX, endY); } this.displayClip.endFill (); /**/ Thank you very much for your help. Ash -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: Tuesday, July 17, 2007 4:24 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Drawing API :: curveTo assistance, code and example inside Hi, shouldnt thethis.pLine.moveTo (0,100); be control point based as well? greetz JC On 7/17/07, Ash Warren [EMAIL PROTECTED] wrote: Well that seemed to kind of get me closer, here is the latest example using your code tip (pasted below) http://www.ashbrand.com/curveto_circle_2.swf Thank you. /**/ this.pLine.beginFill (0xF0A0B9); var endX:Number, endY:Number; var thisPoint:MovieClip; var nextPoint:MovieClip; this.pLine.moveTo (0,100); for (var i:Number = 0; i this.controlPoints.length; i++) { thisPoint = this.controlPoints[i]; nextPoint = this.controlPoints[(i + 1) % controlPoints.length]; endX = (thisPoint._x + nextPoint._x) / 2; endY = (thisPoint._y + nextPoint._y) / 2; this.pLine.curveTo (thisPoint._x, thisPoint._y, endX, endY); } this.pLine.endFill (); /**/ -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: Tuesday, July 17, 2007 2:55 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Drawing API :: curveTo assistance, code and example inside Hi, my quick guess is, let the loop run from 0 to i controlPoints.lengthand do the lookup like this.controlPoints[ (i+1)%controlPoints.length ] Just a guess though, but I think that might be it. And then skip the last curveTo outside of the loop. greetz JC On 7/17/07, Ash Warren [EMAIL PROTECTED] wrote: This might be a better example: http://www.ashbrand.com/curveto_circle.swf I am using basically the same code however, please see below: /**/ this.pLine.beginFill (0xF0A0B9); var endX:Number, endY:Number; var thisPoint:MovieClip; var nextPoint:MovieClip; this.pLine.moveTo (0,100); for (var i:Number = 0; i this.controlPoints.length - 1; i++) {
Re: [Flashcoders] AS 2.0 Tweening libraries
So, coming off the enterFrame() tween discussion, a lot of people mentioned various tweening libraries. I still use Fuse, which has proven extremely capable for my purposes; are there any pressing flaws in Fuse, or benefits in the other packages, that might convince me to change? The ultimate answer is that it's more of a matter of personal preference (due to syntax and approach) based on what your most pressing needs are than anything. It's not a black-and-white thing. Most people will have their preferred packages/classes, but it's hard to put it in objective terms from a general standpoint. It varies from person to person. If you're happy with your current package then it's okey. Just remember knowledge about tweening (it has more to do with control over time than anything) carries over when you start using other extensions so switching back and forth is usually easy, you just write code slightly different. Tweening extensions are tools, not the end, and the current existing ones are fine and I don't know of any huge flaw on any of them. Of course I wouldn't trade the tweening extension *I* use for any other out there. :) But again, because it comes down to personal preference and needs more than anything. You just have to find the screwdriver that better fits the size of your hand. Whether it's an old or new screwdriver and whether the color of the screwdriver handle is trendy doesn't matter. Zeh ___ 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] Language expert on embedding fonts for different language sets
I am implementing a multilingual site for all the European countries and I am creating separate font libraries for which I will just load the right one based on the locale. From what I can gather there are four main ones which is Latin, Armenian, Cyrillic and Greek. The question I am asking is what font sets do you embed for the particular language set. I am using the Arial font as that tends to have all the necessary glyphs and have embedded the characters as shown below. Now this works but I feel I am using a sledge hammer to crack a nut as I am not sure what languages use which and therefore I am embedding the latin into the other character sets which I am assuming is not needed. Any help, advice or pointers to information regarding this would be fantastic. The font sets I am embedding are as follows - are these right, wrong or just plain ridiculous??##!! Latin language settings -Uppercase -Lowercase -Numerals -Punctuation -Basic Latin -Latin I -Latin Extended A -Latin Extended B -Latin Extended Add'l Armenian language settings -Uppercase -Lowercase -Numerals -Punctuation -Basic Latin -Latin I -Latin Extended A -Latin Extended B -Latin Extended Add'l -Armenian Cyrillic language settings -Uppercase -Lowercase -Numerals -Punctuation -Basic Latin -Latin I -Latin Extended A -Latin Extended B -Latin Extended Add'l -Cyrillic Greek language settings -Uppercase -Lowercase -Numerals -Punctuation -Basic Latin -Latin I -Latin Extended A -Latin Extended B -Latin Extended Add'l -Greek Thanks in advance :) Michael ___ 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
AW: [Flashcoders] textures
Thanks 4 the info... I'll try that! Regards, cryzto -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Jesse Graupmann Gesendet: Mittwoch, 18. Juli 2007 07:22 An: flashcoders@chattyfig.figleaf.com Betreff: RE: [Flashcoders] textures Without practical knowledge, I would suggest either flash.filters.DisplacementMapFilter or mc.beginBitmapFill along with mc.blendMode. // // DisplacementMapFilter // Maybe something like these mixed with a tiled bitmaps? http://www.reflektions.com/miniml/template_permalink.asp?id=334 http://lab.andre-michelle.com/panorama http://lab.andre-michelle.com/gooify http://nodename.com/blog/2006/01/16/psyarks-displacementmapfilter-tutorial/ // // beginBitmapFill // The example below creates a tiled Bitmap image the size of an attached vector MovieClip, attaches a duplicate to use as the Bitmap's mask, and applies a blendMode from the Bitmap MovieClip over the base vector image. var bmp = flash.display.BitmapData.loadBitmap( 'bitmap_linkageID' ); /*actual jpg or png*/ var base = this.attachMovie ( 'vector_image_linkageID3', 'base', this.getNextHighestDepth() ); var mask = this.attachMovie ( 'vector_image_linkageID3', 'mask', this.getNextHighestDepth() ); var bmp_mc = this.createEmptyMovieClip ( 'bmp_mc', this.getNextHighestDepth() ); var useBitmapFill = true; var adjustScale = false; var blend_mode = 'difference'; if ( useBitmapFill ) { var matx = new flash.geom.Matrix(); if ( adjustScale ) { base._xscale = mask._xscale = bmp_mc._xscale = 200; /*test*/ // adjust for scale distortion matx.a = 1 / (bmp_mc._xscale/100); matx.d = 1 / (bmp_mc._yscale/100); } bmp_mc.clear(); bmp_mc.beginBitmapFill(bmp, matx, true, false); var W = base._width || mask._width; var H = base._height|| mask._height; with (bmp_mc) { moveTo(0, 0); lineTo(W, 0); lineTo(W, H); lineTo(0, H); lineTo(0, 0); endFill(); } } else { bmp_mc.attachBitmap ( bmp, bmp_mc.getNextHighestDepth() ); } bmp_mc.cacheAsBitmap = true; mask.cacheAsBitmap = true; bmp_mc.setMask ( mask ); bmp_mc.blendMode = blend_mode; _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cristo @ Cryzto Sent: Tuesday, July 17, 2007 6:58 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] textures Hi everybody! I've surely got a interesting question: If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1341 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 1283 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 ___ 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
AW: [Flashcoders] textures
I did check the manual, but apparently not good enough... :) I'm kind in a hurry (project 4 school), thats why I didn't really have the time for checking all manuals... Thanx for the answer JC Cristo [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Hans Wichman Gesendet: Mittwoch, 18. Juli 2007 06:46 An: flashcoders@chattyfig.figleaf.com Betreff: Re: [Flashcoders] textures Hi, I have an interesting question too, did you check the manual? :) beginBitmapFill (MovieClip.beginBitmapFill method) public beginBitmapFill(bmp:BitmapData, [matrix:Matrix], [repeat:Boolean], [smoothing:Boolean]) : Void Fills a drawing area with a bitmap image. The bitmap can be repeated or tiled to fill the area. greetz JC On 7/18/07, Cristo @ Cryzto [EMAIL PROTECTED] wrote: Hi everybody! I've surely got a interesting question: If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1341 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 1283 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 ___ 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] AS 2.0 Tweening libraries
Almost getting offtopic, but Tweener is one tough tweening engine!! thanks zeh ;) Now, I want to add GlowFilter, .. filters support to Tweener. I saw that BlurFilter is implemented, but not the others. I will try to dig it a little further when I have time, but do you have any recommendations so I can contribute to the project? Cedric So, coming off the enterFrame() tween discussion, a lot of people mentioned various tweening libraries. I still use Fuse, which has proven extremely capable for my purposes; are there any pressing flaws in Fuse, or benefits in the other packages, that might convince me to change? The ultimate answer is that it's more of a matter of personal preference (due to syntax and approach) based on what your most pressing needs are than anything. It's not a black-and-white thing. Most people will have their preferred packages/classes, but it's hard to put it in objective terms from a general standpoint. It varies from person to person. If you're happy with your current package then it's okey. Just remember knowledge about tweening (it has more to do with control over time than anything) carries over when you start using other extensions so switching back and forth is usually easy, you just write code slightly different. Tweening extensions are tools, not the end, and the current existing ones are fine and I don't know of any huge flaw on any of them. Of course I wouldn't trade the tweening extension *I* use for any other out there. :) But again, because it comes down to personal preference and needs more than anything. You just have to find the screwdriver that better fits the size of your hand. Whether it's an old or new screwdriver and whether the color of the screwdriver handle is trendy doesn't matter. Zeh ___ 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] loading .flv into flash 2007 pro media playback
Hey guys need some help here, what I want to do is to first load a .flv into the flash MX 2004 pro media play back component then play the .flv How can this be done and does any one have a link to a tutorial or code example. Thanks guy. Tony Trapp - DBTWeb.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] textures
no problem, been there:) On 7/18/07, Cristo @ cryzto.ch [EMAIL PROTECTED] wrote: I did check the manual, but apparently not good enough... :) I'm kind in a hurry (project 4 school), that's why I didn't really have the time for checking all manuals... Thanx for the answer JC Cristo [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Hans Wichman Gesendet: Mittwoch, 18. Juli 2007 06:46 An: flashcoders@chattyfig.figleaf.com Betreff: Re: [Flashcoders] textures Hi, I have an interesting question too, did you check the manual? :) beginBitmapFill (MovieClip.beginBitmapFill method) public beginBitmapFill(bmp:BitmapData, [matrix:Matrix], [repeat:Boolean], [smoothing:Boolean]) : Void Fills a drawing area with a bitmap image. The bitmap can be repeated or tiled to fill the area. greetz JC On 7/18/07, Cristo @ Cryzto [EMAIL PROTECTED] wrote: Hi everybody! I've surely got a interesting question: If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1341 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 1283 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 ___ 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: obfuscation swf !
Since we're talking about obfuscation/encryption does anyone know of a tool that works for AS3 yet? All the standard tools seem to stop with Flash 8/AS2. Doug -Original Message- From: Sunil Jolly [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 2:09 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] RE: obfuscation swf ! I agree with JC that it wasn't really necessary to be quite so spiteful about defeating his code. I think the problem may have come from a here's my solution, try and break it attitude instead of simply giving details of how it (was supposed to) work. Everyone here shares their knowledge to help other people, where in this case it didn't seem like it. As far as I know, any flash file (.swf) is downloaded to a client's computer to be played, so its impossible to stop people from downloading your swf files. Sunil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: 18 July 2007 05:56 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] RE: obfuscation swf ! Hi, I might be wrong but like Bart said, I think SWFEncrypt does all this already. At least I haven't had any problems with this andits fast too AND usable from a build file. But I'm sure some of you will be able to crack it. What I do have problems with is the attitude displayed towards Jimbo by some of the responders for trying to come up with a nice and easy solution, even it isn't foolproof. Putting a donkey sign over someones head is less than motivating. He offered us a challenge, some of us took it and won. No need to get all nasty about it imo. greetz JC ___ 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] Standalone projectors and UDP
That's probably a very good thing for me to check, or at the very least a good thing to keep in mind when other people come to me asking why my game doesn't work later on. I've actually managed to get UDP traffic through NAT now, with no port forwarding, tricks, or hacks on the client side. The downside, is that I've only managed to do this through Java. It seems like MDM Zinc might not be formatting their packets in the same way. I think it doesn't fill in the sending IP, or sending port fields. There also seems to be problems keeping a TCP/IP connection open, and sending UDP packets at the same time. I'll do some more research and try SWF Studio next. Anyway, the final thing I used was called UDP Hole Punching, and there's a really good wikipedia article about it. --- Jim Ault [EMAIL PROTECTED] wrote: One aspect of UDP to check is the max packet size handled by your equipment. Different computers and routers have varying limits, and the failure is silent. This means that you should test the firewall/equipment with very small packets to see if there is a connection, then increase the size to find the limit. Vonage uses UDP and many stock data feeds as well, largely due to the speed. I don't know the specifics, but there should be something out there that gives recommended packet sizes. Jim Ault 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news ___ 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] AS 2.0 Tweening libraries
To each his own. I've got nothing against Fuse specifically (or any other tweening engine), but TweenLite might be worth looking at because: 1) It's only about 2K 2) I haven't been able to find a faster tweening engine 3) It's got AS2 and AS3 flavors 4) It has a big brother, TweenFilterLite (5K total), that handles tweening filters like blurs, drop shadows, etc. including ColorMatrixFilter effects like colorization, hue, saturation, contrast, etc. 5) Despite being only 2K, it has a ton of functionality built-in (tween multiple properties, build in delays, onComplete and onStart callbacks, pass any number of parameters, automatically overwrite conflicting tweens, tween color, volume, arrays of numbers, etc.) 6) It doesn't rely on prototype alterations, so it should compile cleanly in various environments 7) The syntax is pretty darn simple (Tweener users should be right at home) Again, I'm not saying TweenLite is better than any other tweening engine out there (I'm admittedly biased). You asked about benefits in other packages, and the response to TweenLite has been very positive so I thought I'd mention it. www.TweenLite.com www.TweenFilterLite.com Jack Doyle -Original Message- Date: Wed, 18 Jul 2007 09:48:27 -0400 From: Alan MacDougall [EMAIL PROTECTED] Subject: [Flashcoders] AS 2.0 Tweening libraries To: flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed So, coming off the enterFrame() tween discussion, a lot of people mentioned various tweening libraries. I still use Fuse, which has proven extremely capable for my purposes; are there any pressing flaws in Fuse, or benefits in the other packages, that might convince me to change? ___ 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] AS 2.0 Tweening libraries
I've used TweenLite and TweenFilterLite in a couple projects -- ease of use was an issue in the prototyping stages and small file size was a benefit in deployment. Works as advertised and well worth a look! regards, - jim armstrong www.algorithmist.net http://algorithmist.wordpress.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jack Doyle Sent: Wednesday, July 18, 2007 12:05 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] AS 2.0 Tweening libraries To each his own. I've got nothing against Fuse specifically (or any other tweening engine), but TweenLite might be worth looking at because: ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: obfuscation swf !
On 7/18/07, Douglas Pearson [EMAIL PROTECTED] wrote: Since we're talking about obfuscation/encryption does anyone know of a tool that works for AS3 yet? All the standard tools seem to stop with Flash 8/AS2. I don't think there are any decompilers for AS3 yet, but I could be wrong, and it's just a matter of time anyway. If you want to take a shot at adding some obfuscation yourself, you could get Swfmill off svn and hack something together that jumps around in the ABC tags a bit. Ralf just added AVM2 opcode support the other day. Mark ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: obfuscation swf !
Or, if you're a masochist: http://www.kirupa.com/forum/showthread.php?t=256400 - Jon On Jul 18, 2007, at 1:13 PM, Mark Winterhalder wrote: On 7/18/07, Douglas Pearson [EMAIL PROTECTED] wrote: Since we're talking about obfuscation/encryption does anyone know of a tool that works for AS3 yet? All the standard tools seem to stop with Flash 8/AS2. I don't think there are any decompilers for AS3 yet, but I could be wrong, and it's just a matter of time anyway. If you want to take a shot at adding some obfuscation yourself, you could get Swfmill off svn and hack something together that jumps around in the ABC tags a bit. Ralf just added AVM2 opcode support the other day. Mark ___ 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] AS3 BitmapGradientFill
I'm sure I'm missing something basic here. In Flash 9 I'm trying to create a gradient fill that starts at blue, over the first 3rd of the shape it fades to white, remains solid white over the next 3rd then over the final 3rd it fades from white back to blue. I thought the code below should do it but I get an image that starts off solid white for about the first 3rd then fades to blue. Any suggestions on what I'm doing wrong. Thanks, Rob var _grad:Shape = new Shape(); _grad.graphics.beginGradientFill(linear, [0xff, 0xff, 0xff, 0xff], [1, 1, 1, 1], [0,85,170,255]); _grad.graphics.drawRect(0,0,100,100); _grad.graphics.endFill(); addChild(_grad); ___ 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] AS2: LocalConnection as broadcaster?
It looks like when you .send using LocalConnection, the first listener gobbles up the message, so that if there are two SWF files which have connected, only one will receive the message. Do I understand this correctly? This seems like an artificial limitation that makes no sense to me... are things different in AS3? I'd guess the workaround would be to set up a relaying system that would keep the message alive-- anyone have another workaround? Thanks, --Dave ___ 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] XML Load delay, and looks like infinite loop?
I have a class which does an XML load, and receives a response that's roughly 10k. We use this class in several different instances. We're tracing the server, and the response is sent about one second after receiving the request. Then we see a roughly 15 second delay before the onHTTPStatus function is invoked. On the Mac, the spinning rainbow cursor appears, and in one instance, this delay is enough to cause the infinite loop dialog box to be invoked: A script in this movie is causing Adobe Flash Player 9 to run slowly. If it continues to run, your computer may become unresponsive. If I hit NO, the response seems to be immediately received and everything continues correctly. This dialog box never appears on Windows. On Mac, it appears in the one instance only, and both in Safari and Firefox. Two things puzzle me about this: 1. What would cause the dialog box to appear? Between the .load and receiving the httpStatus response, shouldn't Flash just be sleeping/polling, or does it actually loop while checking for the response? 2. Where could the delay be? The server seems to have completed sending, the send is only about 10k, and there shouldn't be much processing needed between receiving data and the onHTTPStatus handler being invoked, should there? private var xReceive: XML; private function host_status( httpStatus:Number ):Void { trace (httpStatus=+httpStatus); }; private function host_data( sSrc:String ):Void { trace( Source received:); ... // other processing }; this.xReceive.onHTTPStatus = Delegate.create(this, this.host_status); this.xReceive.onData = Delegate.create(this, this.host_data); trace(sending...); this.xReceive.load( url ); - output: sending... 15 second delay!! httpStatus=0 Source received: ___ 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] Q:gmaps component vs Flash to Javascript integration kit
Hi Starting a major project using the Google API and flash but not decided yet on the best approach. Figure I can either use 1) the free component from http://www.afcomponents.com/ or 2) use the Flash to JavaScript integration kit along with the javascript Google API. Can anyone offer me a recommendation? I'll need to have full control over customizing/skinning the zoom/pan controls as well as the pop-up windows. And performance and load times are also a concern. [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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] AS 2.0 Tweening libraries
#import mc_tween2.as I've used Zeh's MC Tween hundreds of times. Probably because I started out with Ladislav Zigo's engine and it solved all the callback issues. Sure, putting it in an AS 2.0 project takes a little trick, but toss in a Delegate or two for a callback and you have a sequencer! While I would recommend Tweener, Fuse, or TweenLite from here on out - I still gotta say MC Tween: it saves the world! THANKS ZEH! You can see a list of other tween engines over at http://www.justgooddesign.com/blog/scripted-animation-tweened-and-eased.htm What might change your mind about switching from any of these to another? - Size - Syntax - Sequencing _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan MacDougall Sent: Wednesday, July 18, 2007 6:48 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AS 2.0 Tweening libraries So, coming off the enterFrame() tween discussion, a lot of people mentioned various tweening libraries. I still use Fuse, which has proven extremely capable for my purposes; are there any pressing flaws in Fuse, or benefits in the other packages, that might convince me to change? ___ 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: LocalConnection as broadcaster?
Only one server can be active (connected) with a particular connection identifier. If you try to connect another LocalConnection server with an already existing identifier (even in another movie), connect() will fail and return false. var lc1: LocalConnection = new LocalConnection(); trace(lc1.connect(myconnection)); // true var lc2: LocalConnection = new LocalConnection(); trace(lc2.connect(myconnection)); // false Movies originated from different domains however can use the same identifier, since the real connection id is not the one passed to connect(), but the domain name + : + the connect()'s parameter (e.g.: www.domain.com:myconnection), so it will not cause troubles. Connection IDs having an underscore at the beginning will not be prefixed with the domain name, so they can be used for inter-domain communication. Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:David Cohn [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Wednesday, July 18, 2007, 8:53:06 PM Subject: [Flashcoders] AS2: LocalConnection as broadcaster? --===-- It looks like when you .send using LocalConnection, the first listener gobbles up the message, so that if there are two SWF files which have connected, only one will receive the message. Do I understand this correctly? This seems like an artificial limitation that makes no sense to me... are things different in AS3? I'd guess the workaround would be to set up a relaying system that would keep the message alive-- anyone have another workaround? Thanks, --Dave ___ 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] AS3 BitmapGradientFill
Set up a matrix which determines the gradient box and pass it to the beginGradientFill(), e.g: var m: Matrix = new Matrix(); m.createGradientBox(100, 100); _grad.graphics.beginGradientFill(linear, [0xff, 0xff, 0xff, 0xff], [1, 1, 1, 1], [0,85,170,255], m); Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From:Rob Romanek [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Wednesday, July 18, 2007, 7:48:01 PM Subject: [Flashcoders] AS3 BitmapGradientFill --===-- I'm sure I'm missing something basic here. In Flash 9 I'm trying to create a gradient fill that starts at blue, over the first 3rd of the shape it fades to white, remains solid white over the next 3rd then over the final 3rd it fades from white back to blue. I thought the code below should do it but I get an image that starts off solid white for about the first 3rd then fades to blue. Any suggestions on what I'm doing wrong. Thanks, Rob var _grad:Shape = new Shape(); _grad.graphics.beginGradientFill(linear, [0xff, 0xff, 0xff, 0xff], [1, 1, 1, 1], [0,85,170,255]); _grad.graphics.drawRect(0,0,100,100); _grad.graphics.endFill(); addChild(_grad); ___ 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] drag and drop
Anyone attempt a DragManager class in AS3 for use with Flash CS3 (not the flex sources). Specifically a singleton that takes a proxy (bitmap) and uses that for the dragging, with a method to have acceptable targets. Trying to work that out and would like to know if I'm re-inventing the wheel here. cheers, - jon ___ 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] AS3 BitmapGradientFill
Thanks alot, that does the trick. Rob On Wed, 18 Jul 2007 16:45:59 -0400, Rákos Attila [EMAIL PROTECTED] wrote: Set up a matrix which determines the gradient box and pass it to the beginGradientFill(), e.g: var m: Matrix = new Matrix(); m.createGradientBox(100, 100); _grad.graphics.beginGradientFill(linear, [0xff, 0xff, 0xff, 0xff], [1, 1, 1, 1], [0,85,170,255], m); Attila ___ 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] AS 2.0 Tweening libraries
I'm sure you meant: #include mc_tween2.as That alone (#include) should make you run the other way when doing AS2. I personally don't like/recommend mc_tween, as it clutters the prototype of several built in objects: MovieClip TextField Sound The new Tweener seems to be a better implementation (now uses Classes and no longer uses MovieClip.prototype, etc..), but I haven't tried it out yet. Proper documentation seems to be missing however: http://code.google.com/p/tweener/wiki/Documentation Not even half of the methods are documented. The download does not include any documentation, just the class files. A few things I was looking for: support for adding/removing event handlers -- addEventListener(event, handler) support for custom easing rather than the predefined ones (robert penner's). support for parallel and sequence tweening Some or all of this might be possible, but without proper documentation, all I can do is guess.. When looking at the classes I noticed that the transition parameter can be either a string or a function, so I guess custom easing is possible. As I mentioned earlier, I use Animation Package: http://www.alex-uhlmann.de/flash/animationpackage/ Not saying it's perfect or *the best*.. And here's some stuff Alex has been doing in Flex http://weblogs.macromedia.com/auhlmann/archives/2007/03/distortion_effe.cfm http://www.alex-uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/ regards, Muzak - Original Message - From: Jesse Graupmann [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, July 18, 2007 10:13 PM Subject: RE: [Flashcoders] AS 2.0 Tweening libraries #import mc_tween2.as I've used Zeh's MC Tween hundreds of times. Probably because I started out with Ladislav Zigo's engine and it solved all the callback issues. Sure, putting it in an AS 2.0 project takes a little trick, but toss in a Delegate or two for a callback and you have a sequencer! While I would recommend Tweener, Fuse, or TweenLite from here on out - I still gotta say MC Tween: it saves the world! THANKS ZEH! You can see a list of other tween engines over at http://www.justgooddesign.com/blog/scripted-animation-tweened-and-eased.htm What might change your mind about switching from any of these to another? - Size - Syntax - Sequencing ___ 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] AS 2.0 Tweening libraries
The new Tweener seems to be a better implementation (now uses Classes and no longer uses MovieClip.prototype, etc..), but I haven't tried it out yet. Proper documentation seems to be missing however: http://code.google.com/p/tweener/wiki/Documentation Not even half of the methods are documented. The download does not include any documentation, just the class files. A few things I was looking for: support for adding/removing event handlers -- addEventListener(event, handler) support for custom easing rather than the predefined ones (robert penner's). support for parallel and sequence tweening Just as a small addendum, and to make things a bit more clear: I agree documentation is a must. The current Tweener documentation sucks. It's being rewritten so it can be a real downloadable+IDE documentation; using the wiki for documentation was a mistake I realized later. The html docs available through subversion (which are the same documentation that will be available as a normal download) already feature more content than the wiki, although it's still missing stuff. Feature wise: Event handling is done on a tweening basis and not on object/instances -- meaning they're added with addTween() but you can't assign once the tween is done. There are no tweening instances. It's actually one of the main points of Tweener: being simple. This means you won't be creating instances of everything, then adding a bunch of events or callbacks later -- just one line per tweening. You can create the object on several different lines if you wish, but it's not usually the point. Custom easing is done by creating and using any function you'd wish and it follows the 'classic' function parameter order as defined by Penner's own functions (and other easing equation builders available out there). You're right in the sense that it accepts string parameters (built-in, default functions) or function reference themselves. Tweening is parallel by default and sequence tweening is done by using delays, which may be a positive or a negative feature depending on your point of view (like most of the points above actually). As a final thought... there are moments where you require one entire ecosystem of OOP patterns just for one single tweening to take place. But that's not what Tweener is trying to do. That's why it has a focus in being simple (you don't create instances for everything), modular (you can attach property modifiers and other transitions to the engine) and flexible (loose syntax by way of anynoymous objects) that won't be the best for everyone. That's also why I believe tweening options are more bound to personal preference and personal needs than anything; one can't do it all and still keep syntax consistency. I'm a firm believer that a solution that fits all will be a solution that fits none, or several different solutions inside itself that are very different from each other. Hence why it's a great thing to have these many more options in tweening extensions/classes for as2, as3 and beyond. Zeh ___ 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] AS 2.0 Tweening libraries
WWMND - What would Muzak not do? Yes, Jesse? Tweener makes you jump higher, live longer, save the world, AND gives you more attractive examples http://labs.blitzagency.com/?p=314 oh boy.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Wednesday, July 18, 2007 3:15 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS 2.0 Tweening libraries As I mentioned earlier, I use Animation Package: http://www.alex-uhlmann.de/flash/animationpackage/ Not saying it's perfect or *the best*.. And here's some stuff Alex has been doing in Flex http://weblogs.macromedia.com/auhlmann/archives/2007/03/distortion_effe.cfm http://www.alex-uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/ regards, Muzak ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: obfuscation swf !
whats this? Jon Bradley wrote: Or, if you're a masochist: http://www.kirupa.com/forum/showthread.php?t=256400 - Jon On Jul 18, 2007, at 1:13 PM, Mark Winterhalder wrote: On 7/18/07, Douglas Pearson [EMAIL PROTECTED] wrote: Since we're talking about obfuscation/encryption does anyone know of a tool that works for AS3 yet? All the standard tools seem to stop with Flash 8/AS2. I don't think there are any decompilers for AS3 yet, but I could be wrong, and it's just a matter of time anyway. If you want to take a shot at adding some obfuscation yourself, you could get Swfmill off svn and hack something together that jumps around in the ABC tags a bit. Ralf just added AVM2 opcode support the other day. Mark ___ 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] AS 2.0 Tweening libraries
Just as a small addendum, and to make things a bit more clear: I agree documentation is a must. The current Tweener documentation sucks. It's being rewritten so it can be a real downloadable+IDE documentation; using the wiki for documentation was a mistake I realized later. The html docs available through subversion (which are the same documentation that will be available as a normal download) already feature more content than the wiki, although it's still missing stuff. Better documentation.. that's good to hear ;-) I'd also suggest to split up the available examples: - basic - advanced The first one I looked at: docked icons http://tweener.googlecode.com/svn/trunk/examples/docked_icons_as2_flash8.zip The swf in the zip file doesn't work for some reason. I had to compile the fla. There's a few comments in the fla, but doesn't really explain what's going on, what makes it tick (but maybe I'm expecting too much). The code could (should?) be improved, but I assume - like the docs - this is work in progress. The other example I looked at: splash buttons http://tweener.googlecode.com/svn/trunk/examples/splash_buttons_as2_flash8.zip A more basic example that clearly shows how Tweener works (including sequence and parallell). Again, some comments explaining things a bit more would be nice.. and dare I say it.. Delegate Feature wise: snip / That's also why I believe tweening options are more bound to personal preference and personal needs than anything; one can't do it all and still keep syntax consistency. I'm a firm believer that a solution that fits all will be a solution that fits none, or several different solutions inside itself that are very different from each other. Hence why it's a great thing to have these many more options in tweening extensions/classes for as2, as3 and beyond. Totally agree ;-) and Tweener looks like a nice addition to the already available solutions out there. regards, Muzak ___ 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] AS 2.0 Tweening libraries
Hey Muzak, thanks for all the comments. Your suggestions make sense. Just a small thing: (...) The first one I looked at: docked icons http://tweener.googlecode.com/svn/trunk/examples/docked_icons_as2_flash8.zip The swf in the zip file doesn't work for some reason. I had to compile the fla. Hell, not sure what went wrong - the compiled SWF was really defective. Thanks, it's fixed not. Zeh ___ 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