[Flashcoders] FlashMattic -My Hebrew Flash Blog
Hey list, whad''up? Just wanted to tell you about my new Hebrew Flash Blog. No... you won't find the complete solution to RTL for flash there, but many post on what's to be, and new stuff I bump into while exploring as3 and Flex. Here's where you can fine it: http://www.flashmattic.blogspot.com and it's also listed in the MXNA News aggregator. Of course, if you don't read Hebrew, it won't mean that much to you :) take care, bye. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FlashMattic -My Hebrew Flash Blog
Hi There, If you do figure out any useful solutions to the RTL issues, posting english translations of them would be much appreciated. The RTL issue is of great interest to myself, and I'm sure many other non hebrew speakers. Thanks, Alias On 1/16/06, matti bar zeev [EMAIL PROTECTED] wrote: Hey list, whad''up? Just wanted to tell you about my new Hebrew Flash Blog. No... you won't find the complete solution to RTL for flash there, but many post on what's to be, and new stuff I bump into while exploring as3 and Flex. Here's where you can fine it: http://www.flashmattic.blogspot.com and it's also listed in the MXNA News aggregator. Of course, if you don't read Hebrew, it won't mean that much to you :) take care, bye. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FlashMattic -My Hebrew Flash Blog
So far, a co-programmer and myself managed to get the RTL oriented languges to appear right. Wer'e talking about the Hebrew and Arabic. Arabic is more complicated since there are many chars that combine together in a word... still No Complete Solution. My guesses are the Macrodobe will tend to this issue, hopefully, at the next release, as this is a major problem in Flash which is not getting the full attention it should have. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Flashcoders mailing list Sent: Monday, January 16, 2006 10:31 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] FlashMattic -My Hebrew Flash Blog Importance: Low Hi There, If you do figure out any useful solutions to the RTL issues, posting english translations of them would be much appreciated. The RTL issue is of great interest to myself, and I'm sure many other non hebrew speakers. Thanks, Alias On 1/16/06, matti bar zeev [EMAIL PROTECTED] wrote: Hey list, whad''up? Just wanted to tell you about my new Hebrew Flash Blog. No... you won't find the complete solution to RTL for flash there, but many post on what's to be, and new stuff I bump into while exploring as3 and Flex. Here's where you can fine it: http://www.flashmattic.blogspot.com and it's also listed in the MXNA News aggregator. Of course, if you don't read Hebrew, it won't mean that much to you :) take care, bye. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Obfuscation
if anyone has any further coherent information or personal experience with obfuscating by hand (ie not using someone else's software)... i would be more then happy to hear from you. once i actually achieve any results i will report back. i'm benchmarking against asv and sothink 2005 build 5.whatever. One thing that people don't consider is that You don't need to obfuscate if people can not access the SWF In the first place 1) use SSL + prevent caching in the HTTP header - no SWF in the browser cache or 2) instead of pointing to foobar.swf in the Object/Embed tag point to getBinary.php /getBinary.asp / whatever + prevent caching in the HTTP header - no SWF in the browser cache It's complicated to put in place, but the result is No SWF in the browser cache to decompile 2) off course is still not 100% safe against people being able to detect a SWF stream with a HTTP sniffer but the solution 1) well.. almost unbeatable zwetan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FlashMattic -My Hebrew Flash Blog
So far, a co-programmer and myself managed to get the RTL oriented languges to appear right. Wer'e talking about the Hebrew and Arabic. Arabic is more complicated since there are many chars that combine together in a word... still No Complete Solution. My guesses are the Macrodobe will tend to this issue, hopefully, at the next release, as this is a major problem in Flash which is not getting the full attention it should have. The real killer for us has been bidirectional text. At least with RTL there's some kind of end in sight, but bidirectional is just evilness... Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FlashMattic -My Hebrew Flash Blog
thats's what I'm talking about. a full BIDI display algorithm. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Flashcoders mailing list Sent: Monday, January 16, 2006 12:42 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] FlashMattic -My Hebrew Flash Blog Importance: Low So far, a co-programmer and myself managed to get the RTL oriented languges to appear right. Wer'e talking about the Hebrew and Arabic. Arabic is more complicated since there are many chars that combine together in a word... still No Complete Solution. My guesses are the Macrodobe will tend to this issue, hopefully, at the next release, as this is a major problem in Flash which is not getting the full attention it should have. The real killer for us has been bidirectional text. At least with RTL there's some kind of end in sight, but bidirectional is just evilness... Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Obfuscation
zwetan, if anyone has any further coherent information or personal experience with obfuscating by hand (ie not using someone else's software)... i would be more then happy to hear from you. once i actually achieve any results i will report back. i'm benchmarking against asv and sothink 2005 build 5.whatever. One thing that people don't consider is that You don't need to obfuscate if people can not access the SWF In the first place 1) use SSL + prevent caching in the HTTP header - no SWF in the browser cache or 2) instead of pointing to foobar.swf in the Object/Embed tag point to getBinary.php /getBinary.asp / whatever + prevent caching in the HTTP header - no SWF in the browser cache It's complicated to put in place, but the result is No SWF in the browser cache to decompile 2) off course is still not 100% safe against people being able to detect a SWF stream with a HTTP sniffer but the solution 1) well.. almost unbeatable Neither of your 'solutions' is even remotely unbeatable. I can get around both of them with the wget command-line tool, which is a standard install on most flavours of linux. There are others that do the same thing, and any download accelerator program for Windows will also be able to download the file. Obfuscation is the only way to protect your code, and even then I wouldn't consider it 'almost unbeatable'. -- Steve Webster Head of Development Featurecreep Ltd. www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH 0117 905 5047 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FlashMattic -My Hebrew Flash Blog
Hello fellow Israel dude :) I saw on your blog a webcam game, well Chk : http://gamez.tipo.co.il/Gamez/CamPlay_Main.asp my 3 webcam games for my site :) TIPO :) 10x nice to meet people from my country on here :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FlashMattic -My Hebrew Flash Blog
thats's what I'm talking about. a full BIDI display algorithm. Out of interest, what is the UI when working with bidirectional? If you're using a bidirectional word processor, how do you switch from one to the other? Does it happen automatically when you change from one font to another? Or do you press a button to say which direction you're entering text? What happens to the cursor when you use the arrow keys to move left and right through the text? That is, suppose your text is (pretend the letters are in an rtl face) hgf 1234 edcba, when you are at the right and press the left button repeatedly, where does it end up after it passes the e? at 1 or at 4? How does selection work? This is likely to be an important issue for us soon, so any info would be helpful. Thanks Danny (Incidentally, for plain rtl, you can get good results just by using a mirrored font and then flipping all your text fields horizontally. Instant results with no fuss!) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can't redefine class method
You probably have to cast the class - i know mtasc is super strict about that. Something like : var b:B=B(this); b.dothis(); hi Chris, mtasc behaves the same. i've had a look with flasm, it explicitly calls A.dothis() in A.doit. writing this.dothis() isn't possible because it's a static function -- there is no object this could refer to. there is, as far as i know, nothing you can do about it except to work around it by either cutting'n'pasting doit from A, or using a singleton instead. instinctively, i would agree with you and expect B.dothis to get called when i call B.doit, though. mark On 1/16/06, Chris Velevitch [EMAIL PROTECTED] wrote: I have 2 classes, A and B. B extends A:- class A { private function A(){}; public static function doit() { dothis(); } private static function dothis() { trace(A.dothis); } } import A; class B extends A { private function B(){}; private static function dothis() { trace(B.dothis); } } and when I call B.doit(), the trace output is:- A.dothis whereas I'm expecting B.dothis. I using Flash Professional v 8.0. Has anyone seem this problem before? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can't redefine class method
Hi, i've had a look with flasm, it explicitly calls A.dothis() in A.doit. writing this.dothis() isn't possible because it's a static function -- there is no object this could refer to. there is, as far as i know, nothing you can do about it except to work around it by either cutting'n'pasting doit from A, or using a singleton instead. instinctively, i would agree with you and expect B.dothis to get called when i call B.doit, though Nope, when you call the static method, it will not change when subclassed. That is exactly as I would expect. This is due to the fact, that static methods aren't inherited - they do not exist on instances. They only exist on the class itself. When you call a static method or refence a static variable, that path to the variable or method will be hardcoded in front of the name of the member and thus not change when subclassed. I would also expect this behaviour. Consider static methods as though they existed in a totally different class. If class A refenced a method of class C, then just because A was subclassed into B, B still refers to class C - what else should it do? -- Morten Barklund - Information Architect - Shockwaved Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Easing text speed in TextArea component
Hello, It is possible to insert a easing text scroll in the TextArea Scrollbar?Where can i insert the code? Best regards ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Flashcoders Digest, Vol 12, Issue 42
Hi: I don't recall seeing an answer to this. If I missed it, please let me know. See below: Message: 4 Date: Sun, 15 Jan 2006 00:38:01 + From: Stephen Ford [EMAIL PROTECTED] Subject: [Flashcoders] Listener objects vs event handler functions ... To: flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; format=flowed If this is an example of the listener object approach: myObj = new Object(); myObj.onMouseDown = myFunction; function myFunction() { trace(tracing something); } Mouse.addListener(myObj); ... and the listener object approach is favored over the event handler function approach, what would the above code look like if it were written with the event handler function approach. Where you can use one approach, can you always use the other ? (trying to understand the difference and where to use one instead of the other). Apparently, the main reason the listener object approach is favored is because multiple listener objects can receive events from the same component/movieclip/etc. Does anyone have an example of this so I can see the advantage in action. Thanks in advance for any assist, Stephen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ComboBox not firing change event when selectedIndex set
use this instead (attach ur function to an object) var Listener_obj:Object= new Object(); Listener_obj.change=function(evt:Object) { trace(new Selected Index=+evt.target.selectedIndex); } myCmb.addEventListener(change,Listener_obj); myCmb.selectedIndex=2; the reason behind this, is that you can attach more than an event listener to that Listener_obj and finally in 1 line of code use it with the combobox. Good luck Yehia Shouman On 1/16/06, Steven Sacks [EMAIL PROTECTED] wrote: function change() { trace(change); } MyCmb.addEventListener(change, this); MyCmb.selectedIndex = MyCmb.selectedIndex + 1; Does not fire a change event. How do I detect when the combo box has changed from code not from direct user interaction with the component? This seems completely stupid to me because the combobox WAS CHANGED so it SHOULD FIRE A CHANGE EVENT. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] webservice help needed : object not decoded
Hi list, I encounter troubles with using webservices from java. When I call a method that returns a simple Object (flash native or self defined class object), there are no problem but as soon as I call a method that returns an array of self defined object I receive an undefined value for the result param in the onResult method. the service works well in the browser, and when I trace the response propertie, I can see the xml object with the correct returns. but undefined in the result value, nothing but the xml properties in the getOutputParameters... please help! PR ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash lite 2.0 download
You mean there are more countries outside of the US? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer Sent: 12 January 2006 22:54 To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash lite 2.0 download I just called Adobe Australia Customer support. Apparently it is not possible to purchase the Flash Lite Player outside of the US. Maybe it would be a good idea to a make a product accessible worldwide before advertising it on the website ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer Sent: Thursday, 12 January 2006 9:33 AM To: Flashcoders mailing list Subject: [Flashcoders] Flash lite 2.0 download Hi there, I was trying to download the flash new flash lite player for my Nokia 6670 yesterday. However adobe/macromedia website always linked me to the American products store. Even though I have a Macromedia account the order form would not accept my Australian address. I could not find the flash Lite player on the Asia Pacific website either. How annoying is that? Anybody found a way to download the player outside the US? Can you at least purchase it over the phone? Robin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Obfuscation
Neither of your 'solutions' is even remotely unbeatable. I can get around both of them with the wget command-line tool, which is a standard install on most flavours of linux. There are others that do the same thing, and any download accelerator program for Windows will also be able to download the file. I can block wget with just JavaScript ;) http://www.gnu.org/software/wget/faq.html#3.6 Wget doesn't feature JavaScript support and is not capable of performing recursive retrieval of URLs included in JavaScript code. In fact, it is impossible to extract URLs from JavaScript by merely parsing it. Web clients need to actually execute it, and Wget can't do that since it's not a GUI browser. Obfuscation is the only way to protect your code, and even then I wouldn't consider it 'almost unbeatable'. I still think obfuscation is not the only way... zwetan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash Projects Visual Source Safe
Hello, all. Long time listener, first time caller. And of course, I have an annoying question to start out with: So I've finally gotten around to setting up VSS and to start using projects and I'm realizing that when I go into Flash Projects to set up a Site with VSS (see figure 1 http://www.geocities.com/kevin_fitzpatrick3d/flash-project-sourcesafe.g if ) and it seems like the option for Visual SourceSafe isn't there. Now I know I have the VSS Client installed (see figure 2 http://www.geocities.com/kevin_fitzpatrick3d/visual-sourcesafe.gif ) and I know I can connect via that client to the server. This all then leads me to the question of why don't I have that option? I've been working on this all morning and I haven't found mention of this issue anywhere. I am currently using Flash MX 2004 v7.2. Any and all comments are appreciated. Thanks, Kevin Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Extending UIComponent or MovieClip
Does anyone have a working example of extending UIComponent or MovieClip to create a component that uses Live Preview publishes in both Flash Player 6 and 7? I know this involves using clipParameters initFromClipParameters but I cannot find anything that spells this out at all. People mention it all the time all over the web but it is just not clear to me. I know this was beat to death a couple of years ago but I'm just working with it now and to no avail. Thanks, Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JSFL help
I need to create some templated swf's and would like the text fields in the swf to be populated either by a human being whois not a flash developer (e.g. enter data into a panel and it puts the data into the correct text field variables). Or to have swf's generated from a text file, say coma separated that contains the values for the text fields, is this even possible yes on both counts and are there any good lists out there from JSFL ? check out the extending flash list hosted by guy watson on flashguru.co.ukalso check out the jsfl section at actionscript.org it does sound like a job for jsfl ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Obfuscation
Hi zwetan, Neither of your 'solutions' is even remotely unbeatable. I can get around both of them with the wget command-line tool, which is a standard install on most flavours of linux. There are others that do the same thing, and any download accelerator program for Windows will also be able to download the file. I can block wget with just JavaScript ;) Fair enough, but then you also block all your regular visitors who have JavaScript disabled from accessing your SWF file. Anyway, ultimately the swf file will be loaded from somewhere (via physical file or script) and I can just point wget at that file instead. Safari's Activity window will show me all URLs loaded as part of the page, so I just just copy it from there. Obfuscation is the only way to protect your code, and even then I wouldn't consider it 'almost unbeatable'. I still think obfuscation is not the only way... I think we'll probably have to agree to disagree here. Since the Flash file *has* to be downloaded to the client for playback, it can be downloaded to the client for de-compiling. I wouldn't normally mind people protecting their own stuff using the methods you described, but when you're advising others it's important to make sure the advice you're giving out is sound. Either that, or tell people of the potential problems with your solution rather than just saying that it's 'almost unbeatable'. Sorry if I sound confrontational, but security is a bugbear of mine. -- Steve Webster Head of Development Featurecreep Ltd. www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH 0117 905 5047 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Extending UIComponent or MovieClip
Nevermind, I have found an example after much searching. If anyone is interested I found this example of someone else's class on the web. http://www.bdontwerp.nl/resources/components/simpleslider/SimpleSlider.a s Thanks anyway! Hope this helps anyone who was having the same problem I was! Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fitzpatrick, Kevin Sent: Monday, January 16, 2006 11:03 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Extending UIComponent or MovieClip Does anyone have a working example of extending UIComponent or MovieClip to create a component that uses Live Preview publishes in both Flash Player 6 and 7? I know this involves using clipParameters initFromClipParameters but I cannot find anything that spells this out at all. People mention it all the time all over the web but it is just not clear to me. I know this was beat to death a couple of years ago but I'm just working with it now and to no avail. Thanks, Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Flashcoders Digest, Vol 12, Issue 44
Hi: I'm working on a 3MB Flash file which is a simulation. Everything works fine until I try to preview or publish. All of a sudden it consumes 272MB of RAM. Finally, it does publish. Our Tech Guy says something is wrong with the FLA file. However, I can't figure it out. I'm getting no error msgs in Flash. Can you help? Please go here to download the FLA in a Zip file. http://www.d-mag.org/testing/ Your input is greatly appreciated. Sincerely, Loren ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Obfuscation
- zwetan wrote: I still think obfuscation is not the only way... Also, SWF in a web page isn't the only one to protect... IMO, protecting something with the aid of server-side of any kind is quite different subject. And main question there is about file storage, headers, cache etc rather than AS or SWF bytecode itself. Yes, using some server-side solution can beat 90% of amateur thieves. But, as mentioned above, it's only about web page. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Projects Visual Source Safe
Read the docs - integration of VSS with Flash is for Flash 2004 MX Professional. You might want to look at Subversion (version control software) with Tortoise (Windows interface); I've not used it for Flash because the .fla is one honking big binary. FWIW - tried both Subversion and VSS for Visual Basic work and much preferred the former. Cheers - Miles At 11:28 AM 1/16/2006, Fitzpatrick, Kevin wrote: Hello, all. Long time listener, first time caller. And of course, I have an annoying question to start out with: So I've finally gotten around to setting up VSS and to start using projects and I'm realizing that when I go into Flash Projects to set up a Site with VSS (see figure 1 http://www.geocities.com/kevin_fitzpatrick3d/flash-project-sourcesafe.g if ) and it seems like the option for Visual SourceSafe isn't there. Now I know I have the VSS Client installed (see figure 2 http://www.geocities.com/kevin_fitzpatrick3d/visual-sourcesafe.gif ) and I know I can connect via that client to the server. This all then leads me to the question of why don't I have that option? I've been working on this all morning and I haven't found mention of this issue anywhere. I am currently using Flash MX 2004 v7.2. Any and all comments are appreciated. Thanks, Kevin Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 1/14/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash Projects Visual Source Safe
Miles, Sorry I wasn't more specific, I am using MX 2004 Pro and the option isn't there. I can't seem to find any more information on the problem. Unforunately, I'm tied to VSS because the entire department uses it. Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miles Thompson Sent: Monday, January 16, 2006 12:32 PM To: Flashcoders mailing list; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Flash Projects Visual Source Safe Read the docs - integration of VSS with Flash is for Flash 2004 MX Professional. You might want to look at Subversion (version control software) with Tortoise (Windows interface); I've not used it for Flash because the .fla is one honking big binary. FWIW - tried both Subversion and VSS for Visual Basic work and much preferred the former. Cheers - Miles At 11:28 AM 1/16/2006, Fitzpatrick, Kevin wrote: Hello, all. Long time listener, first time caller. And of course, I have an annoying question to start out with: So I've finally gotten around to setting up VSS and to start using projects and I'm realizing that when I go into Flash Projects to set up a Site with VSS (see figure 1 http://www.geocities.com/kevin_fitzpatrick3d/flash-project-sourcesafe. g if ) and it seems like the option for Visual SourceSafe isn't there. Now I know I have the VSS Client installed (see figure 2 http://www.geocities.com/kevin_fitzpatrick3d/visual-sourcesafe.gif ) and I know I can connect via that client to the server. This all then leads me to the question of why don't I have that option? I've been working on this all morning and I haven't found mention of this issue anywhere. I am currently using Flash MX 2004 v7.2. Any and all comments are appreciated. Thanks, Kevin Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 1/14/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] IE on Mac-flash disappears on js popup
I’m doing a simple javascript pop up in IE on a mac OSX, and when the new window is opened, all of the elements on the stage disappear. I'm using the stage class to keep the main movieclip centered in the background, and when I resize the window, the elements show up again. Has anyone seen this before or implemented a workaround for this seemingly strange behavior? You can check it out here http://wordbang.blenderbox.com Thanks, Caleb -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 1/14/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Fullscreen Flash issue
I am working on a fullscreen flash project. Can anyone tell me why this code acts like a loop rather than just happening once? I am trying to position an object at the bottom of the browser window no matter what the window size. I am using this code to set it right off the start. This all works and positions it at the bottom except when I resize the window the object moves around to repositions itself again, when I only want it to happen once. It is no in a onEnterFrame or setInterval and it is not in a onResize listener either. Can anyone tell me why this happens and how to get around it? siteLogo._x = Stage.width / 2; siteLogo._y = Stage.height - 70; Cheers! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] java array to flash - please help!
Hi I really don't understand what happens. in a java webservice call, each time I have to receive an array, flash can't convert it and the result param equals undefined. the same WS written in .NET works and flash receives an array of object, but when I look at the soap response, I only see a normal xml, without SOAP term anywhere. The Java SOAP response has more complex soap reponse, and the type of the object that should be an array is described as getVisitorByPrefixeReturn What should I do to receive correctly this array please? The other languages have automically generated type class from the wsdl to the expected language. What about flash? Please answer me I really can't find any solution, and find no link on google, maybe my search terms aren't good, but I don't know what to search exactly for. PR ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Projects Visual Source Safe
Hi Kevin, The project setup in Flash MX 2004 and its VSS integration leave much to be desired. I personally would suggest that you look into using Eclipse with the VSS plugin (http://sourceforge.net/projects/vssplugin/ ) for that to manage your Flash projects. You will need one of the ActionScript editor plugins for Eclipse as well. Check out either FDT ( http://www.powerflasher.com/fdt ) or the open source ASDT (http://asdt.org/). While setting these tools up may take a bit of time to figure out, in the end there are tremendous advantages to doing so. You get a better code editor than what comes with the Flash IDE, you are able to integrate with versioning systems like CVS, SVN, and VSS, you can get other plugins for other code editing like Java, PHP, etc..., integrating with a much faster compiler (MTASC) is relatively straight forward, and much more. Anyway, it's just a suggestion. I hope it helps. -Chris On 1/16/06, Fitzpatrick, Kevin [EMAIL PROTECTED] wrote: Miles, Sorry I wasn't more specific, I am using MX 2004 Pro and the option isn't there. I can't seem to find any more information on the problem. Unforunately, I'm tied to VSS because the entire department uses it. Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miles Thompson Sent: Monday, January 16, 2006 12:32 PM To: Flashcoders mailing list; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Flash Projects Visual Source Safe Read the docs - integration of VSS with Flash is for Flash 2004 MX Professional. You might want to look at Subversion (version control software) with Tortoise (Windows interface); I've not used it for Flash because the .fla is one honking big binary. FWIW - tried both Subversion and VSS for Visual Basic work and much preferred the former. Cheers - Miles At 11:28 AM 1/16/2006, Fitzpatrick, Kevin wrote: Hello, all. Long time listener, first time caller. And of course, I have an annoying question to start out with: So I've finally gotten around to setting up VSS and to start using projects and I'm realizing that when I go into Flash Projects to set up a Site with VSS (see figure 1 http://www.geocities.com/kevin_fitzpatrick3d/flash-project-sourcesafe. g if ) and it seems like the option for Visual SourceSafe isn't there. Now I know I have the VSS Client installed (see figure 2 http://www.geocities.com/kevin_fitzpatrick3d/visual-sourcesafe.gif ) and I know I can connect via that client to the server. This all then leads me to the question of why don't I have that option? I've been working on this all morning and I haven't found mention of this issue anywhere. I am currently using Flash MX 2004 v7.2. Any and all comments are appreciated. Thanks, Kevin Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 1/14/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] java array to flash - please help!
I have found that the SOAP response from the web service method needs to be formatted as SoapRPC. If your web service has been developed in .NET, just as the [SoapRpcService()] attribute to your web service class. -Adam Nemitoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of PR Durand Sent: Monday, January 16, 2006 1:51 PM To: Flashcoders mailing list Subject: [Flashcoders] java array to flash - please help! Hi I really don't understand what happens. in a java webservice call, each time I have to receive an array, flash can't convert it and the result param equals undefined. the same WS written in .NET works and flash receives an array of object, but when I look at the soap response, I only see a normal xml, without SOAP term anywhere. The Java SOAP response has more complex soap reponse, and the type of the object that should be an array is described as getVisitorByPrefixeReturn What should I do to receive correctly this array please? The other languages have automically generated type class from the wsdl to the expected language. What about flash? Please answer me I really can't find any solution, and find no link on google, maybe my search terms aren't good, but I don't know what to search exactly for. PR ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Fullscreen Flash issue
Mike, Where is this code? Just on the root timeline? Are you sure the repositioning you're getting isn't a result of the normal Flash resizing/scaling and that this code _is_ being called twice? Cheers, Ian On 1/16/06, Mike Boutin [EMAIL PROTECTED] wrote: I am working on a fullscreen flash project. Can anyone tell me why this code acts like a loop rather than just happening once? I am trying to position an object at the bottom of the browser window no matter what the window size. I am using this code to set it right off the start. This all works and positions it at the bottom except when I resize the window the object moves around to repositions itself again, when I only want it to happen once. It is no in a onEnterFrame or setInterval and it is not in a onResize listener either. Can anyone tell me why this happens and how to get around it? siteLogo._x = Stage.width / 2; siteLogo._y = Stage.height - 70; Cheers! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Fullscreen Flash issue
not sure why, but try putting Stage properties in a new variable that doesn't get reset when repositioning the object: theWidth=Stage.width/2; theHeight=Stage.height-70; siteLogo._x = theWidth; siteLogo._y = theHeight; - Marc At 10:34 AM 1/16/2006, you wrote: I am working on a fullscreen flash project. Can anyone tell me why this code acts like a loop rather than just happening once? I am trying to position an object at the bottom of the browser window no matter what the window size. I am using this code to set it right off the start. This all works and positions it at the bottom except when I resize the window the object moves around to repositions itself again, when I only want it to happen once. It is no in a onEnterFrame or setInterval and it is not in a onResize listener either. Can anyone tell me why this happens and how to get around it? siteLogo._x = Stage.width / 2; siteLogo._y = Stage.height - 70; Cheers! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Fullscreen Flash issue
Yes thanks this seems to work. Still not sure why it was doing what it was, either way thanks for the help! Marc Hoffman wrote: not sure why, but try putting Stage properties in a new variable that doesn't get reset when repositioning the object: theWidth=Stage.width/2; theHeight=Stage.height-70; siteLogo._x = theWidth; siteLogo._y = theHeight; - Marc At 10:34 AM 1/16/2006, you wrote: I am working on a fullscreen flash project. Can anyone tell me why this code acts like a loop rather than just happening once? I am trying to position an object at the bottom of the browser window no matter what the window size. I am using this code to set it right off the start. This all works and positions it at the bottom except when I resize the window the object moves around to repositions itself again, when I only want it to happen once. It is no in a onEnterFrame or setInterval and it is not in a onResize listener either. Can anyone tell me why this happens and how to get around it? siteLogo._x = Stage.width / 2; siteLogo._y = Stage.height - 70; Cheers! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] java array to flash - please help!
Hi Adam thanks for your answer, but the webservice has been developped in Java. maybe is there an equivalent in java? If it can help, I tried to acces the webservice via the webservice connector component class, as it can preload all wsdl and generate complex typing, but the answer is once more undefined for all method that replies Arrays of complex Objects. The java developpers team manager ensures me that his soap enveloppe is totally standard. I don't know what to do. thank you once more. PR Adam Nemitoff a écrit : I have found that the SOAP response from the web service method needs to be formatted as SoapRPC. If your web service has been developed in .NET, just as the [SoapRpcService()] attribute to your web service class. -Adam Nemitoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of PR Durand Sent: Monday, January 16, 2006 1:51 PM To: Flashcoders mailing list Subject: [Flashcoders] java array to flash - please help! Hi I really don't understand what happens. in a java webservice call, each time I have to receive an array, flash can't convert it and the result param equals undefined. the same WS written in .NET works and flash receives an array of object, but when I look at the soap response, I only see a normal xml, without SOAP term anywhere. The Java SOAP response has more complex soap reponse, and the type of the object that should be an array is described as getVisitorByPrefixeReturn What should I do to receive correctly this array please? The other languages have automically generated type class from the wsdl to the expected language. What about flash? Please answer me I really can't find any solution, and find no link on google, maybe my search terms aren't good, but I don't know what to search exactly for. PR ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Php data exchange worked in F7, breaks in F8
This is a case where data exchange works in Flash 7 but not in Flash 8. I've seen lots of articles on this, but they're either extremely complicated or don't quite seem applicable (in part due to my ignorance, I'm sure). Can someone please point me toward a specific fix? Please read on to understand the exact circumstances. I inherited a Flash site that exchanges data with an apache server via php, using sendReceive. In the swfs, users select features for a product and their order is placed in one of several vendor databases. Everything is on the same domain, but the vendor databases are on subdomains such as vendorA.acmeSales.com, vendorB.acmeSales.com, etc. My client and the vendor can access the data using a Flash to display the features the user selected. This worked in Flash 7, but Flash 8 will not exchange data with the database. Do I need cross-domain xml files on the server? If so, what and where? Do I need to set permissions in the Flash movies? If so, in just the root movie or in all loaded movies? Anything else? thanks, Marc Hoffman ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] IE on Mac-flash disappears on js popup
So I created a hack work around for this in case anyone is interested. About a second after the popup, I attach a mc that covers the whole stage and set its alpha at 1%, then tween it to 0 out over the next 10 frames. This is a relatively invisible way to do it, albeit very hack. -caleb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Caleb E. Brown Sent: Monday, January 16, 2006 12:58 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] IE on Mac-flash disappears on js popup I’m doing a simple javascript pop up in IE on a mac OSX, and when the new window is opened, all of the elements on the stage disappear. I'm using the stage class to keep the main movieclip centered in the background, and when I resize the window, the elements show up again. Has anyone seen this before or implemented a workaround for this seemingly strange behavior? You can check it out here http://wordbang.blenderbox.com Thanks, Caleb -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 1/14/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 1/14/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 1/14/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash Projects Visual Source Safe
Thanks for all the information folks. Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Allen Sent: Monday, January 16, 2006 1:59 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash Projects Visual Source Safe Hi Kevin, The project setup in Flash MX 2004 and its VSS integration leave much to be desired. I personally would suggest that you look into using Eclipse with the VSS plugin (http://sourceforge.net/projects/vssplugin/ ) for that to manage your Flash projects. You will need one of the ActionScript editor plugins for Eclipse as well. Check out either FDT ( http://www.powerflasher.com/fdt ) or the open source ASDT (http://asdt.org/). While setting these tools up may take a bit of time to figure out, in the end there are tremendous advantages to doing so. You get a better code editor than what comes with the Flash IDE, you are able to integrate with versioning systems like CVS, SVN, and VSS, you can get other plugins for other code editing like Java, PHP, etc..., integrating with a much faster compiler (MTASC) is relatively straight forward, and much more. Anyway, it's just a suggestion. I hope it helps. -Chris On 1/16/06, Fitzpatrick, Kevin [EMAIL PROTECTED] wrote: Miles, Sorry I wasn't more specific, I am using MX 2004 Pro and the option isn't there. I can't seem to find any more information on the problem. Unforunately, I'm tied to VSS because the entire department uses it. Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miles Thompson Sent: Monday, January 16, 2006 12:32 PM To: Flashcoders mailing list; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Flash Projects Visual Source Safe Read the docs - integration of VSS with Flash is for Flash 2004 MX Professional. You might want to look at Subversion (version control software) with Tortoise (Windows interface); I've not used it for Flash because the .fla is one honking big binary. FWIW - tried both Subversion and VSS for Visual Basic work and much preferred the former. Cheers - Miles At 11:28 AM 1/16/2006, Fitzpatrick, Kevin wrote: Hello, all. Long time listener, first time caller. And of course, I have an annoying question to start out with: So I've finally gotten around to setting up VSS and to start using projects and I'm realizing that when I go into Flash Projects to set up a Site with VSS (see figure 1 http://www.geocities.com/kevin_fitzpatrick3d/flash-project-sourcesafe. g if ) and it seems like the option for Visual SourceSafe isn't there. Now I know I have the VSS Client installed (see figure 2 http://www.geocities.com/kevin_fitzpatrick3d/visual-sourcesafe.gif ) and I know I can connect via that client to the server. This all then leads me to the question of why don't I have that option? I've been working on this all morning and I haven't found mention of this issue anywhere. I am currently using Flash MX 2004 v7.2. Any and all comments are appreciated. Thanks, Kevin Kevin Fitzpatrick Flash Designer, SAP.com Web Services Team - SAP Global Marketing SAP Global Solutions Center 3999 West Chester Pike Newtown Square, PA 19073 C (267) 254-6225 E [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.371 / Virus Database: 267.14.18/230 - Release Date: 1/14/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Obfuscation
protecting something is all about making hard to access so imho anything that can make a SWF hard to get is good so to make a big answer to everyone point by point Gregory wrote: Yes, using some server-side solution can beat 90% of amateur thieves. But, as mentioned above, it's only about web page. As obfuscation can beat 90% of amateur joe-user-using-a-decompiler But not the 10% rest of user who gonna either be motivated or skilled enougth to unobfuscate the code... steve wrote: Fair enough, but then you also block all your regular visitors who have JavaScript disabled from accessing your SWF file. For me someone who does not want to execute JavaScript also does not want to execute plugins and how many users gonna do that ? like 0,001% ? Anyway, ultimately the swf file will be loaded from somewhere (via physical file or script) and I can just point wget at that file instead. That can be obfuscated too Nathan wrote: Proxy sniffers are also easy to come by, easy to use, and give you the option to save any of the files locally. Yes, for you Not everybody find a sniffer that easy to use, or even would have the idea to use one just because they didn't even know that something like that exists Dave wrote: While this is true for wget, there are engines that will execute Javascript to extract URLs, then fetch those URLs. Texis' Webinator does this. It's also relatively easy to do this using Windows Script functionality. I ended up writing scripts for exactly this purpose - to fetch Javascript URLs. Yes ok, but are you considering yourself as a lambda user ? I think not :) In addition, as others have mentioned, it's very easy to capture anything through a proxy. SSL doesn't prevent this, either. Yes I know that, others people on this list know that, But are lambda users know that or have the skill to do that ? Protecting something is all about numbers a) foobar.swf no protection, no obfuscation, nothing accessible in the browser cache b) how many % of users will just know that they can decompile the SWF with some tools as ASV or others ? c) how many % users will want so bad the source code of the SWF to actually buy the tool to decompile it ? d) add obfuscation how many % of users will be motivated and skilled enougth to reverse the obfuscation ? e) add SSL + prevent SWF caching how many % users will be motivated and skilled enougth to set up and use a proxy and/or a HTTP sniffer ? etc. the more you add, the more you reduce the % of users who will actually go all the trouble to get the SWF, decompile it, etc. you will never obtain 100% code protection but if the goal is to protect the code with tricks any tricks are good, even the dumb one as renaming extensions *.swf to *.gif and honestly I was just mentioning another trick, no more zwetan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] file upload being called twice
But why? I can't see any good reason...why not using the sending of the data as the 'check'? Or is it to save bandwidth maybe? If it gets a 404 from the script, it won't bother uploading the data? But webbrowsers don't do this (like uploading from a HTML Form), so I dunno why they decided to do this in flash. I've seen this question asked a dozen times on this list now. It should be put in the help files for FileReference.upload(). -David R On 1/15/06, Lanny McNie [EMAIL PROTECTED] wrote: This isn't a bug. FileReference on the PC does a check. where it hits the script to see if it exists, and then sends the data in the 2nd request. On 1/15/06, Sam Wootton [EMAIL PROTECTED] wrote: Cool, thanks for that - worked great. On 15/01/06, David Rorex [EMAIL PROTECTED] wrote: I have the same problem, and others have reported it as well. The workaround, is in php to check the filename of the uploaded file. The first time it is called, the filename will be blank or null, so just disregard that request. -David R On 1/15/06, Sam Wootton [EMAIL PROTECTED] wrote: I am using the FileReference class to upload a file - everything works great, apart form the fact that my PHP script is being called twice from Flash. Anyone know how to solve this? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Obfuscation
Yes I know that, others people on this list know that, But are lambda users know that or have the skill to do that ? I'm not familiar with the phrase lambda user, so I can only presume it means a non-technical user. But are those the people who you're concerned about? I think it's worthwhile to mention that you might have different goals and expectations with regard to obfuscation than others might. My point was simply that you can't guarantee that your Flash code can't be reverse-engineered. If you're willing to accept that limitation, you might want to implement all the things you mentioned. But that's still a very big limitation. There are certain things that, for security reasons, you simply wouldn't want to do within your Flash code for this reason - shopping cart engine functionality comes to mind. You wouldn't want your server-side application to blindly accept inputs from Flash for obvious reasons. 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Scope Chain in AS2
If anyone has the book JavaScript - The Definitive Guide please read the following pages on scope: JavaScript - The Definitive Guide 1.5 -- 4.3.0 Variable Scope 4.3.1 No Block Scope 4.6.1 The Global Object 4.6.2 Local Variables: The Call Object 4.6.3 JavaScript Execution Contexts 4.7 Variable Scope Revisited 11.4 Lexical Scoping and Nested Functions 19.1.5 Event Handlers and the this Keyword 19.1.6 Scope of Event Handlers From what I've read, it appears that Action Script 2.0 follows the implementation. But the information at the link below keeps me from adopting this description. quote, Event handling is simplified in ActionScript 3.0 thanks to its built-in delegation. In ActionScript 2.0, method closures would not remember what object instance they were extracted from, leading to unexpected behavior when the method closure was invoked. http://labs.macromedia.com/wiki/index.php/ActionScript_3:overview#Delegation Can someone please put this into context? Best Regards, Judah Frangipane ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Scope Chain in AS2
basically in AS3 you dont need to use Delegate, so you can do things like pass method references to other objects which will be called within the correct scope. I think the same applies to declaring anonymous functions (like the classic myXML.onLoad = function() {...}) e.g. class SomeClass { private var x:Number = 20; function someFunc():Void { // handlerFunc method will be called with the correct scope. // So no need for delegate. someObject.addEventListener(handlerFunc); } function handlerFunc(event:Event):Void { // Can call doSomething and manipulate x because we were called // with the correct context. this.doSomething(); this.x += 20; } function doSomething():Void { } } does that help? or have i misunderstood? martin Judah Frangipane wrote: From what I've read, it appears that Action Script 2.0 follows the implementation. But the information at the link below keeps me from adopting this description. quote, Event handling is simplified in ActionScript 3.0 thanks to its built-in delegation. In ActionScript 2.0, method closures would not remember what object instance they were extracted from, leading to unexpected behavior when the method closure was invoked. http://labs.macromedia.com/wiki/index.php/ActionScript_3:overview#Delegation Can someone please put this into context? Best Regards, Judah Frangipane -- Martin Wood http://relivethefuture.com/choronzon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Class Error Message
Hi All, In the following code my attempt at formatting the date returns this to the output window: // **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 55: This statement is not permitted in a class definition. now = new Date(); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 56: This statement is not permitted in a class definition. trace (The Time is + formatTime(now)); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 61: ActionScript 2.0 class scripts may only define class or interface constructs. } Total ActionScript Errors: 3 Reported Errors: 3 // /** A Simple hello class that assigns a custom message to a text field based upon time of day. **/ class com.bushidodeep.Hello { private var width:Number; private var height:Number; private var stageHeight:Number = 300; private var stageWidth:Number = 300; private var theDate:String; private var now:Date; private static var textFieldDepth:Number = 0; private var messageFormat:TextFormat; public var messageDisplay:Function = displayGreeting; public var message:String = ; // Movie clip that will contain visual // elements of the hello. private var container_mc:MovieClip; // public function Hello(target:MovieClip) { container_mc = target.createEmptyMovieClip(blah, 1); placeGreeting(); } private function placeGreeting() { messageFormat = new TextFormat(); messageFormat.font = Verdana; messageFormat.color = 0xff; messageFormat.bold = true; container_mc.createTextField(messageText, textFieldDepth, 75, 100, 150, 25); container_mc.messageText.text = messageDisplay(); container_mc.messageText.border = false; container_mc.messageText.setTextFormat(messageFormat); } //for testing only will use am/pm passed from formatTime() to output message private function displayGreeting() { if (now == afternoon) { message = Disco Rules; } else { message = Samba Rules; } return message; } private function formatTime(theDate){ var hour=theDate.getHours(); var minute=theDate.getMinutes()9 ? theDate.getMinutes() : 0 + theDate.getMinutes(); if (hour 12){ var timeString = (hour-12) + : + minute + PM; }else{ var timeString = hour + : + minute + AM; } return timeString; } now = new Date(); trace (The Time is + formatTime(now)); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] FLASH8 IDE BUG: Swf Panels
Hey Folks, I have this problem with my F8 IDE install which is driving me nuts. In the lower pane of the Window-Other Panels dialog I have several swfpanels I have developed along with the NetConnection Debugger. Every time I choose a panel, a completely random panel will open. Well not *completely* random, coz it's never the one I want! This same bug was in FMX2004, then seemed to get fixed in the 7.2 updater but it's most definitely back in F8. Seems like it's triggered by having the NetConnection Debugger present, because on my colleagues machines (who are designers hence no NetDebugger) they don't have this problem, though they do have several other swfPanels to choose from. Has anyone come across a way to fix this loopy issue? Cheers, Clark ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Class Error Message
When are you looking for this to happen: now = new Date(); trace (The Time is + formatTime(now)); If you want that to happen when you create a new instance of the class then slap it in the constructor. Also - you have an extra '}' in there at the end. -Original Message- From: [EMAIL PROTECTED] on behalf of Chris Kennon Sent: Mon 1/16/2006 6:11 PM To: Flashcoders mailing list Subject: [Flashcoders] Class Error Message Hi All, In the following code my attempt at formatting the date returns this to the output window: // **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 55: This statement is not permitted in a class definition. now = new Date(); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 56: This statement is not permitted in a class definition. trace (The Time is + formatTime(now)); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 61: ActionScript 2.0 class scripts may only define class or interface constructs. } Total ActionScript Errors: 3 Reported Errors: 3 // /** A Simple hello class that assigns a custom message to a text field based upon time of day. **/ class com.bushidodeep.Hello { private var width:Number; private var height:Number; private var stageHeight:Number = 300; private var stageWidth:Number = 300; private var theDate:String; private var now:Date; private static var textFieldDepth:Number = 0; private var messageFormat:TextFormat; public var messageDisplay:Function = displayGreeting; public var message:String = ; // Movie clip that will contain visual // elements of the hello. private var container_mc:MovieClip; // public function Hello(target:MovieClip) { container_mc = target.createEmptyMovieClip(blah, 1); placeGreeting(); } private function placeGreeting() { messageFormat = new TextFormat(); messageFormat.font = Verdana; messageFormat.color = 0xff; messageFormat.bold = true; container_mc.createTextField(messageText, textFieldDepth, 75, 100, 150, 25); container_mc.messageText.text = messageDisplay(); container_mc.messageText.border = false; container_mc.messageText.setTextFormat(messageFormat); } //for testing only will use am/pm passed from formatTime() to output message private function displayGreeting() { if (now == afternoon) { message = Disco Rules; } else { message = Samba Rules; } return message; } private function formatTime(theDate){ var hour=theDate.getHours(); var minute=theDate.getMinutes()9 ? theDate.getMinutes() : 0 + theDate.getMinutes(); if (hour 12){ var timeString = (hour-12) + : + minute + PM; }else{ var timeString = hour + : + minute + AM; } return timeString; } now = new Date(); trace (The Time is + formatTime(now)); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Class Error Message
A Simple hello class that assigns a custom message to a text field based upon time of day. **/ class com.bushidodeep.Hello { private var width:Number; private var height:Number; private var stageHeight:Number = 300; private var stageWidth:Number = 300; private var theDate:String; private var now:Date; private static var textFieldDepth:Number = 0; private var messageFormat:TextFormat; public var messageDisplay:Function = displayGreeting; public var message:String = ; // Movie clip that will contain visual // elements of the hello. private var container_mc:MovieClip; // public function Hello(target:MovieClip) { container_mc = target.createEmptyMovieClip(blah, 1); now = new Date(); var timeNow = formatTime(now) placeGreeting(timeNow); } private function placeGreeting(time) { messageFormat = new TextFormat(); messageFormat.font = Verdana; messageFormat.color = 0xff; messageFormat.bold = true; container_mc.createTextField(messageText, textFieldDepth, 75, 100, 150, 25); container_mc.messageText.text = time; container_mc.messageText.border = false; container_mc.messageText.setTextFormat(messageFormat); } private function formatTime(theDate){ var hour=theDate.getHours(); var minute=theDate.getMinutes()9 ? theDate.getMinutes() : 0 + theDate.getMinutes(); if (hour 12){ var timeString = (hour-12) + : + minute + PM; }else{ var timeString = hour + : + minute + AM; } return timeString; } } } Hi All, In the following code my attempt at formatting the date returns this to the output window: // **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 55: This statement is not permitted in a class definition. now = new Date(); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 56: This statement is not permitted in a class definition. trace (The Time is + formatTime(now)); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 61: ActionScript 2.0 class scripts may only define class or interface constructs. } Total ActionScript Errors: 3 Reported Errors: 3 // /** A Simple hello class that assigns a custom message to a text field based upon time of day. **/ class com.bushidodeep.Hello { private var width:Number; private var height:Number; private var stageHeight:Number = 300; private var stageWidth:Number = 300; private var theDate:String; private var now:Date; private static var textFieldDepth:Number = 0; private var messageFormat:TextFormat; public var messageDisplay:Function = displayGreeting; public var message:String = ; // Movie clip that will contain visual // elements of the hello. private var container_mc:MovieClip; // public function Hello(target:MovieClip) { container_mc = target.createEmptyMovieClip(blah, 1); placeGreeting(); } private function placeGreeting() { messageFormat = new TextFormat(); messageFormat.font = Verdana; messageFormat.color = 0xff; messageFormat.bold = true; container_mc.createTextField(messageText, textFieldDepth, 75, 100, 150, 25); container_mc.messageText.text = messageDisplay(); container_mc.messageText.border = false; container_mc.messageText.setTextFormat(messageFormat); } //for testing only will use am/pm passed from formatTime() to output message private function displayGreeting() { if (now == afternoon) { message = Disco Rules; } else { message = Samba Rules; } return message; } private function formatTime(theDate){ var hour=theDate.getHours(); var minute=theDate.getMinutes()9 ? theDate.getMinutes() : 0 + theDate.getMinutes(); if (hour 12){ var timeString = (hour-12) + : + minute + PM; }else{ var timeString = hour + : + minute + AM; } return timeString; } now = new Date(); trace (The Time is + formatTime(now)); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Class Error Message
Hi Chris At the end of your code you have this now = new Date(); outside any method so flash doesn't know what to make with. Those 2 lines now = new Date(); trace (The Time is + formatTime(now)); seem to be here to test your formatTime method, but it has to be in flash, not in the class, if you keep this format. Or you can also integrate it to your constructor: public function Hello(target:MovieClip) { container_mc = target.createEmptyMovieClip(blah, 1); placeGreeting(); var now:Date = new Date(); trace (The Time is + this.formatTime(now)); } Regards, PR Chris Kennon a écrit : Hi All, In the following code my attempt at formatting the date returns this to the output window: // **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 55: This statement is not permitted in a class definition. now = new Date(); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 56: This statement is not permitted in a class definition. trace (The Time is + formatTime(now)); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 61: ActionScript 2.0 class scripts may only define class or interface constructs. } Total ActionScript Errors: 3 Reported Errors: 3 // /** A Simple hello class that assigns a custom message to a text field based upon time of day. **/ class com.bushidodeep.Hello { private var width:Number; private var height:Number; private var stageHeight:Number = 300; private var stageWidth:Number = 300; private var theDate:String; private var now:Date; private static var textFieldDepth:Number = 0; private var messageFormat:TextFormat; public var messageDisplay:Function = displayGreeting; public var message:String = ; // Movie clip that will contain visual // elements of the hello. private var container_mc:MovieClip; // public function Hello(target:MovieClip) { container_mc = target.createEmptyMovieClip(blah, 1); placeGreeting(); } private function placeGreeting() { messageFormat = new TextFormat(); messageFormat.font = Verdana; messageFormat.color = 0xff; messageFormat.bold = true; container_mc.createTextField(messageText, textFieldDepth, 75, 100, 150, 25); container_mc.messageText.text = messageDisplay(); container_mc.messageText.border = false; container_mc.messageText.setTextFormat(messageFormat); } //for testing only will use am/pm passed from formatTime() to output message private function displayGreeting() { if (now == afternoon) { message = Disco Rules; } else { message = Samba Rules; } return message; } private function formatTime(theDate){ var hour=theDate.getHours(); var minute=theDate.getMinutes()9 ? theDate.getMinutes() : 0 + theDate.getMinutes(); if (hour 12){ var timeString = (hour-12) + : + minute + PM; }else{ var timeString = hour + : + minute + AM; } return timeString; } now = new Date(); trace (The Time is + formatTime(now)); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] OnLoadStart
Hi, I have a bug with the movieClipLoader onLoadStart function when I'm loading swf videos that are not on the same domain. I'm using the onLoadStart function to stop the video like this : mclListener.onLoadStart = Delegate.create(this,videoLoadStart); private function videoLoadStart(target_mc:MovieClip):Void{ target_mc.stop(); } It works perfectly with swf on the same domain, the bug happens only when I am loading swf from another domain. The video loads, but doesn't stop like it should, it just plays normally. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] OnLoadStart
I've experienced this bug as well and have not found a solution. Have you tried onLoadInit? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Patrick Matte Sent: Monday, January 16, 2006 4:41 PM To: Flashcoders mailing list Subject: [Flashcoders] OnLoadStart Hi, I have a bug with the movieClipLoader onLoadStart function when I'm loading swf videos that are not on the same domain. I'm using the onLoadStart function to stop the video like this : mclListener.onLoadStart = Delegate.create(this,videoLoadStart); private function videoLoadStart(target_mc:MovieClip):Void{ target_mc.stop(); } It works perfectly with swf on the same domain, the bug happens only when I am loading swf from another domain. The video loads, but doesn't stop like it should, it just plays normally. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] md5 in AS3
does anyone have a class for generating md5 hash's in AS2 or AS3? ta PBH ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] md5 in AS3
Yes, for AS2: www.krishadlock.com/downloads/as2_md5.zip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul BH Sent: Monday, January 16, 2006 4:47 PM To: Flashcoders mailing list Subject: [Flashcoders] md5 in AS3 does anyone have a class for generating md5 hash's in AS2 or AS3? ta PBH ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OnLoadStart
Well, depending what Patrick is trying to do. onLoadInit would not work. onLoadInit is fired when the loaded contents first frame is played. onLoadInit is actually fired after the onLoadComplete event. onLoadStart is fired right after you call the MovieClipLoader.loadClip() method. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] efficient htmltext.reduce() function? or similar idea?
Does anyone have any divine wisdom for safely and efficiently reducing an htmltext string down in size? I've been using old code for a while that simply loops looking for html tags.. and if it's a known paired tag set (like font), looks for the closing tag, and then, substring's from that point onward (thus removing everything ahead of the last complete tag set), and effectively reducing the overall size of the htmltext so that it doesn't forever build in size, and in turn bring flash to its knees if the string gets too long. The problem with this is its slow... and risky.. sometimes.. it fails to match a paired set.. and the output into the flash textbox breaks -- that is -- no more appended text will be seen from that point onward.. and the box appears Dead because of broken tags. Ideally for me at least.. a function could be called such as: myHtmlTextBox=myHtmlTextBox.reduce(10); whereby 10 is used such that the result has about 90% remaining (which is obviously a challenge because of the variable lengths of tag groupings among formatted html..) Any ideas? This is a hard topic to google and search the archives with.. Thanks! -Jayson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Class Error Message
Hi All, Thanks, as most savvy programmers have figured this is a training exercise, an I'm learning quite a bit. Respectfully, Christopher Kennon Principal Creative Director -Bushidodeep www.bushidodeep.com __ Knowing is not enough, you must apply; willing is not enough, you must do. ---Bruce Lee On Jan 16, 2006, at 3:32 PM, PR Durand wrote: Hi Chris At the end of your code you have this now = new Date(); outside any method so flash doesn't know what to make with. Those 2 lines now = new Date(); trace (The Time is + formatTime(now)); seem to be here to test your formatTime method, but it has to be in flash, not in the class, if you keep this format. Or you can also integrate it to your constructor: public function Hello(target:MovieClip) { container_mc = target.createEmptyMovieClip(blah, 1); placeGreeting(); var now:Date = new Date(); trace (The Time is + this.formatTime(now)); } Regards, PR Chris Kennon a écrit : Hi All, In the following code my attempt at formatting the date returns this to the output window: // **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 55: This statement is not permitted in a class definition. now = new Date(); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 56: This statement is not permitted in a class definition. trace (The Time is + formatTime(now)); **Error** BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line 61: ActionScript 2.0 class scripts may only define class or interface constructs. } Total ActionScript Errors: 3 Reported Errors: 3 // /** A Simple hello class that assigns a custom message to a text field based upon time of day. **/ class com.bushidodeep.Hello { private var width:Number; private var height:Number; private var stageHeight:Number = 300; private var stageWidth:Number = 300; private var theDate:String; private var now:Date; private static var textFieldDepth:Number = 0; private var messageFormat:TextFormat; public var messageDisplay:Function = displayGreeting; public var message:String = ; // Movie clip that will contain visual // elements of the hello. private var container_mc:MovieClip; // public function Hello(target:MovieClip) { container_mc = target.createEmptyMovieClip(blah, 1); placeGreeting(); } private function placeGreeting() { messageFormat = new TextFormat(); messageFormat.font = Verdana; messageFormat.color = 0xff; messageFormat.bold = true; container_mc.createTextField(messageText, textFieldDepth, 75, 100, 150, 25); container_mc.messageText.text = messageDisplay(); container_mc.messageText.border = false; container_mc.messageText.setTextFormat(messageFormat); } //for testing only will use am/pm passed from formatTime() to output message private function displayGreeting() { if (now == afternoon) { message = Disco Rules; } else { message = Samba Rules; } return message; } private function formatTime(theDate){ var hour=theDate.getHours(); var minute=theDate.getMinutes()9 ? theDate.getMinutes() : 0 + theDate.getMinutes(); if (hour 12){ var timeString = (hour-12) + : + minute + PM; }else{ var timeString = hour + : + minute + AM; } return timeString; } now = new Date(); trace (The Time is + formatTime(now)); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can't redefine class method
On 1/17/06, Morten Barklund Shockwaved [EMAIL PROTECTED] wrote: Nope, when you call the static method, it will not change when subclassed. That is exactly as I would expect. This is due to the fact, that static methods aren't inherited - they do So you're saying that since B doesn't have a class method doit(), only the parent of B, A has the class method doit, saying B.doit() will generate an error? Calling B.doit() works for me. B is inheriting the class method doit() from A. ... they do not exist on instances. To me, that doesn't make sense. But I'll leave that for another day as I'm NOT instantiating the the class, I'm calling the class methods directly. ... They only exist on the class itself. When you call a static method or refence a static variable, that path to the variable or method will be hardcoded in front of the name of the member and thus not change when subclassed. If what you are saying true, then calling a class method of class that is only defined in the parent will fail. I'm seeing that it works, at least it works for me. I would also expect this behaviour. Consider static methods as though they existed in a totally different class. If class A refenced a method of class C, then just because A was subclassed into B, B still refers to class C - what else should it do? Honour the heritance tree which is what seems to be happening when you call a class method on B that is only defined in B's parent A.. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Obfuscation
I'm not familiar with the phrase lambda user, so I can only presume it means a non-technical user. Yes indeed But are those the people who you're concerned about? I think it's worthwhile to mention that you might have different goals and expectations with regard to obfuscation than others might. My point was simply that you can't guarantee that your Flash code can't be reverse-engineered. I don't think I said something different with you will never obtain 100% code protection Here for example a goal you can not reach with obfuscation: - you have an online game in flash Goal: you want to avoid to have your SWF copied all around on different site Here the obfuscation will be not really usefull If you're willing to accept that limitation, you might want to implement all the things you mentioned. But that's still a very big limitation. There are certain things that, for security reasons, you simply wouldn't want to do within your Flash code for this reason - shopping cart engine functionality comes to mind. You wouldn't want your server-side application to blindly accept inputs from Flash for obvious reasons. Humm but this is a different thing You got the security of the source code, the SWF, etc... And You got the security of your application And this, the SWF being accessible or not, Being decompiled or not You can secure it using data encryption Dumb exemple: User login on his shopping cart The flash can have a MD5 Function to hash its password before sending it to the server etc. an external attacker can access as much as he want the MD5 hash function code, this will not break the security of the hash. The weakness in a hash function is the hash function algorithm itself, Not the fact that you can access its implementation in code. ( and yes I know MD5 is broken, and few others too, cf http://www.schneier.com/blog/archives/2005/02/cryptanalysis_o.html ) zwetan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Obfuscation
Personaly I think that if someone can bypass the obfuscation, (not jump tricks but *real* obfuscation by variable renaming/hashing - see http://tech.motion-twin.com/obfu ) then there is no need for additional protections because the user is motivated enough to bypass them as well. Yes but who knows in which order the user gonna try to bypass the protection(s) ? I think that you need to protect from two things : a) internal attacks, by obfuscating the SWF b) external attacks, by obfuscating the protocol This is not *real* security - it should just be called tricks to get rid of people without enough free time or technical background. Yep And to get back on topic here a little list of papers for these kind of tricks - JAurora http://wwwhome.cs.utwente.nl/~oord/ see the paper Stealthy obfuscation techniques misleading the pirates - Gleb's Naumovich's publications http://cis.poly.edu/gnaumovi/publications.html some interesting papers as Obfuscation of Design Intent in Object-Oriented Applications Preventing Piracy, Reverse Engineering, and Tampering - Christian Collberg, Clark Thomborson, Douglas Low http://www.cs.arizona.edu/~collberg/Research/Publications/CollbergThomborson Low98a/ Manufacturing Cheap, Resilient, and Stealthy Opaque Constructs zwetan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OnLoadStart
The movie starts playing before onLoadInit is fired. The bug with onLoadStart happens only when loading swf from another domain. - Original Message - From: Kris Hadlock [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, January 16, 2006 6:44 PM Subject: RE: [Flashcoders] OnLoadStart I've experienced this bug as well and have not found a solution. Have you tried onLoadInit? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Patrick Matte Sent: Monday, January 16, 2006 4:41 PM To: Flashcoders mailing list Subject: [Flashcoders] OnLoadStart Hi, I have a bug with the movieClipLoader onLoadStart function when I'm loading swf videos that are not on the same domain. I'm using the onLoadStart function to stop the video like this : mclListener.onLoadStart = Delegate.create(this,videoLoadStart); private function videoLoadStart(target_mc:MovieClip):Void{ target_mc.stop(); } It works perfectly with swf on the same domain, the bug happens only when I am loading swf from another domain. The video loads, but doesn't stop like it should, it just plays normally. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] embed SWF with PHP
Hey does anyone know how to embed a swf into a page using php. I'm basically trying to find a way to hide the swfs url from the user so that it can't be saved (I'll have to stop it from caching also.) I've seen it done before on thi site. www.mx3d.com. Theres basically a php script that writes the name of the swf and when you load php page directly you are presented with the swf but when you view the source it gives you some bytecode. It looks like a pretty safe way from preventing anyone getting to your swf in the first place ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] md5 in AS3
thx On 1/16/06, Scott Hyndman [EMAIL PROTECTED] wrote: http://www.meychi.com/source/extensions/ASCryptFiles.zip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hyndman Sent: January 16, 2006 6:49 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] md5 in AS3 http://www.meychi.com/archive/21.php 2nd search result in Google Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul BH Sent: January 16, 2006 6:47 PM To: Flashcoders mailing list Subject: [Flashcoders] md5 in AS3 does anyone have a class for generating md5 hash's in AS2 or AS3? ta PBH ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Focus in the text field
You might also need to set the cursor position Selection.setSelection(0, 0); Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Focus in the text field
Even this line is not working the focus is getting set but the Cursor is not visible -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Tuesday, January 17, 2006 11:05 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Focus in the text field You might also need to set the cursor position Selection.setSelection(0, 0); Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] md5 in AS3
AS3 Version - http://gsolo.com/temp/macromedia/flex/beta/Global/com/gsolo/encryption/MD5.z ip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul BH Sent: Monday, January 16, 2006 6:47 PM To: Flashcoders mailing list Subject: [Flashcoders] md5 in AS3 does anyone have a class for generating md5 hash's in AS2 or AS3? ta PBH ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Focus in the text field
What value does Selection.setFocus(text_txt) return? If it's false, then is failed. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Focus in the text field
are you using firefox? is so, you might need to look at the wmode (in the html page) - can't recall the details but their is an issue that stops FF displaying cursor with wmode set to transparent - change the setting and will correct, if indeed it is that issue -Original Message- Date: Tue, 17 Jan 2006 11:13:29 +0530 From: Sumeet Kumar [EMAIL PROTECTED] Subject: RE: [Flashcoders] Focus in the text field To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Even this line is not working the focus is getting set but the Cursor is not visible -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] On Behalf Of Chris Velevitch Sent: Tuesday, January 17, 2006 11:05 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Focus in the text field You might also need to set the cursor position Selection.setSelection(0, 0); Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education Training. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Focus in the text field
Hi I am facing the same problem Selection.setFocus(text_txt); trace(Selection.setFocus(text_txt)) The trace return false . But u can type in the textbox without selecting it.It means the focus is in the text box. But cursor is not visible. Regards Tarjinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Tuesday, January 17, 2006 11:27 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Focus in the text field What value does Selection.setFocus(text_txt) return? If it's false, then is failed. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Focus in the text field
I am using flash 8 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tarjinder Kumar Sent: Tuesday, January 17, 2006 11:43 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Focus in the text field Hi I am facing the same problem Selection.setFocus(text_txt); trace(Selection.setFocus(text_txt)) The trace return false . But u can type in the textbox without selecting it.It means the focus is in the text box. But cursor is not visible. Regards Tarjinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Tuesday, January 17, 2006 11:27 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Focus in the text field What value does Selection.setFocus(text_txt) return? If it's false, then is failed. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Focus in the text field
Sorry I am using simple swf file -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tarjinder Kumar Sent: Tuesday, January 17, 2006 11:45 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Focus in the text field I am using flash 8 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tarjinder Kumar Sent: Tuesday, January 17, 2006 11:43 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Focus in the text field Hi I am facing the same problem Selection.setFocus(text_txt); trace(Selection.setFocus(text_txt)) The trace return false . But u can type in the textbox without selecting it.It means the focus is in the text box. But cursor is not visible. Regards Tarjinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Tuesday, January 17, 2006 11:27 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Focus in the text field What value does Selection.setFocus(text_txt) return? If it's false, then is failed. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] [Flash Remoting MX]-null
What does:- [Flash Remoting MX]-null in the coldfusion server Flash Remoting log mean? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders