Re: [Flashcoders] how to access mcs dinamically

2005-10-28 Thread Mark Winterhalder
but in the descrived situation i must ommit the dot to get it to work, why's that!?? because there are two ways of accessing a property (the parent has a property named mc1 that references a movieclip). one way is to use a dot, the other to use a string (i.e. a variable of type String or a

Re: [Flashcoders] Array Madness - test yourself

2005-11-20 Thread Mark Winterhalder
Can you spot the error? yes :) why not simply do something like that: while( myArray.length ) myArray.pop(); ? mark On 11/21/05, Judah Frangipane [EMAIL PROTECTED] wrote: I just want to bring to your attention a rare array problem that eluded me for years. I just realized what is

Re: [Flashcoders] Array Madness - test yourself

2005-11-20 Thread Mark Winterhalder
On 11/21/05, JesterXL [EMAIL PROTECTED] wrote: Better yet, why not just: myArray = []; done? usually that's what i do, but other references to the array still point to the old one, so it only works if you know for sure what references it. mark -- http://snafoo.org/ jabber: [EMAIL

Re: [Flashcoders] Array Madness - test yourself

2005-11-20 Thread Mark Winterhalder
On 11/21/05, Robert Edgar [EMAIL PROTECTED] wrote: Why wouldn't you use splice(0)? because i wouldn't have thought of that :) seriously, splice obviously is the best solution. Judah: no, i don't remember ever needing to do that, and frankly, can't think of such a situation right now. i figured

Re: [Flashcoders] flow chart layout issue

2005-11-24 Thread Mark Winterhalder
hi Andreas, recursion is your friend. this isn't tested, so let me know if there are any problems: var countSubNodes = function ( node:XMLNode ):Number { var children:Array = node.childNodes; var numSubNodes:Number = 0; for( var i:String in children ) { if( children[ i ].nodeName ==

Re: [Flashcoders] flow chart layout issue

2005-11-24 Thread Mark Winterhalder
, but it's a start, about like the example image you posted. being more efficient would make it pretty complicated, but maybe somebody here has some ideas. mark On 11/24/05, Mark Winterhalder [EMAIL PROTECTED] wrote: hi Andreas, recursion is your friend. this isn't tested, so let me know

Re: [Flashcoders] Re: Qauternions for avoiding gimbal-lock in 3D?

2005-11-28 Thread Mark Winterhalder
On 11/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All I've see online is Quaternions from a Mathematician's view that only a mad-scientist would understand. (Don't understand all the mathmatical notations, I rather see code.) I'm looking for more explainations of Quaternions from an

Re: [Flashcoders] Recursive Loop showing all items

2005-12-01 Thread Mark Winterhalder
On 12/2/05, Marc Hoffman [EMAIL PROTECTED] wrote: Jay, If you got this to work, could you send me the code? I can't make it work even when doing the obvious clean-up to the line breaks and changing naming conventions to AS2 (e.g. Boolean rather than boolean). you can give the one i just

Re: [Flashcoders] Recursive Loop showing all items

2005-12-01 Thread Mark Winterhalder
On 12/2/05, Mark Winterhalder [EMAIL PROTECTED] wrote: On 12/2/05, Marc Hoffman [EMAIL PROTECTED] wrote: Jay, If you got this to work, could you send me the code? I can't make it work even when doing the obvious clean-up to the line breaks and changing naming conventions to AS2 (e.g

Re: [Flashcoders] FAQ Adobe acquisition of Macromedia

2005-12-07 Thread Mark Winterhalder
On 12/7/05, hank williams [EMAIL PROTECTED] wrote: This new client is not in place of the current lightweight player. It is a separate thing, like central. So there will always be separate browser plugins for pdf and swf. it might be apollo, of which i know almost nothing about, but which

Re: [Flashcoders] Even odds

2005-12-08 Thread Mark Winterhalder
On 12/9/05, Scott Hyndman [EMAIL PROTECTED] wrote: I just did a test. The bitwise approach is not faster...although when you think about it, it really should be. Hi Scott, the test won't work because (50010001 % 2 == 1) always resolves to false and the compiler will optimize it (at least MMC,

Re: [Flashcoders] Faster code?

2005-12-21 Thread Mark Winterhalder
On 12/21/05, Mark Ribau [EMAIL PROTECTED] wrote: Anyone know of good optimizations to make to code so that it'll run faster in Flash? functions: avoid, if at all possible. methods of intrinsic classes are ok (e.g. Math.round()), but calling an AS function is very slow. if you have to use

Re: [Flashcoders] Linux player - which flash version

2006-01-09 Thread Mark Winterhalder
On 1/9/06, Hubert Cumberdale [EMAIL PROTECTED] wrote: On 1/9/06, franto [EMAIL PROTECTED] wrote: and is it ok, test it on windows, and it should run on Linux, or should I rather test it on Linux? Flash 7 will be ok, but test it under linux! definitely test it -- early and often. you can

Re: [Flashcoders] Dowloading Flex 2 alpha

2006-01-11 Thread Mark Winterhalder
On 1/11/06, Rui Duarte Silva [EMAIL PROTECTED] wrote: Hi, Is there another place from wich I can doenload the Flex Builder 2 alpha, eclipse plugin and charting components? no. The macromedia site is slowww and connection breaks up in the middle of the download..

Re: [Flashcoders] Can't redefine class method

2006-01-15 Thread Mark Winterhalder
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

Re: [Flashcoders] Can't redefine class method

2006-01-15 Thread Mark Winterhalder
interesting -- if you replace A with this: class A { private function A(){}; public static var doit:Function; // will be defined later private static function dothis() { trace( A.dothis ); } } and then, keeping B as it was in the example: A.doit =

Re: [Flashcoders] Another Class Error Message

2006-01-20 Thread Mark Winterhalder
**Error** BushidoDeep:Users:chris:Desktop:classes:timeStamp:com:bushidodeep:TimeSt amp.as: Line 23: Type mismatch in assignment statement: found Void where TextField is required. greeting_txt = container_mc.createTextField (messageText, 0, 0, 0, 400, 25); simple, and exactly as

Re: [Flashcoders] Q:ASSetPropFlags and nested objects

2006-01-22 Thread Mark Winterhalder
How do I trace out [object Object]?? use typeof to check if it's object, array, movieclip or function (the types that can contain others as properties). if so, just ASSetPropFlags again and for..in loop through these, too, recursively. *however*, you'll get stuck in a loop very quickly. just

Re: [Flashcoders] Lines of code in a Flash project

2006-01-27 Thread Mark Winterhalder
On 1/28/06, Bill Brown [EMAIL PROTECTED] wrote: Does anyone know a quick way of counting the lines of code in a Flash project? I just finished a large project with several dozen classes and was curious about my lines per hour ratio. i agree with the others that it's a dubious measure, but if

Re: [Flashcoders] except onRelease

2006-01-30 Thread Mark Winterhalder
hi Corban, this[charThumb_MC].loadMovie(charThumb); loadMovie is delayed until all scripts in the frame have finished, so you assign the onRelease to a movieclip that will be replaced by a newly loaded one moments later. use a container to load it into, and assign your onRelease

Re: [Flashcoders] Tell me more about _global

2006-01-31 Thread Mark Winterhalder
also, if i read your code (or my own a few months after i've written it), i have o way of knowing where that mysterious _global.settings.maxItems property has been defined so i can change it. mark -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___

Re: [Flashcoders] Player Version Penetration -- Comparison Stats

2006-02-01 Thread Mark Winterhalder
http://web.archive.org/web/20040211234604/http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html hth, mark On 2/1/06, Clive Sweeney [EMAIL PROTECTED] wrote: The recently published stats of Flash Player Version Penetration --

Re: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-02 Thread Mark Winterhalder
hi Corban, //ALL ISSUES ARE OCCURING IN THIS LINE OF CODE FROM WHAT I UNDERSTAND //COULD ANYONE HELP ME OUT WITH THIS? rfcClip.container.attachMovie(imgID); the other two arguments for attachMovie are name:String and depth:Number. :) to

Re: [Flashcoders] FFMPEG info

2006-02-03 Thread Mark Winterhalder
On 2/3/06, Corban Baxter [EMAIL PROTECTED] wrote: Could you guys help me out for a second I am looking for some good information on FFMPEG the system that google uses to convert all video formats to flv's for video.google.com. I am one looking for the download and two looking for any

Re: [Flashcoders] OT I did pull out the electronic can opener with that _global question didn't I

2006-02-03 Thread Mark Winterhalder
On 2/3/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote: Jason, My bad on that _global can I left open. i'm not Jason, but think it was perfectly legitimate question (as was Anggie's, btw). where else would you ask it if not here? you're not responsible for some people's incapability to keep

Re: [Flashcoders]

2006-02-08 Thread Mark Winterhalder
On 2/8/06, CARABUS plus [EMAIL PROTECTED] wrote: Hello, I create dynamic textfield with functions and I try to field them without success, Have you got an idea ? yes. in fact, i have quite a few suggestions -- sorry if they sound a bit harsh, that's not my intention, they might help you get

Re: [Flashcoders] Q: Speeding up compile and /or launch with many objects

2006-02-08 Thread Mark Winterhalder
Can anyone suggest speed improvements? to speed up compile time, use mtasc (http://osflash.org/mtasc), the second possibly is your initialization, i.e. building the interface or whatever. you can measure it by putting it all in a function, and do something like this: var start:Number =

Re: [Flashcoders] Flash 8.5 for Linux

2006-02-15 Thread Mark Winterhalder
On 2/16/06, Gerry Creighton [EMAIL PROTECTED] wrote: If I hit reply then delete the subject and retype the subject line and delete the body of the message it's going to the list as a new message. Why would it matter if I create a new message or do it the way that I did? no, it doesn't.

Re: [Flashcoders] habbo hotel

2006-03-05 Thread Mark Winterhalder
On 3/5/06, Andrew Nicoli [EMAIL PROTECTED] wrote: can u dupe habbohotel.co.uk so that u can get free credits on it plz plz yes, i think it was: -- stand with ur back to the bar -- move one tile forward -- walk a 4-by-4 tile square, clockwise, but turn counter-clockwise at the corners -- then do

Re: [Flashcoders] habbo hotel

2006-03-05 Thread Mark Winterhalder
to wat bar??? i don't know the name -- a friend showed me the trick a while ago... are there too many to try? anyway the 1 at the pool gave you many more credits. mark On 3/5/06, Andrew Nicoli [EMAIL PROTECTED] wrote: On 3/5/06, Mark Winterhalder [EMAIL PROTECTED] wrote: On 3/5/06

Re: [Flashcoders] Help with Flash Environment / Processes

2006-03-11 Thread Mark Winterhalder
On 3/11/06, Pataluch, Tom [EMAIL PROTECTED] wrote: Hello flashers, I am looking to setup a development environment for a few flash developers and need some assistance. 1. What is a good app to use as a supplement to Flash 8 for action script debugging? Simply using trace is quite

Re: [Flashcoders] flv local playback on linux

2006-03-15 Thread Mark Winterhalder
Ubuntu with Firefox and Flash 7. I don't see why it wouldn't work. Did you read something somewhere stating whether or not its possible? i never got loading local content directly as a file working. i always go over a local webserver, which works just fine, but isn't really an option for a

Re: [Flashcoders] advanced flash AS 2.0/3.0 book?

2006-03-15 Thread Mark Winterhalder
On 3/11/06, Jonathan Berry [EMAIL PROTECTED] wrote: Hey Flashers, how about a book for an intermediate/advanced level coder? how about a book that isn't specifically for flash? after reading one recommendation for it after another, i finally got myself Heads First: Design Patterns

Re: [Flashcoders] Problem with dynamic masking (or maths actually)

2006-03-16 Thread Mark Winterhalder
It would be no problem of course if the blinds would be drawn horizonally or vertically but maybe I skipped too many math classes in the past since I really can't figure our a method to calculate the coordinates for the blinds that are drawn in 45 degree angle.. If someone can come up with a

Re: [Flashcoders] Trying to solve this math equation

2006-03-18 Thread Mark Winterhalder
But that doesn't work... if that is of any help, i came up with the same result after solving it exactly like you did, without reading your result first. that doesn't make it ricght, of course, but i've made another test and the odds are one in a million that we're both wrong: var y:Number =

Re: [Flashcoders] Publish my swf direct to server

2006-04-03 Thread Mark Winterhalder
Dont want to use 3rd party ftp because its another window i have to use. If you can somehow launch a script on publish, then using scp with a pgp/rsa key-pair authentication would be an option because you wouldn't have to enter a password: http://google.com/search?q=ssh+authentication Your

Re: [Flashcoders] Lookup tables

2006-04-08 Thread Mark Winterhalder
On 4/9/06, Helen Triolo [EMAIL PROTECTED] wrote: If array lookup (mysin[some-calculated-angle]) is faster than whatever Flash uses to find Math.sin(some-calculated-angle) --you could write a loop to test that, since I don't know if it's true-- then the simplest thing would be to write (in a

Re: [Flashcoders] getTimer oddness

2006-04-17 Thread Mark Winterhalder
Hi Andreas, as for why it behaves like this, it would be easier if you sent more code (especially the die method, where you declare age, etc). But if I were you I'd totally rewrite that part anyway. I remember that you asked about lookup tables, so you try to be efficient. You likely want to

Re: [Flashcoders] getTimer oddness

2006-04-17 Thread Mark Winterhalder
that much compared to the time saved each frame. Mark On 4/17/06, Mark Winterhalder [EMAIL PROTECTED] wrote: Hi Andreas, as for why it behaves like this, it would be easier if you sent more code (especially the die method, where you declare age, etc). But if I were you I'd totally rewrite

Re: [Flashcoders] getTimer oddness

2006-04-17 Thread Mark Winterhalder
This feels like going back to procedural programming again and it makes me wonder why the hell i even bother making a Bullet class in the first place if the amount of functionality i can give a class has to be supplied in raving great lumps like this or little to none at all. Hmmm... yeah...

Re: [Flashcoders] Tools to create flv with screen recording codec

2006-04-19 Thread Mark Winterhalder
On 4/19/06, JesterXL [EMAIL PROTECTED] wrote: This was asked on Flashcom I think last week, but a quick search of my inbox doesn't yeild the thread. Perhaps ask there since it's fresh on their minds? A quick search of /my/ inbox yields the thread -- April 6th, by Erixtekila himself... No

Re: [Flashcoders] coordinates of a scaled movieclip

2006-04-24 Thread Mark Winterhalder
Hi, as far as I know, there is no clean solution to this problem. However, if you feel hackish, this /could/ work: var w = myClip._width; var h = myClip._height; var clip = myClip.createEmptyMovieClip( foobar, myClip.getNextHighestDepth() ); with( clip ) { beginFill( 0x00ff00, 100 ) {

Re: [Flashcoders] coordinates of a scaled movieclip

2006-04-24 Thread Mark Winterhalder
Erm... never mind. I guess I should have slept last night after all... Sorry, Mark On 4/24/06, Mark Winterhalder [EMAIL PROTECTED] wrote: Hi, as far as I know, there is no clean solution to this problem. However, if you feel hackish, this /could/ work: var w = myClip._width; var h

Re: [Flashcoders] wikipedia webservices

2006-04-25 Thread Mark Winterhalder
On 4/25/06, elibol [EMAIL PROTECTED] wrote: Hmm, I don't know of the WSDL, but if worse comes to worse, you could always run a query by URI and parse out the results... ...or, alternatively, if you happen to run MySQL anyway: http://en.wikipedia.org/wiki/Wikipedia:Database_download Mark --

Re: [Flashcoders] Trouble with Downloading Flash Player

2006-05-05 Thread Mark Winterhalder
On 5/5/06, Asai [EMAIL PROTECTED] wrote: Dang, I can't even get it to download. It just sits there. But the thing is that even when I go to the actual download Flash Player page at Adobe, I get the can't find server error message. So there's some problem accessing the server from where I'm at.

Re: [Flashcoders] Get Original Variable's Name in Function?

2006-05-30 Thread Mark Winterhalder
This isn't possible, because local vars typically (that is, in function2 which is used for class methods) become registers in the bytecode, i.e., the name you give a local var won't be included in your SWF *at all*, they are physically missing in the compiled SWF. The old function tag used named

Re: [Flashcoders] FD+swfmill woes

2006-06-12 Thread Mark Winterhalder
On 6/12/06, Andreas Rønning [EMAIL PROTECTED] wrote: Trying to use FlashDevelop to build libraries, but i keep getting odd results. In a simple experiment, i add an image to the library and give it a linkage ID, and attachMovie that image to root. However, the image invariably shows up cropped

Re: [Flashcoders] Flash coders content degrading

2006-06-13 Thread Mark Winterhalder
On 6/13/06, Merrill, Jason [EMAIL PROTECTED] wrote: I'm on both lists, and the newbie list is more advanced than you would think. Most of the questions there could easily be posted here. There are newbie questions of course, but a majority of the subscribers are intermediate to advanced

Re: [Flashcoders] Flash coders content degrading

2006-06-13 Thread Mark Winterhalder
On 6/13/06, Merrill, Jason [EMAIL PROTECTED] wrote: Perfect example of what we are talking about: While we're at it, a general piece of advice: I have the files all neatly bundled up in a zip file. I have a readme describing my problem I have checked all my links (twice) to make sure they all

Re: [Flashcoders] Re: Flash coders content degrading (Mark Winter halder)

2006-06-13 Thread Mark Winterhalder
On 6/13/06, Dave Watts [EMAIL PROTECTED] wrote: The list is still amazing once you weed out the RTFM/Googlables. I just wish that the moderators would do this job for us so the overall quality of the list could stay amazing. You do realize that this is, and always has been, an unmoderated

Re: [Flashcoders] Re: Flash coders content degrading (Mark Winter halder)

2006-06-13 Thread Mark Winterhalder
first. So, nobody mailing around with my name :) Sorry again, Mark On 6/13/06, Mark Winterhalder [EMAIL PROTECTED] wrote: On 6/13/06, Dave Watts [EMAIL PROTECTED] wrote: The list is still amazing once you weed out the RTFM/Googlables. I just wish that the moderators would do this job for us so

Re: [Flashcoders] Re: Flash coders content degrading

2006-06-14 Thread Mark Winterhalder
On 6/13/06, Matt Mc [EMAIL PROTECTED] wrote: First I would like to say sorry for being snappy. I took an email in the wrong way. Thanks for setting me straight. No problem, Matt. As I said, lack of sleep can do that to you :) Mark -- http://snafoo.org/ key: 1BD689C0 (3801 6F51 4810 C674

Re: [Flashcoders] Re: Flash coders content degrading (Mark Winter halder)

2006-06-14 Thread Mark Winterhalder
On 6/13/06, hank williams [EMAIL PROTECTED] wrote: Mark, I think a bit of confusion. It was in ken's posting, and he put your name in the subject line. Dave then responded to ken, not you. Yeah, Jason forwarded it to me and so I had a closer look. It was just the WTF? moment when I thought

Re: [Flashcoders] Can I assign a Class to the main timeline?

2006-07-21 Thread Mark Winterhalder
On 7/21/06, JulianG [EMAIL PROTECTED] wrote: Thanks you Patrick and Weyert! I tried Patrick's approach and it worked. I had never used this __proto__ thing before. Besides this, what do you use __proto__ or prototype for? I never use it. Maybe I'm missing something. __proto__ is a property

Re: [Flashcoders] drop frame movieclip playback

2006-07-24 Thread Mark Winterhalder
Sound sync would be off, it would probably only work for silent clips, right? Actually, this is the easiest way to do it. Play some sound on the timeline, the player will take care of the rest, skipping frames if necessary. Some users will have problems, though -- the latest player for Linux,

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-24 Thread Mark Winterhalder
On 7/25/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: It is iterating. It still needs to iterate through all nested arrays using the same method, which means recursion. Yes, but function calls aren't the only way to do recursion. What you're doing is essentially like a depth-first

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-25 Thread Mark Winterhalder
On 7/25/06, Mark Winterhalder [EMAIL PROTECTED] wrote: On 7/25/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: It is iterating. It still needs to iterate through all nested arrays using the same method, which means recursion. Yes, but function calls aren't the only way to do recursion

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-25 Thread Mark Winterhalder
On 7/25/06, Mark Winterhalder [EMAIL PROTECTED] wrote: Hmm... now that I'm having coffee and slowly waking up, I'm getting serious doubts about how to do depth-first without function calls. I'm probably wrong, sorry. Interesting problem, though. Got me thinking. So, here's my proposal

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-25 Thread Mark Winterhalder
On 7/25/06, Danny Kodicek [EMAIL PROTECTED] wrote: Just out of interest, I tried a speed test using the three methods - mine was the fastest by a very long way: Thanks -- I was hoping somebody would test it :) This seemed a weird result, so I took a look for other differences. It turns out

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-25 Thread Mark Winterhalder
On 7/25/06, Mark Winterhalder [EMAIL PROTECTED] wrote: This seems to be extreme. Any chance something is going wrong with the test? Did you wait a few frames before doing the first test to ensure initialization has finished? Maybe switch the order to see if the first one always is the slowest

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-25 Thread Mark Winterhalder
On 7/25/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Oh, I just noticed that Mark's was fastest. But, I can't get it to work (freezes flash) There seems to be an error in the final while loop. It's a single = not a double ==. Is that a typo? No, not a typo. I know it's confusing, but

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-25 Thread Mark Winterhalder
On 7/25/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Mark, please check your script to try and find out what's wrong with it. I'd like to run some more accurate comparisons. Ah, yes, just noticed I forgot to look into the freezing problem you mentioned in your last mail (also, I noticed I

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-26 Thread Mark Winterhalder
index = list.index; len = list.length; while (index length) { It's a problem with len/gth, you overlooked the 'length' in the while() when you renamed it to 'len'. Below is the reworked testing class. It creates the array in the beginning, then

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-26 Thread Mark Winterhalder
Hey Cedric, What results are you getting? Which one is how much faster in what player? It would surprise me if there were different results for FP8 and FP9, because it runs in the old VM and I doubt they reworked it since it's there for backwards compatibility anyway. It's probably more of a

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-26 Thread Mark Winterhalder
Thanks, Cedric. I assume those were results compiled by the Flash IDE, so we can conclude recursion *is* the fastest. It's also the most elegant solution, not requirements in this case, but nice to have anyway. I still don't understand why Danny got contrary results, but I like recursion better

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-26 Thread Mark Winterhalder
On 7/26/06, Mark Winterhalder [EMAIL PROTECTED] wrote: I still don't understand why Danny got contrary results, but I like recursion better so let's just leave it like that :) OK, let's not -- I had another look, and found a ! was missing in the recursive method. I've updated the test class

Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Mark Winterhalder
On 7/26/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Keep the feedback coming! Hi Steve, very nice -- I went back to the flattening thing, the current test is at snafoo.org/tmp/flatten.swf. I'm getting: iterative:1453 new recursive: 1678 recursive: 1738 I'm posting this here because

Re: [Flashcoders] Attention Recursion Speed Experts

2006-07-26 Thread Mark Winterhalder
OK, my final conclusion: http://www.snafoo.org/tmp/flatten.swf Iterative *is* faster than recursion. Run the test and examine the test class below. (Use an empty .fla, import it, call TestArray.main() ) Also, we learn that whenever you have to get the item at the same position of an array

Re: [Flashcoders] Flash plugin preinstalled starting with what browser versions?

2006-07-26 Thread Mark Winterhalder
On 7/26/06, Doug Brashear [EMAIL PROTECTED] wrote: Our Flash need is pretty basic (images and text that fade in and out, no interactivity), and I'd also appreciate any recommendations you have in terms of which version of the Flash player to design for (in terms of features supported) in order

Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Mark Winterhalder
On 7/27/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: http://paste.plone.org/7081 I just had a look at eql (equality) because of the recursion there and actually I'm not sure it should be there at all. By that logic you would have to compare the properties of objects, too, which would

Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Mark Winterhalder
On 7/27/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Here are the methods that use push, btw: compact deleteAll deleteIf filter indexes map uniq Below. Is there something like a test yet so I can make sure I didn't accidentally introduced some errors? Mark function compact() {

Re: [Flashcoders] Array Empowerment

2006-07-26 Thread Mark Winterhalder
On 7/27/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Also, why not use strict inequality to compare the values? For example? eql(). 0 != 0 // false 0 !== 0 // true BTW, I added it in compact in my last post and forgot to mention it, didn't want to just sneak it in. Mark

Re: [Flashcoders] Array Empowerment

2006-07-27 Thread Mark Winterhalder
On 7/27/06, Weldon MacDonald [EMAIL PROTECTED] wrote: That's the real source of sloppiness, Java has eliminitaed these discussions by the simple expeditent of requiring that the conditional resolves to a boolean, nothing wlse will do. THe real question to me is does AS3 change this behavior? I

Re: [Flashcoders] AS3 Compiler For MAC OS X

2006-07-28 Thread Mark Winterhalder
On 7/28/06, CK [EMAIL PROTECTED] wrote: Hi, Thanks, found the AS3 Preview (Flash 9 Alpha) release from http:// labs.adobe.com/, this allows use of AS3 in the FLASH IDE. Any advantages to the command line over the IDE. Better integration with third-party editors, automatic builds, etc. Mark

Re: [Flashcoders] SWF decoding

2006-08-06 Thread Mark Winterhalder
John, maybe have a look at swfmill.org or http://www.gnu.org/software/gnash/. They're both GPL, so depending on what you want to do this might be an issue, but there are some others out there that maybe offer the code for licensing (the number of swfmill contributors is small, so it might be

Re: [Flashcoders] how to not overwrite methods, but append functionality

2006-08-11 Thread Mark Winterhalder
On 8/11/06, Matthias Dittgen [EMAIL PROTECTED] wrote: but it doesn't work for me, because I don't want to get onRollOver from the superclass ( I don't do an extend). I just want to add some functionality to the onRollOver of the same instance of a movieclip. You have two options (or more, but

Re: [Flashcoders] Weird?? increment behavior..

2006-08-13 Thread Mark Winterhalder
test('name' + depth, depth++); //traces name2 : 1 Yes, arguments of functions are pushed on the VM's stack in reverse order, right-to-left. It's counterintuitive, something you just have to come across once to notice, a nice bit of ActionScript trivia :) Mark On 8/13/06, Bernard Visscher

Re: [Flashcoders] Euler angles...

2006-09-01 Thread Mark Winterhalder
Hi, it's been a while, but IIRC the cross product of the two normalized vectors will give you the rotation vector, and the acos of the dot product is the rotation angle. Convert that into a quaternion (much, much easier than it sounds), that quaternion into a rotation matrix, and extract the

Re: [Flashcoders] specifying type of an array contents?

2006-09-17 Thread Mark Winterhalder
On 9/17/06, dc [EMAIL PROTECTED] wrote: is there a way to tell flash what types an array contains? Not in ActionScript, unless you make some custom methods that access it and check for the type at runtime. In haXe, however, you can do just that. It can compile for FlashPlayer 6/7/8/9, into

Re: [Flashcoders] Find point after rotation

2006-10-04 Thread Mark Winterhalder
Lets say I have a rectangle (height width). I need to know the bottom middle point. That would be point(clipWidth / 2, clipHeight). So we'll say: var x = clipWidth / 2; var y = clipHeight; Closest I've gotten is using: x=ClipWidth / 2 + Math.cos(angle) y=ClipWidth / 2 - Math.sin(angle)

Re: [Flashcoders] Find point after rotation

2006-10-05 Thread Mark Winterhalder
, I don't know what's going on results using this. Is there something I'm missing? Thanks everyone for the replies, much appreciated!!! - Original Message - From: Mark Winterhalder [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 04

Re: [Flashcoders] Which object called the function

2006-10-07 Thread Mark Winterhalder
I then call the function from another timeline. How would I use arguments.caller to return the ID of the object making the call? You can't, at least not directly. arguments.caller will give you a reference to the function from within which your method is called. You can use it to determine if

Re: [Flashcoders] C++ flash host supporting transparency

2006-10-11 Thread Mark Winterhalder
Why reinvent the wheel? Did you have a look at SWHX yet? It works for Windows and OSX, Linux support AFAIK would need FP9, maybe more. I'm not sure about transparency, but since Screenweaver could do it, it's probably there. http://haxe.org/swhx I don't want to stop you from rolling your own,

Re: [Flashcoders] Attaching Video w/o Video Object

2006-10-13 Thread Mark Winterhalder
On 10/13/06, Rifled Cloaca [EMAIL PROTECTED] wrote: Hi FlashCoders, I'm just getting started with Video, and I'm adding it to a project I'm developing in FlashDevelop, compiled from AS (no FLA). Is there a way to attach Video to an object using only code? The Flash Docs say you need to place

Re: [Flashcoders] Alternative IDE for Flash Devel

2006-10-17 Thread Mark Winterhalder
On 10/17/06, Merrill, Jason [EMAIL PROTECTED] wrote: I was just checking out the build options for a project in FlashDevelop, and it seems you can set it to compile with MTASC and/or inject code - so if that's true, would there be any reason to use FLASC when you're just writing code with

Re: [Flashcoders] Q:simple trig question

2006-10-22 Thread Mark Winterhalder
On 10/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok i'm sure this is elementary for any math whizzes out there, but this is my problem: Given an initial point x1,y1 on the cicumference of a circle, how do we determine point 2(x2,t2) and point 3 (x3,y3) if point 2 and 3 are 120 and 240

Re: [Flashcoders] Q:simple trig question

2006-10-22 Thread Mark Winterhalder
On 10/22/06, Mark Winterhalder [EMAIL PROTECTED] wrote: var angle = 120 / (180 * Math.PI); // ...or 240 instead of 120 Sorry -- wrong conversion between degrees and radians: var angle = 120 * (Math.PI / 180); Hmmm... I think we need a FlashCoders Math FAQ, maybe on the OSFlash Wiki? Mark

Re: [Flashcoders] Q:Elementary Trig part 2

2006-10-23 Thread Mark Winterhalder
On 10/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Another way of stating my problem: Given an initial angle, and a circle with radius r, how do you determine the x,y coordinates of the point p1 on the circumference of this circle...assuming the circle's center is at 0,0.? Just use

Re: [Flashcoders] New Flash Video Site.

2006-10-24 Thread Mark Winterhalder
Hi Ivan, I've made it past the registration, she says something, then it appears to be loading another video without ever finishing. The other videos loaded quickly. It's a pity, because I really like the... site, and would like to see the interactive part. Uhm... out of purely professional

Re: [Flashcoders] Highscore submit security with independent library

2006-10-29 Thread Mark Winterhalder
Translating to the library thing, the only way to create a semi-secure highscore submitting system is by coding it myself, and never giving anyone the source? No, as Weyert already said, SWFs can be decompiled. I don't know how decompilers react to non-Flash-IDE compilers, like MTASC or haXe --

Re: [Flashcoders] Comparing HEX

2006-10-30 Thread Mark Winterhalder
What would be the best way to loop the array and find the best match to myColor? A simple way would be do add up the difference to the red, green and blue values. You get the value for the channels like this: var red = color 16 0xff; var green = color 8 0xff; var blue = color 0xff; Then

Re: [Flashcoders] Comparing HEX

2006-10-31 Thread Mark Winterhalder
method actually works quite well as a first approximation. John - Original Message - From: Mark Winterhalder [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 30, 2006 11:35 PM Subject: Re: [Flashcoders] Comparing HEX What would

Re: [Flashcoders] OT conver java code to flash

2006-11-02 Thread Mark Winterhalder
Paul, maybe this will make your work easier: http://osflash.org/j2as As for the code snippet, I have no idea what 'rand' is. Other than that, it's exactly the same in ActionScript. Mark On 11/2/06, Paul Steven [EMAIL PROTECTED] wrote: Not familiar with Java code but trying to rewrite some

Re: [Flashcoders] [OT] Flash player on the PS3?

2006-11-13 Thread Mark Winterhalder
So, has the PS3's browser the Flash player by default? Which version? Keeping in mind that is running Linux*, is it version 7? I've tried to find information in their website* but no luck at all. That's what I thought when I read the article, too. My guess is that it's 7. There is no FP9 for

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread Mark Winterhalder
can't understand... any explaination please? Just guessing, I haven't tried anything like this with localConnection, but it seems to be the same like with local SharedObjects: If you have MyClass in both SWFs, and send an instance 'foo' to the other, try to set foo.__proto__ =

Re: [Flashcoders] polymorphism, with singletons

2006-11-17 Thread Mark Winterhalder
Is there something I'm missing that you can't set Model's static _instance property to either an instance of either XMLModel or URLModel instead of Model in Model's getInstance()? Mark On 11/18/06, Rich Rodecker [EMAIL PROTECTED] wrote: What's a good way to go about hanlding a situation

Re: [Flashcoders] Acronym for Actionscript/Flash/Flex

2006-11-26 Thread Mark Winterhalder
It is all delivered with the Flash plugin, so I would stick with Flash. Although Adobe might prefer it is called the Flash Platform or some-such : Personally, I prefer FlashPlayer or FlashPlayer Plugin. Flash Platform would be OK, too, but Flash alone is too confusing because it could refer to

Re: [Flashcoders] Math: Triangle rotations around an origin

2006-11-29 Thread Mark Winterhalder
Hi Andreas, you need the initial angle, which is Math.atan2( mouseY, mouseX ). Then the angle while rotating, which is the same minus the initial angle. That's your current angle -- like all angles, in radians. to rotate points by this angle, just do this: var newX = Math.cos( angle ) *

Re: [Flashcoders] Pretty cool flash8 video app!

2006-12-20 Thread Mark Winterhalder
On 12/20/06, James Tann [EMAIL PROTECTED] wrote: I'm not sure what I am supposed to be doing on this. Can someone explain it to me please? First you have for wait for it to load. That takes a while. What made the waiting especially annoying was that I began to feel sorry for the preloader girl

Re: [Flashcoders] Pretty cool flash8 video app!

2006-12-20 Thread Mark Winterhalder
read it on our non-spanish machines ;-) On 12/20/06, Mark Winterhalder [EMAIL PROTECTED] wrote: On 12/20/06, James Tann [EMAIL PROTECTED] wrote: I'm not sure what I am supposed to be doing on this. Can someone explain it to me please? First you have for wait for it to load. That takes

  1   2   3   >