Re: [Flashcoders] Drawing a continuous curved line through n points in AS1 or AS2 (Catmull-Rom splines?)

2008-11-15 Thread Hans Wichman
Hi, you might be looking for a bezier thingy, or it might just be as simple as averaging the control points: If it's the latter, there's some sample source here for something like that: http://objectpainters.com/blog/2007/07/18/drawing-using-controlpoints/ greetz JC On Sat, Nov 15, 2008 at

Re: [Flashcoders] frameworks and flash

2008-11-14 Thread Hans Wichman
Read the article, some good, some bad. If anyone declares you for a fool if you prefix interfaces with 'I' and use marker interface, I tend to gloss over the rest of the article since it no longer comes across trustworthy... Personal preference aside:) On Sat, Nov 15, 2008 at 12:05 AM, David

Re: [Flashcoders] How much would you charge?

2008-11-13 Thread Hans Wichman
Hi, depends on whether you are writing it from scratch or not. Seeing the huge amount of foto galleries already outthere including open sourced components etc you could save some time by just using one of those. Then it's just implementation time x your hourly rate. greetz JC On Fri, Nov 14,

Re: [Flashcoders] FLV: reliable heightwidth dimensions

2008-11-10 Thread Hans Wichman
Hi, maybe a dumb question, but what is wrong with injecting the required metadata with burak's or something like that? greetz JC On Mon, Nov 10, 2008 at 10:10 PM, Meinte van't Kruis [EMAIL PROTECTED] wrote: true, actually I've rebuild the app to get its dimensions from XML, which is safe and

Re: [Flashcoders] open windows explorer or OSX finder from flash

2008-10-31 Thread Hans Wichman
Hi, no, unless it's a projector or wrapped up. regards, Hans On Fri, Oct 31, 2008 at 10:26 AM, thomas nordahl [EMAIL PROTECTED] wrote: Is it possible to open either windows explorer or finder from flash ? is there maybe an jacascript that in use with Externalinterface does the trick? If

Re: [Flashcoders] open windows explorer or OSX finder from flash

2008-10-31 Thread Hans Wichman
Hi, no, unless it's a projector or wrapped up. regards, Hans On Fri, Oct 31, 2008 at 10:26 AM, thomas nordahl [EMAIL PROTECTED] wrote: Is it possible to open either windows explorer or finder from flash ? is there maybe an jacascript that in use with Externalinterface does the trick? If

Re: [Flashcoders] open windows explorer or OSX finder from flash

2008-10-31 Thread Hans Wichman
Hi, no, unless it's a projector or wrapped up. regards, Hans On Fri, Oct 31, 2008 at 10:26 AM, thomas nordahl [EMAIL PROTECTED] wrote: Is it possible to open either windows explorer or finder from flash ? is there maybe an jacascript that in use with Externalinterface does the trick? If

Re: [Flashcoders] XML optimization

2008-10-30 Thread Hans Wichman
Hi, its only 60kb? That shouldn't take too long. Can you see what is taking up the time? Might be parsing instead of loading. regards, JC On Thu, Oct 30, 2008 at 4:00 PM, Matt S. [EMAIL PROTECTED] wrote: So I know this is kind of a mammoth XML file to load all at once, but it doesnt seem

Re: [Flashcoders] AS3 associativ array length=0

2008-10-27 Thread Hans Wichman
Hi, I'm guessing the dictionary object allows you to retrieve the size of the keyset, might be of help. greetz JC On Mon, Oct 27, 2008 at 2:58 PM, Paul Andrews [EMAIL PROTECTED] wrote: If you want an associative array like that use Object, not Array. The length of an array is the number of

Re: [Flashcoders] AS3 - Checking if a Function Exists

2008-10-27 Thread Hans Wichman
If ( currentSection[refresh] != null ) { currentSection[refresh](); } ? grtz JC On Mon, Oct 27, 2008 at 3:02 PM, Karim Beyrouti [EMAIL PROTECTED] wrote: Hello Group - This should be really easy. I am trying to find out how to check if a function exists

Re: [Flashcoders] Disabling Print Screen key

2008-10-23 Thread Hans Wichman
If they want to grab your screen... they will... http://www.google.com/search?q=screen+grabber On Thu, Oct 23, 2008 at 5:32 PM, Andrew Murphy [EMAIL PROTECTED] wrote: Hi. :) I'm attempting to disable using the Print Screen button for an AS3 movie on a web page. The stage doesn't appear to

Re: [Flashcoders] Disabling Print Screen key

2008-10-23 Thread Hans Wichman
, 2008 at 3:24 PM, Hans Wichman [EMAIL PROTECTED] wrote: If they want to grab your screen... they will... http://www.google.com/search?q=screen+grabber On Thu, Oct 23, 2008 at 5:32 PM, Andrew Murphy [EMAIL PROTECTED] wrote: Hi. :) I'm attempting to disable using the Print Screen

Re: [Flashcoders] AS2 FlashDevelop -- Warning unsupported #include

2008-10-22 Thread Hans Wichman
Hi, as an alternative you have different options: - dont use the tween classes, but use the TweenMax series from greensock. However you are bound to run into other problems using the mx classes together with FlashDevelop. I found the following method the easiest, although patching is an option

Re: [Flashcoders] working with getPixel32 and setPixel32,

2008-10-07 Thread Hans Wichman
Hi, this might help: http://objectpainters.com/blog/2007/11/30/inverting-the-alpha-of-a-bitmap-image/ It does not half but invert the alpha, but the principle is the same I think. The problem lies in the premultiplication of the alpha. greetz JC On Tue, Oct 7, 2008 at 4:48 AM, Juan Pablo

Re: [Flashcoders] working with getPixel32 and setPixel32,

2008-10-07 Thread Hans Wichman
Hi, ps if you are just wanting to half the alpha something along these lines should work as well: var newbitmap:BitmapData = new BitmapData (widht, height, true, 0x0); newbitmap.draw (oldbitmap, new Matrix(), new ColorTransform(1,1,1,0.5,0,0,0,0)); greetz JC On Mon, Oct 6, 2008 at 9:17 PM,

Re: [Flashcoders] Nightmare flash File with Lots of textfields

2008-09-23 Thread Hans Wichman
Hi, not sure but I think you are looking for text.embedRanges in jsfl. greetz JC On Tue, Sep 23, 2008 at 9:00 PM, Michael William Ypes [EMAIL PROTECTED] wrote: Yet again I find myself dealing with someone elses sh*te. Basically compile times are like a million years/5 minutes and I believe

Re: [Flashcoders] multiple classes in one swc?

2008-09-18 Thread Hans Wichman
Yes, as2 or as3 ? greetz JC On Thu, Sep 18, 2008 at 9:58 PM, eric e. dolecki [EMAIL PROTECTED] wrote: Is it possible to have many classes burned into a single SWC and then call classes out of it? - linked to SWC import someClass; import someOtherClass; var foo:SomeClass = new SomeClass();

Re: [Flashcoders] Retreive name of function within scope of that function

2008-09-16 Thread Hans Wichman
Hi, here is an as2 method, maybe it's portable: http://objectpainters.com/blog/2007/07/16/argumentscallee_name/ greetz JC On Tue, Sep 16, 2008 at 1:24 PM, Jiri Heitlager [EMAIL PROTECTED] wrote: Does somebody now if it is possible to get the name of a function from the scope of that function.

Re: [Flashcoders] getURL and ExternalInterface

2008-09-10 Thread Hans Wichman
and a working example on all OS/platform combos I know of: http://blog.intuitymedialab.eu/2007/07/13/actionscript-javascript-communication-externalinterface/ seb. Hans Wichman wrote: Hi, I read somewhere that using getUrl for javascript calls while using externalinterface at the same time

[Flashcoders] getURL and ExternalInterface

2008-09-04 Thread Hans Wichman
Hi, I read somewhere that using getUrl for javascript calls while using externalinterface at the same time will lead to problems (eg when using swfaddress). Can anyone tell me if opening an url through getUrl will cause these problems as well, or just javascript? Any work arounds? What is the

Re: [Flashcoders] combobox still giving grief

2008-09-03 Thread Hans Wichman
Hi, you're not using runtime file sharing right? greetz JC On Wed, Sep 3, 2008 at 11:48 AM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: sorry to necro an old thread but i still have a problem file structure: one index swf that preloads the main swf main swf that loads in

Re: [Flashcoders] pythagoras question

2008-08-27 Thread Hans Wichman
Hi, I don't think pythagoras is involved here. try: factor = vectorLength/c; coordX = startX + (endX-startX)*factor; coordY = startY + (endY-startY)*factor; greetz JC On Wed, Aug 27, 2008 at 7:00 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: hi guys I'm doing

Re: [Flashcoders] [Flashcoders tweening glowfilter from inner to outer

2008-08-27 Thread Hans Wichman
Hi, I don't think tweening from inner to outer is possible, unless you use multiple glow filters. greetz JC On Wed, Aug 27, 2008 at 9:43 PM, eric e. dolecki [EMAIL PROTECTED] wrote: Can tweenfilterlite tween from inner to outer glows elegantly? The server isn't responding for me to check

Re: [Flashcoders] A Question that I've been asking for years!!

2008-08-26 Thread Hans Wichman
Hi, interfaces are pretty simple in reality and they are everywhere. Imagine every wall outlet looked different, and not only different, but that in order to use them, you had to remove the outlet first, take a look at the wiring and then bolt it back on with you finally knowing how to use it.

Re: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Hans Wichman
Hi, isnt milliseconds since 1970 easier? Something like: date value=103810313 / new Date ().setTime(103810313)) greetz JC On Tue, Aug 26, 2008 at 1:33 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: The app is designed for people only in the uk - it will show the current

Re: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Hans Wichman
(thefieldcomic.com) [EMAIL PROTECTED] wrote: would that be the same as the php time() method? because that would be super On Tue, Aug 26, 2008 at 1:27 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, isnt milliseconds since 1970 easier? Something like: date value=103810313 / new Date ().setTime

[Flashcoders] external interface from different clips

2008-08-25 Thread Hans Wichman
Hi, i'm building an app, which loads another app, so lets say main loads sub. Sub is always the same and is not under my control, and it performs a: _lockroot = true ExternalInterface.addCallback (, _root.obj, _root.obj.function); The first time sub is loaded, its _root points at _level0.a

Re: [Flashcoders] how many coders here actually have a degree relatedto computer science?

2008-08-23 Thread Hans Wichman
That is true, although it's hard to see how your live would be if you'd taken 'that other road' :) On Sat, Aug 23, 2008 at 12:11 PM, Eamonn Faherty [EMAIL PROTECTED]wrote: I have a computer science degree and I think it is so valuable. The things I learnt on my course help me with my

[Flashcoders] json flash 8/9

2008-08-22 Thread Hans Wichman
Hi, I'm currently involved in a project, where webservices are being accessed from flash, through a 400kb microsoft javascript library. The developer claims it is webservices through json, which is supposedly done because of the big performance improvement. All I see is a 400kb javascript

Re: [Flashcoders] json flash 8/9

2008-08-22 Thread Hans Wichman
Hi, thanks but I forgot to mention its AS2, will I need the additional libraries there? (they argue its as2 that has to run in fp9, go figure ;)) regards, JC On Fri, Aug 22, 2008 at 4:17 PM, Eduardo Omine [EMAIL PROTECTED]wrote: On Fri, Aug 22, 2008 at 9:49 AM, Hans Wichman [EMAIL PROTECTED

Re: [Flashcoders] how many coders here actually have a degree related to computer science?

2008-08-22 Thread Hans Wichman
HI, ok formal cs university degree here... would I recommend it? Erm depends on the work you have to do. I don't believe it's the best education/background for this kind of work. It has helped me to do the work I have to do, but it's not helping me getting the work I want to do :). And then again

[Flashcoders] fast performing as2 pano

2008-08-20 Thread Hans Wichman
Hi folks, I was searching for a fast performing as2 panorama tool, and stumbled into pano2vr. Although it's a great tool, the output seems a bit sluggish, but maybe I'm just spoiled by looking at flash 9 pano's. Does anybody know of a better as2 panorama tool that outputs fast performing

Re: [Flashcoders] Removing loaded swf...

2008-08-15 Thread Hans Wichman
Hi, I thought the point of Grant's article was that it's hopelessly bugged in player 9 even if you are an academic?:) greetz JC On Fri, Aug 15, 2008 at 3:47 PM, Eduardo Omine [EMAIL PROTECTED]wrote: In gotoPage(), try this: var loader:Loader = Loader(currentPage.parent); instead of:

Re: [Flashcoders] Drawing an arc with curveTo

2008-08-04 Thread Hans Wichman
Hi, here is a simple one usig curveTo's to create a fluid line: http://objectpainters.com/blog/2007/07/18/drawing-using-controlpoints/ greetz JC On Mon, Aug 4, 2008 at 10:03 AM, Ivan Dembicki [EMAIL PROTECTED] wrote: Hello Alias, http://bezier.googlecode.com you need Bezier.setPoint method

Re: [Flashcoders] Drawing an arc with curveTo

2008-08-04 Thread Hans Wichman
ok ignore that, i misread the question:) On Mon, Aug 4, 2008 at 11:22 AM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, here is a simple one usig curveTo's to create a fluid line: http://objectpainters.com/blog/2007/07/18/drawing-using-controlpoints/ greetz JC On Mon, Aug 4, 2008 at 10

[Flashcoders] as2 alert box

2008-07-31 Thread Hans Wichman
Hi folks, 1 in a coupe hundred times, my v2 alert box does not appear in the middle of the screen, but with its center at 0,0 of my stage. And of course we can roll our own again, but if there is a simple fix, I'd rather not:) Any ideas? regards, JC

Re: [Flashcoders] ...Friday, 5:38 pm

2008-07-25 Thread Hans Wichman
My favourite movie happy tree friends is in there woohoo! On Fri, Jul 25, 2008 at 6:30 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: it brings up a serious point tho - can flash survive with the amount of animosity there is towards it? On Fri, Jul 25, 2008 at 4:56 PM,

Re: [Flashcoders] flv lagging when changes the frame via code

2008-07-25 Thread Hans Wichman
Hi, might not be your issue, but are you telling the timeline on which the flv is embedded to go back, or the flv itself? greetz JC On Fri, Jul 25, 2008 at 7:18 PM, Fabio Pinatti [EMAIL PROTECTED] wrote: Hello all! I'm doing a kind of navigation application using a flv embedded on flash.

Re: [Flashcoders] ColorPicker.selectedValue to #hex?

2008-07-24 Thread Hans Wichman
Hi Jason, trace (Number(102).toString(16)); hth, JC On Thu, Jul 24, 2008 at 8:46 PM, Merrill, Jason [EMAIL PROTECTED] wrote: If you're manipulating the number, as opposed to storing or displaying it, Thanks, but yeah, the purpose is to display the hex #, the full 6 digits, to the user as

Re: [Flashcoders] Compare brightness of RGB values

2008-07-24 Thread Hans Wichman
Hi, just guessing here, but i think converting them to HSB first might work. Then you only need the B value. hth JC On Thu, Jul 24, 2008 at 8:55 PM, Jim McIntyre [EMAIL PROTECTED] wrote: Does anyone know a good formula for comparing brightness of RGB color values? Obviously, 0xCC is

Re: [Flashcoders] [SOLVED] arguments.caller -- name of this function?

2008-07-17 Thread Hans Wichman
Hi, and nowhere near complete:). But it might suffice for most cases. greetz JC On Thu, Jul 17, 2008 at 8:24 AM, Leonardo Scattola - New Vision srl [EMAIL PROTECTED] wrote: Thanks everybody for your prompt response. A dude on the FlashMedia List (on which we crossposted) proposed this

Re: [Flashcoders] arguments.caller -- name of this function?

2008-07-16 Thread Hans Wichman
http://objectpainters.com/blog/2007/07/16/argumentscallee_name/ HTH JC On Wed, Jul 16, 2008 at 6:06 PM, Leonardo Scattola - New Vision srl [EMAIL PROTECTED] wrote: Hi list! I apologize in advance if this question has already been asked... it is my little Wednesday puzzle :D Given this

Re: [Flashcoders] arguments.caller -- name of this function?

2008-07-16 Thread Hans Wichman
ps this is a very old article, the new reflection package is done, if you are interested let me know On Wed, Jul 16, 2008 at 7:22 PM, Hans Wichman [EMAIL PROTECTED] wrote: http://objectpainters.com/blog/2007/07/16/argumentscallee_name/ HTH JC On Wed, Jul 16, 2008 at 6:06 PM, Leonardo

Re: [Flashcoders] Overriding the trace command

2008-07-15 Thread Hans Wichman
Hi, one of the easiest methods to override/set a logger is to either use mtasc, which allows you to specify where the traces go, you can specify a class and method to trace to OR another method is to replace all traces with _global.log and add _global.log = function (info:String) { trace (info);

Re: [Flashcoders] Overlay problem

2008-07-14 Thread Hans Wichman
ps where _parent refers to the layer you want to disable clicks for etc On Mon, Jul 14, 2008 at 1:56 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hmm not entirely sure what you mean, but normally a : _parent.onPress = function(){} _parent.useHandcursor = false; does the trick. greetz JC

Re: [Flashcoders] Overlay problem

2008-07-14 Thread Hans Wichman
Hmm not entirely sure what you mean, but normally a : _parent.onPress = function(){} _parent.useHandcursor = false; does the trick. greetz JC On Mon, Jul 14, 2008 at 1:37 PM, Rajiv Seth (Pixelated) [EMAIL PROTECTED] wrote: Hi, I want to create an effect like

Re: [Flashcoders] Listeners and onLoadComplete

2008-07-14 Thread Hans Wichman
Hi, im missing the creating of the listener? JC On Mon, Jul 14, 2008 at 9:14 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: Trying again I have: this.createEmptyMovieClip(img_mc,999); var my_mcl:MovieClipLoader = new MovieClipLoader(); mclListener.onLoadComplete =

Re: [Flashcoders] loop or if

2008-07-13 Thread Hans Wichman
Hi, function f1(e:MouseEvent):void { var i:Number = 2 ; //set i to 2 if (i 10) { //if i10 = true, so this always executes i = i++; //i = now 3 trace(i = + i); //traces 3 not 2? } you probably want to declare i as an instance variable, not a local var

Re: [Flashcoders] loop or if

2008-07-13 Thread Hans Wichman
sorry i misread it, i thought u needed to double i, but it seems you want to up it by 2, that's i+=2. On Sun, Jul 13, 2008 at 1:25 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, function f1(e:MouseEvent):void { var i:Number = 2 ; //set i to 2 if (i 10) { //if i10 = true

Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-08 Thread Hans Wichman
Hi, well there is only one other option I know (assuming that without xml you mean without any kind of scripting) and that is a consistent naming pattern. Eg: image1.jpg,image2.jpg,image3.jpg, etc This way you just keep loading the images until the first one that fails. HTH JC On Tue, Jul 8,

Re: [Flashcoders] What's happened to my var?

2008-07-07 Thread Hans Wichman
try this: import mx.utils.Delegate; TweenFilterLite.to(m, tweenTime, {_y:targetPos, onComplete:Delegate.create (this, moveShape), onCompleteParams:[_timeline.y1]}); if it works, move the declaration of the delegate into your constructor, so it isn't recreated every time. greetz JC On Mon, Jul

[Flashcoders] Re: window create popup weirdness as2

2008-07-02 Thread Hans Wichman
Really no takers? I love these things only I run into :)). oh btw the call was PopUpManager.createPopUp and not Window.createPopup On Tue, Jul 1, 2008 at 5:27 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi list, I have a project that uses the v2 window.createPopup functionality. However now

[Flashcoders] Re: window create popup weirdness as2

2008-07-02 Thread Hans Wichman
that loaded the class and not by the swf using the class. argghg i just love flash greetz JC On Wed, Jul 2, 2008 at 8:48 AM, Hans Wichman [EMAIL PROTECTED] wrote: Really no takers? I love these things only I run into :)). oh btw the call was PopUpManager.createPopUp

Re: [Flashcoders] Re: window create popup weirdness as2

2008-07-02 Thread Hans Wichman
: Yes, unfortunately I found pretty early on that most V2 components require _lockroot _and_ that the component be included in both the loaded SWF and SWF that's loading it. So I stopped using V2 components. They're pretty rubbish. :-( Ian On Wed, Jul 2, 2008 at 8:13 AM, Hans Wichman [EMAIL

Re: [Flashcoders] Re: window create popup weirdness as2

2008-07-02 Thread Hans Wichman
doesn't need form entry etc. Anything which _does_ need form entry and complicated stuff we're doing in AS3 with the Flex components. Ian On Wed, Jul 2, 2008 at 9:57 AM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, yep same conclusions here. Add the fact that _lockroot is just plain buggy

Re: [Flashcoders] Re: window create popup weirdness as2

2008-07-02 Thread Hans Wichman
need form entry etc. Anything which _does_ need form entry and complicated stuff we're doing in AS3 with the Flex components. Ian On Wed, Jul 2, 2008 at 9:57 AM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, yep same conclusions here. Add the fact that _lockroot is just plain buggy

[Flashcoders] window create popup weirdness as2

2008-07-01 Thread Hans Wichman
Hi list, I have a project that uses the v2 window.createPopup functionality. However now and then, the window that is opened has only half a title bar, no content pane (only a very small rectangle), appears momentarily in the top left corner of the player, and then is centered to where it should

Re: [Flashcoders] Calling super.apply

2008-06-26 Thread Hans Wichman
Hi, not going to work I think. Ran into this some time ago, the Array class is a beastie in its own right. The only around it that I found was adding a static createFromArray method to my subclass (which is slow). greetz JC On Thu, Jun 26, 2008 at 5:02 PM, Morten Barklund [EMAIL PROTECTED]

Re: [Flashcoders] Is there any way to get a list of the classes compiled into a SWF?

2008-06-17 Thread Hans Wichman
Hi, as2 or as3? In as2 i'd use the verbose option on mtasc. greetz JC On Tue, Jun 17, 2008 at 11:33 AM, Piers Cowburn [EMAIL PROTECTED] wrote: I'm trying to nail down where a reference to an unwanted class is coming from, and I need to be able to work out which classes are being compiled

Re: [Flashcoders] adding value of radiobutton to number in resultTxt.text field.. help please

2008-05-20 Thread Hans Wichman
Hi, read a programming or flash manual, or subscribe to the newbie list. This is not meant harshly but these questions are so basic that you are doing yourself (and us) a favor by sharpening your axe before you set off in the woods. You do: resultTxt.text = parseInt(resultTxt.text) +

Re: [Flashcoders] Player 8 and the Alert component

2008-05-13 Thread Hans Wichman
drop an instance in the main fla as well. On Tue, May 13, 2008 at 2:30 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: The problem seems to be that the alert component is in a mc that is being loaded into another mc... is this a known issue? Any thought on how I get it to work?

[Flashcoders] hitarea not working when cacheAsBitmap is true?

2008-04-23 Thread Hans Wichman
Hi folks, I have a clip with a hitarea attached ie: myClip.hitArea = myHitArea; works like a charm... but now I want to attach a filter to the hitArea. Attaching a filter automatically sets cacheAsBitmap to true, and the hitarea no longer works. Any ideas why this is happening? It is only

[Flashcoders] Re: hitarea not working when cacheAsBitmap is true?

2008-04-23 Thread Hans Wichman
Hi, further investigation reveals it only happens when myHitArea is drawn by code :-S and we turn on cacheAsBitmap greetz JC On Wed, Apr 23, 2008 at 10:16 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi folks, I have a clip with a hitarea attached ie: myClip.hitArea = myHitArea; works

[Flashcoders] SOLVED Re: hitarea not working when cacheAsBitmap is true?

2008-04-23 Thread Hans Wichman
Hi, for n1 who is interested, if I simply attach a dynamically drawn bitmap as hitarea instead of a dynamically drawn movieclip, it works just fine. Crappy bug tbh. greetz JC On Wed, Apr 23, 2008 at 10:16 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi folks, I have a clip with a hitarea

[Flashcoders] 64 bit OS and FMS

2008-04-18 Thread Hans Wichman
Hi, does n1 have any experience with running FMS on a 64bit Vista OS? We are migrating one of our testservers shortly and we are trying to identify possible bottlenecks. greetz JC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Hans Wichman
hmm, as in: myMovie.unload (false); which would then be documented as: Unload unloads your movie except when false is passed Feels...wrong somehow;) On Wed, Apr 16, 2008 at 1:40 PM, Piers Cowburn [EMAIL PROTECTED] wrote: I think any kind of fix they implement now would have to have some

Re: [Flashcoders] Dynamic class instantiation

2008-04-04 Thread Hans Wichman
btw new eval(_global.myPackage.MyClass)(); does the trick as well. If you please add Assert.assertNotNull (eval(_global.myPackage.MyClass)) etc On Fri, Apr 4, 2008 at 5:01 PM, Jiri Heitlager [EMAIL PROTECTED] wrote: Thanx Alan, using a custom error exception is a nice little added touch :)

Re: [Flashcoders] AS2 SOAP web service

2008-04-01 Thread Hans Wichman
hi, creating a webservice is asynchronous, at least in as2, you will have to wait for the creation to complete. That probably doesnt solve your problem ,but is a prerequisite anyway greetz JC On Tue, Apr 1, 2008 at 11:46 AM, Gert-Jan van der Wel [EMAIL PROTECTED] wrote: Thanks for your

Re: [Flashcoders] Decorator Pattern - removing a decorator

2008-03-21 Thread Hans Wichman
it only gets worse :) This is a nice read too: http://www.moserware.com/2008/03/what-does-it-take-to-become-grandmaster.html On Thu, Mar 20, 2008 at 11:08 PM, Jiri Heitlager [EMAIL PROTECTED] wrote: Steven, thanks for that helpfull reply. It is funny becuase I was just thinking about the

Re: [Flashcoders] Writing Custom MovieClip Classes

2008-03-20 Thread Hans Wichman
i'm betting it's the sorry couldn't resist;) On Thu, Mar 20, 2008 at 4:49 PM, Omar Fouad [EMAIL PROTECTED] wrote: Man Here is what I wrote. * public* *class* A_window *extends* MovieClip{ *public* static *const* CLOSE:String = *close*; *public* *function* A_window() {

Re: [Flashcoders] Source Control [WAS] to mac or not to mac

2008-03-15 Thread Hans Wichman
Hi Muzak, i thought trac already offered a wiki, svn, emailnotifications and more, could you spare some details on what assembla offers over trac? greetz JC On Sat, Mar 15, 2008 at 8:56 PM, Muzak [EMAIL PROTECTED] wrote: And on a similar note, I use Assembla as an online repository:

[Flashcoders] doDecoding

2008-03-12 Thread Hans Wichman
Hi list, I'm trying to find out the difference in webservice results when alternating myCall.doDecoding between true and false, but no matter what i set it to, my results are passed as converted xml objects. Any pointers on what the real difference is? The documentation is very unclear on this

[Flashcoders] Re: doDecoding

2008-03-12 Thread Hans Wichman
; myCall.doLazyDecoding = true; var pend:PendingCall = myWS.system_ExecuteEvent( Don't mind the bad code it's a quick an dirty test I'm working on. greetz JC On Wed, Mar 12, 2008 at 9:06 AM, Hans Wichman [EMAIL PROTECTED] wrote: Hi list, I'm trying to find out the difference in webservice results when

Re: [Flashcoders] mouse x and y

2008-03-11 Thread Hans Wichman
google for flash mouse x y On Tue, Mar 11, 2008 at 12:49 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: How can I trace the x and y of the mouse? I would want to grab it on a click Ted ___ Flashcoders mailing list

Re: [Flashcoders] dictionary vs array

2008-03-11 Thread Hans Wichman
On a sidenote, it's pretty easy to implement for as2 too btw, although the performance is probably not uber. I gotta admit once you get used to object-to-object mapping ... ;) On Tue, Mar 11, 2008 at 9:07 PM, Claus Wahlers [EMAIL PROTECTED] wrote: Claus Wahlers wrote: An associative Array

Re: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Hans Wichman
just managed to get it working, and yeh - it's really fast. Thanks for the reminder... - karim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: 28 February 2008 19:16 To: Flash Coders List Subject: Re: [Flashcoders] bitMapData

Re: [Flashcoders] Copypixels transparency with percentage

2008-02-25 Thread Hans Wichman
Hi, have you tried public draw(source:Object, [matrix:Matrix], [colorTransform:ColorTransform], [blendMode:Object], [clipRect:Rectangle], [smooth:Boolean]) : Void using the colortransform? greetz JC On Mon, Feb 25, 2008 at 10:48 AM, Elia Morling [EMAIL PROTECTED] wrote: How do I make a

Re: [Flashcoders] Exporting AS2 classes across multiple frames?

2008-02-12 Thread Hans Wichman
Hi, you can put classes in an swf and use the swf as a dll. It's a hassle but its doable. You load the swf in a specific frame, the swf only contains classes and they become available from that frame onwards. Again, im not sure if you should do this if the only reason is that you'd rather write

Re: [Flashcoders] getBytesLoaded() and actions execution

2008-02-09 Thread Hans Wichman
Hi, no i don't think so, check out moviecliploader. greetz JC On Sat, Feb 9, 2008 at 4:31 PM, strk [EMAIL PROTECTED] wrote: Is it safe to assume that as soon as loaded.getBytesLoaded() == loaded.getBytesTotal() actions in first frame of the loaded 'loaded' movieclip were executed ?

Re: [Flashcoders] is there a way of detecting whether or not the mouse is in a movie at all?

2008-02-08 Thread Hans Wichman
Hi, that is only detectable when the mouse is down (try tracing xmouse and ymouse while mouse is down, versus when its not). Another thing you can do is look at how long the mouse hasnt moved. greetz JC On Feb 8, 2008 1:40 PM, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: hi guys

Re: [Flashcoders] Save MC as JPG

2008-02-03 Thread Hans Wichman
Hi, can u put a test online? With fla that is. greetz JC On Feb 3, 2008 3:24 PM, Dave Mennenoh [EMAIL PROTECTED] wrote: Nobody? I am still not figuring this out. Using getPixel() on certain clips is returning #FF when it's cleary not a white pixel. But it makes no sense. On one clip it

Re: [Flashcoders] Save MC as JPG

2008-02-03 Thread Hans Wichman
Hi, are you loading all images from the same domain? greetz JC On Feb 3, 2008 4:00 PM, Dave Mennenoh [EMAIL PROTECTED] wrote: OK -it seems to be the BitmapData.draw() method that is failing. On just certain images (though all are jpeg's imported into Flash and turned into MC's) draw() is

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-02-01 Thread Hans Wichman
:-) On Jan 30, 2008 8:05 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use

Re: [Flashcoders] dynamically including MC's

2008-02-01 Thread Hans Wichman
Hi, if it runs from a server you could do exactly that, write some kind of script that returns the contents of the folder in xml format. It's not supported in flash to loop through a set of files without such a script. greetz JC On Fri, Feb 1, 2008 at 3:25 PM, Ted Lehr [EMAIL PROTECTED] wrote:

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-01-30 Thread Hans Wichman
Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use this: You will need to replace the RuntimeExceptions with your own error mechanism

Re: [Flashcoders] Flash 8, AS 2.0. I want to use symbols from child movie in parent movie. Possible?

2008-01-29 Thread Hans Wichman
Hi, you've answered your own question I'm afraid. There is one other option, paint bitmaps to a symbol :). So all the assets for an interactive smiley are stored as bitmaps and you create a movieclip from that. greetz JC On Tue, Jan 29, 2008 at 5:33 PM, Donald Trump [EMAIL PROTECTED] wrote:

Re: [Flashcoders] how to return in this function

2008-01-29 Thread Hans Wichman
seems like an item for the newbie list tbh:) On Tue, Jan 29, 2008 at 8:27 PM, Claudio M. E. Bastos Iorio [EMAIL PROTECTED] wrote: Thanks for your answer. But how? Where?. I think that ProgressEvent.bytesLoaded, and ProgressEvent.bytesTotal could help. But where should I check the status?

Re: [Flashcoders] Event Handling in ActionScript 3

2008-01-28 Thread Hans Wichman
Hi, basically you look at every method in the interface, and write a method in your own class with the exact same signature and then you declare the class as an implemenation of that interface. Say you'd have an interface ISerializable which would allow you to convert an object to xml , the

Re: [Flashcoders] Event Handling in ActionScript 3

2008-01-26 Thread Hans Wichman
Hi, If you dont like the as3 event mechanism, you can write your own, but looking at your code, there are a number of things I wouldn't do: - setting local variables on the activation stack, it leads to memory waste - executing the asynchronoustask before setting the callback handlers -

Re: [Flashcoders] Communicating with a file upload sript in a htaccess protected directory...

2008-01-25 Thread Hans Wichman
Hi, not sure but is validating first through normal means using a loadvars object an option? loadvarsObj.addRequestHeader(Authorization,BASIC + Base64.Encode (username:password)); loadvarsObj.sendAndLoad(myUrl, loadvarsObj, POST); greetz JC On Fri, Jan 25, 2008 at 7:38 PM, Glen Pike [EMAIL

Re: [Flashcoders] for statement stumper

2008-01-23 Thread Hans Wichman
Hi, without going into activation objects or what're called and scope issues, i'd go with: for (var j = 0; j5; j++) { trace(j is+j); this[clip+j][button+j].myJ = j; this[clip+j][button+j].onRollOver = function() { Tweener.addTween(this._parent,{_xscale:100, _yscale:100, delay:0,

Re: [Flashcoders] [AS2] bitmapdata from external loaded swf

2008-01-22 Thread Hans Wichman
http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg37404.html :) On Jan 22, 2008 8:54 AM, Latcho [EMAIL PROTECTED] wrote: Hi list, Playin with setup strategies, my major hassle was a shared library. When I load library.swf in main.swf with MCloader, i noticed there was no

Re: [Flashcoders] [AS2] bitmapdata from external loaded swf

2008-01-22 Thread Hans Wichman
] On Behalf Of Hans Wichman Sent: 22 January 2008 11:06 To: [EMAIL PROTECTED]; Flash Coders List Subject: Re: [Flashcoders] [AS2] bitmapdata from external loaded swf http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg37404.h tml :) On Jan 22, 2008 8:54 AM, Latcho [EMAIL PROTECTED

[Flashcoders] loadBitmap

2008-01-14 Thread Hans Wichman
Hi, im trying to attach a bitmap from a childmovie to a parent movie, but to no avail. It seems BitmapData.loadBitmap only works in the main movie on linkageid's from the main movie. Tricks like trying to attach the bitmap to the childmovie itself dont seem to work. Any pointers? Is doesnt

[Flashcoders] loadBitmap solved

2008-01-14 Thread Hans Wichman
Hi, ok I fixed it. The only way I found to load bitmap data from an external child swf was to: - put an extra clip in the childswf connected to an AS2 clip which attached a specified bitmap from its own library - load the childclip, attach the extra clip to it, have it attach the bitmap data and

[Flashcoders] absurd screensaver demands...

2008-01-14 Thread Hans Wichman
Hi, one of our clients wants us to make a screensaver. We decided to do it in flash but the CPU isnt allowed to go over 10% usage. That is absurd in itself since it didnt come with a PC spec, so I could say well at NASA we didn't even hit 2%! but anyway we're looking for an option to make

[Flashcoders] getting bitmap data straight from loaded child swf

2008-01-14 Thread Hans Wichman
Hi folks, I cleaned up the mess a bit, and thought this might be interesting to you. Goal: - load a child swf with png/jpgs/whatever with linkage id's set in a parent swf and extract bitmap data from child into parent I couldn't do this any other way than: - adding a clip on the root of the

Re: [Flashcoders] Preloading and Dispatching Events

2008-01-13 Thread Hans Wichman
well there ya go: http://objectpainters.com/blog/2007/12/07/why-you-must-call-super/ :))) It's as2 , but i can imagine it applies to as3 as well, if anyone happens to know? greetz JC:) On Jan 13, 2008 5:13 AM, Helmut Granda [EMAIL PROTECTED] wrote: No, I'm not calling super... On 1/12/08,

[Flashcoders] extends implements

2008-01-10 Thread Hans Wichman
Hi folks, I was wondering about your personal/professional preference regarding the following. Say you have an interface IEvent and a base class Event which implements IEvent. Now you are creating an event subclass MyEvent which can: - implement IEvent - extend Event - both In other words,

Re: [Flashcoders] SetStyle with UI component

2008-01-10 Thread Hans Wichman
Hi, did you copy and paste that? Since it's full of typo's :) If u did, i'd try setStyle instead of setSytle and verticalAlign instead verticalAlign. If that wasn't it... then well it was a good guess:)) greetz JC On Jan 10, 2008 2:23 PM, learner [EMAIL PROTECTED] wrote: Hi all, Can I not use

<    1   2   3   4   5   6   7   >