RE: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director- SWFStudio - .NET)

2006-04-12 Thread Lieven Cardoen
Yes, maybe Flash isn't the best choice, but I don't see me making interactive/flashy applications in java. The contents of the cd/application can also be viewed online, but that's a rather static environment (not to be distributed with a book). Flash is nice because a Grafical Designer can do the

[Flashcoders] happy passover :)

2006-04-12 Thread dan
http://www.tipo.co.il/apps/special/pesach.asp ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Adrian Park
Hey Julian, With your example, this should work (I've just tested a similar class instantiation in one of my classes): var anObject = new eval(org).eval(foo).eval(Bar)(); You can pass parameters in the final set of braces as usual. HTH Adrian P. On 4/12/06, Julian 'Julik' Tarkhanov [EMAIL

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Steve Webster
Hi Julian, A simple question perhaps but couldn't figure it out by myself. How can I instantiate a class having it's qname? Say I know that I need an instance of org.foo.Bar, how can I summon it? I tried doing: var anObject = new (eval(org.foo.Bar)); but I get undefined in return. Maybe

[Flashcoders] Help with swapdepths

2006-04-12 Thread Gaia-Tek
Hi Group, I'm having a problem with a seemingly simple task... I'm trying to get whichever movieclip on my stage is clicked on, to swapDepths to the top, and be draggable... My code is: on (press) { this.swapDepths(this.getNextHighestDepth()); startDrag(this); } on (release) {

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Chris Velevitch
var qname:String = org.foo.Bar; var x = new qname (); Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Steve Webster
Hi Chris, var qname:String = org.foo.Bar; var x = new qname (); That won't work. Did you mean: var qname:String = org.foo.Bar; var x = new eval(qname)(); -- Steve Webster Head of Development Featurecreep Ltd. http://www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH 0117 905 5047

Re: [Flashcoders] Help with swapdepths

2006-04-12 Thread GregoryN
Maybe you should try: this.swapDepths(this._parent.getNextHighestDepth()); OR this.swapDepths(_root.getNextHighestDepth()); instead of this.swapDepths(this.getNextHighestDepth()); ? -- Best regards, GregoryN http://GOusable.com

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Chris Velevitch
Are you sure? If it doesn't, then var theCommand = new commands [ commandNameToCheck ] (); definite does. It's used in ARP. On 4/12/06, Steve Webster [EMAIL PROTECTED] wrote: Hi Chris, var qname:String = org.foo.Bar; var x = new qname (); That won't work. Did you mean: var

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Cedric Muller
the following would work too(though very ugly): code1 import org.foo.Bar; var qname:String = org.foo.Bar; var x = new _global[qname](); /code1 anyway, if you don't do the import, you cannot instanciate the Bar class ... OR *just* reference the class ;) (no

[Flashcoders] Old Flashplayer Standalone

2006-04-12 Thread Sönke Rohde
Hi, I am looking for older Flash Players standalone. I got http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14266 which only offers the different plugin-versions. Are the .exe-Players available too? Thanks, Sönke ___

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Steve Webster
Hi Chris, Are you sure? Yup :o) If it doesn't, then var theCommand = new commands [ commandNameToCheck ] (); definite does. It's used in ARP. I'd wager that 'commands' is an array of constructor function object references, stored by name, as opposed to an array of strings which

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Dan Efergan
Kind of yes and no... (Hello to the group by the way, new here) Please excuse my lack of correct terminology, and number of assumptions, I think... Once you understand the underlying structure of Flash, you realise that referencing properties, variables, and commands is very similar to

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Adrian Park
Of course, I was wrong (where's my head at?!). I can get several of the eval() and [] options to work but, out of curiosity, how would you pass parameters with the constructor? I can't seem to do this with my tests. Apologies if this is a dumb q'. Adrian P. On 4/12/06, Cedric Muller [EMAIL

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Cedric Muller
you could have a 'paramsObj' Object that stores parameters ? var myStr:String = org.foo.Bar; var paramsObj:Object = new Object(); paramsObj.name = robert; paramsObj.age = 12; var myInstance:Object = new _global[myStr](paramsObj); var theCommand = new commands [ commandNameToCheck ] ();

Re: [Flashcoders] Active X and Microsoft IE ...

2006-04-12 Thread andrew . lucking
|-+- | | John Dowdell | | | [EMAIL PROTECTED] | | | Sent by: | | | [EMAIL PROTECTED]| | | figleaf.com

Re: [Flashcoders] Active X and Microsoft IE ...

2006-04-12 Thread John Grden
I have to ask, now that I've gone out to see the active content center, what's the active part? I mean, is it the send feedback option? I feel like a tard asking this, but apparently it's not obvioius to me, and so, I'm guessing it's not obvious to some others either. One thing that's missing

[Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Magnus Askenbäck
Hi all, I'm trying to build a quite simple text editor in f8 and are currently having some problems with the Selecton class. If anyone can give me some pointers it would be much apreciated. Problem is that whenever I try to use my buttons I loose focus of the textField and the Selection

Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Paul BH
if memory serves, this exact thing is covered in Sam Wan's book on OO programming in actionscript its quite an old book, and the code is AS1, but for what you're doing I think it might just get you where you wanna go... url for the booko:http://www.wheelmaker.org/ On 4/12/06, Magnus Askenbäck

Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Magnus Askenbäck
Tack Johan, that worked like a charm! =) .m Johan Karlsson wrote: If I remember correctly using onRelease or even onPress is to late and the selection is already gone. To store the selection indexes you need to use the onMouseDown event. -Original Message- From: [EMAIL PROTECTED]

Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Marcelo Volmaro
That´s right, because once you hitted the button, the selection is the button. You need to store the start/end index somewere and then, on the button, use that indexes instead of the Selection functions. An easy way could be to assign into an onEnterFrame a function that checks if the

RE: [Flashcoders] Old Flashplayer Standalone

2006-04-12 Thread Johan Karlsson
If you can get your hands on older trial versions of flash you should get the standalone player along with it. I did a quick google and found MX 2004 trial here: http://download.macromedia.com/pub/flash/esd/flashmx_trial_en.exe /Johan -Original Message- From: [EMAIL PROTECTED]

RE: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Giles Taylor
I got round this this by adding a mouse listener to the textField and checking onMouseDown that the mouse was pressed within the text area, if it was then onRelease gets the selection (getCaret(), getBeginIndex() getEndIndex()) and stores it in variables so it can be recalled later. This

Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Michael Bedar
I did this a long time ago, and as others have said, you need to use an onMouseDown. You will still lose your selection however.. I ended up storing the selection begin and end an using that to set the selection again after I applied the style. Mike On Apr 12, 2006, at 8:46 AM, Magnus

Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Steve Webster
Julian, The problem is - I got to have new someClass somewhere in my code for the other layouts to appear under _globals, after which I can properly instantiate them. You just need to reference the class, so variables like this... var hLayoutRef:Function = Horizontal; var

RE: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Jim Tann
Shouldn't that be a params array? var myStr:String = org.foo.Bar; var paramsArr:Array = new Array(robert, 12); var myInstance:Object = new _global[myStr](paramsArr); Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cedric Muller Sent: 12 April 2006

RE: [Flashcoders] old Flash Player

2006-04-12 Thread Beverly Guillermo
Hi, Have you tried http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14266 It has all the old flash players. Beverly -Original Message- From: Mark Lorah [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 04/12/06 11:44 AM Subject:

Re: [Flashcoders] Help with swapdepths

2006-04-12 Thread Gaia-Tek
I'll try it, thanks a lot... GregoryN wrote: Maybe you should try: this.swapDepths(this._parent.getNextHighestDepth()); OR this.swapDepths(_root.getNextHighestDepth()); instead of this.swapDepths(this.getNextHighestDepth()); ? ___

Re: [Flashcoders] old Flash Player

2006-04-12 Thread Mark Lorah
Many Thanks. I had found this a couple months ago and could never get back to it. -M On Apr 12, 2006, at 11:55 AM, Beverly Guillermo wrote: Hi, Have you tried http://www.macromedia.com/cfusion/knowledgebase/ index.cfm?id=tn_14266 It has all the old flash players. Beverly

[Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Mike Anderson
Hello All, I have a Flash App, that uses a Non-Scaling type setup - in which upon browser resize, the controls simply reposition themselves around, creating more usable area for content. It's works beautifully, but with a catch. The problem is, my application insists on starting out at it's

Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Julian 'Julik' Tarkhanov
On 12-apr-2006, at 17:05, Ian Thomas wrote: Import doesn't actually use the class per se - a solid reference of some sort (such as the declaration of a variable or the creation of an object) of that class suddenly means that it's actually been used, and so the compiler notes that it needs to

Re: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Ryan Matsikas
manually call your onResize method in your main Mc's onLoad. On 4/12/06, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, I have a Flash App, that uses a Non-Scaling type setup - in which upon browser resize, the controls simply reposition themselves around, creating more usable area for

RE: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director -SWFStudio - .NET)

2006-04-12 Thread kariminal
I've made tons of dual boot CD's using Flash/Director ( which now has the Xtra for flash 8 ), and I found it's the best tool out there for extending flash. of course that would depend on your personal preference.. you can extend flash with wxPython, C#, visual basic, there is a long list... Then

Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Julian 'Julik' Tarkhanov
On 12-apr-2006, at 19:10, Scott Hyndman wrote: SWF is more flexible than you give it credit for. A swf can reference external resources just as a jar can. You can, in effect, write your own class loader that satisfies dependencies at runtime just by splitting all your classes into

RE: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director-SWFStudio - .NET)

2006-04-12 Thread Steven Sacks
I highly recommend mProjector. It's the best 3rd party wrapper out there, IMO, and I've tried them all. It's the easiest and smartest to code with, it has the best performance hands down, does asynchronous communication with the OS, allows you to package all your swfs into the executable is now

RE: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Mike Anderson
Hello, Thanks for the suggestion, but I tried in that in the meantime. 2 very undesired things happen: 1) The movie components are still in the exact same spots. 2) The bottom StatusBar actually is 1-inch shorter - this not even reaching to the other side of the

Re: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Michael Bedar
Maybe i'm missing something, but why not just manually call your resize function at runtime? On Apr 12, 2006, at 12:44 PM, Mike Anderson wrote: Hello All, I have a Flash App, that uses a Non-Scaling type setup - in which upon browser resize, the controls simply reposition themselves

RE: [Flashcoders] Help with swapdepths

2006-04-12 Thread Steven Sacks
Also, don't use on-clip methods like on (press) or on(release) That's for non-coders who are making banner ads. Instead, put your code in the timeline: btn.onPress = function() { // }; btn.onRelease = function() { // }; You'll thank me for it down the line. It's never a good

RE: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread elr
Unfortunately, that`s hard to see where exactly video author (P. Minault) is clicking as he uses Captivate that is absolutely not synchro. But in the amfphp browser windows, I get the following error message when I test HelloWorld sample service Warning: Cannot modify header information -

Re: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Ryan Matsikas
I'm guessing yer having these issues in IE? Try waiting an extra frame or 2.. On 4/12/06, Mike Anderson [EMAIL PROTECTED] wrote: Hello, Thanks for the suggestion, but I tried in that in the meantime. 2 very undesired things happen: 1) The movie components are still in the exact

[Flashcoders] ScrollPane wont load contentPath ?

2006-04-12 Thread Isaac Rivera
Anyone experienced ScrollPane Denial Of Service Attack? Two movies. In one in both I post MM's example. In one it works, in the second one nada. The second one is the project Fla in interested in working with of course. this.createClassObject(mx.containers.ScrollPane, my_sp, 10);

Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread JesterXL
To force a class to be imported even if no one uses it: import com.company.project.YourClass; static private var depend:YourClass; - Original Message - From: Julian 'Julik' Tarkhanov [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April

RE: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Steven Sacks
To force a class to be imported even if no one uses it: import com.company.project.YourClass; static private var depend:YourClass; warden to the rescue! ___ This e-mail is intended only for the named person or entity to which it is

[Flashcoders] caret colour changes

2006-04-12 Thread quinrou .
Hi all, I am having a problem. The caret or i-beam seems to change colour in a flash text field according to the colour of the text where it is located. Now and then the caret takes the colour of the text it's in and sometimes not. This becomes an issue when the colour of the text is the same as

Re: [Flashcoders] Active X and Microsoft IE ...

2006-04-12 Thread John Dowdell
John Grden wrote: I have to ask, now that I've gone out to see the active content center, what's the active part? It's more like active content than active center... active content is a way to describe browser extensions such as Netscape Plugins, ActiveX Controls, and Java applets. It's not

Re: [Flashcoders] old Flash Player

2006-04-12 Thread John Dowdell
Mark Lorah wrote: Many Thanks. I had found this a couple months ago and could never get back to it. Understood. I use search terms like site:macromedia.com old players to find it again... flash player archive seems like it works now too, although this may be more jittery in month-to-month

RE: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Mike Anderson
The only problem is, it's a Single Frame application. I avoid multi-frame apps like the plague - because I have so many coding issues, and can't have controls residing on multiple frames (they must exist at all times, because they intercommunicate with each other, throughout the lifetime of the

RE: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Mike Anderson
I am really sorry Ryan - I put some more thought into what you had to say, and I got it to work. Tunnel vision is dangerous sometimes, and when you code a certain way for so long, it's hard to break out of your normal coding methods. So with that said, I simply inserted 5 blank frames - but

[Flashcoders] Accordion Sizing Weirdness

2006-04-12 Thread Mike Anderson
Hello All, I am confused about the Accordion Control, and how it's reacting to Resize Events. For example, a MenuBar Component - also a V2 Control, when I issue a Resize Event and give it new _width parameters, the control widens appropriately without any Menu Items distorting. Controls

Re: [Flashcoders] Accordion Sizing Weirdness

2006-04-12 Thread eric dolecki
in your onResize - have you tried setSize( w, h ) yet? also - I am using an accordion right now - some children contain listboxes, datagrids, etc. One cool thing I am doing is when the accordion is resizing, i am resizing the contents inside the children too - nice and tight. On 4/12/06, Mike

Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Julian 'Julik' Tarkhanov
On 12-apr-2006, at 19:59, JesterXL wrote: To force a class to be imported even if no one uses it: import com.company.project.YourClass; static private var depend:YourClass; Ok, now this looks classy! Forces the class to be burned in and yet shows why it's there. Thanks a bunch! --

RE: [Flashcoders] Accordion Sizing Weirdness

2006-04-12 Thread Mike Anderson
Oh no, I have not tried that method yet - In Flash, there are too many ways to skin a cat sometimes, and you get accustom to using certain methods of doing things. I was aware of that method, but never used it before. Using V2 Components, is using the setSize() Function, the preferred way to

[Flashcoders] Macbook pro issue

2006-04-12 Thread Patrick Matte
We have a performance issue here with the flash player on a brand new macbook pro. Our latest site that uses flash 8 progressive download video is running at less than 5 frames per second while it should play at 24 fps... Has anybody heard of any similar problem with that machine?

Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread Brett Wagner
The flash player for the intel macs is beta. I guess six months just isn't enough time to port the thing. _ b Patrick Matte wrote: We have a performance issue here with the flash player on a brand new macbook pro. Our latest site that uses flash 8 progressive download video is running at

Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread eric dolecki
i think you wanna pick up the universal binary beta for FP then try that On 4/12/06, Patrick Matte [EMAIL PROTECTED] wrote: We have a performance issue here with the flash player on a brand new macbook pro. Our latest site that uses flash 8 progressive download video is running at less than

Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread Mike Chambers
Make sure you have the most recent version: http://weblogs.macromedia.com/emmy/archives/2006/03/flash_player_8.cfm mike chambers [EMAIL PROTECTED] Patrick Matte wrote: We have a performance issue here with the flash player on a brand new macbook pro. Our latest site that uses flash 8

Re: [Flashcoders] caret colour changes

2006-04-12 Thread Michael Stuhr
quinrou . schrieb: Hi all, I am having a problem. The caret or i-beam seems to change colour in a flash text field according to the colour of the text where it is located. Now and then the caret takes the colour of the text it's in and sometimes not. This becomes an issue when the colour of

[Flashcoders] Clarification if Remoting is included with Flex 2.0

2006-04-12 Thread Mike Anderson
Okay, I've heard 2 different stories now - and I need to find out which one is true. In the core version of Flex 2.0 - is Remoting included with the basic package? OR is it not?? I need to find out now, if I am forced to lay out a bunch more cash, in order to simply talk to our ColdFusion

RE: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Steven Sacks
You do realize that toggling _visible does not release any memory, right? Flash still tracks the movieclip in memory, it just doesn't draw it. If you're building RIAs, you should open up your task manager and watch your memory usage over time to make sure you're not using too much. I have no

RE: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Mike Anderson
Oh yes, I absolutely understand that. I only use the visibility toggle, for extremely used Dialog Boxes - there is no point in instantiating them, and then killing them, over and over again - if I know for a fact that it will be used often. For like a Forms Based application (like a Masters

Re: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Ryan Matsikas
Mike, I'm a single frame flasher to.. its all I do.. you don't have to create empty frames in your fla. You can do something as simple as: this.onLoad = function():Void { var c:Number = 0; this.onEnterFrame = function() { if (c = 5) { // you pick a number that works...

RE: [Flashcoders] Manually triggering the Screens onResize event

2006-04-12 Thread Mike Anderson
Oh man, that works out BEAUTIFULLY!!! I never even thought about doing something like that. Thanks for that excellent information :) Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Matsikas Sent: Wednesday, April 12, 2006 3:47 PM To:

RE: [Flashcoders] Macbook pro issue

2006-04-12 Thread Dwayne Neckles
I have one and Flash is super slow on a macbook pro... disapointing Original Message Follows From: Patrick Matte [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: [Flashcoders]

RE: [Flashcoders] Macbook pro issue

2006-04-12 Thread Ettwein, Josh
Yes. It's running in an emulator (rosetta), correct? You're going to have performance issues with any software that's not optimized for the Mac intel chip, which is pretty much everything at this point, if I'm correct. I've actually heard that a lot of the pro apps like Motion, etc. won't even run

[Flashcoders] Trouble with dynamic binding dataset to datagrid cellrenderer

2006-04-12 Thread Bart Wttewaall
Hello FlashCoders, I've been trying to add Philippe Nomail's (or better known as Philiflash) cart-example (http://philflash.inway.fr/cart/cart.html) to a project of mine. But unfortunately I can't make use of databinding within the IDE. For that I used Hank Williams' DataSet to DataGrid dynamic

Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread John Dowdell
[NB: This new thread was started as a reply to a conversation on accordion sizing... using New Message for a new thread, rather than Reply to this Message in the emailer, can help make new conversations more visible. http://chattyfig.figleaf.com/pipermail/flashcoders/2006-April/thread.html ]

Re: [Flashcoders] Clarification if Remoting is included with Flex 2.0

2006-04-12 Thread John Dowdell
Mike Anderson wrote: In the core version of Flex 2.0 - is Remoting included with the basic package? OR is it not?? Thanks in advance, for any 100% accurate information you can throw my way. I don't know if I can be 100%, because Flex 2.0 hasn't shipped yet... I didn't see this answered in a

Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread Weyert de Boer
Anyone wanna buy my Powerbook of November? You can get it for 1500euro incl.bills etc. and tucano skin sleeve (Exl. shipping) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] object vs document level undo

2006-04-12 Thread Anastasia McCune
Hello, I hope this isn't too simple a question, but can anyone explain or point to a good article on object vs. document level undo? I know theoretically what this is supposed to do, but am playing around trying it with shapes in regular mode, symbols and shapes drawn in object drawing mode and

[Flashcoders] Quick setSize() question

2006-04-12 Thread Mike Anderson
Hello all, If I am interested in only sizing a component using the setSize method - but if I only wanted to set a single parameter (width or height), how do I properly pass the variables? Can I simply do this, if I only wanted to set a single parameter? componentInstance.setSize( null, 20 );

Re: [Flashcoders] Quick setSize() question

2006-04-12 Thread JesterXL
yourDataGrid.setSize ( yourDataGrid.width, 400); - Original Message - From: Mike Anderson [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 12, 2006 7:07 PM Subject: [Flashcoders] Quick setSize() question Hello all, If I am

RE: [Flashcoders] Quick setSize() question

2006-04-12 Thread Mike Anderson
Yep, it's the same thing except no setting of a variable first... Okay, I just wanted to make sure I couldn't simply pass a Null to it, in hopes of it not changing the existing value of the Nulled place. Thanks! Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [Flashcoders] Clarification if Remoting is included with Flex 2.0

2006-04-12 Thread Mike Anderson
Okay, well thank you nevertheless for your time - and I will try to get something off the FlexCoders list. Take Care, Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: Wednesday, April 12, 2006 5:53 PM To: Flashcoders mailing list

[Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
Hi, I'm trying to learn event handling using the EventDispatcher class and am having a hard time getting a test to work. I'm also fairly new to OOP, so I'm having a hard time finding the problem in my code. I've created a simple Ball class that creates an empty MC and then draws a circle

RE: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Mike Anderson
If you are extending a MovieClip - doesn't the MovieClip already have all those things you are trying to recreate at your disposal? That is the whole point of extending a MovieClip - so you DON'T have to go through all the stuff you are going through right now. I am no guru at this stuff, but I

Re: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread Manuel Saint-Victor
Try making sure that there are absolutely no spaces at the start or end of the HelloWorld.php and the gateway.php. I'm not sure if you downloaded or cut and pasted the code but sometimes when cut and pasting if you inadvertently add a space you'll get that error. Mani On 4/12/06, elr [EMAIL

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Johannes Nel
hopefully this does not spark a big debate. always try to favour composition over inheritance, not that extending movieclip is a bad sollution, however then you start dealing with linkageID's in the ide and all that schlep. anyway that said this is how to fix the code. import mx.utils.Delegate;

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
Hi Mike, Thanks for your reply. The class I created was based on a tutorial I found online (communitymx.com) a subscription-based site that I started a trial subscription to, but wasn't getting any response to my questions, so didn't see the point in paying money for. Maybe extending

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Johannes Nel
and as to why. it was a scope issue, you weren't dispatching the event out of your class, but out of the movieclip. On 4/12/06, Daniel Cardenas [EMAIL PROTECTED] wrote: Hi Mike, Thanks for your reply. The class I created was based on a tutorial I found online (communitymx.com) a

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
Thanks Johannes, I tried your code but it didn't work - no errors or anything, just didn't trigger the handler. Is there be a problem with my timeline code? Note - I removed some events and methods to simplify the code. Class Code:

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
PS - I'm afraid to ask - why do I need to add in the delegate class? --- [EMAIL PROTECTED] 917-750-6398 AIM: dcardena --- On Apr 12, 2006, at 8:32 PM, Johannes Nel wrote: hopefully this

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Johannes Nel
ok sorry, you are extending movieclip. i thought for soem reason you were not. there is no reason for you to be extending movieclip, so don't once you have gotten rid of the inheritance then it should work. the reason the onPress function works is due to the fact that you are extending movieclip,

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Johannes Nel
you add and use delegate to solve scoping issues. On 4/12/06, Johannes Nel [EMAIL PROTECTED] wrote: ok sorry, you are extending movieclip. i thought for soem reason you were not. there is no reason for you to be extending movieclip, so don't once you have gotten rid of the inheritance then

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
Hi Johannes - Thank you so much for your suggestions - I really do appreciate the help. I've removed MovieClip extension from the class, but it's still not working - it's still the same as where I started - the Ball object renders, but events don't trigger the handler. I've streamlined

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Johannes Nel
You often see people use delegates this way as well: buttonComponent.addEventListener(click,Delegate.create (this,onButtonClick)); This is handy- but if you have to remove that listener at a point in time, you have no reference to it in order to remove it, so clean up becomes hard. I usually

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread stacey
Try this : import mx.utils.Delegate; class Ball { public var addEventListener:Function; public var removeEventListener:Function; private var dispatchEvent:Function; public function Ball () { // initialize EventDispatcher

RE: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Mike Anderson
Yes, sorry I should have mentioned that too - (about getting rid of extending the MovieClip). I assumed you were purposely extending the MovieClip, but I should have helped more and told you to get rid of that portion, and just make a plain vanilla class file. It would have made all the other

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread stacey
J - you're totally right - i just avoid relying on the caller bit overall as its not as flexible( for how i code ) :) You often see people use delegates this way as well: buttonComponent.addEventListener(click,Delegate.create (this,onButtonClick)); This is handy- but if you have to remove

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Johannes Nel
import Ball.as; /* create object */ var myBall:Ball = new Ball(); myBall.declareEventMethods(); /* add listener */ myBall.addEventListener(press, myEventHandler); /* define handler */ function myEventHandler(evt:Object):Void { trace('evt.type: ' + evt.type + ' | evt.target' + evt.target); }

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
Thanks Johannes! Both your example and Stacey's have made my day. Clearly I need to bone up on Delegate. FWIW - Stacey's example came in 11 bytes under yours - but that was only after I removed an extraneous character that threw an error... So it's a draw. :-) Thank you all for all

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
Thanks Mike, That does help. I get scope - although admittedly I should pay a little more attention to it... :-) And I wasn't familiar with the Delegate class - clearly something I need to read about. -dc --- [EMAIL PROTECTED]

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
Wow! Thanks Stacey - that's far more than 2 cents worth! I'm reading and absorbing - but will need to spend a little more time with your reply :-) --- [EMAIL PROTECTED] 917-750-6398 AIM: dcardena

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas
Awesome!! Thank you Thank you Thank you. I need to read more about the Delegate class to understand what's going on here- I have some idea, but not a clear grasp. Thank you so much for steering me in the right direction! --- [EMAIL

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Johannes Nel
i understand. its not extremly readable either. just pointing out it is possible without using a instance variable. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

RE: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Bjorn Schultheiss
Or you could use a derivative of EventDispatcher, either GDispatcher or your own and use; instance.addEventListener( 'ALL', this ); instance.removeAllEventListeners(); instance.queueEvent( { type : 'whateverman' } ); instance.dispatchQueue(); -Original Message- From: [EMAIL PROTECTED]

Re: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Patrick Matte
I dont see exactly why use for the event dispatcher. Wouldn't this be good as well ? // on timeline import Ball2.as; import mx.utils.Delegate; var myBall:Ball2 = new Ball2(); myBall.onBallPress = Delegate.create(this,onBallPress); myBall.addEvents(); function onBallPress():Void {

[Flashcoders] Reusing MovieClipLoader Listeners

2006-04-12 Thread lincoln
I have a function that I'm using to preload images into a container clip using the MovieClipLoader class. The preloader works fine on the initial image but on successive calls to the function, the onLoadProgress seemingly never fires (in order to update the percentage in a textfield).

RE: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Mike Anderson
Hey - no prob! Actually, what the 2 other guys contributed, helped ME out quite a bit too. That's what I love about this list - you can learn so much about so many things - and because there are so many different people here, each person explains things in their own way. You picked the BEST

Re: [Flashcoders] Reusing MovieClipLoader Listeners

2006-04-12 Thread Patrick Matte
You are loading your images at the same time ! Load the first image and then onLoadComplete, start loading the second image... - Original Message - From: lincoln [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 12, 2006 11:39

RE: [Flashcoders] Reusing MovieClipLoader Listeners

2006-04-12 Thread Mike Anderson
Are you sure it just doesn't appear that way, but in reality, it's just happening so fast - that it looks like it's not working at all? I just ask, because I have a Map Application that I wrote - and it downloads quite large SWF files - in which a progress bar gets updated based on the loader

  1   2   >