Re: [Flashcoders] Realaxy ActionScript Editor public beta

2010-06-10 Thread Mark Winterhalder
2010/6/10 Cor c...@chello.nl: This is free and works perfectly: If you happen to be on Windows, yes. Are there any plans for haXe support in the future? Also, I couldn't find any screenshots on the site. I'd like to get an impression before I download, and don't want to start the trial period

Re: [Flashcoders] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe¹s Flash-to-iPhone Compiler

2010-04-16 Thread Mark Winterhalder
On Fri, Apr 16, 2010 at 2:22 PM, Andrew Murphy amur...@delvinia.com wrote: By requiring developers to jump through hoops to create content for their devices, Apple makes it more likely that that content will only be available on their devices, making it exclusive. Yes, cross-platform

Re: [Flashcoders] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe’s Flash-to-iPhone Co mpiler

2010-04-12 Thread Mark Winterhalder
On Mon, Apr 12, 2010 at 2:11 PM, p...@ipauland.com p...@ipauland.com wrote: It's difficult ground. If I buy CS5 with iPhone export, I expect to be able to legitimately use it. Where does that leave Adobe if they sell me something I can't legitimately use? Are they misleading me? There's a new

Re: [Flashcoders] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe’s Flash-to-iPhone Compiler

2010-04-12 Thread Mark Winterhalder
On Mon, Apr 12, 2010 at 5:24 PM, Jon Bradley shiftedpix...@gmail.com wrote: Although all of us would love to develop iPhone and iPad applications using the Flash platform, frankly that is not a proper methodology for developing for these systems, in my opinion. That depends on what it is that

Re: [Flashcoders] @#$% New iPhone Developer Agreement Bans the Use ofAdobe's Flash-to-iPhone Compiler

2010-04-09 Thread Mark Winterhalder
On Fri, Apr 9, 2010 at 5:12 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote:  What you may see happen is consumers getting tired of not having Flash on their iPhone and switching to an Android phone. Which is why I can't wait to see FP 10.1 and AIR on Android. If it's done well, it will

Re: [Flashcoders] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe’s Flash-to-iPhone Compiler

2010-04-08 Thread Mark Winterhalder
On Fri, Apr 9, 2010 at 3:00 AM, Carl Welch carlwelchdes...@gmail.com wrote: http://daringfireball.net/2010/04/iphone_agreement_bans_flash_compiler I can't even explain how frustrated I am about apple. I just feel that Mr Job's is just giving the finger to so many people that have supported and

Re: [Flashcoders] Events can be tedious, general thoughts on best practice?

2010-03-24 Thread Mark Winterhalder
On Wed, Mar 24, 2010 at 7:03 PM, Taka Kojima t...@gigafied.com wrote: I'm curious as to other people's thoughts on this in terms of good/bad practice and what the pros/cons to this approach might be. My thoughts are that it's OK for the very common cases which don't need the flexibility of

Re: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Mark Winterhalder
On Tue, Mar 23, 2010 at 5:18 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: like you see in the help docs. Are you looking at the same docs I'm looking at? Because mine only have the String, not the constant name listed under Events. Here's what I use: /** *

Re: [Flashcoders] ASDoc question re: documenting events

2010-03-23 Thread Mark Winterhalder
On Tue, Mar 23, 2010 at 8:36 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote:  You use @see instead of @eventType when documenting an event? Not anymore, now that I've learned about @eventType. :) ___ Flashcoders mailing list

Re: [Flashcoders] proper way for Flash to store user passwords

2010-03-19 Thread Mark Winterhalder
When I log in to gmail, ebay, etc., my passwords are pulled from a vault, which I have access to by virtue of being logged in to my computer.  I can look these up in my browser. ...and that's why you should leave it as part of the HTML. Some users use password managers for their browsers that

Re: [Flashcoders] proper way for Flash to store user passwords

2010-03-19 Thread Mark Winterhalder
On Fri, Mar 19, 2010 at 8:43 PM, Eric E. Dolecki edole...@gmail.com wrote: Try this: http://www.marksanborn.net/php/creating-a-secure-md5-hash-for-storing-passwords-in-a-database/ Relevant: http://benlog.com/articles/2008/06/19/dont-hash-secrets/ ___

Re: [Flashcoders] proper way for Flash to store user passwords

2010-03-19 Thread Mark Winterhalder
On Fri, Mar 19, 2010 at 10:05 PM, Andrew Sinning and...@learningware.com wrote: Since putting the login screen in html isn't an option, then should I just make the user re-enter their password everytime, or would it be appropriate to include a Remember my password on this computer check box and

Re: [Flashcoders] Anyone know of a flasm-equivalent for AS3 swf command-line disassembly/assembly?

2010-03-19 Thread Mark Winterhalder
Well, there's abcdump, but you can't use that for a round-trip. It's not a ready-to-use product, but hxformat is a haXe library that supports SWF and ABC (the AS opcodes) read/write: http://code.google.com/p/hxformat/ It's haXe, so you can compile it as SWF/SWC or as a Neko-VM based standalone

Re: [Flashcoders] Bezier curve arrows

2010-03-16 Thread Mark Winterhalder
Actionscript generated curves are quadratic beziers. The angle is easy to get at the end points -- the (quadratic) bezier is defined by three points, one where you start and two that you pass to the curveTo method. By definition, the line defined by those two points is the tangent at the end

Re: [Flashcoders] AS3 - Objective-C

2010-03-16 Thread Mark Winterhalder
For those interested, iTunes-U has a Standford course for iPhone development. http://itunes.stanford.edu/ On Tue, Mar 16, 2010 at 4:57 PM, Steven Loe stevenloe5...@yahoo.com wrote: I've dabbled with iPhone development, and in a month or so, you can get familiar with the development process

Re: [Flashcoders] OOP Tutorial

2010-03-06 Thread Mark Winterhalder
On Fri, Mar 5, 2010 at 4:47 PM, Susan Day suzieprogram...@gmail.com wrote: I've been googling as3 oop but the tutorials don't seem to address my needs. Can you help me understand what it is I'm looking to do so I can google up the appropriate tutorials? Wikipedia is your friend for looking

Re: [Flashcoders] Class Property vs. Static Property?

2010-02-23 Thread Mark Winterhalder
I'm just guessing here, but maybe he's referring to properties of the prototype Object? Because, I don't see it on the list. Then again, I would expect access to instance properties to be faster, based on the assumption that they take precedence. I guess somebody will have to recreate the test

Re: [Flashcoders] Finding and Removing a Sprite: PART II

2010-02-23 Thread Mark Winterhalder
On Tue, Feb 23, 2010 at 6:43 PM, Glen Pike g...@engineeredarts.co.uk wrote: why would you want to use more memory by storing the sprite instances in an array or a vector when you already have a storage medium for them - the parent container? We're talking about only nine instances here. It

Re: [Flashcoders] Back On Course, Still Problems

2009-12-08 Thread Mark Winterhalder
On Tue, Dec 8, 2009 at 10:52 AM, beno - flashmeb...@gmail.com wrote: I promised I would buy the books around the end of the year. In case you're interested, Safari Books has a free 10 day trial. I haven't tried it myself, but I hear it's good. http://www.safaribooksonline.com/

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
Hi, I *think* this does what you're trying to do, which would be to fade the alpha of an image in and out again over 24h. I don't have AS2 so I can't test, but when you do, you can set minutesPerDay to however long you may wish to sit there and watch the magic happen. If it happens, that is,

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
, Mark Winterhalder mar...@gmail.com wrote: Hi, I *think* this does what you're trying to do, which would be to fade the alpha of an image in and out again over 24h. I don't have AS2 so I can't test, but when you do, you can set minutesPerDay to however long you may wish to sit there and watch

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
Hmm... maybe I misunderstood what you were trying to do. Do you want to have a continuous sunrise and -set over 24h, or do you want to have a sudden sunset or -rise twice a day? Mark On Thu, May 21, 2009 at 10:57 PM, Mark Winterhalder mar...@gmail.com wrote: On Thu, May 21, 2009 at 10:43 PM

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
On Thu, May 21, 2009 at 11:44 PM, Karl DeSaulniers k...@designdrumm.com wrote: Oh no, I am just wanting to check what time of day it is and have my background fade from dark to light accordingly. The code you supplied, I think will do that, just haven't got off work yet to try out. :) Well,

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
Oh, I forgot to remove the onEnterFrame when it's no longer needed. Please add this line to the end of the function: if( progress = 1 ) delete this.onEnterFrame; Mark On Fri, May 22, 2009 at 12:18 AM, Mark Winterhalder mar...@gmail.com wrote: On Thu, May 21, 2009 at 11:44 PM, Karl DeSaulniers

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
On Fri, May 22, 2009 at 12:28 AM, Karl DeSaulniers k...@designdrumm.com wrote: I will try that and let you know. I just found another bug. :/ This line: var progress : Number = framesElapsed / fadeDuration; should really be like this: var progress : Number = framesElapsed++ / fadeDuration;

Re: [Flashcoders] Math: Is this correct?

2009-04-11 Thread Mark Winterhalder
On Sat, Apr 11, 2009 at 5:57 PM, Jer Brand thejhe...@gmail.com wrote: Thanks Mark, Gonna go read with the faq's.  And you hit the nail on the head. It looked right, but the behavior wasn't quite right There's a picture on the Wikipedia page, just look at where the axis' go and replace x, y and

Re: [Flashcoders] Bitwise selection

2009-04-03 Thread Mark Winterhalder
On Fri, Apr 3, 2009 at 8:38 AM, Jiri jiriheitla...@googlemail.com wrote: So each element in a ByteArray can hold 8 bits. What about the readInt() method of the ByteArray, does an integer then span over 4 elements of the bytearray. And if I start at position 0 and then call the readInt(), is

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Mark Winterhalder
Jiri, if() isn't too bad, especially since you will possibly want to permit multiple restrictions (like numbers /and/ letters, or Latin letters plus umlauts). If you use if() and combine that with appending to the restriction instead of setting it (+= instead of =), you gain flexibility. That

Re: [Flashcoders] Intersection on circle based on angle

2009-03-17 Thread Mark Winterhalder
On Tue, Mar 17, 2009 at 2:17 PM, Eric E. Dolecki edole...@gmail.com wrote: I've done this before but can't find my file(s). I am currently googling but haven't found the answer yet (I'm sure it's out there, just need to rediscover it). I have a circle, registration at 0, 0. If I have an angle

Re: [Flashcoders] Intersection on circle based on angle

2009-03-17 Thread Mark Winterhalder
After seeing Jason's mail, I notice I should add that the angle is supposed to be in radians (i.e., degrees / 180 * Math.PI). However, he already provided a convenient set of functions, so you probably don't need that anymore... :) Mark On Tue, Mar 17, 2009 at 3:50 PM, Mark Winterhalder mar

Re: [Flashcoders] Advanced Rollover Physics/Math...

2009-02-12 Thread Mark Winterhalder
Hah, that reminds of of the classic Yugop site, back during Flash 4 days -- the one with the rotating cube preloader, the older generation among us might remember... What you're actually trying to do is a bit different, though. When you think about it, it's not unlike a tree-map, where you add

Re: [Flashcoders] Either an incredibly easy or incredibly difficult problem

2009-02-09 Thread Mark Winterhalder
On Mon, Feb 9, 2009 at 7:47 PM, Todd Kerpelman t...@kerp.net wrote: Hey, coders! I have a Sprite that consists of a polygon that I drew in Flash (using the line tool) and saved into my Library. Using ActionScript, is there any way to easily find the points of said polygon? It seems like I

Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-09 Thread Mark Winterhalder
On Mon, Feb 9, 2009 at 6:26 PM, ali drongo alidro...@googlemail.com wrote: currColor = Number(0x+c); I haven't looked into it in detail, but I think you would want to use parseInt( 0x + c, 16 ) here. If that doesn't fix it, try tracing the values throughout your conversion and see where it

Re: [Flashcoders] Dictionary resource for word based games

2009-01-09 Thread Mark Winterhalder
On Fri, Jan 9, 2009 at 11:25 AM, Paul Steven paul_ste...@btinternet.com wrote: Can anyone point me in the direction of where to acquire an electronic version of the English dictionary that is easily incorporated into my game? Sure: http://download.wikimedia.org/enwiktionary/latest/ It's under

Re: [Flashcoders] Dictionary resource for word based games

2009-01-09 Thread Mark Winterhalder
Also check Project Gutenberg: http://www.gutenberg.org/ Search dictionary in the title, several potential candidates will come up. They probably require some parsing, and will also lack modern words, but they're Free. Mark On Fri, Jan 9, 2009 at 1:24 PM, Mark Winterhalder mar...@gmail.com

Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-08 Thread Mark Winterhalder
On Thu, Jan 8, 2009 at 1:35 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: 2. Time it can take to learn something like haxe doesn't seem to give you enough ROI - at least my impression having looked at haxe as an alternative. I have to disagree here -- learning haXe has definitely

Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-07 Thread Mark Winterhalder
I think another compiler with a focus on more efficient bytecode would be great, but those extra convenience features give me an uneasy feeling (embrace and extend has caused too many problems already). So, my feature request would be an export functionality to remove all those extra features

Re: [Flashcoders] Singleton lookups vs Events ...

2008-09-03 Thread Mark Winterhalder
Performance optimization is nice and all, but... how often will that happen in a frame? Once? A few hundred times? Then go with whatever is the easiest to understand, because you're still at fractions of a milisecond. Try it -- just time how long it takes to call a getInstance method a few

Re: [Flashcoders] AS3 Minimal Class Props + Methods ...

2008-09-03 Thread Mark Winterhalder
On Wed, Sep 3, 2008 at 10:36 AM, S0 F1 [EMAIL PROTECTED] wrote: Does anyone know how to find out the bare minumum Attributes and Methods of all built-in/intrinsic Classes being used in a SWF/AS3 application. Something perhaps that can parse a SWF, identify what intrinsic classes are being

Re: [Flashcoders] Scaling a Parallelogram

2008-08-31 Thread Mark Winterhalder
Matt, if I understand you correctly, then this is only possible for parallelograms that have sides perpendicular to the axis you want to scale along to, i.e., parallel to the Y axis in your case. You will always change the slope of a line that is not parallel to one of the axis if you scale a

Re: [Flashcoders] Scaling a Parallelogram

2008-08-31 Thread Mark Winterhalder
I knew I'd find a mistake when I hit send. :| If the upper and lower edge are parallel to the X axis, then obviously you can use three /vertical/ strips, scale the middle part, and move the right strip. Mark On Sun, Aug 31, 2008 at 6:49 PM, Mark Winterhalder [EMAIL PROTECTED] wrote: Matt

Re: [Flashcoders] A Question that I've been asking for years!!

2008-08-27 Thread Mark Winterhalder
I think Hans (and Claus ;) explained it very well, so just to reiterate, sometimes it's just useful to specify methods instead of ancestors as an argument type. For an example, have a look at flash.utils.IDataInput. It's implemented by ByteArray, Socket and URLStream. Obviously, a ByteArray and a

Re: [Flashcoders] Binary Data Question

2008-08-14 Thread Mark Winterhalder
On Thu, Aug 14, 2008 at 10:56 PM, Omar Fouad [EMAIL PROTECTED] wrote: You mean it is not the same bandwidith taken as when loading the picture from a directory in a server? It's a different encoding. You could encode it to, say, png before sending it back, or use zlib compression. Mark

Re: [Flashcoders] Drawing an arc with curveTo

2008-08-03 Thread Mark Winterhalder
Hi Alias, I'm not sure I understand what you mean by 'arc' -- isn't anything you do with curveTo an arc? If that helps, I have some related code attached that I wrote a while ago. It's a bezier curve that you can drag directly to modify, i.e., not by moving the control point but holding on to

Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Mark Winterhalder
On Wed, Jul 30, 2008 at 5:44 PM, laurent [EMAIL PROTECTED] wrote: Can you decompile the push method to see how it use the stack ? :) I take the :) you already know the answer, but just in case, it's intrinsic and you can probably look the C++ code up in the Tamarin sources. I have to agree

Re: [Flashcoders] When to use AS3?

2008-07-30 Thread Mark Winterhalder
On Wed, Jul 30, 2008 at 2:22 PM, Romuald Quantin [EMAIL PROTECTED] wrote: Yeah true, or what's working as well is saying that AS2 code is harder to maintain and will cost you more money in the future. Regarding the future argument, you can add that future versions of the project could use

Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Mark Winterhalder
Nitpicking, but just as anything digital the SWF opcodes essentially are 1s and 0s, too. :) Anyway, the new VM supports JIT compilation to native machine code. I must admit I don't know if /all/ code gets JIT compiled or only hotspots, and I don't know if it will be recompiled for each use to

Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Mark Winterhalder
of the visible Stage, stuff like that. Mark On Wed, Jul 30, 2008 at 9:05 PM, Kerry Thompson [EMAIL PROTECTED] wrote: Mark Winterhalder wrote: Nitpicking, but just as anything digital the SWF opcodes essentially are 1s and 0s, too. :) Fair enough. Following that to its logical conclusion

Re: [Flashcoders] faster, longer, better ... for programming maniaks

2008-07-30 Thread Mark Winterhalder
On Wed, Jul 30, 2008 at 11:02 PM, Juan Pablo Califano [EMAIL PROTECTED] wrote: Check these slides: http://www.onflex.org/ACDS/AS3TuningInsideAVM2JIT.pdf From page 43: * We make a simple hotspot-like decision about whether to interpret or JIT * Initialization functions ($init, $cinit) are

Re: [Flashcoders] hi All

2008-07-11 Thread Mark Winterhalder
When I have loaded one swf, can I store it - and use it at multiple places? You may want to look into shared libraries because they might be a better solution (using the browser cache), but if you use a loader SWF then you can have it load another SWF with URLLoader, and store that in a local

Re: [Flashcoders] Getting dimensions of visible area

2008-06-28 Thread Mark Winterhalder
I want to be able to get the width and height of the visible area in ActionScript. Is this possible? The fact that the Player knows there is a mask and correctly hides the outer parts indicates that it should have that information somewhere. Have you tried the width and height of the

Re: [Flashcoders] switch statement more efficient than if...else?

2008-06-25 Thread Mark Winterhalder
I'd always thought that the most efficient was the switch I know that the haXe compiler uses a jump table, I'm not sure about the AS3 compiler. But as already mentioned there is an extra opcode for switch, and even if the compiler doesn't a jump table, it might use one in the future. So, switch

Re: [Flashcoders] Why do you compile with the Flash IDE?

2008-05-16 Thread Mark Winterhalder
On Fri, May 16, 2008 at 3:13 PM, Romuald Quantin [EMAIL PROTECTED] wrote: The thing is, if someone is going to use your source later, it is nice for them to have a FLA especially if they don't know how to use Flex, Flash Develop, FDT or whatever... I have no way of opening a FLA. I haven't

Re: [Flashcoders] Why do you compile with the Flash IDE?

2008-05-16 Thread Mark Winterhalder
a source without FLA available, if the coder behind want to update something, better for him to be able to do it without Flash IDE, otherwise he's just stuck. Romu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Winterhalder Sent: 16 May 2008

Re: [Flashcoders] Why do you compile with the Flash IDE?

2008-05-16 Thread Mark Winterhalder
On Fri, May 16, 2008 at 4:43 PM, Romuald Quantin [EMAIL PROTECTED] wrote: Just a question, what kind of projects are you doing on Linux? I can't use linux because all the designers I'm working with are working with the Adobe CS3 (illustrator, and so on), and I'm not able to open their files

Re: [Flashcoders] Custom MovieClip Classes

2008-03-21 Thread Mark Winterhalder
Now I would the like to let RegistrationPanel inherit some behaviours from APanel. But it allready extends MovieClip... How can I do this ? You can have RegistrationPanel extend APanel. You need to inherit from MovieClip, but you don't have to do it directly. APanel extends MovieClip, so

Re: [Flashcoders] Lightweight Collision for Platform Game

2008-03-04 Thread Mark Winterhalder
On Tue, Mar 4, 2008 at 11:34 PM, Elia Morling [EMAIL PROTECTED] wrote: What is the best collision system for a platform game? I've currently looked at box2D, but I think it runs amazingly slow on afew macs and other machines. Therefore I wonder if there is anything faster lightweight? I

Re: [Flashcoders] Recommendations to access cache

2008-01-21 Thread Mark Winterhalder
When loading elements to the cache.. how can we ensure that when we try to access the same element later during the life of an application that the same element will be accessed from cache rather than re-loading the same file? You can't. You can keep it in memory as long as the movie plays,

Re: [Flashcoders] Question about Arrays

2008-01-11 Thread Mark Winterhalder
On Jan 11, 2008 11:34 PM, Mark Lapasa [EMAIL PROTECTED] wrote: I too would expect that it would need to be casted. Yes, one would think so. I can't answer your question, either, but can't help but note that in haXe you would declare your array as ArrayMyClass. The compiler wouldn't let you put

Re: [Flashcoders] unsetting object property in AS2

2007-10-20 Thread Mark Winterhalder
Andrew, you can do 'delete myObject.myProperty', and you may want to look into linked lists as an alternative to arrays: http://en.wikipedia.org/wiki/Linked_list HTH, Mark On 10/19/07, Andrew Sinning [EMAIL PROTECTED] wrote: A question in my sent box from when the list went down: I like to

Re: [Flashcoders] Command-line compiler to change library contents

2007-09-17 Thread Mark Winterhalder
Sam, have a look: http://osflash.org/swfmill HTH, Mark On 9/17/07, Sam Edwards [EMAIL PROTECTED] wrote: Hello All! I need to be able to deploy an entirely self-contained .swf (no network access, no local access... i don't know why not, I've just been told that's the way it is) BUT I need

Re: [Flashcoders] Compound interest formula

2007-09-16 Thread Mark Winterhalder
, Mark Winterhalder [EMAIL PROTECTED] wrote: Hello Kerry, On 9/15/07, Kerry Thompson [EMAIL PROTECTED] wrote: I'm ok with math, but it's not my strong suite. Does somebody have the compound interest formula, preferably in AS2 form? It comes in various forms. The one I need is, given

Re: [Flashcoders] Compound interest formula

2007-09-16 Thread Mark Winterhalder
Hello Kerry, On 9/15/07, Kerry Thompson [EMAIL PROTECTED] wrote: I'm ok with math, but it's not my strong suite. Does somebody have the compound interest formula, preferably in AS2 form? It comes in various forms. The one I need is, given an interest rate, a period of time, and an end goal,

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Mark Winterhalder
var myStr:String = aArray[i].toString(); HTH, Mark On 9/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Quick question, can I toString an array element. ie: var myStr:String = toString(aArray[i]);// where 'i' is the increment. I am having an issue with this. when I trace

Re: [Flashcoders] Golden Ratio Spiral points

2007-09-10 Thread Mark Winterhalder
var radius = Math.pow( a * c, angle ); Ooops, should be: var radius = a * Math.pow( c, angle ); And angle is in radians, so Math.PI * 2 is a full circle. It's what Math.atan2() gives you (not so incidentally), so if you want to tie it to a mouse pos... Mark On 9/11/07, Mark Winterhalder

Re: [Flashcoders] Calculate how many days until date

2007-09-05 Thread Mark Winterhalder
On 9/5/07, Paul Steven [EMAIL PROTECTED] wrote: Thanks Mark - that is fantastically helpful!! You're welcome -- but I made a mistake, and it should be Math.ceil() instead of Math.floor(). You probably noticed that anyway. Mark ___

Re: [Flashcoders] Calculate how many days until date

2007-09-04 Thread Mark Winterhalder
On 9/4/07, Paul Steven [EMAIL PROTECTED] wrote: I need to calculate how many days there are until a specified date in the future. Is there any built in functionality to do this, or if not, can anyone point me in the right direction. I would imagine it is difficult to do manually as it would

Re: [Flashcoders] Calculate how many days until date

2007-09-04 Thread Mark Winterhalder
On 9/5/07, Mark Winterhalder [EMAIL PROTECTED] wrote: trace( You have to wake up only + Math.floor( ((new Date( 2007, 12, 25 )).getTime() - (new Date()).getTime()) / (24 * 3600 * 1000) ) + times until it's Christmas! ); Actually, you don't even need the getTime() -- valueOf() does the same

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Mark Winterhalder
If you take somebody snowboarding and force them to learn how to do a 720 without teaching them anything else, they will eventually be able to do a 720. If you instead teach them all the basic moves, how to enter and exit tricks, and then move into 180s, 270s and 360s, they'll be much better

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Mark Winterhalder
On 8/21/07, David Ngo [EMAIL PROTECTED] wrote: What kind of argument is that? I've never learned to ski and I was able to pick up snowboarding. One is not dependant upon the other. Sigh... I guess I should know better than attempting irony in an email. Of course you can learn how to snowboard

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Mark Winterhalder
On 8/20/07, Steven Sacks [EMAIL PROTECTED] wrote: If these students have no experience programming, you just can't start with OOP. Sure you can. Just look at what Alan Kay did with kids and Squeak (essentially Smalltalk). Here's a good talk by him, btw, much about learning and

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Mark Winterhalder
Hi Hans, 'super' refers to the instance, but your static _test isn't part of the instance, it is part of the class (technically, of the constructor function). Imagine it as this.prototype.prototype, although it technically isn't the same (well, maybe it is, I haven't tested it). It behaves like

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Mark Winterhalder
On 8/20/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi Mark, why is it static? Uhm... because I didn't read properly, sorry. :/ Its declared as private var not as private static var? I could swear it read 'static var' when I first read the mail. Now you made Gmail change it some how. :)

Re: [Flashcoders] [Script_in_Action] New Links

2007-08-20 Thread Mark Winterhalder
On 8/20/07, Dave Watts [EMAIL PROTECTED] wrote: Just as a heads-up, when you BCC Flashcoders your messages will not be sent to the list automatically. Also, my filter won't catch it and it ends up in my inbox instead of in FlashCoders. Mark ___

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Mark Winterhalder
I'm a high school teacher who's decided to teach Intro to Programming using Actionscript (2.0 for now, waiting for the school to upgrade). You don't have to limit yourself to AS2 just because your school's Flash version isn't CS3 yet. If you plan to go the OOP route, and Pong specifically,

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Mark Winterhalder
On 8/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: But if you want to try blogs, then here's a couple of reliable ones: Grant Skinner - http://www.gskinner.com/blog/ Colin Moock - http://www.moock.org/ Keith Peters - http://www.bit-101.com/blog/ Aral Balkan

Re: [Flashcoders] array copy with random order

2007-08-13 Thread Mark Winterhalder
My archive doesn't go back to the original thread, but I found a reference to it: Array.prototype.shuffle = function() { var i = this.length; while (i) { var p = random(i); var t = this[--i]; this[i] = this[p]; this[p] = t; } } That's the solution Fumio

Re: [Flashcoders] Can I load AS2 swfs into an AS3 swf?

2007-08-08 Thread Mark Winterhalder
On 8/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hiya, the title sums up my question pretty well. I have a bunch of old swfs that are published to version 6 and are AS2. I want to load these into a movie published to v9 and in AS3 or maybe a flex app. Is this possible or do I have to

Re: [Flashcoders] garbage collection and asychronous execution

2007-08-06 Thread Mark Winterhalder
On 8/6/07, Mark Hawley [EMAIL PROTECTED] wrote: That isn't a reference to a function -- it's a reference to a object method. The object has to hang around. No, it's a reference to a function. The VM doesn't know anything about methods. The interval keeps a reference to the function, the object

Re: [Flashcoders] Q: loop speed AS2 and AS3

2007-07-27 Thread Mark Winterhalder
is only noticeable when you're doing 50,000+ loops of non-trivial code. When you're doing 50,000+ loops of non-trivial code, I don't think it's performance of the loop you have to worry about. :) Here's something about performance:

Re: [Flashcoders] Rotating, skewing and coloring TextFields using device fonts.

2007-07-24 Thread Mark Winterhalder
On 7/24/07, David Rorex [EMAIL PROTECTED] wrote: Personally I think you should keep it as compatible as possible. Otherwise, someone might develop a SWF, only checking against gnash, and not realize that it doesn't work correctly in the official player (which the majority of users will be

Re: [Flashcoders] RE: obfuscation swf !

2007-07-19 Thread Mark Winterhalder
Though, one could just use Haxe instead... Yeah, I prefer it anyway. But I wonder, did anybody compare haXe vs AS3 bytecode yet? A decompiler is likely to assume AS3 has been used, and maybe haXe creates sufficiently different bytecode to confuse it. Mark On 7/19/07, Jon Bradley [EMAIL

Re: [Flashcoders] RE: obfuscation swf !

2007-07-19 Thread Mark Winterhalder
On 7/19/07, Jon Bradley [EMAIL PROTECTED] wrote: On Jul 19, 2007, at 8:29 AM, Mark Winterhalder wrote: But I wonder, did anybody compare haXe vs AS3 bytecode yet? A decompiler is likely to assume AS3 has been used, and maybe haXe creates sufficiently different bytecode to confuse

Re: [Flashcoders] RE: obfuscation swf !

2007-07-18 Thread Mark Winterhalder
On 7/18/07, Jim Berkey [EMAIL PROTECTED] wrote: Wonderful folks, don't worry about my feelings because my methods were so quickly destroyed. I'm a big boy, and have enjoyed the search for the holy swf-grail for some time now. Thanks to Rákos, I believe I am one brick away from that wall that is

Re: [Flashcoders] RE: obfuscation swf !

2007-07-18 Thread Mark Winterhalder
On 7/18/07, Douglas Pearson [EMAIL PROTECTED] wrote: Since we're talking about obfuscation/encryption does anyone know of a tool that works for AS3 yet? All the standard tools seem to stop with Flash 8/AS2. I don't think there are any decompilers for AS3 yet, but I could be wrong, and it's

Re: [Flashcoders] obfuscation swf !

2007-07-17 Thread Mark Winterhalder
On 7/17/07, Jim Berkey [EMAIL PROTECTED] wrote: So you are telling me that the game content is ad.swf? I don't think so . . http://www.snafoo.org/snafoogame.swf 7 minutes. Sorry. Mark ___ Flashcoders@chattyfig.figleaf.com To change your

Re: Re[2]: [Flashcoders] obfuscation swf !

2007-07-17 Thread Mark Winterhalder
On 7/17/07, Jon Bradley [EMAIL PROTECTED] wrote: You can't do it Jim - there aren't any holes to plug. It's just technically impossible. Agreed, it is impossible to defend an attack by somebody determined and competent. But that doesn't mean it can't be made very difficult, especially with

Re: [Flashcoders] how to call method in sub-class instace?

2007-06-29 Thread Mark Winterhalder
On 6/29/07, Andrew Sinning [EMAIL PROTECTED] wrote: How do you get a super-class instance to call an over-riding method in a sub-class? I'm using AS2. Hackish, but you could do SubClass.prototype.myMethod.call( this, arg1, arg2...); Anyway, you don't need this, because I think what you're

Re: [Flashcoders] Floating point pain

2007-06-05 Thread Mark Winterhalder
On 6/5/07, Merrill, Jason [EMAIL PROTECTED] wrote: Thanks, yeah, I thought of that. I was hoping there was some unknown Math function I had missed. The only other one I can think of is modulo. It would be slightly more readable (IMHO) and fit into one line, but would still require the

Re: [Flashcoders] Help me disect some Flash work please?

2007-05-30 Thread Mark Winterhalder
I'm a programmer who would be relying on an art department to provide all the media, but I'm just not sure how to set it up... does this make sense? ...and being a programmer is why you don't know how to do it. :) I'm not sure anymore (too much of a programmer that shuns the timeline myself),

Re: [Flashcoders] Site structure with classes

2007-05-29 Thread Mark Winterhalder
On 5/29/07, misa [EMAIL PROTECTED] wrote: Hello group, I'm wondering is there something like 'the best way to structure a flash site'. Sure, but unfortunately the diagram has been used as a coaster for the holy grail and is stained beyond readability. :) How should the classes be named,

Re: [Flashcoders] objects can't delete themselves right?

2007-05-25 Thread Mark Winterhalder
On 5/26/07, Steven Sacks [EMAIL PROTECTED] wrote: Correct me if I'm wrong, but I thought objects could not delete themselves, and if you delete an object with a function and store a reference to that function before you delete it, that function is orphaned and will never be cleaned up by the GC.

Re: [Flashcoders] Need help creating an old-skool arc or circularscrollbar

2007-05-24 Thread Mark Winterhalder
On 5/24/07, Carl Welch [EMAIL PROTECTED] wrote: Seems to me you guys are doing this the hard way. Why not just draw a curved line (with the line tool) then use code to attach/snap the handle to the line, and then just use actionscript to track the Y position of the handle and scroll accordingly?

Re: [Flashcoders] Need help creating an old-skool arc or circularscrollbar

2007-05-23 Thread Mark Winterhalder
On 5/23/07, Jesse Graupmann [EMAIL PROTECTED] wrote: Trigonometry No need, apart from Math.atan2() to get the result -- assuming the anchor point of the container is in the middle, just normalize the vector from the centre to the mouse and then scale it to the desired radius, that's the

Re: [Flashcoders] Motion to combine coders and newbies.

2007-05-14 Thread Mark Winterhalder
On 5/14/07, Merrill, Jason [EMAIL PROTECTED] wrote: I appreciate the arguments and kind words, but I vote to keep them separate. Here's why: I agree, and just signed up for the community service. Over the years, I found I read FlashCoders less and less. FlashCoders used to be a must-read

Re: [Flashcoders] Motion to combine coders and newbies.

2007-05-14 Thread Mark Winterhalder
On 5/14/07, Danny Kodicek [EMAIL PROTECTED] wrote: I understand the theory but unfortunately there's a down-side. For *reading* lists, it's great to have them categorised in this way, but for *posting* to them, it can cause problems. As a Director user, I have quite a few lists to choose from,

Re: [Flashcoders] Flash chat options

2007-05-11 Thread Mark Winterhalder
Maybe have a look at the Oregano server: http://osflash.org/oregano HTH, Mark On 5/11/07, Mick G [EMAIL PROTECTED] wrote: Does anyone have any suggestions to the best way to implement a Flash based chatroom (Can be commercial, but I have a low budget). I'm after something that utilizes a free

Re: [Flashcoders] Survey about web applications

2007-05-07 Thread Mark Winterhalder
On 5/7/07, Weyert de Boer [EMAIL PROTECTED] wrote: Just a little non-scientific survey about web applications. Please, be so kind a fill in this survery when you find the time. I think question #1 should be more specific -- is /watching/ videos on YouTube using it, or would I have to upload

Re: [Flashcoders] Implications of using GPL'ed libraries?

2007-05-02 Thread Mark Winterhalder
On 5/2/07, Robert Brisita [EMAIL PROTECTED] wrote: If you have to go the GPL route, you can tell your employers that all the code is in the SWF anyway, making it available just takes away an extra step from the process of acquiring the code. Uhm... I really don't think that can be decompiled

Re: [Flashcoders] Flash and needed computer specs

2007-04-10 Thread Mark Winterhalder
On 4/10/07, Dennis - I Sioux [EMAIL PROTECTED] wrote: Especially what reduces large compiling time (besides using flasc and handy file seperation and such). Use Mtasc or haXe (Mtasc can only target FP 9, haXe can target all) with any piece of hardware you feel is fast enough for your other

  1   2   3   >