Re: [Flashcoders] to mac or not to mac
I develop with FlexBuilder and Flash CS3 on the Mac and love it. I tried subclipse though and wasn't a fan. I prefer managing my source control separately with SmartSVN which gives more control and options. AJ Canepa Runtime Logic www.runtimelogic.com On Mar 14, 2008, at 4:10 PM, Muzak wrote: I use subclipse with FlexBuilder/Eclipse http://subclipse.tigris.org/ - Original Message - From: Claus Wahlers [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, March 14, 2008 10:27 PM Subject: Re: [Flashcoders] to mac or not to mac Dunno if that has been mentioned, but if you are NOT a command line guy, like me, and want a kick ass non-CLI SVN client, by far the best option is TortoiseSVN, which afaik is only available for Windows and beats the crap out of everything else i've seen. This one tiny software is the main reason i stick to Windows (XP) for now. I have three machines here (XP, OSX and Ubuntu), and the XP machine is my main dev machine, because i don't wanna miss TortoiseSVN. Otherwise, i'm very, VERY unreligious about operating systems, because i frankly think they all suck in one way or another. Cheers, Claus. ___ 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] Remove elements from Array
The Array.splice method, in AS1 at least, is very slow. For that reason, In situations like this where you would make repeated calls to it to remove one item I prefer to: - create a new Array - iterate the original array with a for loop - push the items I want to keep into the new array - dispose the old one when done. On Dec 22, 2006, at 12:09 AM, Arindam Dhar wrote: Try this, var myArray1:Array = new Array(); myArray1.push( new Array(A:, -1) ); myArray1.push( new Array(B:, -1) ); myArray1.push( new Array(C:, 0) ); myArray1.push( new Array(D:, 0) ); myArray1.push( new Array(E:, -1) ); myArray1.push( new Array(F:, 1) ); myArray1.push( new Array(G:, 0) ); myArray1.push( new Array(H:, -1) ); trace( myArray1); // the function with recursion function removeElements(arr, level) { for (var i = 0; iarr.length; i++) { var tempArr = arr[i]; if(Number(tempArr[1] ) Number(level)) { arr.splice(i, 1); arguments.callee(arr, level); } } } removeElements(myArray1, 0); trace( myArray1); Arindam Mike Cobb [EMAIL PROTECTED] wrote: - Hi everyone, I'm having a braindead moment today, which I was hoping someone could help me with. I have the following array... //Create array with 5 elements var myArray1:Array = new Array(); myArray1.push( new Array(A:, -1) ); myArray1.push( new Array(B:, -1) ); myArray1.push( new Array(C:, 0) ); myArray1.push( new Array(D:, 0) ); myArray1.push( new Array(E:, -1) ); myArray1.push( new Array(F:, 1) ); myArray1.push( new Array(G:, 0) ); myArray1.push( new Array(H:, -1) ); //name, score ...and I'm trying to remove all the elements in myArray1 with a score of less than 0 without sorting/reordering the array at all. I was trying to use a 'for loop', but obviously as the elements are removed, the length of the array changes causes the wrong elements to be deleted. Can anyone help? Thanks, -- - Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinteractive.co.uk - Grosvenor House, Belgrave Lane, Plymouth, PL4 7DA, UK. - I've got a new e-mail address: [EMAIL PROTECTED] Please update your address book. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com Send instant messages to your online friends http:// asia.messenger.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Subversion Client on Mac?
My company does all development using Mac OS X and has used SmartSVN for about a year since migrating from CVS, and we have been very satisfied. The application isn't quite as responsive as I'd always like for large hierarchies, but it is fully featured, stable, and relatively easy to use. I recommend it. AJ Canepa Runtime Logic www.runtimelogic.com On Dec 21, 2006, at 8:08 AM, Robert r. Sanders wrote: T. Michael Keesey wrote: Do any people out there who use Macs have a recommendation for a Subversion client? We're trying SVNX, and it's not bad, but ... it's no TortoiseSVN, for sure. What do you guys use? I don't know if you've tried it, but SmartSVN is relatively nice - http://www.syntevo.com/smartsvn/index.jsp -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] swf and domains, what domain made the call?
A third option, which may not work for MySpace, but is worth mentioning for situations like this, is to embed a loader.swf on the 3rd party server. In the loader.swf, you test _url and if it meets your requirements you can then load your primary SWF file from your server. AJ Canepa Runtime Logic www.runtimelogic.com On Oct 29, 2006, at 2:22 AM, Mick G wrote: Perhaps when you instruct with what EMBED code to use on myspace, do it like this... EMBED src=mydomain.com/myfile.swf?id=123 That ID could be a unique ID to a certain account. In flash you can do whatever database calls you need and check if that userID has the access you need. If the swf is called without the ID, then don't allow it. OR... I'm not sure if this will work, but you could use... EMBED src=mydomain.com/myfile.php - your php could check who the referrer is, and do whatever checking you need, then load your SWF and spit out a SWF-file type. - Mick On 10/28/06, Diversity [EMAIL PROTECTED] wrote: Not quite what I am looking for. Here is my situation. I have a swf on my server. This swf will be allowed to be posted on other sites such as myspace (if the user that created the account has a certain account type). Since it can be posted on myspace the actual swf will be in an embed tag on myspace with an src pointing to my server. What I need to do is once this swf gets called is see what the referring domain is and see if the creator of that content has an account that allows embedding on external sites. if(domain == myserver || domain == www.myserver){ // serve up content this is on our server no account check needed } else{ // WAIT!!! check if this content creator can embed outside of our domain } I hope I got my point across and I hope what i am trying to accomplish is actually doable. I tried localConnections domain function but that gave me the domain of the swf which was on my server not the domain of the html file that called/embedded the swf. Jim Berkey wrote: Would this do what you are looking for? http://www.mochibot.com jimbo *** REPLY SEPARATOR *** On 10/28/2006 at 6:24 PM Diversity wrote: Anyone with any suggestions? Diversity wrote: With flash and its cross domain security is there anyway for me to read what the calling domain is of the swf? Example swf located on my server, being called from domain.com. How can I see that its domain.com calling the swf and not myserver.com making the call? _url gives me the swf location not the calling domain. Thanks, Diversity ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Help Loading and Displaying XML
Aaron, I don't know your exact architecture, but relative paths should work here. The path is relative to the URL where your embedded SWF is loaded from. Thus, if you have a folder on your server with the SWF file and the xml in it, you should be able to simply load menu.xml. The crossdomain.xml is good to understand, but fundamentally your user is either coming in from the www.whitehorsemedia.com or the whitehorsemedia.com domain and not switching during an execution of your SWF. AJ Canepa Runtime Logic www.runtimelogic.com On Sep 18, 2006, at 12:50 PM, Aaron Roberson wrote: Serge, Thank you for your help. I copied and pasted that code into a new document named crossdomain.xml and uploaded it to the root of my server and now it works! Here is a page on Adobe.com about crossdomain.xml: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213 This is the only legitimate fix for me since my movie is on more than one page across several directories. Relative paths would not have worked. Thanks all, Aaron On 9/18/06, Serge Jespers [EMAIL PROTECTED] wrote: Hi Aaron, Put a crossdomain.xml in the root of the server and it will all work out... The file should look like this: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/ dtds/cross-domain-policy.dtd cross-domain-policy allow-access-from domain=whitehorsemedia.com / allow-access-from domain=www.whitehorsemedia.com / /cross-domain-policy Serge I have a menu constructed from XML and I am parsing it in Flash to create my site navigation. However, I am having a problem loading the xml so that it is parsed and displayed on my website when accessed directly (as in http://whitehorsemedia.com) and when accessed using www.whitehorsemedia.com (using the preceding www). Here is the code I am using to load my xml: menu_xml.load(http://www.whitehorsemedia.com/inc/navigation/ menu.xml); If you go to http://www.whitehorsemedia.com the navigation displays fine. But if you go to http:whitehorsemedia.com the navigation does not display at all. If I change the code to: menu_xml.load(http://whitehorsemedia.com/inc/navigation/ menu.xml); I get the opposite effect. How can I get the navigation to display at both addresses? Thanks in advance, Aaron Roberson ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash 8 Debugger Crashes
Dan and John, Thanks for your help. I took a look at the Xray video tutorials. It seems like a great data inspection / manipulation tool, and I will definitely use it on future projects. Nice work John. It doesn't have all of the functionality that I require from an interactive debugger, though, so I can't really use it as a substitute for the Flash debugger. There is no way to set a breakpoint or pause code execution, so there is really no way to use it, for example, to debug issues during object model initialization; examine the transaction data of a transient data set returned from a web service; or trace the flow of control through a series of object instances. Most of the Flash I work with tends to have these characteristics. I have been working on a different set of classes within my same project today, and was able to successfully use the Flash 8 debugger without a crash. That indicates to me that there is a specific bug in the Flash 8 debugger that is triggered by specific code within my project, because when I'm working in this other area of my code I see reproducible crashes. Now to figure out precisely what triggers this bug. I'll report here if I determine the cause. Thanks again. AJ Canepa Runtime Logic www.runtimelogic.com On May 15, 2006, at 6:13 PM, John Grden wrote: when trying xray, be sure to check out the basic videos on how to use it. It's very simple, but the videos can really get you going very quickly http://labs.blitzagency.com/wp-content/xray/videos/tutorials/ indexFlash.html if you have questions, don't hesitate to ask ;) JG On 5/15/06, Dan Efergan [EMAIL PROTECTED] wrote: I haven't had the debugger crashing, but it tends to hang on the evil beach ball (Mac) for what seems like infinity, if trying to do any kind of intensive repetitive tasks (decompiling large amounts of XML is always a killer). Probably not that useful, as the exact same thing happened in 2004 as well. I usually tend to give up on the debugger for large projects and start using too many traces. You tried http://osflash.org/xray . Not much experience with it, but might be a different way of getting in there. Dan On 15 May 2006, at 23:09, AJ Canepa wrote: Has anyone experienced similar issues with debugger stability under Flash 8? Dan Efergan [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- John Grden - Blitz ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash 8 Debugger Crashes
I have been using Flash 8 to compile a moderately complex Flash application with about 40 classes. The code is all AS1. It compiles and runs without error, but I run into issues when I try to use the interactive debugger. Setting a breakpoint and stepping through code works for at least a few lines, but stepping into a method call or closing the debugger window generally causes Flash 8 to crash. I don't have this issue when doing the same steps with Flash MX 2004 -- in fact I had been using MX 2004 on this project for almost 2 years with no problems of this magnitude and just recently upgraded. These are both Mac versions of the Flash IDE. Has anyone experienced similar issues with debugger stability under Flash 8? I contacted Adobe tech support about my issue and they told me to send in an example of the code that makes it crash. Now I had only to isolate the crashing behavior to a particular construct within a 40 class project without any knowledge of the architecture of the Flash debugger -- easy right? When I didn't submit anything to them within a week they closed my ticket. :-P Just hoping to collect some advice regarding this issue to see if I will need to keep swapping between two installs of the Flash IDE. Also, I just joined Flashcoders and this is my first post to this list -- I look forward to helping out in the future. Thanks. AJ Canepa Runtime Logic www.runtimelogic.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com