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] 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] 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] 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] 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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

<    3   4   5   6   7   8