Re: [Flashcoders] How do you manage your classes?

2006-09-26 Thread Ray Chuan
Hi, On 9/26/06, greg h [EMAIL PROTECTED] wrote: Dan, I can not answer your specifc questions, so I hope that others will jump in and add their voices along with details about how they manage the problems you described. I just want to comment generally that Subversion is the successor to CVS.

Re: [Flashcoders] How do you manage your classes?

2006-09-26 Thread mario
Hi, the current setup we use in our company is that we have a core library that holds all of our core-code we reuse all the time, this core is stored and maintained in SVN. This library is imported as a linked library in Eclipse (e.g. its more like an alias/shortcut to the core). Other

Re: [Flashcoders] Garbage collection for AS2 classes

2006-09-26 Thread chris daubney
Thanks Nicolas, I've been trying to find an elegant solution to this to keep any loaded swfs encapsulated so that they are 'fully' destroyed (movieclips, objects, singletons etc.) when the swf is unloaded. I'm sure many developers have investigated this. How do you manage to prevent your

Re: [Flashcoders] Trying to create an emptyMovieClip and then loadanimage into it

2006-09-26 Thread vic
sorry again, here is non-revered code: class ImageViewerMain extends MovieClip { // Constants: public static var CLASS_REF = ImageViewerMain; // Public Properties: // Private Properties: // var to pass from constructor func to loadImage func private

[Flashcoders] Function and Conditions

2006-09-26 Thread Laurent CUCHET
There a clip with two clip inside : parent1 and child 1 and child2 inside. If I clic parent1 it _enabled child1 and child2 How can I do to suppres parent 1 function after ? I mean get child function but not parent1 function parent1.onPress =function () { child1._xscale=200;

RE: [Flashcoders] Label -- null

2006-09-26 Thread Lieven Cardoen
I can be wrong, but I think this is bullshit. I'm compiling with MTASC and label is 'null'. Also compiled with Flash, still Label is 'null' when casted... Really annoying. The V2 components from Flash really suck. I've also looked into the code from the V2 components and it's a jungle. I've had

RE: [Flashcoders] Implicit Setters: Is validation considered a good orbad OOP practice ?

2006-09-26 Thread Rui Duarte Silva
Hi, In my opinion (which is a very modest one compared to some of the geniuses that roam around in this list) you should validate and automatically convert the value if it's of the expected type but out of range (less than 0 gets converted to 0 and more than 100 gets converted to 100).

Re: [Flashcoders] Trying to create an emptyMovieClip and then load animage into it

2006-09-26 Thread vic
Shoot, that is reverted code...hold a tick and I will reprise it the way it was when it was looking tight and NOT working. Sorry, V -- Original Message -- From: vic [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com

[Flashcoders] JSFL - Finding all textfields in movieclips in the library

2006-09-26 Thread Remco Hoff
Hi all, To be able to easily add characters to all the textfields in my fla (not only those allready on stage), I want to find all the textfields in all movieclips in the library. To find all the library items I use this script: var result = ; var myItem; for (var i = 0; i fl.getDocumentDOM

SV: [Flashcoders] Movieclip To BitmapData won't work with .flv

2006-09-26 Thread Martin Baltzer Hennelund
Ok thanks a lot I guess I saw this one coming :( /Martin -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af John Grden Sendt: 26. september 2006 06:44 Til: Flashcoders mailing list Emne: Re: [Flashcoders] Movieclip To BitmapData won't work with .flv it

Re: [Flashcoders] Garbage collection for AS2 classes

2006-09-26 Thread Nicolas Cannasse
Hi, I found this thread in Flashcoders that discusses a similar problem I have regarding garbage collection of AS2 classes/components when unloading swfs from the Flash Player... garbage collection troubles (Dated: Feb 2005)

RE: [Flashcoders] JSFL - Finding all textfields in movieclips in thelibrary

2006-09-26 Thread Danny Kodicek
Hi all, To be able to easily add characters to all the textfields in my fla (not only those allready on stage), I want to find all the textfields in all movieclips in the library. To find all the library items I use this script: var result = ; var myItem; for (var i = 0; i

[Flashcoders] Garbage collection for AS2 classes

2006-09-26 Thread chris daubney
Hi, I found this thread in Flashcoders that discusses a similar problem I have regarding garbage collection of AS2 classes/components when unloading swfs from the Flash Player... garbage collection troubles (Dated: Feb 2005)

Re: [Flashcoders] tabIndex stops working, when combo-box component used in movie

2006-09-26 Thread Glen Pike
I think this only happens in the IDE, try the published movie in a browser. Also Control-Disable Keyboard Shortcuts in the Standalone Player may help. Glen GS Resource wrote: Hi Martyn did u ever solve the tabindex problem you were having. i also have a similar problem with a textbox

Re: [Flashcoders] tabIndex stops working, when combo-box component used in movie

2006-09-26 Thread GS Resource
Hi Martyn did u ever solve the tabindex problem you were having. i also have a similar problem with a textbox component - once it is on the stage tab order doesn't work - you press tab and it goes straight to the component and ignores the other normal text boxes Gary E. On 01/06/06, Green,

Re: [Flashcoders] Trying to create an emptyMovieClip and then load an image into it

2006-09-26 Thread vic
I have a Class, I am trying to create an empty movieClip on the stage, that is going well because I see this when i hit ctl+alt+v: Variable _level0.imgViewer = [object #8] {} Movie Clip: Target=_level0.emptyViewerContainer_mc Movie Clip: Target=_level0.emptyThumbContainer_mc Movie Clip:

Re: [Flashcoders] Garbage collection for AS2 classes

2006-09-26 Thread Nicolas Cannasse
Thanks Nicolas, I've been trying to find an elegant solution to this to keep any loaded swfs encapsulated so that they are 'fully' destroyed (movieclips, objects, singletons etc.) when the swf is unloaded. I'm sure many developers have investigated this. How do you manage to prevent your

Re: SPAM-LOW: Re: [Flashcoders] embedded font not displaying

2006-09-26 Thread slangeberg
tried turning auto-kern off? Unchecking 'auto-kern' did fix it for me! Many thanks. I noticed my other fields did not have it checked, so not sure why this one did! Scott On 9/25/06, Nick Gerig [EMAIL PROTECTED] wrote: tried turning auto-kern off? eric dolecki wrote: Hmm - weird. All

Re: [Flashcoders] Garbage collection for AS2 classes

2006-09-26 Thread chris daubney
Sorry I wasn't aware of the nature of haXe. I've just read some of the documentation (http://haxe.org/tutos/haxe_as2) and now see that it addresses this problem perfectly. Great stuff! Thanks. Chris Nicolas Cannasse: Thanks Nicolas, I've been trying to find an elegant solution to this to

Re: [Flashcoders] ::dk:: issues with external data and external swf

2006-09-26 Thread DNK
Bjorn Schultheiss wrote: What error is it throwing? Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dnk Sent: Tuesday, 26 September 2006 1:53 PM To: Flashcoders mailing list

Re: [Flashcoders] Function and Conditions

2006-09-26 Thread Kenneth Kawamoto
Hi Laurent, You can do something like this: // parent1.onPress = function() { this.child1._xscale = 200; this.child1.onPress = function() { this._x += 25; }; delete this.onPress; }; // // Kenneth Kawamoto (on the road) // materia prima limited // [EMAIL PROTECTED]

Re: [Flashcoders] embedded font not displaying

2006-09-26 Thread Nick Gerig
slangeberg wrote: tried turning auto-kern off? Unchecking 'auto-kern' did fix it for me! Many thanks. I noticed my other fields did not have it checked, so not sure why this one did! Scott glad it saved you - I'll always remember the auto-kern feature for the amount of hours I lost

RE: [Flashcoders] Q:Change publish path dynamically

2006-09-26 Thread Doug Coning
I use a config.xml file to store URLs in so that I can change them on the fly. Just load the config file first. Doug Coning -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, September 25, 2006 4:29 PM To:

RE: [Flashcoders] How do you manage your classes?

2006-09-26 Thread Mike Keesey
Lately I actually copy all packages to a folder within my project's folder. Why? Suppose you have a package and you use it on project A. Later, you use it on project B, and realize there are some issues, so you change some of the code. Project B finishes. Then, later on, you find you have to go

Re: [Flashcoders] ::dk:: issues with external data and external swf

2006-09-26 Thread DNK
Alain Rousseau wrote: This may be a scope issue. Do you make use _root to reference the lower level of your loaded swf ? And are you loading the swf in a movieclip or a Level ? Either way _root will reference back to _level0 wich isn't the same scope as your loaded swf. Try replacing _root

RE: [Flashcoders] Q:Change publish path dynamically

2006-09-26 Thread Steven Sacks | BLITZ
The answer is JSFL. I wrote an article about how to change publish paths using JSFL on my blog. http://www.stevensacks.net/2006/08/06/using/ You can use this technique (see lines 10-13) with a panel (or just a script) which loads in XML and publishes the SWF. My entire script actually saves

RE: [Flashcoders] Label -- null

2006-09-26 Thread Steven Sacks | BLITZ
Are you using -keep? Have you tried FLASC? http://osflash.org/flasc ___ 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

[Flashcoders] Delegating Events and AS2

2006-09-26 Thread Sean Scott
Hi All!, wondering if someone can point me in the right direction. I am trying to find a ASBoradcast / Event Dispatcher light model for my app. Basically i have a number of MCs that will have to either react to events being broadcast or broadcast their own. I have Essential AS2 by Colin

[Flashcoders] duplicating an object easily...

2006-09-26 Thread grimmwerks
Is there a simple way of duplicating an object that has many subobjects? In director it's as simple as obj.duplicate() -- but there's nothing in Flash... I'm trying to create a list of 'saveable' objects that have many branching children, and of course I'm really just creating all these

Re: [Flashcoders] duplicating an object easily...

2006-09-26 Thread eric dolecki
This may get you started: http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2004-December/127967.html - e. On 9/26/06, grimmwerks [EMAIL PROTECTED] wrote: Is there a simple way of duplicating an object that has many subobjects? In director it's as simple as obj.duplicate() -- but

Re: [Flashcoders] How do you manage your classes?

2006-09-26 Thread Dan Rogers
This is generally what I have been doing for my projects as well. I am guessing that SVN users are doing something similar but instead of copying files manually, they are checking out a set of files and using that as their local snapshot. During project A development, they would update,

[Flashcoders] Q:LoadVars send WITHOUT refreshing the browser

2006-09-26 Thread bitstreams
Hi Currently working on a simple flash form using LoadVars object. However, I have an unusual request in that I'm not supposed to refresh the browser window at all after the send command. I currently have: this.myloadvars.send(myFilepath, _self, GET); but this causes the browser window to

Re: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread Steve Polk
I have been using this class for all my event needs. Simply import the class, then to use: EventManager.getInstance().addListener(eventDoThis, this); //adds the listener to the class ('this' is the scope) EventManager.getInstance().removeListener(eventDoThis, this); //removes the listener

Re: [Flashcoders] Q:LoadVars send WITHOUT refreshing the browser

2006-09-26 Thread slangeberg
I think you can pull that off with: this.myloadvars.sendAndLoad( myFilepath, GET ); You'll want to check syntax with that... but I know it's possible! Scott On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Currently working on a simple flash form using LoadVars object. However, I

[Flashcoders] OT?: E-commerce solutions

2006-09-26 Thread slangeberg
[Sorry for the OT post, but I recognize a vast wealth of knowlege and experience with our groups!] We have a retail client that's looking at expanding their online store. Currently, they've outsourced their store so that you're re-directed to a branded third-party site. Does anyone have any

Re: Re: [Flashcoders] duplicating an object easily...

2006-09-26 Thread grimmwerks
Started and finished! Thanks Eric. ___ 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 Authorized Adobe

[Flashcoders] Re: [flashmn] OT?: E-commerce solutions

2006-09-26 Thread slangeberg
Anyone out there with any Miva experiences? Scott On 9/26/06, Steve Killingbeck, MMCP, ACE [EMAIL PROTECTED] wrote: You could try miva merchant ? -- Flash4Hire http://www.flash4hire.com Steve Killingbeck, MMCP, ACE Owner Technical

RE: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread Mike Keesey
Whoops! -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: Tuesday, September 26, 2006 2:23 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Delegating Events and AS2 [...] Or, if using AS3.0, I think you

Re: [Flashcoders] JSFL - Finding all textfields in movieclips in the library

2006-09-26 Thread Arse @ Snepo
Remco, I recently posted some jsfl on my blog that shows how to recursively find all textfields and adjust font usage at a character level: http://blog.snepo.com/articles/2006/09/04/flash-jsfl-swap-font should be an easy step to modify it to your needs. Arse http://www.snepo.com

Re: [Flashcoders] Querystring prevents FLV playback

2006-09-26 Thread Brian Williams
If you're using the Flash classes for playback (like the FLVPlayback class), it actually looks at the suffix of the loaded url to determine whether it's an FLV or xml (playlist?). You can hack it to work by loading video1.flv?id=26-09-2006type=.flv I haven't actually dug through the classes to

Re: [Flashcoders] Q:LoadVars send WITHOUT refreshing the browser

2006-09-26 Thread Muzak
Tried the docs? quote A successful send() method call will always open a new browser window or replace content in an existing window or frame. If you would rather send information to a server and continue playing your SWF file without opening a new window or replacing content in a window or

Re: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread Dan Rogers
I personally use an extremely simplified way of dealing with events. I've used EventDispatcher before, but it feels like overkill most of the time. I realize my method has no ability to multicast events, but it's quick, easy to read and gets the job done. Here's an example:

Re: [Flashcoders] Q:LoadVars send WITHOUT refreshing the browser

2006-09-26 Thread Rich Rodecker
don't worry, that's not an unusual request, that's pretty much always been a feature of flash. Like muzak said, use sendAndLoad(). You don't absolutely have to catch any return values from the server if you don't want to, but most people would at least like to check to make sure that everything

Re: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread vic
Hey Dan, I like the way you do it, its pretty simple. But here is, what probably will be an incredibly stupid question: How do I capture the event? Thanks, V I personally use an extremely simplified way of dealing with events. I've used EventDispatcher before, but it feels like overkill

[flashcoders] f9 ide crashing

2006-09-26 Thread eric dolecki
http://www.ericd.net/2006/09/flash-9-beta-ide-crashing-ideas.inc has anyone seen a crash like this when trying to produce a as3 f9 SWF? i am running another Java application when this has been happening. running on a MacPro. - e. ___

Re: [Flashcoders] How do you manage your classes?

2006-09-26 Thread Ray Chuan
Hi, you can have two repositories: one for your core classes that you reuse, and another to hold the code for the project that you're working on. So your working directory looks like this: ProjectFoo |- core classes (not part of project repo) |- core-rev.txt (contains revision of core repo you

Re: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread Dan Rogers
Vic, if you've ever used the XML or NetStream classes... it mimics those types of event updates. For example... var xmlData = new XML(); xmlData.onLoad = function () { // gets invoked by the XML instance } So if you delegate the onLoad method, you get something like this:

Re: [Flashcoders] How do you manage your classes?

2006-09-26 Thread JOR
Not to say I don't do the same thing on occasion but this might fall under the Copy-and-Paste Programming antipattern. http://en.wikipedia.org/wiki/Copy_and_paste_programming http://c2.com/cgi/wiki?CopyAndPasteProgramming Copy-and-Paste Programming isn't necessarily wrong when used in the

Re: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread vic
Danno, that is really cool, I will try that but I have done it, I made a site template that, when a button is clicked it dispatches an Event...but I had the hardest time doing it. I am looking for a simple way to do it that works in a Class. without worrying about scope. Mine relies heavily