Re: [Flashcoders] Zinc port hell

2008-01-08 Thread Ian Thomas
It was quite some time ago now, but we had a lot of problems with Zinc's stability; in particular, upgrades to Zinc broke existing (critical for us) functionality and a fix wasn't issued for several months. As a result, we moved away from the product. Ian On Jan 8, 2008 1:50 PM, August Gresens

Re: [Flashcoders] Isometic game - zdepth managing for multiple movablecharacters

2007-09-13 Thread Ian Thomas
Yep, that's pretty much what I was saying in my example. No real need for sorting, either - or subsorting for that matter. Ian On 9/13/07, Joshua Sera [EMAIL PROTECTED] wrote: A quick clarification on using _y value to control z depth: You don't need to make sure no two objects share the

Re: [Flashcoders] Isometic game - zdepth managing for multiple movable characters

2007-09-12 Thread Ian Thomas
Hi Jiri, The key here is that you can have 'empty' depth levels i.e. an object at depth 5 and an object at depth 8 with nothing at depth 6 and 7. You can make the depth dependent on the actual pixel _y value of the object rather than on the y value of the tile - so depth=_y (or more likely

Re: [Flashcoders] AS2 Sound.stop()

2007-09-12 Thread Ian Thomas
Each Sound() object is attached to a particular timeline. So if you do : (new Sound(_root)).stop() everything from _root downwards should stop. HTH, Ian On 9/11/07, Andrew Sinning [EMAIL PROTECTED] wrote: I don't understand the docs for the AS2 Sound.stop command.

Re: [Flashcoders] Jagged tweening images

2007-09-10 Thread Ian Thomas
Can you show an example? Because it sounds to me like fairly ordinary page tearing - an effect that happens when the write-to-screen isn't synched up to the refresh rate of the monitor, which is often an issue when moving large chunks of the screen around. AFAIK Flash isn't synched to the monitor

Re: [Flashcoders] Flash and 3D example

2007-09-10 Thread Ian Thomas
Norm, Take a look at Papervision3D. http://osflash.org/papervision3d Ian On 9/10/07, Norman Cousineau [EMAIL PROTECTED] wrote: There doesn't seem to be too much Flash / 3D stuff out there. I've posted an example of Flash and 3D working together. I've been doing a fair amount of research

Re: [Flashcoders] copy bitmap problem in Firefox and Safari

2007-08-25 Thread Ian Thomas
Are you ensuring that your users are using the correct version of Flash Player? If you're copying around BitmapData you need Flash Player 8+. Ian On 8/25/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: But everything is correct in IE. Can be problem connect with images? I mean how they were

Re: [Flashcoders] copy bitmap problem in Firefox and Safari

2007-08-25 Thread Ian Thomas
And no, the problem won't be to do with image creation/image format. As Attila says, the loading is a far more likely problem, if it isn't the Flash Player version... Ian On 8/25/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: But everything is correct in IE. Can be problem connect with

Re: [Flashcoders] copy bitmap problem in Firefox and Safari

2007-08-25 Thread Ian Thomas
latest version for Flash player. Did anybody check it with Safari? I checked it in Firefox and everything is well at my computer. 2007/8/25, Ian Thomas [EMAIL PROTECTED]: And no, the problem won't be to do with image creation/image format. As Attila says, the loading is a far more likely

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-22 Thread Ian Thomas
In reply to Steven: - Firstly, Wikipedia isn't a great source to quote. :-D - Secondly, OOP as a style has basic stuff, and it has advanced stuff. I'm not saying teach inheritance and polymorphism on day 1, I'm saying teach that objects have properties (and then objects have methods). Not

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-22 Thread Ian Thomas
On 8/22/07, Ron Wheeler [EMAIL PROTECTED] wrote: Ian Thomas wrote: Your second example is overcomplicated - why teach getters and setters from the word go when a property (public var age:Number;) is far simpler/more obvious? Yes, getters and setters are part of the OOP paradigm

Re: [Flashcoders] BitmapData subtract from every pixel

2007-08-21 Thread Ian Thomas
Bojil, Can you use colorTransform to invert the colour values, then do a merge()? Ian On 8/21/07, Bojil Vassilev [EMAIL PROTECTED] wrote: Hey List, I have BitmapData A and BitmapData B; Is there a fast routine that from every pixel in A will subtract the color of the coresponding pixel

Re: [Flashcoders] Q:Flash Player update and Impact on 3D in Flash

2007-08-21 Thread Ian Thomas
Um... that is a really good announcement. But I don't understand your question's relevance - I don't see any announcement about hardware acceleration or 3D? Don't mistake MPEG4 video support for MPEG4 multimedia/3D support. Ian On 8/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Great

Re: [Flashcoders] Q:Flash Player update and Impact on 3D in Flash

2007-08-21 Thread Ian Thomas
Eric - firstly, what's that quote from? I can't find it on either Tinic's site or the Yahoo site he links to. Secondly, the Adobe press announcement seems quite clear: as well as hardware accelerated, multi-core enhanced full screen video playback. That's hardware acceleration _for the playback

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ian Thomas
For the record, I completely agree, Ron. Ian On 8/21/07, Ron Wheeler [EMAIL PROTECTED] wrote: I do not believe that starting people out doing things the wrong way is ever a good start. Teach OOP from the day one. Not as a name or a theory but as a normal way to program. Just start with

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ian Thomas
On 8/21/07, Steven Sacks [EMAIL PROTECTED] wrote: If we take two students and you teach them OOP for 1 month and I teach them procedural for two weeks and then OOP for two weeks, my student will be further along than your student. The reason is simple. When you learn the fundamentals first

Re: [Flashcoders] Splitting TextField into Lines - Simple?

2007-08-16 Thread Ian Thomas
Dan, It's a bit repetitive, but you can work it out with TextFormat.getTextExtent(). Just keep adding characters until the rect's height changes. (It's also - at least in Flash 8 - slightly incorrect when using antialiased fonts). Ian On 8/16/07, Dan Efergan [EMAIL PROTECTED] wrote: Hello

Re: [Flashcoders] Splitting TextField into Lines - Simple?

2007-08-16 Thread Ian Thomas
. Dan On 16 Aug 2007, at 14:21, Ian Thomas wrote: It's a bit repetitive, but you can work it out with TextFormat.getTextExtent(). Just keep adding characters until the rect's height changes. (It's also - at least in Flash 8 - slightly incorrect when using antialiased fonts). Dan

Re: [Flashcoders] Q: organizing packages and classes

2007-08-15 Thread Ian Thomas
Make the .fla classpath point to: 'myHD/myProjects' f you're using AS2, in your FormatDecimalen.as file change the line: class FormatDecimalen { to read: class nl.geografiek.utilities.FormatDecimalen { If you're using AS3, in your FormatDecimalen.as file change the line: package { to read:

Re: [Flashcoders] Q: organizing packages and classes

2007-08-15 Thread Ian Thomas
is in and the 'parentfolder' of 'nl': 'myProjects' The package definition reads: 'package nl.geografiek.utilities {' (I get the same error when I change this to 'package utilities {' btw) But still no luck. Willem Op 15-aug-2007, om 14:28 heeft Ian Thomas het volgende geschreven: Make

Re: [Flashcoders] AS 2.0 constructor inheritance

2007-08-14 Thread Ian Thomas
On 8/14/07, Alan MacDougall [EMAIL PROTECTED] wrote: My understanding of inheritance is that I should not need to explicitly call the superclass constructor as long as I'm not overriding or extending that method of the superclass. What gives? Is it a language quirk? Nope, not a language

Re: [Flashcoders] DrawAPI - Curves

2007-08-13 Thread Ian Thomas
Hi Karim, Andreas Weber wrote some classes to handle this - try here: http://motiondraw.com/blog/index.php?s=catmullromspline Cheers, Ian On 8/13/07, Karim Beyrouti [EMAIL PROTECTED] wrote: Hi all... I am struggling a little drawing curves in flash. Say I have 25 randomish points ,

Re: [Flashcoders] XML.load() not asynchronous?

2007-08-08 Thread Ian Thomas
Michael - if the loading happens very fast, then the XML has loaded _before you've set the onLoad function_. So change the order: _root.attachMovie(loading, loading, 10); xmlData.onLoad = function(success:Boolean):Void { // do this when loaded }; xmlData.load(myUrl); Ian On 8/8/07,

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Ian Thomas
If you're using AS3, then load the image via flash.net.Socket (a direct socket connection to the server) rather than via the normal image loading mechanism - then use loadBytes() on the Loader class? I think that gets around it. Ian On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote: We are

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Ian Thomas
That's a wonderfully neat idea. :-D Ian On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote: If you're able to store the images in SWF format instead of something like JPG, you could set up your SWFs so that they're covered with a black rectangle MovieClip by default and then you flip the _visible

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Ian Thomas
@chattyfig.figleaf.com Onderwerp: Re: [Flashcoders] Prevent flash from caching the loaded assets http://foo.domain.com/images/imageContainer.swf?e=; + getDate() all images could be in 1 swf and called out. On 8/6/07, Ian Thomas [EMAIL PROTECTED] wrote: That's a wonderfully neat idea. :-D Ian

Re: [Flashcoders] AS3 Events

2007-07-26 Thread Ian Thomas
On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote: Sorry, it's not very clear in all that garbled code. If you make a new instance of B each time then only 1 request would be made to each instance. Hi Sunil, I'm trying to cover situations where you _don't_ create a new instance of B each

Re: [Flashcoders] AS3 Events

2007-07-26 Thread Ian Thomas
A to produce different events, which (depending on A's implementation) could be very difficult. Ian (Getting frustrated!) On 7/25/07, Ian Thomas [EMAIL PROTECTED] wrote: On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote: Hi Ian, It seems like the proper way would be to create the extra

Re: [Flashcoders] AS3 Events

2007-07-26 Thread Ian Thomas
Hi Muzak, I think what I've already decided (having slept on it) to go for something similar to your 3rd method - to restructure (class that behave like) A so that they can carry (and return) context info. The reason I finally decided to go for that rather than Delegate is actually to deal

Re: [Flashcoders] AS3 Events

2007-07-25 Thread Ian Thomas
On 7/25/07, Muzak [EMAIL PROTECTED] wrote: Well, alot depends on the context of the whole thing (the bigger picture). If contextInfo isn't used/part of class A or B, it shouldn't even be there. But since you said: object B wraps it and wants to do something context specific once A has

Re: [Flashcoders] AS3 Events

2007-07-25 Thread Ian Thomas
On 7/25/07, Muzak [EMAIL PROTECTED] wrote: Hi Ian, Been thinking about this a bit more and you're correct, contextInfo doesn't belong in class A and I'd go for storing a list of contextInfos in class B. Hiya Muzak, Yes, just been trying that one out. But (sadly!) again it doesn't hold

Re: [Flashcoders] AS3 Events

2007-07-25 Thread Ian Thomas
On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote: Does anyone know why Delegate is frowned upon? Seems like a simple and elegant solution to the problem to me! Sunil, Yeah, that was my initial question. When I posted an AS3 version of Delegate (to deal with this problem) a few months back,

Re: [Flashcoders] AS3 Events

2007-07-25 Thread Ian Thomas
to remember to remove the Callback object as a listener (unless you're using weak references). Ian On 7/25/07, Ian Thomas [EMAIL PROTECTED] wrote: On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote: Does anyone know why Delegate is frowned upon? Seems like a simple and elegant solution

Re: [Flashcoders] AS3 Events

2007-07-25 Thread Ian Thomas
On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote: Hi Ian, It seems like the proper way would be to create the extra functions/classes to handle this. That would solve those two issues which aren't major, but would make your code cleaner. Thanks, Sunil; but for clarity, _which_ extra

Re: [Flashcoders] AS3 Events

2007-07-25 Thread Ian Thomas
frustrated!) On 7/25/07, Ian Thomas [EMAIL PROTECTED] wrote: On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote: Hi Ian, It seems like the proper way would be to create the extra functions/classes to handle this. That would solve those two issues which aren't major, but would make your code

Re: [Flashcoders] AS3 Events

2007-07-25 Thread Ian Thomas
...) customEventValue = contextInfo; } } Sunil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: 25 July 2007 14:16 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 Events Oh, and reading the link you

Re: [Flashcoders] AS3 Events

2007-07-25 Thread Ian Thomas
} } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: 25 July 2007 15:16 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 Events Oh, and reading the link you supplied, the only concrete suggestion is from Aral Balkan

[Flashcoders] AS3 Events

2007-07-24 Thread Ian Thomas
Hi all, I'm in the process of converting a quite extensive code framework from AS2 to AS3, and I've got a 'how do you cope with this situation?' question. I understand events, event listeners, EventDispatcher etc., but I'm missing a trick somewhere (probably from my historical use of Delegate

Re: [Flashcoders] AS3 Events

2007-07-24 Thread Ian Thomas
A(); a.contextInfo = contectInfo; a.addEventListener(Event.COMPLETE,onALoaded); a.loadSomething(url); } function onALoaded(event:Event):void { var a:A = event.currentTarget as A; trace(a.contextInfo); } } regards, Muzak - Original Message - From: Ian Thomas [EMAIL PROTECTED

Re: [Flashcoders] Casting to Array

2007-07-23 Thread Ian Thomas
On 7/23/07, Steven Sacks [EMAIL PROTECTED] wrote: If you look at it objectively, you're adding extra lines of code for no reason. AS2 has absolutely no gains from strict typing. The compiled code doesn't gain anything - but if (like me) you're writing code libraries to be used by other

Re: [Flashcoders] Casting to Array

2007-07-23 Thread Ian Thomas
Steven, I do see what you're getting at - having reviewed Danny's code, in this instance, you're right (and I was being too general and should have paid more attention!). In the more general case, I disagree that AS2 gains nothing from type-checking. But you weren't being general. :-) Ian On

Re: [Flashcoders] AS2 Shared Fonts and dynamically created textFields

2007-07-22 Thread Ian Thomas
Are you sure you've set the correct font in your dynamically created text field? (using setTextFormat and/or setNewTextFormat?). Have you got the font attributes correct in the TextFormat? (bold, italic etc.) Ian On 7/22/07, pedr browne [EMAIL PROTECTED] wrote: Hello, I have a swf using a

Re: [Flashcoders] AS2 Shared Fonts and dynamically created textFields

2007-07-22 Thread Ian Thomas
...unless you're using setNewTextFormat() Ian On 7/22/07, David Ngo [EMAIL PROTECTED] wrote: Also, make sure you're setting your TextFormat after you set the text. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Sunday, July 22, 2007

Re: [Flashcoders] Casting to Array

2007-07-20 Thread Ian Thomas
Danny, The shortest way I found of doing it is: var b:Array={arr:a}.arr; i.e. make it a property of an object, then unbox it again. Silly, but works syntactically. I'd love to see a shorter way. In AS3, Array(x) as an array creator still exists - you get around it using the new 'as'

Re: [Flashcoders] RE: obfuscation swf !

2007-07-18 Thread Ian Thomas
Hm. Just a side thought on that - again, making it difficult rather than impossible. Use the same FP9 idea - loading via a binary socket - but instead of using Blowfish or something heavyweight to decrypt, just split the source .swf into chunks on the server, load each chunk seperately,

Re: [Flashcoders] sending mail directly from flash?

2007-07-10 Thread Ian Thomas
It's possible in AS3 using sockets. For example: http://www.bytearray.org/?p=27 Ian On 7/10/07, Varun Soundararajan [EMAIL PROTECTED] wrote: That would obviate the need for spammers to use any scripting language(s), and you get the blame for viewing the SWF. God save, it aint there in Flash

Re: [Flashcoders] attachMovie fails on embedded clip in a movie, why?

2007-06-25 Thread Ian Thomas
Hi Chris, Is there some limitation to attachMovie that I'm missing? Any guesses, suggestions, ideas? Yes. In AS2, you can't attach a symbol from one .SWF's library into another movie's timeline. So if a parent loads a child, none of the clips in the child's library can be attached to the

Re: [Flashcoders] Clashing Class Names

2007-06-22 Thread Ian Thomas
Michael, No, you have that backwards, but it's a similar problem -- the _global.Application class _isn't_ overwritten. The flash player operates a class cache -- it always stores (and uses) the first class of a particular classpath/name that it encounters. So in your case, when swfA loads,

Re: [Flashcoders] Flash Development on PC vs Mac

2007-06-20 Thread Ian Thomas
I'm currently developing on both. My only immediate thought is that there are (currently) a few more tools available on Windows. Notably FlashDevelop, which is an excellent IDE that I use every day. And TortoiseSVN (there are Mac equivalents, but they're not quite as slick). However, if you get

Re: [Flashcoders] Interactive Whiteboards And Flash

2007-06-11 Thread Ian Thomas
Vivek, Normal interactive whiteboards (rather than multi-touch whiteboards, which are very rare) treat touches on the whiteboard exactly as if they were mouse clicks. You don't need to treat it any differently from writing for a mouse - except that most whiteboards don't have the opportunity for

Re: [Flashcoders] Interactive Whiteboards And Flash

2007-06-11 Thread Ian Thomas
like a mouse click occured at x0,y0 rather than x,y. With Promethian (pen operated), the mouse x,y is updated as the pen approaches the board and the click of contact comes later, and so the correct item was selected. John - Original Message - From: Ian Thomas [EMAIL PROTECTED

Re: [Flashcoders] Using Vista, Flash doesn't reload in FF or IE

2007-06-08 Thread Ian Thomas
I'm using Vista for development every day, and have never seen that error. Are you sure the Flash plugin is installed correctly? Does the Flash movie work in the Flash Player? Is there anything odd going on with regards to loading? Can your browser read the resources directly without errors?

Re: [Flashcoders] Using Vista, Flash doesn't reload in FF or IE

2007-06-08 Thread Ian Thomas
For the record, SWFObject works fine on Vista - so it's not that. Ian On 6/8/07, James Marsden [EMAIL PROTECTED] wrote: Hallo, We've got a presentation to give with some Flash using a Vista laptop, and reloading the page with the Flash on it causes the Flash to stall on the first frame (no

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-07 Thread Ian Thomas
IIRC there are a few problems/limitations with using LocalConnection. I had real trouble with getting it to work consistently. It might be worth taking a look at Robert Taylor's FlashInterface (which uses ExternalInterface). http://www.flashextensions.com/products/flashinterface.php Cheers,

Re: [Flashcoders] OT: Upgrading to Windows Vista

2007-06-05 Thread Ian Thomas
acceptable for day-to-day development work. Ian On 6/4/07, Ian Thomas [EMAIL PROTECTED] wrote: Hi Paul, The main problems we've had in migrating to Vista have all been to do with installation - where you can (or more specifically can't) write files to during the install process, and where you

Re: [Flashcoders] OT: Upgrading to Windows Vista

2007-06-04 Thread Ian Thomas
Hi Paul, The main problems we've had in migrating to Vista have all been to do with installation - where you can (or more specifically can't) write files to during the install process, and where you can write files to at application runtime. The latter is very restrictive. (Our disks write

Re: [Flashcoders] commercial flash multi-touch projects?

2007-06-04 Thread Ian Thomas
Hi Jason, As I understand it, some multitouch systems (no idea about MS!) use a process to track and broadcast multitouch data to listeners on a socket. There'd be nothing stop AS3 reading data from that socket, presumably... or (I guess) some container app interpreting the socket data and

Re: [Flashcoders] splitting the list?

2007-05-24 Thread Ian Thomas
works for me, but why do Forums or (Google) Groups not work as well? Because you have to remember to log in. Forums and Groups are a 'go and look' solution, whereas mailing lists are a 'here's something to look at!' solution. Personally, I subscribe to a whole bunch of mailing lists. The mails

Re: [Flashcoders] jFlash and other web-based, non-browser options

2007-05-21 Thread Ian Thomas
Andrew, You don't need admin rights to run an .exe file. Typically, you need admin rights to run an _installer_, but if your app is a single self-contained .exe then there's no need for an installer. I have ScreenweaverHX/Flash apps running happily without admin rights on Vista, XP and 98 as

Re: [Flashcoders] jFlash and other web-based, non-browser options

2007-05-21 Thread Ian Thomas
On 5/21/07, Andrew Sinning [EMAIL PROTECTED] wrote: Ian Thomas wrote: You don't need admin rights to run an .exe file. Typically, you need admin rights to run an _installer_, but if your app is a single self-contained .exe then there's no need for an installer. That's certainly news to me

Re: [Flashcoders] AS2 - erase bitmap?

2007-05-15 Thread Ian Thomas
I don't quite understand the bulk of what you wrote - but for the last bit: Lastly, I also need a way of determining if the stain has been fully 'erased' - or close enough... Capture whatever clip you've ended up with into a BitmapData and use getColorBoundsRect() (a truly wonderful

Re: [Flashcoders] AS2 - erase bitmap?

2007-05-15 Thread Ian Thomas
Oh, okay. Most obvious, I think, is to paint into the BitmapData of the stain, copying BitmapData from the background image behind it. If your background image is static, that should do what you want it to. Alternatively, you could copy a rect from the background into a clip in _front_ of the

Re: [Flashcoders] Can I read XML before it is loaded?

2007-05-15 Thread Ian Thomas
In AS2, you can certainly do some initial checking before it's _parsed_ by overriding the onData function of the XML object. You could do some very simple string-checking on the raw string (to check your attribute) and then decide whether or not to pass it on for parsing. How much speed that'll

Re: [Flashcoders] wedging in a preloader -- lazy developer alert!

2007-05-12 Thread Ian Thomas
PROTECTED] wrote: Or even Simpler, Add a scene to your FLA before the main scene and put the preload script there ... no need for loadmovie :) Ian Thomas wrote: A simple fix - create a wrapper Flash movie, and load the bulky movie in as a child. As long as it doesn't use _root all the time, it should

Re: [Flashcoders] wedging in a preloader -- lazy developer alert!

2007-05-11 Thread Ian Thomas
A simple fix - create a wrapper Flash movie, and load the bulky movie in as a child. As long as it doesn't use _root all the time, it should work fine. (And even if it does, you could use _lockroot to fix that). Ian On 5/11/07, Hairy Dog Digital [EMAIL PROTECTED] wrote: Hi all, Wasn't sure

Re: [Flashcoders] Creating a text highlight tool

2007-05-10 Thread Ian Thomas
On 5/10/07, Danny Kodicek [EMAIL PROTECTED] wrote: I've done it in the past (although in the end I didn't use it) by creating a function that homes in on the exact coordinates of the insertion point by adding text into a hidden field and using textWidth / textHeight (the tricky part is finding

Re: [Flashcoders] IFF to AS3

2007-05-10 Thread Ian Thomas
On 5/10/07, David Holroyd [EMAIL PROTECTED] wrote: Are you porting DeluxePaint to Flash? ;) I have to say - that crossed my mind, too. :-D Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] if(color == X) {} looking for method.

2007-05-10 Thread Ian Thomas
Take a look at the BitmapData function: getColorBoundsRect() It might be handy. It can certainly tell you if a clip contains any specific colour (if you take a BitmapData copy of the clip first). If not, I guess getPixel() and getPixel32() might be of help. Hope that's helpful, Ian On

Re: [Flashcoders] making movie clips tranparent

2007-05-10 Thread Ian Thomas
Either set the clip's _visible=false Or get rid of any event handlers/onRelease/onPress handlers on the clip e.g. delete clip.onRelease Ian On 5/10/07, nik crosina [EMAIL PROTECTED] wrote: Hi Is there a way I can make movie clips transparent, so that the mouse reacts to buttons that are

Re: [Flashcoders] Creating a text highlight tool

2007-05-10 Thread Ian Thomas
On 5/10/07, Alen Balja [EMAIL PROTECTED] wrote: I was assuming that AS3 might provide some options. I was only using it in Flex though, and not the RTE. I will definitely check it, but your idea seems a bit like an overkill :) Oh, absolutely - I'm not suggesting it as a solution for your

Re: [Flashcoders] blur every clip...

2007-05-03 Thread Ian Thomas
On 5/3/07, Michael Stuhr [EMAIL PROTECTED] wrote: How about creating a new BitmapData object from _root? i'm nott 100% sure if that even works, but that would include the modal too, as long as you don't load it externally into another level. Not if you create the BitmapData _before_ you show

Re: [Flashcoders] [FlashGameCoders] Persistent Game AI for Off-screen baddies

2007-04-27 Thread Ian Thomas
James, Unfortunately, it all depends. :-) It depends on the complexity of your game and your AI - on how big your play area is and on how much optimisation you want to do. I've seen the following approaches or combinations of these approaches: i) AI (and pixel-perfect x/y positioning) is

Re: [Flashcoders] The great CS3 Swindle

2007-04-24 Thread Ian Thomas
Excellent article. I'll pass it around. Ian On 4/24/07, Zárate [EMAIL PROTECTED] wrote: Hi guys, Sorry to bring this up again, but Danielle Libine has put up a really interesting pdf about the subject. He gathers lots of data with really clear graphics about prices and countries. Then a

Re: [Flashcoders] Finding the height and width of the VISIBLE area ofamasked SWF

2007-04-19 Thread Ian Thomas
You could probably do it by blitting the contents of the clip to a BitmapData and then using getColorBoundsRect(). Ian On 4/19/07, matt stuehler [EMAIL PROTECTED] wrote: All, I've come up with a solution - it's not perfect, but it's pretty robust and reliable. If anyone is following this

Re: [Flashcoders] basic flash games development issues

2007-04-10 Thread Ian Thomas
Nik, What sort of functionality are you looking for? We use SWHX - from http://screenweaver.com/ This runs on top of the Neko runtime and has access (via Neko and haXe) to a variety of different system APIs, database extensions and the like - and if it doesn't already exist, it's very easy

[Flashcoders] AS3 Delegate

2007-04-09 Thread Ian Thomas
Hi all, In developing my first largish AS3 app, I've discovered something that I think is missing. I'd assumed that Delegate, which peppered all my AS2 projects, would have been made redundant and, indeed, it kind of has - in that AS3 takes care of the context of a function, so you can happily

Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Ian Thomas
Hi Jason, That's an interesting one - haven't tried that (but then, our Delegate function coped with it). Unfortunately you won't be able to do that as you describe, because in AS3 there's no arguments.caller - only arguments.callee. I doubted that I had to do it my way, too - was quite

Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Ian Thomas
Hi Michael, I think this is down to a difference in programming style. We don't use events in quite the same way - or rather, for _most_ situations, we use events in exactly the way that you describe. However, there are many situations where defining event types, listeners and dispatchers is

Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Ian Thomas
On 4/9/07, ben gomez farrell [EMAIL PROTECTED] wrote: Delegate is still kinda useful. I've been trying to get by without it since I'm still learning, but the way I've been doing things without it is to dispatch customized events that have specific parameters. It's kind of a pain in the butt

Re: [Flashcoders] AS3 Delegate

2007-04-09 Thread Ian Thomas
On 4/9/07, T. Michael Keesey [EMAIL PROTECTED] wrote: By the way, I think the AS3 syntax for this: button.onRelease=myFunction; // AS3 ... is actually: button.addEventListener(MouseEvent.CLICK, myFunction); Sorry, yes - you're quite right. I was illustrating a general point and clearly

Re: [Flashcoders] Parameters to constructor of class that extends MovieClip

2007-03-30 Thread Ian Thomas
Johan, (I'm assuming you're talking about AS2?) Not directly. What you can do is use the initObject parameter of attachMovie. If you have a class: class MyClip extends MovieClip { public var someInitParam:String; public var someOtherInitParam:Number; public function MyClip() {

Re: [Flashcoders] The great CS3 Swindle

2007-03-30 Thread Ian Thomas
John, Thanks for the response, much appreciated. For the record, I entirely agree with Mike, and think his download-only option is a good one. Cheers, Ian On 3/29/07, Mike Mountain [EMAIL PROTECTED] wrote: May I suggest you have the equivalent of an electronic region/version - where you

Re: [Flashcoders] Parameters to constructor of class that extends MovieClip

2007-03-30 Thread Ian Thomas
Whoops! I forgot the depth parameter in attachMovie! Oh well, you get the idea... Ian On 3/30/07, Ian Thomas [EMAIL PROTECTED] wrote: Johan, (I'm assuming you're talking about AS2?) Not directly. What you can do is use the initObject parameter of attachMovie. If you have a class: class

Re: [Flashcoders] The great CS3 Swindle

2007-03-30 Thread Ian Thomas
On 3/30/07, Seth Caldwell [EMAIL PROTECTED] wrote: In fact, if you think about the country gap in that respect, it makes sense it would be more expensive over there since products and goods coming from the US usually take longer to get over there, if they want it at the same time as us they

Re: [Flashcoders] The great CS3 Swindle

2007-03-29 Thread Ian Thomas
It's a ridiculous situation that, sadly, seems to be true of a lot of software. But it's particularly bad in this case. Here's some full list prices, using today's exchange rate. CS3 Design Premium UK: £1655.58 (=$3256.69)US: $1799.00Markup: 181% CS3 Design Standard UK:

Re: [Flashcoders] The great CS3 Swindle

2007-03-29 Thread Ian Thomas
I've 'phoned the Adobe's UK office today and am told that someone from the customer services management team will get back to me today to explain it. So let's see what happens. :-) Me, I'm not holding my breath. Ian On 3/29/07, Mike Mountain [EMAIL PROTECTED] wrote: In the days of electronic

Re: [Flashcoders] The great CS3 Swindle

2007-03-29 Thread Ian Thomas
interests and that Adobe charged the UK prices that the UK would pay. Which she agreed with. Which means the only explanation is - because they can get away with it. Ian On 3/29/07, Ian Thomas [EMAIL PROTECTED] wrote: I've 'phoned the Adobe's UK office today and am told that someone from

Re: [Flashcoders] The great CS3 Swindle

2007-03-29 Thread Ian Thomas
On 3/29/07, Nick Weekes [EMAIL PROTECTED] wrote: So how would one legally go about buying Adobe software in the US (by legally I mean not from ebay)? Well, off the top of my head... Get someone who lives there to buy it from a shop or online. Fly there and download it to your machine. Fly

[Flashcoders] Flash CS3 Announced

2007-03-27 Thread Ian Thomas
For those who haven't seen it yet, Adobe's site has been updated with details about Flash CS3 (and the rest of the new Creative Suite). http://www.adobe.com/products/flash/ Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options

Re: [Flashcoders] Flash CS3 Announced

2007-03-27 Thread Ian Thomas
Hi Rob, AFAICS, that's not the case. The preview that was on Labs just gave you AS3 support and a couple of other bits. The new CS3 version has a reworked interface, some extra drawing tools, extra Photoshop/Illustrator support etc. I believe the Labs version was just a quick hack in of AS3 to

Re: [Flashcoders] coverting video to flv on the server

2007-03-26 Thread Ian Thomas
Hi Robin, Take a look at ffmpeg. http://ffmpeg.mplayerhq.hu/ HTH, Ian On 3/26/07, Robin Burrer [EMAIL PROTECTED] wrote: Hi there, Somebody told me the other day there are tools that can convert the most common video formats to flvs. Unfortunately I can't remeber the names of these

Re: [Flashcoders] .aso cache frustration

2007-03-20 Thread Ian Thomas
Hi Jason, It's not because you're loading the SWF into another SWF which has different/older versions of classes with the same name and package, is it..? HTH, Ian On 3/20/07, Merrill, Jason [EMAIL PROTECTED] wrote: So I am updating an AS 2.0 class file I wrote last fall, and when I go to

Re: [Flashcoders] Create an object by name

2007-03-19 Thread Ian Thomas
Hello Danny, This short snippet should return you the constructor: /** Returns the class constructor from a dotted path. * e.g. [EMAIL PROTECTED] var cons:Function=getConstructorFromPath(com.pkg.fred.Bucket); } */ public static function

Re: [Flashcoders] shared local object, or XML export? or other?

2007-03-19 Thread Ian Thomas
Hi Kent, The other way to export XML would be to use a SWF wrapper such as mProjector, SWFStudio or (open-source) SWHX: http://www.haxe.org/swhx. (Zinc is another alternative, but I can't recommend it - I've had all sorts of stability issues with it.) Alternatively, Apollo (from Adobe) will

Re: [Flashcoders] Create an object by name

2007-03-19 Thread Ian Thomas
Hi Danny, An import statement is just a compiler-friendly shortcut. It has no effect whatsoever on the final code. Saying: import com.pkg.fred.Bucket; // later var bucket:Bucket=new Bucket(); is identical to saying just: var bucket:com.pkg.fred.Bucket=new com.pkg.fred.Bucket(); That's all

Re: [Flashcoders] Create an object by name

2007-03-19 Thread Ian Thomas
On 3/19/07, Ian Thomas [EMAIL PROTECTED] wrote: That's all it is. A convent bit of syntactic sugar. It's exactly the same in Java. Um... _convenient_, obviously. Although that does conjure up some wacky images... Ian ___ Flashcoders

Re: [Flashcoders] DirectX and standalone

2007-03-19 Thread Ian Thomas
There is no need for DirectX in this case. Not unless you've got a projector wrapper doing something fancy, which I'm guessing you don't (if it's just a standard Flash projector). Ian On 3/19/07, Magnus Askenbäck [EMAIL PROTECTED] wrote: Hi all, A client asked me what the minimum requirement

Re: [Flashcoders] Super and this

2007-03-19 Thread Ian Thomas
On 3/19/07, Andy Herrman [EMAIL PROTECTED] wrote: Oh, I don't even think of 'super' as any kind of identifier/variable. I think of it the same way I think of '.', '[]' or even '-' (in C), in that I think of it as an operator used to access something, not as a reference. 'super.' is just the way

Re: [Flashcoders] Object.registerClass ...

2007-03-18 Thread Ian Thomas
Stephen. Object.registerClass is used all the time in AS2 to connect library objects to implementing classes - so it's definitely relevant. Essentially, you use Object.registerClass to tell the system what type of class should be associated with a clip when it is attached via attachMovie().

Re: [Flashcoders] Q:using printjob class

2007-03-16 Thread Ian Thomas
Hi there, 1) You can't make the printer default to landscape, but you can rotate the clips that you are printing. 2) To make clips not print, either build the clips that you want to print into a seperate subtree and print the parent clip of that (you could even do that offscreen) or simply set

<    1   2   3   4   5   6   7   8   >