RE: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread j.c.wichman
Hi, it is included, but not solely becoz of the import statement. I might be wrong, but I believe this is even a 'bug'. Expected behavior: import MyClass causes inclusion of MyClass in the swf Real behavior: import MyClass still requires you to use MyClass somewhere in the code as in var myClass:

RE: [Flashcoders] Do objects lose their class identity when they arestored and retrieved from an lso?

2006-05-19 Thread j.c.wichman
Hi, I think so. I am currently working on a serializer/deserializer with saves objects including their classes to xml and reconstructs them. It will be posted when it's done, but that won't be for some time (deadlines etc). greetz Hans > -Original Message- > From: [EMAIL PROTECTED] >

RE: [Flashcoders] .NET and XML Web services

2006-05-19 Thread j.c.wichman
Hi, i tried the example before mailing it to you, it worked here. Not sure why it isn't working at your place, can you access the webservice url from your browser? greetz H > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Merrill, Jason > Sent:

RE: [Flashcoders] .NET and XML Web services

2006-05-18 Thread j.c.wichman
Hi Jason, u probably can, but you dont *have* to use remoting. You can create a reference to the webservice by simply using: new WebService("http://location to your webservice here.asmx?wsdl", this.logger); Look at this one for example http://www.flash-db.com/services/tutorials/mxclasses/mxwebse

RE: [Flashcoders] Grab IP address

2006-05-15 Thread j.c.wichman
Hi, i'd go with the server side solution instead of depending on java running. Let's face it, if we all had such great confidence in java we'd be posting on the javadev list:) (ok erase that comment). Anywayz, php makes for a good solution i think, but I believe standaard ssi env vars will do the t

RE: [Flashcoders] Importing ComboBox classes into custom class

2006-05-10 Thread j.c.wichman
Hi, I have no clue what's causing this, but I had similar problems in the past, you might want to try any or all of the following 3 things, if noone recognizes the problem directly: - set _lockroot on the movieclip / on the combobox instance - Object.registerClass("ComboDownArrowDisabled", MovieCli

RE: [Flashcoders] Assetpropflags back to default

2006-05-10 Thread j.c.wichman
ocumented/assetpropflags > > regards, > Muzak > > motto: Google first, ask questions later.. > > - Original Message - > From: "j.c.wichman" <[EMAIL PROTECTED]> > To: "'Flashcoders mailing list'" > Sent: Wednesday, May

[Flashcoders] Assetpropflags back to default

2006-05-10 Thread j.c.wichman
Hi list, I was wondering, is it possible to revert an object back to its default setting after using for example: _global.ASSetPropFlags (myObject, null, 6, true); What is the call I need to do to revert the myObject to the state it was? Is there a default state? Am I making any sense:)? Greet

RE: [Flashcoders] focus in internet explorer

2006-04-28 Thread j.c.wichman
; well, none of both work. internet explorer gives me the > hand-cursor- symbol and a tooltip says: "click here to > activate this element". > has this always been like this on windows? i never realized? > > best > eugen > > > > Am 28.04.2006 um 11:17 schri

RE: [Flashcoders] focus in internet explorer

2006-04-28 Thread j.c.wichman
Hi, will take the focus away from your flash object. should do the trick. Greetz Hans > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of eugen pflüger > Sent: Friday, April 28, 2006 10:37 AM > To: Flashcoders mailing list > Subject: [Flashc

RE: [Flashcoders] Xray Trouble Shooting

2006-04-28 Thread j.c.wichman
Hi, This other post by John might help too:))) http://osflash.org/pipermail/xray_osflash.org/2005-November/000273.html It solved it for my anyway, the problem was that I exported my classes in frame 10 instead of one, And so I had to move the xray connector too and add the code mentioned in his p

[Flashcoders] Luminicbox / xray

2006-04-27 Thread j.c.wichman
Hi peeps, I downloaded luminicbox in addition to Xray, which I have been using already for some time, but I thought it would be nice to just use m both, Xray for the introspection and luminicbox for the logging. I think I heard John mention at one point he was going to try to incorporate luminic i

RE: [Flashcoders] Flv streaming end detection

2006-04-11 Thread j.c.wichman
adata using FLVTool2 > (command-line): > http://blog.inlet-media.de/flvtool2/ > Or you can try the GUI FLV Knife for FLVTool2 which I build: > http://soenkerohde.com/software/flv-knife/ > > Cheers, > Sönke > > > > -Original Message----- > > From: [EMAIL PR

RE: [Flashcoders] _root.getURL("/docs/worddocument.doc");

2006-04-11 Thread j.c.wichman
Hi, ._url returns the location of your swf. Greetz Hans > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Lieven Cardoen > Sent: Tuesday, April 11, 2006 11:38 AM > To: Flashcoders mailing list > Subject: [Flashcoders] _root.getURL("/docs/worddo

[Flashcoders] Scoping question

2006-04-11 Thread j.c.wichman
Hi List, I have the following piece of code: function getShowMenuFunction (menuID:String):Function { return Delegate.create (this, function (evt) { var loc = null;

[Flashcoders] Flv streaming end detection

2006-04-07 Thread j.c.wichman
Hi list, We are streaming flv's through flash communication server, but sometimes the end of the stream does not seem to be correctly detected. It seems to work in flash 7, where I wait for a NetStream.Play.Stop and then a NetStream.Buffer.Empty. Has anything changed with 8 that can cause this pr

RE: [Flashcoders] how to liesten XML onLoad Event?

2006-02-20 Thread j.c.wichman
Hi, It's a scoping issue. Which has been discussed many many times on this list, you might wanna do a search. You can use the delegate class for example to fix this. Greetz Hans > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of zikey Han > Sent

[Flashcoders] Arp, cairngorm, flex2

2006-02-14 Thread j.c.wichman
Hi, Seeing the recent discussions/questions on this list about which frameworks to use and such, I was wondering if these frameworks apply to Flex2 development as well, or does flex 2 own's 'framework' cover all that which was not available in flash, which could have been the reason these other fra

RE: [Flashcoders] negative depths and dynamically duplicated movie clips

2006-02-10 Thread j.c.wichman
Hi, Don't know if this would solve it, but I think one way would be to order your timeline like this: Toplayer: all my non-dynamic stuff Not-so-top-layer: dummyholder clip Now on mouse move you simply attach your clips to the dummyholder. Since the dummy holder is on a layer below the rest of you

[Flashcoders] Accordion and scrollpane

2006-02-10 Thread j.c.wichman
Hi, I'm trying to find some more info on accordions and especially how to let the children of the accordion know how much space they have. Another thing I ran into was, that adding a scrollpane through myAcc.createChild(mx.containers.ScrollPane, Seemed to create errors (white headers, messages

RE: [Flashcoders] reference or scope problem... all the instances sharethe same values :S

2006-02-09 Thread j.c.wichman
Hi, If you do var myArray = new Array(); myArray will be static and shared by all instances. Flash bug.. :) maybe that information helps.. Greetz Hans > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of parakalo > Sent: Thursday, February 09, 2006

[Flashcoders] catching errors at top level

2006-02-06 Thread j.c.wichman
Hi list, i was wondering how to catch an error at top level. So for example, somewhere deep down in my code I do throw new Error ("bla blah"); and since i'm lazy i don't try to catch in the calling function (since it is a.. runtime error or something :))... Is there some way I can catch this error

RE: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread j.c.wichman
Only when you use v2 components on the root as well ithink? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart Wttewaall Sent: Friday, February 03, 2006 5:24 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] How do you code your Flash applicatio

RE: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread j.c.wichman
Hi, If you use something like: var my_mcl:MovieClipLoader = new MovieClipLoader(); var myListener:Object = new Object(); myListener.onLoadInit = function(target_mc:MovieClip) { trace(target_mc._width);

RE: [Flashcoders] Constrain width and height of a swf into a MC withloadMovieNum or loadClip or loadMovie ?

2006-02-02 Thread j.c.wichman
Hi, Do you mean as in masking? If you don't want to resize the loaded swf, you could load it into a scrollpane (with scrollbars dis or enabled), or you could apply a runtime mask to your clip. eg myLoadedClip.setMask (myViewportMask) Greetz Hans -Original Message- From: [EMAIL PROTECTED

RE: [Flashcoders] Unconditional and operator

2006-02-02 Thread j.c.wichman
lse A B and result: false A B & result: 0 So it looks like the old 'and' operator doesn't short circuit. It's deprecated - so it's your choice whether to use it... Cheers, Ian On 2/2/06, j.c.wichman <[EMAIL PROTECTED]> wrote: > > Hi, > does anyone know o

[Flashcoders] Unconditional and operator

2006-02-02 Thread j.c.wichman
Hi, does anyone know of an unconditional and operator in flash that I'm not aware of, eg in java a() & b(), forcing both a() and b() to be called? And yes I know this reeks of hacking ;). greetz Hans ___ Flashcoders mailing list Flashcoders@chattyfig.f

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

2006-02-02 Thread j.c.wichman
Hi, This probably isnt of any use to you, but for the filled circles, you can only simply draw a linepiece with a length of say 0.0001 and a high linethickness (50px for example results in a circle with a diameter of 50px). Like I said only of use if you draw filled circles. Greetz Hans -

RE: [Flashcoders] Tell me more about "_global"

2006-02-02 Thread j.c.wichman
* yawns * -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Wednesday, February 01, 2006 9:57 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about "_global" > Apart from that, your email takes a kind of > i-won

RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread j.c.wichman
You have been watching us through our webcams, haven't you? Ah come on... Just admit it... It's okay... I must say I do agree with your first line... After that it got a bit blurry. See I always thought that the guyz using only global vars with obscure names calling them from god-knows-where, wer

RE: [Flashcoders] "clearing" variables from memory after use...

2006-02-01 Thread j.c.wichman
Hi Roman, You describe my_var =null as being useless, but this should be enough for the garbage collector to come along and reclaim an object? With respect to the static issue, what do you mean with 'static instances' ? Could u provide an example of such an object with isn't reclaimed? Thanks, Ha

RE: [Flashcoders] interfaces and objects

2006-02-01 Thread j.c.wichman
homas Sent: Wednesday, February 01, 2006 1:31 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] interfaces and objects 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 y

RE: [Flashcoders] interfaces and objects

2006-02-01 Thread j.c.wichman
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

RE: [Flashcoders] interfaces and objects

2006-02-01 Thread j.c.wichman
rstand why you're getting an error with myCollection. I know you've solved your immediate problem - but this is niggling at me now... ;-) Ian On 2/1/06, j.c.wichman <[EMAIL PROTECTED]> wrote: > > > Hi, > I know u can't instantiate an interface, which wasn't

RE: [Flashcoders] interfaces and objects

2006-02-01 Thread j.c.wichman
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 using 7 or 8? Thanks! Hans -Original Message- From: [EMAIL PROTECTED] [ma

RE: [Flashcoders] interfaces and objects

2006-02-01 Thread j.c.wichman
ed first a concrete class that implements the interface... Your code should be: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:SomeWorldPartSubclass = new SomeWorldPartSubclass(); myCollection.addItem(myPart); j.c.wichman a écrit : > Hi, > i'm usin

RE: [Flashcoders] interfaces and objects

2006-02-01 Thread j.c.wichman
WorldPart class WorldPart implements IWorldPart class SomeWorldPartSubclass extends WorldPart then either var myPart:WorldPart = new SomeWorldPartSubclass(); or var myPart:IWorldPart = new SomeWorldPartSubclass(); should both work... HTH, Ian On 2/1/06, j.c.wichman <[EMAIL PROTECTED]> wrote:

[Flashcoders] interfaces and objects

2006-02-01 Thread j.c.wichman
Hi, i'm using a collection, which requires items of type Object to be added. I've declared an interface which gives me something like: - interface IWorldPart - a class implementing WorldPart now somewhere else i do: var myPart:IWorldPart = new SomeWorldPartSubclass(); myCollection.addItem (myPa

RE: [Flashcoders] Tell me more about "_global"

2006-02-01 Thread j.c.wichman
Hi, I think there are very good reasons to make a class for it, some of them mentioned before: It allows you to: - debug values stored - add listeners for changes/updates - detect collisions - track where changes made are coming from, or at least when they happen - implement serialization/deseriali

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

2006-01-31 Thread j.c.wichman
Hi John, Its seems ge, gt, le,lt etc are all reserved, probably something like greater than, greater or equal, etc. If u google for 'flash reserved keywords' you get the whole list... Why it is reserver? No clue, sorry ;) Grtz Hans J.C. Wichman . Software E

RE: [Flashcoders] extending collectionimpl

2006-01-31 Thread j.c.wichman
ms = new Array(); } } // -- import Col; var col = new Col(); col.addItem("hello"); col.addItem("world"); var it = col.getIterator(); while (it.hasNext()) { var item = it.next(); trace(item); } 2006/1/31, j.c.wichman <[EMAIL PROTECTED]>: > Hi, > im t

[Flashcoders] extending collectionimpl

2006-01-31 Thread j.c.wichman
Hi, im trying to extend mx.utils.CollectionImpl but it doesn't seem to work. Is there a restriction to intrinsic classes im not aware of? greetz Hans ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/l

RE: [Flashcoders] Q: All OOP or ??????

2006-01-28 Thread j.c.wichman
Hi, You are probably going to hear this a lot: it depends. You'll find a lot of people doing 1, you'll find a lot doing 2... 3 4 5 6 etc. For example, (just a few examples, books could probably be written on this subject), an animation of a car driving down a road, sliding, going through corn

RE: [Flashcoders] small code question

2006-01-25 Thread j.c.wichman
Hi, In the first, you are assigning a Number to myVar first, and then saying 'just kidding' you are a string. In the second, you are assigning a number (which was converted from a string) to myVar. I would declare the type of the variable, eg var myCounter:Number = 0; Grtz Hans

[Flashcoders] flash communication server and ISA client

2006-01-25 Thread j.c.wichman
Hi, i have a client for which i developed a flash comm app. It works fine on some pc's, but on others it doesnt ;). Now they claim that the correct ports are open, that it didnt help, but now that they have installed an ISA client (?) it all seems to work. Now i dont know that much about hardwa