Re: [Flashcoders] fullscreen security issue?

2009-11-24 Thread Ian Thomas
Hi Michael, No, FULL_SCREEN doesn't prevent mouse clicks; it just prevents most keypresses (but still allows cursor keys, space, enter etc.). HTH, Ian On Tue, Nov 24, 2009 at 8:56 PM, Mendelsohn, Michael wrote: > Hi list... > > I'm trying to set my swf (in a web page) to StageDisplayState.

Re: [Flashcoders] AS3 mouseUpOutside not working, yuck!

2009-11-19 Thread Ian Thomas
What? mouseChildren=false always works, whether the job is simple or not. That's what it was designed for! Ian On Thu, Nov 19, 2009 at 9:19 PM, Henrik Andersson wrote: > Ian Thomas wrote: >> >> Henrik, >>    Setting mouseChildren=false on an InteractiveObject/Spr

Re: [Flashcoders] Swfs not loading in FF on PC

2009-11-19 Thread Ian Thomas
Joe, wmode=transparent is notoriously bugged, particularly on Firefox. Adobe themselves advise against using it. Ian On Thu, Nov 19, 2009 at 8:54 PM, Joe Minkiewicz wrote: > I run into this issue a lot (I may have even posted here before asking for > help about it). > > Has anyone run into an

Re: [Flashcoders] AS3 mouseUpOutside not working, yuck!

2009-11-19 Thread Ian Thomas
Henrik, Setting mouseChildren=false on an InteractiveObject/Sprite is much easier. The children no longer react to or originate mouse events. HTH, Ian On Thu, Nov 19, 2009 at 9:00 PM, Henrik Andersson wrote: > Whenever I need to work with a reference to a leaf node, I run a loop like > thi

Re: [Flashcoders] new AS Editor, few secret videos

2009-11-19 Thread Ian Thomas
Fantastic - I used JetBrains IntelliJ IDE about 7 years ago, and it was the best Java IDE I've ever come across. Ian On Thu, Nov 19, 2009 at 2:13 PM, Ivan Dembicki wrote: > Hello Ian, > >> http://code.google.com/p/minibuilder/ > > Realaxy Editor is an editor of fundamentally different level. > T

Re: [Flashcoders] new AS Editor, few secret videos

2009-11-19 Thread Ian Thomas
Thanks, Ivan - it'll be interesting to see the full version of this! There's also: http://code.google.com/p/minibuilder/ :-) Ian On Thu, Nov 19, 2009 at 1:13 PM, Ivan Dembicki wrote: > Hello FlashCoders, > > http://www.cleoag.ru/2009/11/12/langenfew-secret-videos-langenlangru-langru/ > > > --

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-19 Thread Ian Thomas
I suggest you look at the website: http://www.adobe.com/products/flash/ On Thu, Nov 19, 2009 at 9:01 AM, Sid Ferreira wrote: > And Adobe Flash? > > On Thu, Nov 19, 2009 at 06:47, Ian Thomas wrote: > >> The Flex SDK is free, >> >> Flex Builder 3 (the curr

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-19 Thread Ian Thomas
The Flex SDK is free, Flex Builder 3 (the current version) is $249 Ian On Thu, Nov 19, 2009 at 8:40 AM, Sid Ferreira wrote: > Does Flex costs all that? > > I think flash/flex is no option :s > > It's too expensive to brazillian market :p > > On Wed, Nov 18, 2009 at 23:09, Paul Andrews wrote: >

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-18 Thread Ian Thomas
I'd just like to add: - I use Flash for some projects. - I use the Flex SDK + Flash for other projects. It's simply about choosing the right tool for the job. Getting back to the original poster's question, as Giro has demonstrated with his samples, yes there are good sites written in Flex, and

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-18 Thread Ian Thomas
On Wed, Nov 18, 2009 at 3:32 PM, Henrik Andersson wrote: > You seem to ignore the components that Flash does ship with. We can fight > about whose components are the best, but I am not interested in that. Neither am I. > I also never claimed that they where rivals, I see them as different tools

Re: [Flashcoders] Who uses Adobe Flex?

2009-11-18 Thread Ian Thomas
On Wed, Nov 18, 2009 at 2:40 PM, Henrik Andersson wrote: > My opinion: > I think that Flash is better for anything that isn't strictly code only, and > that is more or less all projects, since it's quite boring to design > graphics using code. > The upcoming code completion in Flash CS 5 seems to

Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Ian Thomas
Sorry, we're way off topic here. :-D I'll shut up. Ian On Tue, Nov 17, 2009 at 9:05 PM, Mendelsohn, Michael wrote: > Alright, since I asked the question, I'm piping in.  I just finished a > project that became immensely complicated precisely because I eventually had > everything tightly couple

Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Ian Thomas
our code or extend your browser in any way. Perhaps you can give a better example :-) Ian On Tue, Nov 17, 2009 at 8:34 PM, Henrik Andersson wrote: > Ian Thomas wrote: >> >> In which case they're actually one component, conceptually - if the >> dependencies are really

Re: [Flashcoders] one class listening for another classes dispatchedevent

2009-11-17 Thread Ian Thomas
On Tue, Nov 17, 2009 at 8:06 PM, Henrik Andersson wrote: > Tight coupling can be an issue, if the coupled components shouldn't be > coupled. It is not an issue at all if they more or less couldn't work > without something doing the job of the other and few if any replacement > options. In which

Re: [Flashcoders] RegExp question

2009-11-05 Thread Ian Thomas
Hi Michael, Firstly, I'm not quite sure your expression is right - it says g _or_ 1 or 2 or 3 as the first character, whereas your sample starts with a g then a 1. But anyway - what you need to do is to test for the beginning and end of the string. In regular expressions, you do this with the

Re: [Flashcoders] Colorizing Vector Drawn Image

2009-10-30 Thread Ian Thomas
If you just want to change the colour of the entire T-shirt, take a look at the class: flash.geom.ColorTransform (accessed via displayObject.transform.colorTransform) or look at doing it via a filter: flash.filters.ColorMatrixFilter If you want to colour the individual segments of the shirt se

Re: [Flashcoders] Recommended method for copying CDROM app to application folder on Mac

2009-10-30 Thread Ian Thomas
Paul, The 'traditional' Mac way of doing this is to make the user drag the files into their Application folder for a simple, self-contained app. (Assuming you're using a projector) ideally, your additional four .swf files should be bundled inside your .app folder i.e. all your user sees when he o

Re: [Flashcoders] as3 to iphone app

2009-10-29 Thread Ian Thomas
On Thu, Oct 29, 2009 at 3:48 AM, Kerry Thompson wrote: >> don't swfs compiled from c run faster in the plugin than ones compiled >> in actionscript? i thought i read that > > I don't know of a way to compile a swf from C, or any machine-language > compiler. I'm not quite sure about iPhone apps de

Re: [Flashcoders] mac projector

2009-10-28 Thread Ian Thomas
Latcho, Glen, It's the 'Contents/Resources' folder. So if you main movie does (for example): loader.load(new URLRequest("movie2.swf"), new LoaderContext(false, ApplicationDomain.currentDomain)); It will load the movie at: myApp.app/Contents/Resources/movie2.swf (I've just checked our Mac proj

Re: [Flashcoders] Website in an application

2009-10-27 Thread Ian Thomas
Hi John, I'd take a look at AIR. It allows you to drop in real HTML components (using the WebKit engine, the same thing that Safari uses) controlled from a Flash application. HTH, Ian On Tue, Oct 27, 2009 at 7:27 PM, John R. Sweeney Jr wrote: > Howdy List, > > My client wants a touchscreen

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Ian Thomas
Karl, It'll work in either AS2 or AS3. Ian On Fri, Oct 23, 2009 at 9:41 PM, Karl DeSaulniers wrote: > Hi Ian, > Is this an AS3 examlpe, or can that be done in AS2? > > Karl > > Sent from losPhone > > On Oct 23, 2009, at 11:33 AM, Ian Thomas wrote: > >>

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Ian Thomas
Try copying using BitmapData, not ByteArray. Take a visual snapshot, not an object snapshot. Ian On Fri, Oct 23, 2009 at 6:03 PM, Kevin Holleran wrote: > On Fri, Oct 23, 2009 at 12:48 PM, Kevin Holleran wrote: >> How can a copy the display object into another so that I can >> manipulate the cop

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Ian Thomas
You could take a bitmap copy (BitmapData.draw()). Alternatively, you could just rescale the original, print, then scale back again... Ian On Fri, Oct 23, 2009 at 5:48 PM, Kevin Holleran wrote: > How can a copy the display object into another so that I can > manipulate the coped object but not t

Re: [Flashcoders] Printing Canvas

2009-10-23 Thread Ian Thomas
Hi Kevin, To set what's going to the printer to fit: Get the print pageWidth/pageHeight from the PrintJob object (after calling start()). Use the scaleX, scaleY of the clip you are printing to make it fit within that pageWidth/pageHeight. Call addPage(), passing the clip. Call se

Re: [Flashcoders] Any issues to be concerned about with Snow Leopard

2009-10-23 Thread Ian Thomas
Hi Paul, It's always worth a test! Snow Leopard has some significant differences from Leopard under the hood, but Apple are very good at backwards compatibility. If you're not doing anything unusual, you should be okay. But if you're prepared to put the app up on an FTP site or something

Re: [Flashcoders] Creating Cross-Platform CDROM

2009-10-22 Thread Ian Thomas
Paul >> >> -Original Message- >> From: flashcoders-boun...@chattyfig.figleaf.com >> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas >> Sent: 22 October 2009 08:36 >> To: Flash Coders List >> Subject: Re: [Flashcoders] Creating Cross-Platfo

Re: [Flashcoders] Creating Cross-Platform CDROM

2009-10-22 Thread Ian Thomas
On Thu, Oct 22, 2009 at 9:09 AM, Paul Steven wrote: > Ian, assuming there is a different executable file for both mac and pc, does > this mean that both would be visible on both platforms? Just using standard burning options, yes. Which isn't necessarily a problem, as long as your users are fairl

Re: [Flashcoders] Creating Cross-Platform CDROM

2009-10-22 Thread Ian Thomas
ion for the PC? > > Regards > Cor > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas > Sent: donderdag 22 oktober 2009 9:29 > To: Flash Coders List > Subject: Re: [Flashcoders] Cr

Re: [Flashcoders] Creating Cross-Platform CDROM

2009-10-22 Thread Ian Thomas
I may have misunderstood Paul's requirements. Paul - if you want to make all files on the disk visible to both platforms, just normally burning a disk on Windows or Mac should be fine (as Karl suggests). If you want _different_ files to appear to each platform, look at something like the Hybrid C

Re: [Flashcoders] Creating Cross-Platform CDROM

2009-10-22 Thread Ian Thomas
We use James Walker's Hybrid CD Construction Kit on the Mac: http://www.jwwalker.com/pages/hybrid-cd.html HTH, Ian On Thu, Oct 22, 2009 at 7:52 AM, Paul Steven wrote: > Been a long time since I have had to make a cross platform CDROM, or even a > CDROM at all to be honest. Anyway I have deve

Re: [Flashcoders] [MEMORY LEAK]

2009-10-01 Thread Ian Thomas
Just out of interest - why are you recreating the Loader() and re-adding the listeners each time? It should work if you just create the Loader once, add the listeners once - then every time you call load() with a new URLRequest, you'll get new progress and complete events. Might help with your lea

Re: [Flashcoders] FOTB

2009-09-25 Thread Ian Thomas
Most interesting, to me, was the new features in AIR 2.0. More specifically: - Being able to package native code - Being able to create .DMG and .EXE files - Being able to detect when pluggable storage devices (USB sticks etc.) are plugged into the system Ian On Thu, Sep 24, 2009 at 3:51 PM, mat

Re: [Flashcoders] Loading local files with query strings

2009-09-14 Thread Ian Thomas
Don't use query strings? Seriously - local file names on files systems don't take query strings. You don't have any files called C:\windows\test.exe?id=33, do you? To make a query string work, you need to route the call through an HTTP server. Sounds like you're trying to avoid caching? But I'm

Re: [Flashcoders] letter spacing changes when animating text fields

2009-09-13 Thread Ian Thomas
Firstly make sure that the text is an embedded font. Secondly make sure that the antialias type is set to 'for animation' rather than 'for readability'. HTH, Ian On Sun, Sep 13, 2009 at 6:29 PM, Tom Huynen wrote: > Hi, > > I'm trying to animate a sprite containing several sprites with a text

Re: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash

2009-09-06 Thread Ian Thomas
Sounds like a good idea. Sometimes movies just corrupt - copying and pasting is a good answer. (Save and Compact can sometimes sort out those sort of bugs too...) Ian On Sun, Sep 6, 2009 at 9:29 PM, Paul Steven wrote: > Got rid of font problem by cutting and pasting all frames into a new movie. >

Re: [Flashcoders] Rather urgent advice on how to track the cause of a crash

2009-09-05 Thread Ian Thomas
; > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas > Sent: 05 September 2009 16:49 > To: Flash Coders List > Subject: Re: [Flashcoders] Rather urgent advice on how to track the cause of > a cra

Re: [Flashcoders] Rather urgent advice on how to track the cause of a crash

2009-09-05 Thread Ian Thomas
m but this does not seem to be > possible. > > Cheers > > Paul > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas > Sent: 04 September 2009 19:22 > To: Flash Coders

Re: [Flashcoders] Rather urgent advice on how to track the cause of a crash

2009-09-04 Thread Ian Thomas
On Fri, Sep 4, 2009 at 6:16 PM, Paul Steven wrote: > The game is basically a top down flying game with a scrolling background > (JPG 5120 X 4320). The flash movie is published at 1600 x 1200 30 FPS. It > includes an embedded FLV video on the Splash screen which is apparently > 639kb of video data.

Re: [Flashcoders] 1120: Access of undefined property

2009-09-03 Thread Ian Thomas
Because your function is static. Either make your var static too: public static var counter:int=0; or make your function non-static. I'm sure you can Google static/non-static class members, but in short, anything that's non-static is only available from within a class instance (i.e. someone nee

Re: [Flashcoders] fullscreen weirdness (solution)

2009-09-03 Thread Ian Thomas
On Thu, Sep 3, 2009 at 4:35 PM, Joe Cutting wrote: > Ian reported problems with the Javascript version and Chrome. I'd be > interested to hear if anyone else has problems with one or the other. Both versions now work fine with latest Chrome, Firefox, Safari and with IE7 - that seems to have solve

Re: [Flashcoders] fullscreen weirdness

2009-09-03 Thread Ian Thomas
Joe, What code are you using to do the fullscreen switch? Again, I'm getting problems with the Chrome version - so if it's not your embedding causing the problems, it must be somewhere in your AS code... Ian On Wed, Sep 2, 2009 at 6:01 PM, Joe Cutting wrote: >>> > You're definitely doing somet

Re: [Flashcoders] Fullscreen wierdness

2009-09-02 Thread Ian Thomas
You're definitely doing something peculiar - in Chrome, after I click to go fullscreen on your movie, nothing is clickable at all! I have to press Esc to get out of full screen. In Firefox it seems to work okay. Looking at the HTML source, you've got some very complicated Flash and browser detecti

Re: [Flashcoders] Problem understanding Class heirarchy issue

2009-09-02 Thread Ian Thomas
I'm sorry, Steven, that's just not true. Test out the following code: package { public class A { public function A() { trace("A Constructor"); } } } package { public class B extends A {

Re: [Flashcoders] Error when trying to embed a font

2009-08-31 Thread Ian Thomas
tielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par > erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en > détruire le contenu sans le communiquer a d'autres ou le reproduire. > > > >> -Original Message- >> Fr

Re: [Flashcoders] Error when trying to embed a font

2009-08-31 Thread Ian Thomas
You could try directly referencing the TTF or OTF file with the 'source' argument instead of using the 'systemFont' argument: [Embed( source="/Path/To/FontFile.TTF", HTH, Ian On Mon, Aug 31, 2009 at 1:31 PM, Andrew Murphy wrote: > Good morning.  (Well.. it's morning here anyway.) > > I'm hav

Re: [Flashcoders] XML element order

2009-08-27 Thread Ian Thomas
Glen, The backend shouldn't care about element order. :-) That'd be my take on it, if you're just using the XML to exchange a simple set of properties rather than (say) using it to present a structured document where the order is crucial to how it's read. If you _do_ care about the order

Re: [Flashcoders] empty XML Attributes..

2009-08-26 Thread Ian Thomas
On Wed, Aug 26, 2009 at 12:27 PM, Glen Pike wrote: > Aha, I see now - bit of a waste of code too. Yeah, I agree, it's overly verbose. > And who's bright idea was it to use length for Strings and Arrays, but > length() for XML / e4x? It's because in E4X: someNode.length Means get this node:

Re: [Flashcoders] mac vs pc

2009-08-18 Thread Ian Thomas
One for which you shouldn't call the setter unless you're wearing a lead apron and goggles. ;-) Ian On Tue, Aug 18, 2009 at 3:52 PM, Merrill, Jason wrote: >>> Document the classes and "atomic" properties. > > What's an "atomic" property? > > > Jason Merrill > _

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Ian Thomas
On Tue, Aug 18, 2009 at 4:20 PM, Dave Watts wrote: > Again, I'm not saying there's anything wrong with implicit Boolean > evaluation, I just think it's a mistake to believe it's inherently > superior to an explicit, slightly longer Boolean expression, to the > point of telling people they should r

Re: [Flashcoders] actionscript 3 block rationale

2009-08-18 Thread Ian Thomas
JC, AS3 has no block scope. Whenever you write 'var x' inside a method, that declaration (effectively) gets moved to the 'top' of the method. So at a compiler level, this: > private function _demo():void { > for (var i:Number = 0; i < 10;i++) { > //evil stuff here > } > for (var i:Number

Re: [Flashcoders] CLICK event not getting fired

2009-08-18 Thread Ian Thomas
Anna, Whether it's MouseEvent or Event makes no difference - since the MouseEvent class is derived from Event, either will do unless you actually want to access properties/methods defined only in MouseEvent. Sajid, As Latcho says, you need something graphical to click on. You could use the .

Re: [Flashcoders] > How to loop an ANT task(s)? >

2009-08-13 Thread Ian Thomas
contrib/antlib.xml. It could not be found. > > Any ideas? > > I'm running 1.7.x > > cheers, > > MaTT > > On Wed, Aug 12, 2009 at 10:45 PM, Ian Thomas wrote: > >> Hi Matt, >>   I use the Ant-contrib tasks for all that sort of thing. >> >

Re: [Flashcoders] > How to loop an ANT task(s)? >

2009-08-12 Thread Ian Thomas
Hi Matt, I use the Ant-contrib tasks for all that sort of thing. Includes foreach, if, all sorts of handy extensions. http://ant-contrib.sourceforge.net/ HTH, Ian On Wed, Aug 12, 2009 at 9:04 PM, Matt Muller wrote: > Hi, does anyone know how to loop an ANT task(s)? > > I want the creat

Re: [Flashcoders] mac vs pc

2009-08-12 Thread Ian Thomas
On Wed, Aug 12, 2009 at 9:22 PM, Matt Gitchell wrote: > Yeah but if you want to debug/profile anything, you gotta pay that 5 bones > you mentioned earlier in this scenario, and I dunno, a coding environment > without debugging now seems a little silly to me. I wish they'd do a > standalone version

Re: [Flashcoders] Runtime assets

2009-08-12 Thread Ian Thomas
Yes, it's absolutely possible. You'll need to look into ApplicationDomains (flash.system.ApplicationDomain) and getDefinition()/hasDefinition(). As long as the 3rd SWF has access to or shares the ApplicationDomain that the library SWF is in, everything should be fine. HTH, Ian On Wed, Aug 1

Re: [Flashcoders] what is the current 3D best-practice?

2009-08-10 Thread Ian Thomas
Hello Sebastien, Were it me, I'd go for either Papervision or Away3D. I absolutely wouldn't do it from scratch. There's already a lot of time and effort been spent on these projects, so why reinvent the wheel? Both certainly support 'skinning from images' (texturing). Morphing I am l

Re: [Flashcoders] OT - bizarre Adobe pricing

2009-08-10 Thread Ian Thomas
Good point. :-D On Mon, Aug 10, 2009 at 11:28 AM, Glen Pike wrote: > >> product. A real incentive to reduce carbon emissions by saving on >> transport and production, isn't it? :-D >> >> > > From what I have seen of Vista's random "high CPU usage", it might be more > carbon-efficient to post the C

Re: [Flashcoders] OT - bizarre Adobe pricing

2009-08-10 Thread Ian Thomas
Yeah - it's not an anomaly, always been the way. It's crazy. :-) Costs more for download than to have shipped, boxed product. A real incentive to reduce carbon emissions by saving on transport and production, isn't it? :-D Ian On Mon, Aug 10, 2009 at 11:10 AM, Glen Pike wrote: > It's been more e

Re: [Flashcoders] OT - bizarre Adobe pricing

2009-08-09 Thread Ian Thomas
I've given up on trying to figure out Adobe pricing. The last time I queried the ridiculous difference between US and UK prices the quotes I had were: - "It costs more to keep UK support staff": Well, I'm sorry about that, but I never use your UK support staff - besides, I give other people suppor

Re: [Flashcoders] bookmarking a dynamic flash page

2009-08-06 Thread Ian Thomas
Andrew - check out SWFAddress: http://www.asual.com/swfaddress/ HTH, Ian On Thu, Aug 6, 2009 at 12:49 PM, Andrew Sinning wrote: > How could I let the user bookmark the current state of a dynamic flash page? >  I know how to save the current state of the movie and then just load that > as the

Re: [Flashcoders] MVC and Event Architecture

2009-08-04 Thread Ian Thomas
On Tue, Aug 4, 2009 at 4:24 PM, Dave Watts wrote: >> The real point is that to call public methods, you have to know about the >> object whose method you want to call and you need to know about the method >> itself. When you broadcast an event, you don't need to know whose listening, >> your just i

Re: [Flashcoders] other lists for compiler design, assembly, and machine code?

2009-08-03 Thread Ian Thomas
You could do worse than take a look at the sources for both MTASC and haXe. MTASC is a compiler for AS2. http://mtasc.org/ haXe is a compiler for... uh... haXe. But haXe is a very AS3-like language (it has its roots in AS). http://haxe.org/ Both are written by Nicolas Cannasse. Both are written

Re: [Flashcoders] swf not loading in Firefox on Windows

2009-08-03 Thread Ian Thomas
Adblockers? We've had that problem in the past, where people have installed 3rdparty over-aggressive adblockers which mean that Flash will just not load. Ian On Mon, Aug 3, 2009 at 4:02 PM, Joe Minkiewicz wrote: > Hey Everyone,   Have any of you encountered a problem where swf content > won't lo

Re: [Flashcoders] Dancing characters...

2009-07-22 Thread Ian Thomas
Also - have you got those text fields set to "anti-alias for animation"? If not, you should - "anti-alias for readability" can cause odd effects for moving text. HTH, Ian On Wed, Jul 22, 2009 at 4:44 PM, Ruy Adorno wrote: > Hello Sander, > > Nice to see you around here, I saw in twitter you're

Re: [Flashcoders] XML tranformation help

2009-06-24 Thread Ian Thomas
if(modulesList[0]..subsection.(@title==contentRowItem2.Subsection).topics.length() < 1) would have done it. (It's worth pointing out that length() is a method rather than a property - that bit my a few times when I started with e4x...) Ian On Wed, Jun 24, 2009 at 2:08 AM, Merrill, Jason wrote:

Re: [Flashcoders] XML tranformation help

2009-06-23 Thread Ian Thomas
Hi Jason, Surely it's because you're creating a new node each time? With this line: modulesList[0]..subsection.(@title==contentRowItem2.Subsection).topics = new XML(); I suspect you should only create the new node when there isn't one there already... HTH, Ian (Wasn't part 1 of this on

Re: [Flashcoders] wrapper recommendation

2009-06-15 Thread Ian Thomas
Northcode's SWFStudio consistently gets the best reviews. HTH, Ian On Mon, Jun 15, 2009 at 2:48 PM, Mendelsohn, Michael wrote: > Hi list... > > Can anyone recommend the best wrapper for a Flash projector?  All I need to > do is open pdfs in Acrobat (not a browser, like what navigatetourl woul

Re: [Flashcoders] Projector "Serial Number" protection

2009-06-06 Thread Ian Thomas
You could try Northcode's SWFStudio. http://www.northcode.com/ Ian On Sat, Jun 6, 2009 at 6:07 PM, Ktu wrote: > I think the only other options are AIR, and Titanium > > On Sat, Jun 6, 2009 at 7:00 AM, Kevin Bath wrote: > >> Shame - it has some great functionality. >> >>

Re: [Flashcoders] Projector "Serial Number" protection

2009-05-27 Thread Ian Thomas
Likewise (I seem to keep saying this) I have had a number of serious problems with Zinc over the years, and our company has had to migrate away from it. Ian On Wed, May 27, 2009 at 1:07 AM, Muzak wrote: > Careful with buying Zinc if you don't already have a license. > As of late, their support i

Re: [Flashcoders] anti-aliasing

2009-05-18 Thread Ian Thomas
of regular applications in as3, there are a > lot of reasons to know this well, and graphics applications that would be > impossible by relying on what is built in. > > > Ian Thomas wrote: >> >> A quick thought, Anthony... why reinvent the wheel? >> >> Why not use

Re: [Flashcoders] anti-aliasing

2009-05-18 Thread Ian Thomas
A quick thought, Anthony... why reinvent the wheel? Why not use Flash's built-in graphics.moveTo()/graphics.lineTo() etc. to draw _vector_ lines into a Sprite (which will therefore be nicely antialiased by Flash), then capture the results as a bitmap and paste them into whatever BitmapData you are

Re: [Flashcoders] Automated builds - your experiences?

2009-05-12 Thread Ian Thomas
Have you considered switching to MTASC instead of using the Flash IDE to compile? It would make your life a lot easier... Ian On Tue, May 12, 2009 at 12:06 PM, Alias Cummins wrote: > Hi guys, > > I'm currently consulting on a project which involves setting up an > automated build server, running

Re: [Flashcoders] Automated builds - your experiences?

2009-05-12 Thread Ian Thomas
35 PM, Ian Thomas wrote: > Have you considered switching to MTASC instead of using the Flash IDE > to compile? It would make your life a lot easier... > > Ian > > On Tue, May 12, 2009 at 12:06 PM, Alias Cummins wrote: >> Hi guys, >> >> I'm currently consul

Re: [Flashcoders] RegEx

2009-05-10 Thread Ian Thomas
Match and replace work fine for me outside of AIR. Ian On Sat, May 9, 2009 at 11:54 PM, Anthony Pace wrote: > I am reading the documentation, and it says that match and replace are only > for air 1.0 and they have that nasty trilobal air logo. > > What the heck  If that is the case then why

Re: [Flashcoders] mxmlc include classes , possible???

2009-04-29 Thread Ian Thomas
-includes com.mycompany.MyClass com.mycompany.MyOtherClass HTH, Ian On Wed, Apr 29, 2009 at 3:40 PM, Jiri wrote: > Hello list, > > Is it possible to force the mxmlc compiler to include certain classes so > they can be instantiated at runtime. So I dont have to put an explicit > reference in t

Re: [Flashcoders] Conditional statement in [Embed(source="... tag

2009-04-28 Thread Ian Thomas
It does accept conditionals, sort of, using the mxmlc -define tag. I blogged about it somewhere (hunts around). Aha! http://code.awenmedia.com/node/34 HTH, Ian On Tue, Apr 28, 2009 at 8:41 PM, Merrill, Jason wrote: > I don't believe you can do conditionals with [Embed] statements. Tho

Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Ian Thomas
On Wed, Apr 22, 2009 at 4:17 PM, Kerry Thompson wrote: > Fabio Pinatti wrote: > >> A question I was wondering here. A client of mine has a website built with >> as2. And I explained him I work now with as3, but he asked what the real >> benefits for him, to convert his project to as3. >> >> I woul

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Ian Thomas
Go for a database. Access by multiple users is what they are designed for. Don't make life hard for yourself. :-) Ian On Wed, Apr 22, 2009 at 11:57 AM, Paul Steven wrote: > I was considering using an xml file to store high score data for a game. It > is quite possible that this game will have a

Re: [Flashcoders] Loading string data in a file from a server

2009-04-21 Thread Ian Thomas
Hi Sid, It might be worth using a web traffic proxy such as Charles to make sure that your AIR app is issuing a sensible HTTP request to the web server i.e. that the thing you have which works in the browser is actually the same as the request issued by the AIR app. I'm not sure this can be a se

Re: [Flashcoders] Just a quick one

2009-04-17 Thread Ian Thomas
ne with no content). Ian On Fri, Apr 17, 2009 at 5:11 PM, Karl DeSaulniers wrote: > I am using martijndevsser ImageLoader > > Sent from losPhone > > On Apr 17, 2009, at 4:41 AM, Ian Thomas wrote: > >> Let's try that again - perhaps I wasn't clear.

Re: [Flashcoders] Just a quick one

2009-04-17 Thread Ian Thomas
Karl DeSaulniers > Design Drumm > http://designdrumm.com > > On Apr 17, 2009, at 3:21 AM, Ian Thomas wrote: > >> myLoader.contentLoaderInfo.width >> myLoader.contentLoaderInfo.height >> >> >> HTH, >>   Ian >> >> On Fri, Apr 17, 2009 at 6:09 AM, Kar

Re: [Flashcoders] Just a quick one

2009-04-17 Thread Ian Thomas
myLoader.contentLoaderInfo.width myLoader.contentLoaderInfo.height HTH, Ian On Fri, Apr 17, 2009 at 6:09 AM, Karl DeSaulniers wrote: > Hello all, > Quick question. > I am using a loader class to load some preview images and I am trying to > make a couple of variables eq the width and heigth

Re: [Flashcoders] Access objects in embedded swf

2009-04-15 Thread Ian Thomas
lish the swf, then change > the [Embed] to only embed the Library symbol - something like > > [Embed(source = 'portfolio.swf', symbol="a1_symbol")] > > http://www.bit-101.com/blog/?p=853 > > HTH > > Glen > > > Ian Thomas wrote: >> >> I

Re: [Flashcoders] Access objects in embedded swf

2009-04-15 Thread Ian Thomas
he timeline? Ian On Wed, Apr 15, 2009 at 1:49 PM, Dav wrote: > No luck :( > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas > Sent: 15 April 2009 13:36 > To: Flash Code

Re: [Flashcoders] Access objects in embedded swf

2009-04-15 Thread Ian Thomas
Dave, Try: portfolio.x = 0; portfolio.y = 0; var child:DisplayObject=portfolio.getChildByName("a1"); child.x=150; HTH, Ian On Wed, Apr 15, 2009 at 1:14 PM, Dav wrote: > Hi guys! > > I'm having a problem accessing movieclips within an embedded SWF. > > Here is some code: > > ... >        [

Re: [Flashcoders] How to smooth bitmap?

2009-04-13 Thread Ian Thomas
Alternatively, just copy the bitmap and smooth it: http://code.awenmedia.com/node/27 HTH, Ian On Sat, Apr 11, 2009 at 3:16 PM, Pavel Repkin wrote: > Hey! > > I have a bitmap image loaded from external site (Facebook user avatar). > Its size is 50x50 pixels and it looks very pixelated when th

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Ian Thomas
No, null==null in AS3. I suspect that your url variable bids contains the string "null", sent from the server-side. HTH, Ian On Thu, Apr 9, 2009 at 2:13 PM, Alexander Farber wrote: > Hello, > > does anybody please have an idea, why would this code: > > private function handleComplete(event:Ev

Re: [Flashcoders] Is it possible to embed Flash player inside C++ application on MacOS?

2009-04-08 Thread Ian Thomas
Yes. I'd take a look at the open source code for Screenweaver HX - SWHX. This embeds the Netscape Flash plugin. There's a source code link on this page: http://screenweaver.org/doku.php?id=download HTH, Ian On Wed, Apr 8, 2009 at 11:36 AM, Pavel Repkin wrote: > Hey! > > My Windows applicati

Re: [Flashcoders] Duplicating a loaded SWF

2009-04-03 Thread Ian Thomas
Henry, As far as I'm aware, duplication of existing instances of objects is still something sadly lacking in Flash. There are a number of hacks, but none of them seem to work for all cases (I've tried a bunch!). In your case, I have two suggestions; both are a change of approach: i) Use the

Re: [Flashcoders] Oops.. forgot to include the code. Proof of Concept - HTTPService

2009-04-02 Thread Ian Thomas
Johan - from memory, I'm not sure AIR needs the crossdomain file, whereas browser-based Flash does. That might explain the discrepancy. (That is from memory, though - probably needs doublechecking...) Cheers, Ian On Thu, Apr 2, 2009 at 9:35 AM, Johan Nyberg wrote: > Forgot to include the co

Re: [Flashcoders] Detecting if authoring mode (Flash 8 AS2)

2009-04-02 Thread Ian Thomas
Hi Paul, Take a look at System.capabilities.playerType. System.capabilities.playerType=="External" means you're running in the IDE. System.capabilities.playerType=="Plugin" means you're running in a browser. HTH, Ian On Thu, Apr 2, 2009 at 8:19 AM, Paul Steven wrote: >

Re: [Flashcoders] FPS question

2009-04-02 Thread Ian Thomas
Also = try to redraw as little of the screen as possible from frame to frame. If your entire screen is constantly redrawing, that takes a lot of processing power. So alpha fades that affect the entire screen or moving/animating a sprite which covers the entire screen are problems. The Flash Debu

Re: [Flashcoders] Full screen mode and KeyboardEvents

2009-03-30 Thread Ian Thomas
As an addition - AIR lets you use FULL_SCREEN_INTERACTIVE mode, because the assumption is that the users _knows_ that they have started the AIR app (like starting a normal .exe/.app). Ian On Mon, Mar 30, 2009 at 1:27 AM, Carl Welch wrote: > sheesh. Instead of removing features, I wish they would

Re: [Flashcoders] Pixel recognition?

2009-03-29 Thread Ian Thomas
rix(); >    var sx:Number   = 1 / src.width; >    var sy:Number   = 1 / src.height; > >    mat.scale(sx,sy); >    dest.draw(src,mat,null,null,null,true); >    var hls:Object = ColorUtils.RGBtoHLS(dest.getPixel(0,0)); > >    return hls.l; > } > Cheers > Juan Pablo Califano

Re: [Flashcoders] Pixel recognition?

2009-03-29 Thread Ian Thomas
On Sun, Mar 29, 2009 at 8:14 PM, Juan Pablo Califano wrote: > As it's been said already, you could try converting to HLS and the get the > average luminance (brigthness). Here's a handy class to convert from RGB to > HSL and viceversa. > > http://www.dreaminginflash.com/2007/11/19/hls-to-rgb-rgb-t

Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread Ian Thomas
Try: textArea.textField.selectable=false; HTH, Ian On Fri, Mar 27, 2009 at 4:38 PM, wrote: > > I'll have to prevent users to copy text from a TextArea. In Flex I saw you > do that bij setting a selectable attribute of the mx.controls.TextArea to > false. > > However, this seems not possibl

Re: [Flashcoders] Flash-HTML WYIWYG editor?

2009-03-25 Thread Ian Thomas
On Wed, Mar 25, 2009 at 9:30 PM, Mindshare Studios wrote: > So, we need something like the open source editors TinyMCE or FCKEditor, > that *only* allows users to format text using HTML tags that Flash can > handle. There are tons of plug and play WYSIWYG editors out there but so far > I can't fi

Re: [Flashcoders] A very simply question of XML toString()

2009-03-19 Thread Ian Thomas
No shortcut if you want them as an Array. Something like the following is pretty short, though, and does the job: var arr:Array=[]; for each(var book:XML in myXML.book) arr.push(bo...@title.tostring()); should do it. (Untested!). Ian On Thu, Mar 19, 2009 at 5:11 PM, ACE Flash wrote: > Hey

Re: [Flashcoders] Advice on creating random grid of pairs for a game

2009-03-11 Thread Ian Thomas
Paul, Maybe the problem is actually that difficult - there may be no easy solutions to the calculation, and it might indeed take hours to find a valid solution. But anyway - here's a thought, in case it helps. Have you considered, for each pair: - putting the pair on adjacent empty squares. - m

Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread Ian Thomas
I suspect this is a compile-time issue - your loading SWF has no idea what 'Paris' means when trying to compile? In which case you need to pick it up at runtime. Try flash.system.ApplicationDomain.currentDomain.getDefinition() e.g. var myClass:Class=ApplicationDomain.currentDomain.getDefinition

  1   2   3   4   5   6   7   8   9   >