[Flashcoders] Alternative IDE for Flash Devel

2006-10-12 Thread Andy Herrman
Forgive me if this has already been asked, but I didn't see anything in the archives. I'm new to Flash development and am working on both server and client side code (FMS 2.0 and Flash 7+). As someone who's used to doing Java development using Netbeans I find the Flash IDE very lacking for

Re: [Flashcoders] Alternative IDE for Flash Devel

2006-10-12 Thread Andy Herrman
anymore. There is also a partially working, but discontinued plugin for Eclipse, which can then be used in conjunction w/ the CVS or SVN team provider for Eclipse - also there is a commercial plugin to, its kind of expensive and I've never used it. Hope that helps. Andy Herrman wrote

Re: [Flashcoders] Alternative IDE for Flash Devel

2006-10-16 Thread Andy Herrman
PROTECTED] On Behalf Of Andy Herrman Sent: Thursday, October 12, 2006 4:46 PM To: Flashcoders Subject: [Flashcoders] Alternative IDE for Flash Devel Forgive me if this has already been asked, but I didn't see anything in the archives. I'm new to Flash development and am working on both server

[Flashcoders] Weird image download problems in IE

2006-10-16 Thread Andy Herrman
We're running into a really strange problem with image downloads in Flash when running in IE and was wondering if anyone else has seen something like this or has any ideas on what I could do to fix it. We need to have the Flash movie be able to download arbitrary images from the web and display

Re: [Flashcoders] Weird image download problems in IE

2006-10-16 Thread Andy Herrman
://livedocs.macromedia.com/flash/8/main/2538.html HTH ! Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: 16 octobre 2006 15:23 To: Flashcoders Subject: [Flashcoders] Weird image download problems in IE We're running into a really

Re: [Flashcoders] ppt to flash

2006-10-16 Thread Andy Herrman
There are commercial pieces of software that will do it (we use one here at work as part of our product), and I believe they all use VBScript to interact with Powerpoint. However, from what I've heard the next version of Powerpoint will not have the VBScript support anymore (I guess MS

Re: [Flashcoders] Weird image download problems in IE

2006-10-17 Thread Andy Herrman
] On Behalf Of Andy Herrman Sent: 16 octobre 2006 16:31 To: Flashcoders mailing list Subject: Re: [Flashcoders] Weird image download problems in IE Awesome, looks like that works. Thanks! Any idea what's causing the problem with the Loader? Just some bug in Flash or IE? -Andy On 10/16

Re: [Flashcoders] Alternative IDE for Flash Devel

2006-10-18 Thread Andy Herrman
for Actionscript programming. Ron Andy Herrman wrote: So, I haven't used Eclipse at all for Java. I've been using Netbeans for the last year or so, and before that stuck with Vim and command line tools. From what I hear, Eclipse/Netbeans is the new Emacs/Vim debate. :) I found a free

Re: [Flashcoders] LocalConnection and Media Components?

2006-10-18 Thread Andy Herrman
Have you put any logging in place to see if the communication itself is working, or are you just not seeing it change the media? Looking at the code you have there it looks like you're trying to load a file from the local FS, which I don't think will work if the movie is loaded in a browser over

Re: [Flashcoders] LocalConnection and Media Components?

2006-10-19 Thread Andy Herrman
I'm pretty new at this, so I'm not sure how much help I can really be, but I'll give it a shot. One thing I just noticed is that in your code for the button movie you instantiate the LocalConnection but don't call connect(). If what you gave there is all of your code than that's probably the

[Flashcoders] Problem loading files in Server-side code when using compiled (.ase) files

2006-10-19 Thread Andy Herrman
I'm having a really weird problem with my server-side code when trying to use compiled versions of the files. When using the source files (.asc) everything works correctly, but when using the compiled versions of the files things get weird. The short version is this: If I try loading a file

Re: [Flashcoders] Swf to image java library?

2006-10-19 Thread Andy Herrman
My guess is that would be pretty difficult to do. Given that the the swftoimage library you linked to requires that the player be installed, my guess is that it loads the player's ActiveX control and uses that to extract the image information. I don't know of any way to load an ActiveX control

Re: [Flashcoders] Washington DC Cold Fusion Developer Needed

2006-10-24 Thread Andy Herrman
If you look in the footers for all the messages it has this link: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders You can use that to unsubscribe (it worked for me earlier when I was changing e-mail addresses). -Andy On 10/23/06, Arlo Jamrog [EMAIL PROTECTED] wrote: Hi Dave-

Re: [Flashcoders] Q:Justifying Flash 8 Content

2006-11-01 Thread Andy Herrman
also the fact most people have it now is another. I'd debate this. It really depends on what your audience is. Individual home users probably have newer versions, or can easily upgrade them. Corporate users are a different matter though. We're using Flash for part of our product where I work

Re: [Flashcoders] functions outside a class

2006-11-13 Thread Andy Herrman
That's exactly the approach I was going to suggest. I find static Utility classes to be very useful for collections of helper functions that don't require any real context (things like string utilities and common tasks). This tends to be cleaner as well, as you don't have to worry about passing

Re: [Flashcoders] Flash 8: Code editors

2006-11-27 Thread Andy Herrman
The projects I'm working on are all done using editors other than the Flash IDE and I just open the IDE to build. As long as your code is in separate .AS files this would work fine. The way it's set up in my projects (done by the previous developer, so I may be missing some steps) is to have

Re: [Flashcoders] Re: [Flickr] Your Photo Upload Failed

2006-11-29 Thread Andy Herrman
I don't think the bounce is being sent to the list itself, but to the person who posted the message. So adding the list to their blacklist probably wouldn't fix anything. That said, I haven't received any of these messages, but it's possible gmail is just throwing them in the spam folder and

Re: [Flashcoders] Transmit image diff?

2006-12-01 Thread Andy Herrman
You're probably better off sending the commands themselves. Your rendering algorithm may be complicated, but sending commands is almost always going to be more efficient (and as such will probably save you on bandwidth). Calculating image diffs is kind of expensive, and can be pretty complex if

Re: [Flashcoders] Transmit image diff?

2006-12-01 Thread Andy Herrman
of live streaming from a series of images? Thanks a lot in advance, -Wojtek On Fri, 2006-12-01 at 15:48 -0500, Andy Herrman wrote: You're probably better off sending the commands themselves. Your rendering algorithm may be complicated, but sending commands is almost always going to be more

Re: [Flashcoders] Good External Actionscript Editor for Mac?

2006-12-13 Thread Andy Herrman
I'd vote against Eclipse as well, but only because I couldn't ever get the Actionscript plugin to work. Then again, I tend to use Vim for all my text editing on the Mac, so maybe I'm just weird. I will have to take a look at TextMate though. I keep hearing good things about it. -Andy On

Re: [Flashcoders] SWF Decompiler

2006-12-13 Thread Andy Herrman
to get good enough for what we need. -Andy On 12/13/06, strk [EMAIL PROTECTED] wrote: On Tue, Dec 12, 2006 at 03:47:01PM -0500, Andy Herrman wrote: Hey all, At work I've run into a situation where I need to decompile some SWFs. A few weeks ago I had looked for one, but couldn't find any good

Re: [Flashcoders] SWF Decompiler

2006-12-18 Thread Andy Herrman
The SWFs I'm decompiling are mine. There are actually two different situations where I need to decompile an SWF: 1) The original flash developer on the projects I'm on quit some time ago, and there was a source file he forgot to check in to source control, so I can't build the project. I'd

[Flashcoders] External .AS files getting different values from Stage

2006-12-18 Thread Andy Herrman
I'm seeing something weird happen with the flash movie I'm working on. One of the first things the movie does is load another movie. The movie it's loading has the potential of being pretty large, so I created a simple overlay on the movie's UI that displays a Loading message along with a %

Re: [Flashcoders] polymorphism question (design)

2006-12-19 Thread Andy Herrman
To me it sounds like what you need is more of a Model/View separation. You've got the Graph data itself, and then various UIs that are used to display the data. I would try to separate the UI related code and the raw data for the Graph (I did something very similar to this for a whiteboard

Re: [Flashcoders] SWF Decompiler

2006-12-19 Thread Andy Herrman
us a sample SWF, and we can send you back text output of ASV as a demonstration. Thanks Alias™ and flashsavvy for your nice words about ASV. Best regards, Burak www.asvguy.com Burak KALAYCI, Manitu Group http://www.buraks.com http://www.manitugroup.com - Original Message - From: Andy

Re: [Flashcoders] Robust server-side PDF creation from Flash RIA

2006-12-20 Thread Andy Herrman
Not really sure if it'll be helpful or not, but if you can get an application on the server side that's able to print you could use PDFCreator to create the PDF itself: http://www.pdfforge.org/products/pdfcreator Though I'd do that as a sort of last resort, as it would be better if you could

Re: [Flashcoders] Point inside Rectangle ?

2006-12-21 Thread Andy Herrman
For an arbitrary rectangle you'll have to do some math. Of the top of my head, here's a way to do it: First you'll need to be familiar with vector math, including dot products: http://mathworld.wolfram.com/DotProduct.html So, pick an arbitrary point on the rectangle and get the vectors for the

Re: [Flashcoders] Remove elements from Array

2006-12-21 Thread Andy Herrman
you could use a while loop: var i:Number = 0 while(i myArray1.length) { if(myArray1[i][1] == 0) { /* I think this is right: */ myArray1.splice(i, 1); } else { i++; } } Splicing will cause the next item to be at index i, so you want to recheck that index the next time through the

Re: [Flashcoders] Remove elements from Array

2006-12-21 Thread Andy Herrman
That's probably more efficient than my method. Granted, I may be wrong about how Flash stores arrays internally, but in general removing a single element from an array requires everything after that element to be shifted left. So the closer to the beginning of the array the more expensive the

Re: [Flashcoders] Remove elements from Array

2006-12-21 Thread Andy Herrman
Wouldn't doing the splice there change the indexes of everything else in the array and mess up the loop? For instance: [1, 2, A, A, 5, A, 7] say you're deleting the As. The first time you do a splice you remove the first one, and get: [1, 2, A, 5, A, 7] The index of everything after the

Re: [Flashcoders] ActionScript switch/default syntax and interpretation

2006-12-21 Thread Andy Herrman
Yea, the last break is unecessary, but I think it's a good idea to put there. Just to have the habit of already remembering to put breaks at the end of case statements (I've forgotten a couple times and went nuts looking for the bug). And as Wagner mentioned, it protects against people adding

Re: [Flashcoders] Remove elements from Array

2006-12-21 Thread Andy Herrman
. Michael Keesey [EMAIL PROTECTED] wrote: No, because it's a for (x in a) loop, not a for (x; y; z) loop. In AS2 it iterates backwards over the elements. Not sure about AS3, but it should work there, too. Try it and see! On 12/21/06, Andy Herrman [EMAIL PROTECTED] wrote: Wouldn't doing the splice

Re: [Flashcoders] Remove elements from Array

2006-12-21 Thread Andy Herrman
= 0; --i) { if (!test(array[i])) { array.splice(i, 1); } } On 12/21/06, Andy Herrman [EMAIL PROTECTED] wrote: Even if it iterates backwards, I don't think I'd trust it. I don't like the idea of relying on an implementation detail of the for-in loop in order to make my stuff

Re: [Flashcoders] getters and setters and the with statement

2007-01-03 Thread Andy Herrman
It can also be useful when you're working on code someone else wrote that doesn't use classes at all (everything is a generic object, grumble grumble...) and you need to do lots of work on that object. Like if you have to set a whole lot of values in the object. So, it can make your life a bit

Re: [Flashcoders] Will the new iPhone run flash?

2007-01-09 Thread Andy Herrman
Well, they said it runs OS X, so since Flash runs in OS X that suggests it does. :) Then again, I have no idea what that actually means, so who knows? I just wish it was cheaper. We'll probably get more information as it gets closer to actually shipping. Until then we won't really know unless

Re: [Flashcoders] Critical bug in IE

2007-01-09 Thread Andy Herrman
When are you doing that? I've noticed some weird issues in IE where the Stage stuff doesn't always behave correctly at the beginning of the movie (my case the Stage was telling me the width/height was 0 when code in external .as files was running, but if it was code in the FLA itself, which ran

Re: [Flashcoders] Will the new iPhone run flash?

2007-01-10 Thread Andy Herrman
Oh, I'm not saying I'm surprised at the price, or that it's unreasonable. I just wish it were cheaper. :) As for Flash, if it doesn't exist out of the box I wouldn't be surprised if it's added later. This quote: '[OSX] let us create desktop class applications and networking, not the crippled

Re: [Flashcoders] AS2 best practice question - attachMovie or static create method

2007-01-18 Thread Andy Herrman
My preference is actually: e) Don't extend Movie Clip. :) Basically, I prefer to have a class encapsulate a movie clip. Either have the constructor take a reference to an empty movie clip for it to use as its UI area, or have it take in a reference to the MC that should be its parent and have

Re: [Flashcoders] Singleton class inside SWC components?

2007-01-19 Thread Andy Herrman
I'm confused. You said: However as soon as I compile them into an SWC and add more than one of the same component onto the stage they all end up using the same instance of that class. Isn't that the definition of a Singleton? Something where only a single instance ever exists (so they'd all

[Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
I'm beginning work on a new project that will need to have a brandable UI and I'm looking for suggestions on how to proceed. I'm pretty new to Flash development, so I don't really know if there's a standard way of doing this. What I would like to do is have the main application's SWF load a

Re: [Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
approach for what i need. t On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: I'm beginning work on a new project that will need to have a brandable UI and I'm looking for suggestions on how to proceed. I'm pretty new to Flash development, so I don't really know if there's a standard way

Re: [Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
Brand.swf you've got. That way, you can 'skin' your Main.swf. I hope this helps, and I hope someone will correct me if I've made any silly mistakes! - Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: Unfortunately I'm stuck using the Flash IDE only (no MTASC). :( I don't really

Re: [Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
, in v9 you can manipulate the display heirarchy pretty much as you like) Andy Herrman wrote: var img:MovieClip = root.attachMovie(asImage, asImageMC, root.getNextHighestDepth()); ___ Flashcoders@chattyfig.figleaf.com To change your subscription

Re: [Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
in the rootMC movieclip. Can I see what the call to that looks like? I don't think you need to concern yourself with runtime sharing at this stage, really. Ok, try what Martin said ;-) Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: That's actually exactly what I'm trying, yet

Re: [Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
Martin, you are my hero. uiResources.attachMovie(...) worked like a charm, and it'll let me dynamically change which brand.swf I use (as opposed to Links which wouldn't). Thanks! -Andy On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: That's what I was afraid of. I want to avoid doing

Re: [Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
. On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: There is code in the first frame of main.swf: stop(); Stage.scaleMode = noScale; BrandTest.main(this); So root in the BrandTest movie is the same as _root. I just don't like using the _root variable. Global vars make me feel dirty

Re: [Flashcoders] Q:The case for Functional vs OOP programming

2007-01-22 Thread Andy Herrman
Unhijacking of thread is a go! I haven't really used any functional language stuff for a couple years, so I may be off base a bit, but I'm not sure if you could really create a language that's both Functional and OOP, as OOP is a fairly procedural construct. The main problem I see is that OOP

Re: Re[2]: [Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
It's the hope that he/she will not screw up your movie at all that I worry about. @Steven I work for a very large corporation, and they're pretty anal about what we do and don't use. I hear good things about MTASC, so I'd like to try and use it, but given where we are with the current projects

Re: [Flashcoders] Q:The case for Functional vs OOP programming

2007-01-22 Thread Andy Herrman
, most of them copy directly to actionscript. Wrap'm in an Example class and a combo is born:) Or am I making this seem to easy?:) greetz JC On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: Unhijacking of thread is a go! I haven't really used any functional language stuff for a couple years

Re: Re[2]: [Flashcoders] External libraries

2007-01-22 Thread Andy Herrman
So, I actually use FlashDevelop to write my code, and just switch to the Flash IDE to build (I really dislike the IDE). The problem with using it has nothing to do with installing it or being able to run it on my machine. The problem is that MTASC would essentially be responsible for things

Re: Re[2]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman
, in FlashDevelop, I had a static main function that started the app thusly: var newMenu:MenuController = new MenuController(); In the Flash IDE, I used the same line of code, but I put it in frame 1 instead. It amounts to the same thing though. Francis On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote: So

Re: Re[2]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman
If I add the -mx parameter to MTASC (I'm working through FlashDevelop) it removes the error, but the Delegate class doesn't work anymore (Delegate.create returns undefined). -Andy On 1/23/07, Andy Herrman [EMAIL PROTECTED] wrote: Hmm...I just tried building using MTASC and I'm getting

Re: Re[2]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman
that if I need to). -Andy On 1/23/07, Trevor Burton [EMAIL PROTECTED] wrote: i seem to remember having to rework my Delegate class to run with mtasc - what's the error it's giving you? On 1/23/07, Andy Herrman [EMAIL PROTECTED] wrote: If I add the -mx parameter to MTASC (I'm working through

Re: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman
://dynamicflash.com/2005/02/delegate-class-refined/ Andy Herrman wrote: If I add the -mx parameter to MTASC (I'm working through FlashDevelop) it removes the error, but the Delegate class doesn't work anymore (Delegate.create returns undefined). -Andy

Re: Re[4]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman
Already set scaleMode, but didn't know about align. I can try that, but it still doesn't help with MTASC not resizing. -Andy On 1/23/07, Rákos Attila [EMAIL PROTECTED] wrote: Why don't you set Stage.scaleMode and Stage.align to your preferred values at the beginning of your program?

Re: Re[4]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman
on. Between this and the Stage.align fix everything seems to be working. Thanks for all your help everybody! -Andy On 1/23/07, Andy Herrman [EMAIL PROTECTED] wrote: Already set scaleMode, but didn't know about align. I can try that, but it still doesn't help with MTASC not resizing. -Andy

Re: Re[6]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman
Aha! Ok, here's some code: - class mtascTest { private var root:MovieClip; public static function main(rootMC):Void { if(rootMC == undefined) { rootMC = _root; } //Stage.scaleMode = noScale; //Stage.align = LT; var main:mtascTest = new mtascTest(rootMC); } function

Re: [Flashcoders] ExternalInterface.call - javascript error

2007-01-23 Thread Andy Herrman
small capital letters? I didn't know capital letters had sizes! =P Sorry, couldn't resist. Intelligent discussion may now continue. :) -Andy On 1/23/07, Nick Zotta [EMAIL PROTECTED] wrote: Thanks for the link, I've already seen this bug on the net, but it is not my case. My swf filename

Re: Re[6]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman
day:). greetz JC On 1/23/07, Andy Herrman [EMAIL PROTECTED] wrote: Aha! Ok, here's some code: - class mtascTest { private var root:MovieClip; public static function main(rootMC):Void { if(rootMC == undefined) { rootMC = _root; } //Stage.scaleMode = noScale

Re: Re[8]: [Flashcoders] External libraries

2007-01-24 Thread Andy Herrman
It might not be MTASC itself, but something that FlashDevelop is doing with MTASC that caused it (an option I couldn't find or something). Either way, setting it at the beginning of my script fixes it, so it doesn't really matter anymore. :) -Andy On 1/24/07, Rákos Attila [EMAIL PROTECTED]

Re: [Flashcoders] flash on osx thru parallels/bootcamp

2007-01-24 Thread Andy Herrman
I haven't tried it at all, so I may be way off here, but: If you're having performance problems, try playing around with the VM settings in Parallels. Specifically, take a look at how much RAM parallels is giving to the VM. If that value is too low then the virtual machine won't have enough

Re: [Flashcoders] LocalConnection slow ...

2007-01-24 Thread Andy Herrman
I've noticed delays in my application, but I'm not sure if they're the same as yours. The delays I've seen seem to stem from Flash's threading model (specifically, being single-threaded). Depending on the timing of the messages you're sending/receiving, especially if you have a lot of movies,

Re: [Flashcoders] Demystify the Flash player installation updating for me

2007-01-24 Thread Andy Herrman
Do you and your coworker have the same permissions on your machine? For instance, if your coworker is an administrator but you're a restricted user that could explain different installations. My first try would be to completely uninstall Flash and then reinstall it (I had some really weird

Re: [Flashcoders] Demystify the Flash player installation updating for me

2007-01-25 Thread Andy Herrman
When I was having problems getting Flash installed I also had to manually delete the OCX file I referenced earlier. For some reason even after using the uninstaller it wouldn't fully uninstall, and I couldn't get the new version to install correctly until I removed the OCX file. That might be

[Flashcoders] AS 2 Logging Library

2007-01-25 Thread Andy Herrman
I'm looking for a good logging library compatible with Flash 7 along the lines of log4j. I found this one, which looks exactly like what I want: http://code.audiofarm.de/Logger/ but it won't build with MTASC (works fine in the FlashIDE though). Does anyone know if there's a version of it that

Re: [Flashcoders] AS 2 Logging Library

2007-01-25 Thread Andy Herrman
- and have just started looking at xRay On 1/25/07, Andy Herrman [EMAIL PROTECTED] wrote: I'm looking for a good logging library compatible with Flash 7 along the lines of log4j. I found this one, which looks exactly like what I want: http://code.audiofarm.de/Logger/ but it won't build

Re: [Flashcoders] AS 2 Logging Library

2007-01-25 Thread Andy Herrman
://vegas.riaforge.org/ the AS2 logging tool in the vegas.logging package is based on the mx.loggingAS3 framework :) You can try the examples in the AS2/trunk/bin/test/vegas/logging directory of the Subversion. My framework is MTASC and FDT compatible. EKA+ :) 2007/1/25, Andy Herrman [EMAIL PROTECTED]: I'm

Re: [Flashcoders] AS 2 Logging Library

2007-01-25 Thread Andy Herrman
applications ;) EKA+ :) 2007/1/25, Andy Herrman [EMAIL PROTECTED]: I looked at VEGAS actually, but wasn't sure whether I could use it. I'm not really clear on how the Mozilla license handles linking. Specifically, if I don't modify any of the VEGAS code and simply use its classes

Re: [Flashcoders] AS 2 Logging Library

2007-01-25 Thread Andy Herrman
;) For me openSource if open ... the objective is to considerate my work and the time passed to implement the libraries :) No problem to use VEGAS in your applications ;) EKA+ :) 2007/1/25, Andy Herrman [EMAIL PROTECTED]: I looked at VEGAS actually, but wasn't sure whether I could use

Re: [Flashcoders] moving functions one scope up

2007-01-25 Thread Andy Herrman
Yea, Delegate would probably work (assuming I'm understanding correctly): import mx.utils.Delegate; // I think that's the right path // STUFF var myVariable:Number = 10; myButton.onRelease = Delegate.create(this, function() { this.myAction(); }); // I think this line would work too, but I'm

Re: [Flashcoders] AS 2 Logging Library

2007-01-25 Thread Andy Herrman
or final version ! 2007/1/25, Andy Herrman [EMAIL PROTECTED]: I like what I see so far for VEGAS, especially the XPanel target. However, I'm getting a weird problem where if I build the SWF using the Flash IDE everything works, but if I use MTASC the logs don't make it to XPanel. XPanel does

Re: [Flashcoders] Tooltip for disabled buttons: Ideas?

2007-01-26 Thread Andy Herrman
For the disabled state for our buttons we actually use a different movie clip. Basically, each button consists of a Button object and a Movie Clip with the image used for the disabled state. When the button is disabled we hide the Button and show the MC, and when it's enabled we do the

Re: [Flashcoders] problem moving an object

2007-01-26 Thread Andy Herrman
I'm pretty sure this line: if (this.myLoader._x eq this.myLoader._x-1){ will never resolve to true, given that no number is equal to the same number minus one. Thus, the code in that if statement will never trigger. Should one of those this.myLoader values be a different variable? -Andy On

Re: [Flashcoders] Q: Approaches to integrating existing class libraries with frameworks

2007-01-26 Thread Andy Herrman
It probably depends on how complicated the thing you're replacing is. I'm doing something similar with the VEGAS library. I have a simple logging class that I wrote as a central place to do logs, but needed to extend it a lot. The logging framework in VEGAS is just about exactly what I needed,

Re: [Flashcoders] Shorhand for if statement without else statement

2007-01-26 Thread Andy Herrman
Usually ?: notation is used specifically for quickly choosing between 2 values (picking between 2 things inline). That's a case where you really have to have an else, otherwise you wouldn't have a value to represent the failure case of the IF part. If you're doing logic that isn't inline in a

Re: [Flashcoders] Shorhand for if statement without else statement

2007-01-29 Thread Andy Herrman
Heh, that's nothing. I don't have the code available, but I once wrote a ?: statement that was something like 16 deep. Ah, those were the days. :) -Andy On 1/29/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: (foo) ? foo() : (bar) ? bar() : (foobar) ? foobar() : trace(sorry! no soup

Re: [Flashcoders] Using drawing API to draw dotted lines?

2007-01-30 Thread Andy Herrman
well, you can always simulate a dotted line with multiple lines with spaces between them. I don't see any way to do it in the API, so you may need to do it that way (and that may even be the way the IDE does it, I don't know). Doing some quick googling I came across this. Maybe it'll help you:

Re: [Flashcoders] FMS 2.0 Flash 8 Flv Player Continues Playback after Window Close

2007-01-30 Thread Andy Herrman
Could you put some javascript in the window the movie actually plays in (you said it's a browser window, so I'm guessing javascript is doable) that detects when the window is closed and sends a message to the Flash movie? The flash movie can then detect that and stop playing? That is weird that

Re: [Flashcoders] - dynamic content for flash paper?

2007-01-30 Thread Andy Herrman
I've never tried any of this, and I'm not really familiar with Flash Paper, but... Google gives me this: http://www.blazepdf.com/ It's commercial (you have to buy it), but it looks like it can do what you want. Might be worth looking into if you can't find other solutions. -Andy On

Re: [Flashcoders] path to upper level folder

2007-01-31 Thread Andy Herrman
Ok, so is this what your directory structure looks like: /PATH/folder_with_images/ /PATH/folder1 /PATH/folder2 ? If so, you would just use ../folder_with_images to access that folder from the swf/html that's in either folder1 or folder2. -Andy On 1/31/07, natalia Vikhtinskaya [EMAIL

Re: [Flashcoders] onLoadInit running when swf doesn't exist

2007-01-31 Thread Andy Herrman
I've seen issues where a download fails (connection is cut off after it started) where onLoadInit is called instead of onLoadError. To detect this I simply check the bytesLoaded versus bytesTotal on the movie clip I was loading it into. It's possible you're hitting the same situation (file

Re: [Flashcoders] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread Andy Herrman
You only need to declare things in child classes if you're overriding them, so unless you're doing that you should just declare them in the super class. Also, I tend to think it's bad idea to override variables, but that may just be me. -Andy On 2/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED]

[Flashcoders] Detecting NaN

2007-02-01 Thread Andy Herrman
I'm trying to convert an arbitrary object into a Number, and then detect if the conversion actually succeeded. In theory I would convert it and then check if the converted value is NaN, but this doesn't seem to work. Here's my test. In a blank FLA I put the following code: -- var foo

Re: [Flashcoders] 2-d sort solver

2007-02-01 Thread Andy Herrman
Shouldn't your mySorter() function have a return at the end or in an 'else' block? Otherwise you're only returning a value when the condition passes, which isn't really a good idea. -Andy On 2/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, aa = [

Re: [Flashcoders] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread Andy Herrman
I think you might be a bit confused. private variables aren't ones that are just used in individual functions, but are data that the class needs to persist but doesn't want visible to those using the class. These should always be declared (and I think they have to be or the compiler will choke,

Re: [Flashcoders] fullscreen javascript

2007-02-01 Thread Andy Herrman
It would probably be better if you find one solution that works for all browsers (that you want to support) instead of trying to switch between different methods for different browsers. Browser detection isn't always completely accurate, and it adds unnecessary complexity. We do something like

Re: [Flashcoders] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread Andy Herrman
. - Original Message - From: Andy Herrman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, February 01, 2007 1:23 PM Subject: Re: [Flashcoders] Q:Extending Class with Static Variables,recommended practice I think you might be a bit

Re: [Flashcoders] Flash ANT: Batch Compiling

2007-02-05 Thread Andy Herrman
So, I'm not familiar with Flash ANT (though I like the idea of it), but I would kind of guess it uses MTASC. I've had trouble finding things that work with the IDE itself, though I do have a bit of a hack that tends to work for me. You can do a little bit of scripting of the Flash IDE using

Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Andy Herrman
I had a similar problem (onInit firing when it actually failed) and I found that checking the bytes loaded vs bytes total worked as a way to check if it really succeeded or not. -Andy On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote: On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote:

Re: [Flashcoders] Problem with cascading functions within a class

2007-02-15 Thread Andy Herrman
So, the problem with your initial code is that the scope of the function (what `this` refers to) is not your class, but instead is the scope of the object it's being called on. So, essentially your code is trying to call `html_data.doSomething()`, which doesn't exist. You really want it to be

Re: [Flashcoders] Flash Player 7 Installer?

2007-02-16 Thread Andy Herrman
In general, if you're looking for old versions of something I find this site to be useful: http://oldversion.com/ Just for future reference. -Andy On 2/16/07, Martin Jonasson [EMAIL PROTECTED] wrote: If you're using Firefox on windows this can be very useful aswell:

Re: [Flashcoders] Re: Action Script editor

2007-02-22 Thread Andy Herrman
I've tried SEPY a few times, and while it seemed pretty good it was very unstable. It crashed too often to really be useable. Though I found FlashDevelop later, which has seemed much better than SEPY to me, even ignoring the stability issues. -Andy On 2/19/07, Mauricio Furtado Massaia

Re: [Flashcoders] Passing a Function as Parameter and callfunctionlater

2007-02-23 Thread Andy Herrman
Hmm, I didn't know about that scope chaining stuff, thanks for the link. One question, does the chaining (specifically, the activation object stuff when using inner functions) still apply to AS2 code? I use functions like that for listeners in a *lot* of places, and now I'm worried it's wasting

Re: [Flashcoders] swf/html and swf/swf communication

2007-02-26 Thread Andy Herrman
My understanding is that LocalConnection has nothing to with the browser. It's some process that Flash itself has implemented, so you can run the SWFs in a browser, projector, anything. For instance, I have a flash EXE that talks to flash movies running in various browsers, and it all works

Re: [Flashcoders] Append variables to SWF server-side

2007-02-27 Thread Andy Herrman
So, how is the user viewing the SWF? Is it embedded in an HTML page? If so, you could just make those parameters defined in the HTML, and then have the SWF know to look for the parameters at runtime. The SWFs I use do a lot of that. -Andy On 2/26/07, Mick G [EMAIL PROTECTED] wrote: Does

Re: [Flashcoders] Set Interval Question

2007-03-01 Thread Andy Herrman
Why not have the completion of one piece of code trigger the next interval? So, instead of having multiple intervals that you're starting at once and trying to sync, instead just have things run sequentially. Maybe I'm missing something though. -Andy On 3/1/07, Paul V. [EMAIL PROTECTED]

Re: [Flashcoders] clearInterval(0);

2007-03-06 Thread Andy Herrman
I would suggest initializing the interval value as NULL instead of 0, since I think 0 is a valid ID. That way you can be sure you don't accidentally clear an interval that you don't want to. -Andy On 3/4/07, Alain Rousseau [EMAIL PROTECTED] wrote: Well actually, clearInterval(0) clears the

[Flashcoders] Flash training suggestions

2007-03-08 Thread Andy Herrman
Resending as this bounced the first time I tried (so if you already saw this, sorry!): I'm looking for some suggestions on Flash training classes. My Flash devel knowledge is in a somewhat interesting state in that I know the basics and some advanced parts of AS2 programming, but don't really

Re: [Flashcoders] Flash training suggestions

2007-03-08 Thread Andy Herrman
Actionscript course outline, if you know that stuff, sign up for the Advanced Design course. Kev Kevin Bowers [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: 08 March 2007 13:44 To: flashcoders@chattyfig.figleaf.com Subject

Re: [Flashcoders] preloader give

2007-03-08 Thread Andy Herrman
Have you tried doing a trace() of both tLoaded and tBytes? It might help you figure out what's going on. Also, why not just do `if(tLoaded = tBytes)`? It seems kind of pointless to do a division there. -Andy On 3/8/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Hi I use simple

  1   2   >