Re: [Flashcoders] cancel loading process

2005-10-27 Thread Ian Thomas
I seem to recall someone on this list suggesting that if you call loadMovie(null) on an already loading clip, it actually cancels the load. Of course, I may have been dreaming... I haven't actually tried it! HTH, Ian ___ Flashcoders mailing list

Re: [Flashcoders] removeEventListener not working?

2005-10-27 Thread Ian Thomas
The trouble is that Delegate.create _creates a new Function object_ - so the Delegate object in your removeEventListener call is actually a different object from in your addEventListener call. To get around this, simply store the delegate - e.g.: var

Re: [Flashcoders] how to access mcs dinamically

2005-10-28 Thread Ian Thomas
this[mc+number].someProperty (assuming 'this' is the current timeline) On 10/28/05, Jorge Rego [EMAIL PROTECTED] wrote: Hi list, I have some MCs named mc1, mc2, mc3 ... I'm trying to access them like this: mc[number].someProperty ... but no luck! How can this be done!?

Re: [Flashcoders] File under BIZARRE: Keyboard Freezes Game, Wiggling Mouse Unfreezes

2005-10-28 Thread Ian Thomas
My only immediate thought - did the artist deliver his art files to you in Flash format? Are you sure he hasn't accidentally buried some code somewhere in the frames of one of those movieclips? HTH, Ian On 10/28/05, Buck Ruckman [EMAIL PROTECTED] wrote: Hi everyone! i really hope someone

Re: [Flashcoders] cast string to a boolean value

2005-10-28 Thread Ian Thomas
What's wrong with the following? var my_bool:Boolean=(flashvar_bool==true); Ian On 10/28/05, Steve Mathews [EMAIL PROTECTED] wrote: Try: var my_bool:Boolean = flashvar_bool==false?false:true; The basic problem is creating a Boolean with any string makes it true. So creating it with the

Re: [Flashcoders] File under BIZARRE: Keyboard Freezes Game, Wiggling Mouse Unfreezes

2005-10-28 Thread Ian Thomas
That does sound weird. If you're sure it's not stray code (or a stray component kicking around offstage somewhere or something), then all I can really suggest is my standard 'something's weird' debugging approach; to make a temporary copy of the app, and start peeling away bits of it until it

Re: [Flashcoders] File under BIZARRE: Keyboard Freezes Game, Wiggling Mouse Unfreezes

2005-10-28 Thread Ian Thomas
Ah, we're getting somewhere... In Firefox 1.07 (my default browser) running Flash 8 it all seems to work fine. In IE 6 running Flash 7, it does, indeed, hang when I press a key. And restarts when I stop pressing the key. And gives me a memory error when I quit the browser. So is the difference

Re: [Flashcoders] Strict Datatyping Question

2005-10-31 Thread Ian Thomas
Jester, that's not a bug. The two statements ' var something' and 'something=' are totally different things. 'var whatever' is a declaration. Which you can tack a handy assignment on to the end of ( = something), because it's always good to initialise your variables when you declare them. But the

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Ian Thomas
Unless someone has coded a very odd compiler*, for most compilers of most languages including 'this' won't make any difference to the compiled bytecode. Ian *But then, it _is_ Macromedia. You never know. ;-) On 10/31/05, Cedric Muller [EMAIL PROTECTED] wrote: in the end, using 'this' or

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Ian Thomas
On 10/31/05, Morten Barklund Shockwaved [EMAIL PROTECTED] wrote: It is amazing how we can turn back to this first-grade example of understanding scoping in ActionScript almost daily. True - but this highlights a flaw in the language rather than a flaw in the questioner... if the same

Re: [Flashcoders] Scope Issues was :Newbie AS3 question

2005-10-31 Thread Ian Thomas
Now it's not buried at the end of a thread - Dave (Watts), or any other list admin - would it be possible (and desirable) to add a link to the FAQ in the list signature? Then we might actually remember to update it, and newcomers might know where to find it? Cheers, Ian On 10/31/05, Martin Wood

Re: [Flashcoders] Strict Datatyping Question

2005-10-31 Thread Ian Thomas
Nope. my_win, the variable, is still declared (to the compiler) as a MovieClip. It only knows about it as type MovieClip. The object it 'points to' happens to be of type MyCustomForm, which is an object that inherits from MovieClip. It does all the things that MovieClip does, just does more

Re: [Flashcoders] Strict Datatyping Question

2005-10-31 Thread Ian Thomas
No - it _doesn't_ change the type of the variable from the compiler's PoV, that's my point. :-) I've probably been explaining really badly. The statement: var my_var:A; defines a thing which can point to objects of type A. This thing can only _ever_ hold references to objects of type A and

Re: [Flashcoders] Strict Datatyping Question

2005-10-31 Thread Ian Thomas
Matt, See all the previous mails. It's not a bug, so won't have been fixed. It's the way that the language is supposed to work. Ian On 10/31/05, Adams, Matt [EMAIL PROTECTED] wrote: Has the bug been fixed in 8? Matt ___ Flashcoders mailing list

Re: [Flashcoders] eval()

2005-11-04 Thread Ian Thomas
_root[something+i].onRollOut=function() { } HTH, Ian On 11/4/05, Spiros Gerokostas [EMAIL PROTECTED] wrote: hi, can you help with this line of code? eval(_root.something + i + .onRollOut) = function() { } well i know this is wrong in flash 6. Is this possible? this[_root.something

Re: [Flashcoders] Resizing Imported Images

2005-11-08 Thread Ian Thomas
*sigh* var mcl:MovieClipLoader(); should be var mcl:MovieClipLoader=new MovieClipLoader(); Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] hot spots for buttons / video alpha channels

2005-11-13 Thread Ian Thomas
On 11/13/05, Millie Niss [EMAIL PROTECTED] wrote: (this seems to happen frequently when the button cinsists of say, a rectangle on one layer, with a text on a layer above it. Often, you use a button like this and discover that the text isn't clickable, and the only hot area is the part of

Re: [Flashcoders] special characters

2005-11-13 Thread Ian Thomas
In which case the onData option might be your best bet. The text files can then be whatever you like - it's up to you to process them in whatever way you wish. Basically by providing your own LoadVars.onData() function, you completely replace Flash's default processing of text files - you are

Re: [Flashcoders] dispatching events from a class

2005-11-13 Thread Ian Thomas
Hi Javier, This is because you've got things happening in the wrong order: - You create your EventTry() object, which calls init() - Init fires the event, but onEvent is still undefined - Init then calls die() - Die() deletes the EventTry object - You then set onEvent to your function - after

Re: [Flashcoders] dispatching events from a class = HELP

2005-11-13 Thread Ian Thomas
You need to use a Delegate. As this is a question which comes up about one a week on this mailing list (not your, fault, I know!) I'm afraid I'm going to direct you to the Flashcoders Wiki page about the problem rather than answer you in full here... http://www.osflash.org/flashcoders/as2 Hope

Re: [Flashcoders] dispatching events from a class = HELP

2005-11-13 Thread Ian Thomas
You need to use the Delegate in your addEventListener line - because you're passing clickTab to a completely different object, which will later call back to clickTab, but doesn't have the correct context. Passing this.clickTab isn't enough - passing Delegate.create(this,clickTab) should be enough.

Re: [Flashcoders] Pulling Hair/Need Return Values

2005-11-14 Thread Ian Thomas
Sander, Probably worth switching these two lines around: myXML.load (sourceXML); myXML.onLoad = function (success){ doSomethingWithData (myXML) }; to become: myXML.onLoad = function (success){ doSomethingWithData (myXML) }; myXML.load (sourceXML); Because then you're sure onLoad is set by the

Re: [Flashcoders] Math.random()

2005-11-17 Thread Ian Thomas
If this was connected to prizes/tournaments, from what I remember it depends on whether the user pays to play or not; and the laws of the country that your site is hosted in. From a UK perspective, if the user paid to play you'd need a gaming and/or gambling license (gaming for fixed-odds,

Re: [Flashcoders] Stopping sounds inside the loaded SWF.

2005-11-17 Thread Ian Thomas
From memory... Assuming myClip was a reference to the loaded MovieClip: new Sound(myClip).stop(); HTH, Ian On 11/17/05, Dhiraj Girdhar [EMAIL PROTECTED] wrote: Hello, I have a SWF file which contains sound (whether in the form of sound object or streaming). I loaded that SWF in another

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Ian Thomas
On 11/17/05, Tim Stickland [EMAIL PROTECTED] wrote: One thing that I noticed in your example code was that you called methods of the parent class using super.method() rather than this.method(). I wasn't aware you could do that, but it certainly makes reading the code more straightforward.

Re: [Flashcoders] Stopping sounds inside the loaded SWF.

2005-11-18 Thread Ian Thomas
If the sounds are embedded in the timeline, it may be possible to replay them just by doing a myClip.gotoAndPlay(1) If they're ActionScript based sounds, it entirely depends on the ActionScript in the child movie. Again, depending on the code, myClip.gotoAndPlay(1) might work. HTH, Ian On

Re: [Flashcoders] Inheritance and super()

2005-11-18 Thread Ian Thomas
Why not try it and find out..? I actually don't know about Flash off the top of my head - I suspect it would work (i.e. the overridden function would be called). But it's worth a try. In some OOP languages (notably C++ when dealing with virtual functions/abstract classes) this causes lots of

Re: [Flashcoders] Drawing gradients

2005-11-18 Thread Ian Thomas
Haven't tried it - but how about drawing 4 boxes on top of each other, each one with a gradient going from full colour (in the corner - alpha 255) to fully transparent (alpha 0) in the opposite corner? You never know, it might work. :-) Ian On 11/18/05, Claudia Barnal [EMAIL PROTECTED] wrote:

Re: [Flashcoders] Drawing gradients

2005-11-18 Thread Ian Thomas
posted. To get all that in ActionScript, look up MovieClip.beginGradientFill() in the docs - combine it with moveTo() and lineTo() and it should all be fairly easy. HTH, Ian On 11/18/05, Ian Thomas [EMAIL PROTECTED] wrote: Haven't tried it - but how about drawing 4 boxes on top of each other

[Flashcoders] embedFonts oddity

2005-11-18 Thread Ian Thomas
(MX2004) I'm having a bit of trouble with embedFonts (but not the usual 'can't find font' trouble!). I have a bunch of perfectly happily working dynamic TextFields, all created in ActionScript. They are all multiline, with wordWrap turned on. They work perfectly well if I'm not using am

Re: [Flashcoders] embedFonts oddity

2005-11-21 Thread Ian Thomas
Mike, I don't _think_ so - this is a dynamically created TextField object. I can't immediately find an AS property (rather than the UI's checkbox) to control kerning. Any pointers? Doesn't seem obvious under TextField or TextFormat... Cheers, Ian On 11/21/05, Mike Mountain [EMAIL PROTECTED]

Re: [Flashcoders] embedFonts oddity

2005-11-21 Thread Ian Thomas
Hi Judah, Thanks for that, but unfortunately I couldn't see any solutions in what you wrote. The embedding itself is working fine - the text is definitely appearing using the embedded font. The problem is simply that word-wrapping doesn't work when embedFonts=true - but does work when it's false.

Re: [Flashcoders] embedFonts oddity

2005-11-21 Thread Ian Thomas
Hi Mike, No, it is on the MX04 props panel too - just it's greyed out for dynamic fields. Cheers, Ian On 11/21/05, Mike Mountain [EMAIL PROTECTED] wrote: Sorry, just read that you're using MX04 - the Auto kern checkbox is on the props panel for flash 8, I'll go back to sleep... M

Re: [Flashcoders] embedFonts oddity (SOLVED)

2005-11-22 Thread Ian Thomas
Hi Judah, I'm afraid your solution wasn't really addressing my problem - although the tutorial looks fine, I'd already successfully embedded fonts. My problem was that when embedFonts=true was turned on using ActionScript, the last line of a TextField would stop wrapping for no apparent

Re: [Flashcoders] Creating a button class entirely in 2.0 with no symbol association, possible?

2005-11-24 Thread Ian Thomas
On 11/24/05, Boon Chew [EMAIL PROTECTED] wrote: Thanks Janis. The problem with doing it below is that you cannot change _x, _y directly on the mc like you can with a regular movieclip. var b = new myButton(); b._x = 200; -- won't work Boon, You're quite correct - however the

[Flashcoders] Yet more ComboBox woes (MX04)

2005-11-25 Thread Ian Thomas
This component is really rubbish - I've previously had all sorts of problems with it, mostly to do with the dropdown not appearing. This I fixed with _lockroot and putting a ComboBox on the stage of my loading movie. That works, and has been fine for ages. Now I've had to move my ComboBox, and

Re: [Flashcoders] Delegate scope - superclass issue?

2005-11-28 Thread Ian Thomas
I've never had that problem. Try removing the this from this.myFunction. Shouldn't make any difference - but I don't use it, and, as I said, I don't have the problem. :-) HTH, Ian On 11/28/05, Nikolaj Selvik [EMAIL PROTECTED] wrote: Hi, Thanks for welcoming me to your list! I´ve run

Re: [Flashcoders] Load/export Symbol in ActionScript

2005-11-29 Thread Ian Thomas
Hi Juguang, I posted the following about a week ago - I think it's what you're after: -- Can't remember where I got this solution - definitely not mine - but here's how to create a MovieClip-derived class that doesn't need an associated library symbol:

Re: [Flashcoders] Load/export Symbol in ActionScript

2005-11-29 Thread Ian Thomas
Hi Juguang, Try replacing the line: public static var symbolName:String=RMC; with: public static var symbolName:String=__Packages.RMC; HTH, Ian On 11/29/05, de-hack SWF [EMAIL PROTECTED] wrote: Hi Ian, thanks! But I have read such code many times and in many forum. However, my this

Re: [Flashcoders] Load/export Symbol in ActionScript

2005-11-30 Thread Ian Thomas
] wrote: On 11/30/05, Ian Thomas [EMAIL PROTECTED] wrote: Hi Juguang, Try replacing the line: public static var symbolName:String=RMC; with: public static var symbolName:String=__Packages.RMC; HTH, YTH! (Yes, that helps) My week-lasting exhaust is breezed away. Many thanks

Re: [Flashcoders] Q: html and flash

2005-12-01 Thread Ian Thomas
Alternatively you can set flashVars in the containing object or embed tags - Google for flashVars. I'd imagine with SharedObject you'd run into problems if (for example) you had two different browser windows open. HTH, Ian On 12/1/05, Mischa Williamson [EMAIL PROTECTED] wrote: You can use

Re: [Flashcoders] Display same value in 3 fields

2005-12-08 Thread Ian Thomas
Have you investigated the string table? (Press CTRL+F11 in authoring) We use the MX04 string table alongside a (heavily modified) version of the built-in Locale code all the time. We also use our own handrolled XML string tables (just files full of tagged-up string resources), depending on the

Re: [Flashcoders] Display same value in 3 fields

2005-12-08 Thread Ian Thomas
No, there's no way of avoiding the external XML files without a lot of fudging with the code. Sounds like your best bet would be to simply create a look-up table somewhere in your code - as a static singleton if needs be. e.g. class Strings { public var static MENU_TITLE:String=Main Menu;

Re: [Flashcoders] Turning off flash mx UIScrollBar when nothing to scroll.

2005-12-12 Thread Ian Thomas
Grant, That's the second time it's come through. You've posted a local URL that links to a file on your machine's D drive. So people can't actually look at your content. Cheers, Ian On 12 Dec 2005 14:32:32 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Resent as it never got to the

Re: [Flashcoders] Success Stories with Flash Friendly CVS Systems?

2005-12-12 Thread Ian Thomas
I also use SVN/Subversion. I worked with CVS for years, and really do recommend SVN rather than CVS, as SVN is (as the authors state) CVS redesigned from the ground up to solve some of its basic issues. Workflow wise - nothing fancy. We have a top-level shared-classes folder and a bunch of

Re: [Flashcoders] Linkage nightmares

2005-12-13 Thread Ian Thomas
We use a vaguely similar method for theming our applications. These are very simple apps which have (as standard) navigation buttons, minimize buttons, settings, help dialogs, exit dialogs etc. All the dialog items, happily, are _above_ (in display depth) the functionality of the main app. So all

Re: [Flashcoders] Version control software?

2005-12-13 Thread Ian Thomas
Iestyn, If you look back over the last couple of days of posts, lots of people have been talking about this already (see under 'Workflow')... The general consensus seems to be to use Subversion (also called SVN). I myself use it all the time; it solves many of the problems CVS used to have.

Re: [Flashcoders] Linkage nightmares

2005-12-13 Thread Ian Thomas
Hi Jim, No, not loadMovieNum - just loadMovie. This is horribly simplified - but let's just say that our 'container' movie takes care of loading, and has two layers: _appLayer=createEmptyMovieClip(app,getNextHighestDepth());

Re: [Flashcoders] Version control software?

2005-12-13 Thread Ian Thomas
Hi Danny, SVN and CVS work happily for remote access, too... Cheers, Ian P.S. Bought the book, by the way - just haven't had time to read it. :-) On 12/13/05, Danny Kodicek [EMAIL PROTECTED] wrote: We've been quite happy with FTPVC, which is a system based on your FTP site. It's very

Re: [Flashcoders] Embedded fonts vs. Html : Can anybody enlighten me

2005-12-13 Thread Ian Thomas
No - it's just that as far as Flash embedding is concerned Verdana Italic is _different_ from Verdana. What you need to do is embed both versions of the font - Verdana Italic and Verdana. The easiest way to do that is to stick a dynamic textfield offstage, and put two lines of text in it. Set it

Re: [Flashcoders] onload(Success:Boolean) - what's it mean?

2005-12-15 Thread Ian Thomas
HI Andreas, I have definitely had issues where declaring the two in the wrong order has meant that the onLoad doesn't get called. Can't remember specifics - but there are definitely cases where it's a problem. (From what I remember, executing within Zinc and loading from the local file system

Re: [Flashcoders] flash and cfm

2005-12-20 Thread Ian Thomas
You could try using flashVars instead of appending the parameters to the end of the URL. I don't think flashVars has a limit. May be less hassle than switching to Remoting. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Cheers, Ian On 12/19/05, Corban Baxter [EMAIL

Re: [Flashcoders] Flash webservice puzzle

2005-12-20 Thread Ian Thomas
Surely all you need to do is just name the placeholder MovieClip instances appropriately? So if the database returns a seat identifier, then access a clip named seat_someID with: var seatClip:MovieClip=myTimeline[seat_+seatID]; where we assume seatID is a string returned from the database (e.g.

Re: [Flashcoders] Combo troubles

2005-12-22 Thread Ian Thomas
You might also need to set the combobox._lockroot=true to cure other standard combobox woes... Ian On 12/22/05, Steven Sacks [EMAIL PROTECTED] wrote: Put a combobox component in the loading movie (the root movie). ___ Flashcoders mailing list

Re: [Flashcoders] Files in directory?

2006-01-06 Thread Ian Thomas
Alternatively, if you're looking in a directory on a server, code up something in a server-side language - PHP or whatever - to do the file count, and have flash request the result. HTH, Ian On 1/6/06, Merrill, Jason [EMAIL PROTECTED] wrote: http://www.multidmedia.com/software/zinc/

Re: [Flashcoders] Classes being cached - deleting ASO does help (flash 8)

2006-01-07 Thread Ian Thomas
Is the movie you're having trouble with loaded into another containing movie? And has that other containing movie got references to a version of the class you're changing? In which case you need to recompile that containing movie, too. Flash always uses the first version of the class that it

Re: [Flashcoders] SEO, flash site, url and text in this movie tags

2006-01-11 Thread Ian Thomas
This seems a pretty relevant link: http://www.webpronews.com/ebusiness/seo/wpn-4-20040907GoogleCanNowIndexFlashAnInterviewwithMichaelMarshall.html HTH, Ian On 1/11/06, Alan MacDougall [EMAIL PROTECTED] wrote: No way. Google is way too smart these days. White text on a white background,

Re: [Flashcoders] [ANN] FlashDevelop beta8 release

2006-01-13 Thread Ian Thomas
I've been using FlashDevelop for about a week now; it's excellent stuff. Nice and lightweight and just seems to work. Cheers, Ian On 1/12/06, Philippe [EMAIL PROTECTED] wrote: The only thing I miss comparing to PrimalScript (that I've been using before I've got known FlashDevelop ) is

Re: [Flashcoders] Fullscreen Flash issue

2006-01-16 Thread Ian Thomas
Mike, Where is this code? Just on the root timeline? Are you sure the repositioning you're getting isn't a result of the normal Flash resizing/scaling and that this code _is_ being called twice? Cheers, Ian On 1/16/06, Mike Boutin [EMAIL PROTECTED] wrote: I am working on a fullscreen flash

Re: [Flashcoders] Documenting my code

2006-01-18 Thread Ian Thomas
We've jsut started using AS2API - http://www.badgers-in-foil.co.uk/projects/as2api/ - which works fine for us on Windows (but had issues on Linux, sadly, although I think that's because our Linux box needs a good cleanup). Cheers, Ian On 1/18/06, eric dolecki [EMAIL PROTECTED] wrote: BLDoc

Re: [Flashcoders] Documenting my code

2006-01-18 Thread Ian Thomas
want. Sorry I couldn't be of more help! Ian On 1/18/06, Alan MacDougall [EMAIL PROTECTED] wrote: Ian Thomas wrote: We've jsut started using AS2API - http://www.badgers-in-foil.co.uk/projects/as2api/ - which works fine for us on Windows (but had issues on Linux, sadly, although I think

Re: [Flashcoders] Documenting my code

2006-01-19 Thread Ian Thomas
As far as I can see from the front page (Roadmap panel) it doesn't yet support JavaDoc as a style, which is a shame... On 1/18/06, ryanm [EMAIL PROTECTED] wrote: Or, can anyone suggest an alternative software that takes the java-doc style comments and create documentation? Check out

Re: [Flashcoders] Documenting my code

2006-01-19 Thread Ian Thomas
The keywords @param, @see, @return all have special meaning to JavaDoc based tools (as well as a host of other @commands). In my limited tests of NaturalDocs it looks like it doesn't support those special meanings- which is why the front page of the NaturalDocs site says that JavaDoc is still to

Re: [Flashcoders] Documenting my code

2006-01-19 Thread Ian Thomas
Hi Martin, Rather like you - all I have is a script which runs once nightly as a cron job, does an update from SVN, then calls the doc tool and copies the generated docs into a folder hosted by the webserver. Nothing complicated. I'd be interested in seeing a decent AS2 config for Doxygen

Re: [Flashcoders] Re: Search engine indexable Flash content; anyone with insight please help!

2006-01-19 Thread Ian Thomas
Um. Why? And have you any concrete examples of that sort of ban? Just seems like an extremely odd decision by Google. Cheers, Ian On 1/19/06, Johannes Nel [EMAIL PROTECTED] wrote: a word of caution. google can ban you for using ripple. ___

Re: [Flashcoders] Documenting my code

2006-01-20 Thread Ian Thomas
Looks good - but sadly doesn't support inheritance: http://www.senocular.com/projects/ZenDoc/doc/#manual_limitations Which is a real shame. The hunt for the perfect documentation tool goes on. :-) (At this rate I might be forced to write one. ;-) ) Ian On 1/20/06, Duncan Reid [EMAIL

Re: [Flashcoders] Documenting my code

2006-01-22 Thread Ian Thomas
Looks good! Any chance of a command-line driven version so that I can achieve my goal of having server-side generated documentation on my SVN box..? Cheers, Ian On 1/22/06, Sam Wootton [EMAIL PROTECTED] wrote: Yes, its written in Java. Regards, Sam

Re: [Flashcoders] Documenting my code

2006-01-22 Thread Ian Thomas
Sorry, didn't understand that one... I have already tested as2api - and unfortunately it comes up with a bunch of errors on the Linux box and produces no output. Ian On 1/22/06, erixtekila [EMAIL PROTECTED] wrote: Any chance of a command-line driven version so that I can achieve my goal of

Re: [Flashcoders] getting the name of an object

2006-01-23 Thread Ian Thomas
Andreas, Just sight-reading the code rather than testing it - shouldn't there be a === or !== in there somewhere to make sure you're talking about _exactly_ the same object rather than one which just has the same value..? Cheers, Ian On 1/23/06, Andreas Weber [EMAIL PROTECTED] wrote: If

Re: [Flashcoders] Font Preview In ComboBox

2006-01-23 Thread Ian Thomas
Rishi, There is such a thing as 'unreasonable requirements', you know. :-D Could you break down the font list, and present it to the user in sections? For example, Handwriting Fonts, Electronic Fonts or something - or even A-D, E-F etc. Then at least you could load the previews in smaller

Re: [Flashcoders] getting the name of an object

2006-01-23 Thread Ian Thomas
Hm. Good point, and something I should go away and test. :-) I had it in my head somewhere that Flash did a low-level crude equality check on objects with == - are they both the same type and do the properties match? But I may well have misremembered that as a feature of a different language - I

Re: [Flashcoders] getting the name of an object

2006-01-23 Thread Ian Thomas
For the reasons given by Danny et al, you could never have a myObj.getString() such as you describe... other than possibly for debugging purposes, I'm at a loss to work out why it'd be useful? Ian On 1/23/06, Julius - XK [EMAIL PROTECTED] wrote: Is this what your looking for? It has it's

Re: [Flashcoders] Strange text scaling issue

2006-01-25 Thread Ian Thomas
Hi Danny, Don't know of any relevant scaling property - but are you using embedded fonts? If not, at a guess it could be rendering using device/system fonts and messing up the scaling? HTH, Ian On 1/25/06, Danny Kodicek [EMAIL PROTECTED] wrote: I'm getting something odd: When I rescale my

Re: [Flashcoders] checking combinations

2006-01-26 Thread Ian Thomas
Or even shorter: public function handleUpdate(a:Object,b:Object,c:Object,d:Object) { var handlerName:String = 'onUpdate'; if (a.selected){handlerName+= 'A'}; if (b.selected){handlerName+='B'}; // etc. if (this[handlerName]==undefined) { trace(We haven't

Re: [Flashcoders] Slice 9 Question

2006-01-26 Thread Ian Thomas
Create a container movieclip, stick the Slice9 object in as a background, put the other object in as a sibling to it? So instead of: Slice9 + MyImportantClip have Container + Slice9 | + MyImportantClip HTH, Ian On 1/26/06, Michael Byström [EMAIL PROTECTED] wrote:

Re: [Flashcoders] Fullscreen flash

2006-01-26 Thread Ian Thomas
Hi Mike, It's a Known Feature with Firefox. It's not strictly speaking a bug - the browser doesn't know how high the document is supposed to be, because there's no sized content in the document. Try sticking this in the head style body,html { margin:0px; padding:0px; height:100%; }

Re: [Flashcoders] Gotcha: F8 Security Model

2006-01-27 Thread Ian Thomas
Clark, That's because www.fred.com need not point to the same server as fred.com. At all. They can be routed to totally different machines. Cheers, Ian On 1/27/06, clark slater [EMAIL PROTECTED] wrote: There's obviously no question about the value of the security sandbox and the

Re: [Flashcoders] Constructing XML

2006-01-29 Thread Ian Thomas
Hi Sam, Just run it through the PHP function stripslashes() before parsing it. Cheers, Ian On 1/29/06, Sam Wootton [EMAIL PROTECTED] wrote: Hi, Thanks in advance for any help. I am constructing an XML file in Actionscript, here is a little bit that cycles through an array, producing

Re: [Flashcoders] Flash Tree Not Clickable

2006-01-31 Thread Ian Thomas
Place another movieclip over the top of it, 100% alpha, with onRelease set to a dummy function? On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a tree and to Buttons to navigate to tree (up and down). Now I need to make the tree not clickable. A user may only navigate with the

Re: [Flashcoders] Flash Tree Not Clickable

2006-01-31 Thread Ian Thomas
Sorry, I meant 0% alpha, of course. :-) Ian On 1/31/06, Ian Thomas [EMAIL PROTECTED] wrote: Place another movieclip over the top of it, 100% alpha, with onRelease set to a dummy function? ___ Flashcoders mailing list Flashcoders

Re: [Flashcoders] Flash Tree Not Clickable

2006-01-31 Thread Ian Thomas
Why will they think there's something to be clicked? Set .useHandCursor to false on the blocking clip? Cheers, Ian On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know, but then users will still think there's something to be clicked... Isn't there a way to access the movieclips

Re: [Flashcoders] Flash Tree Not Clickable

2006-01-31 Thread Ian Thomas
Lieven, No problems. Masking things out with a clip might feel a bit like cheating, but I'm all for 'do the simplest thing that works...' Cheers, Ian On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yep, Ian, I'v been programming Flash now for a year, and didn't know there was a

Re: [Flashcoders] ConvolutionFilter performance

2006-01-31 Thread Ian Thomas
I definitely get better performance out of Convo rather than Blur in both Firefox and IE on Win XP. Cheers, Ian On 1/31/06, franto [EMAIL PROTECTED] wrote: in your performance test in Firefox, all seems same for me, little bit blur has slower but CPU usage on blur: 38-40 % on convo: 34 -

Re: [Flashcoders] ConvolutionFilter performance

2006-01-31 Thread Ian Thomas
Hrm. I get: blur filter time : 11032 convolution 3x3: 10144 convolution 5x5: 37781 no filter : 7510 Win XP, 3GHz, 512MB RAM I wonder if it's a graphics card/hardware acceleration thing. (I have a rubbish graphics card.) Ian On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: so, please

Re: [Flashcoders] com.ge package throws compile error?

2006-01-31 Thread Ian Thomas
Greater than or Equal to for Strings. http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary374.html Existed only in Flash 4. Cheers, Ian On 1/31/06, John Grden [EMAIL PROTECTED] wrote: **Error**

Re: [Flashcoders] Tell me more about _global

2006-01-31 Thread Ian Thomas
That is, of course, one way to do it. If you want to throw out all your type-checking and the like. Personally I like to make the compiler do as much of my error-checking as possible, rather than having to hunt through by hand - so prefer to be 'lame'. Particularly because I'm providing a

Re: [Flashcoders] Free Flex???

2006-02-01 Thread Ian Thomas
That's absolutely brilliant news. Ian On 2/1/06, David Rorex [EMAIL PROTECTED] wrote: yes, the command-line compiler framework will be free. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
Um... not quite sure what you're up to here - but it sounds like you're getting a bit confused between IWorldPart and WorldPart. What you need is: interface IWorldPart class SomeWorldPartSubclass implements IWorldPart then var myPart:IWorldPart = new SomeWorldPartSubclass(); should be fine.

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
No, you can't instantiate an interface. But I don't think Hans was doing that. There's no problem with typing: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:IWorldPart = new SomeWorldPartSubclass(); /* Note INTERFACE-typed var, not concrete */

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
Then as Steve says, sounds like a compiler bug. Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, No confusion here ;) except maybe for my fuzzy explanation ;). I did: interface IWorldPart class WorldPart implements IWorldPart class SomeWorldPartSubclass extends WorldPart then

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
But it should. :-) Like I said, my quick test of var myPart:SomeInterface=new SomeConcreteImplementingSomeInterface(); trace(myPart instanceof Object); Traces 'true'. Which is what I'd expect. I really don't understand why you're getting an error with myCollection. I know you've solved your

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
MX2004 Cheers, Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi Ian, Which flash version are you using? I had other problems yesterday with extending CollectionImpl due to my flash version (mx 2004), which worked just fine in flash 8. Might be the same in this case. Are you

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
'Fraid not. One to chalk down to experience, I guess. Oh well. I'm making the move to 8 shortly myself, once this latest crop of projects are out of the way... Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Life is so unfair :) I had to switch to flash 8 to make it go away... My mind

[Flashcoders] Seeking a bit of drawing API inspiration...

2006-02-01 Thread Ian Thomas
Hi folks, I'm looking for a bit of inspiration to help me out with the drawing API. I've got a feature that's sort of like a painting tool - - User clicks the mouse - on mouse move, a filled circle is drawn on the canvas (using beginFill/curveTo/endFill) - User releases the mouse So essentially

Re: [Flashcoders] Naming conventions for AS2.0 ...

2006-02-02 Thread Ian Thomas
In the days of old compilers and IDEs I used to use complicated naming conventions - including the (horrible) Hungarian notation mentioned above (But it did help at the time. I think. When wading through piles of someone else's mangled C code.). Now with more sensible IDEs that can do

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
Hi Gregory, Thanks for that. I am basically plotting/drawing a circle at each point the mouse moves to while clicked. (This isn't a paint package, it's for something else entirely - which is why I'm not drawing lines...) I had already got as far as trying rectangles - they are indeed a lot

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Ian Thomas
Hi Franto, As far as I understand it, 'import' isn't enough to get a class compiled into your .swf. The line: import sk.sowhat.linuxPlayer.play4dogs.Test; just tells the compiler that any mention of the word Test in your code will refer to that class. If the class isn't compiled into the SWF,

Re: [Flashcoders] Naming conventions for AS2.0 ...

2006-02-02 Thread Ian Thomas
On 2/2/06, Adrian Lynch [EMAIL PROTECTED] wrote: Also, if you're working on a project with others, be consistent with each other. If it's a fresh project, have a chat about what to use. If you're coming on board you might be more inclined to follow what's already there. Amen. If you're

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
/2/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Gregory, Thanks for that. I am basically plotting/drawing a circle at each point the mouse moves to while clicked. (This isn't a paint package, it's for something else entirely - which is why I'm not drawing lines...) I had already got

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Ian Thomas
Whoops - I'm being dim. These will work just as well: import sk.sowhat.linuxPlayer.play4dogs.Test; var dummyVar:Function=Test; or var dummyVar:Function=sk.sowhat.linuxPlayer.play4dogs.Test; (with no import) Ian On 2/2/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Franto, As far as I

  1   2   3   4   5   6   7   8   >