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

[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

[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

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

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

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

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:

[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

[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

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

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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-15 Thread Hans Wichman
Completely unrelated conclusion, there is no relation between charging 10 hours for one hour of work and reusing standard components or not. If I follow your line of reasoning you say that because you are so good and can complete it in an hour instead of where someone else would take 10 it allows

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] text line overflow

2008-11-17 Thread Hans Wichman
Hi, I've got an as2 implementation maybe you can convert it (and clean it:)): //nametextfield contains actual text. Check what is smaller the actual width of the textfield or a combo of the available width + margin+dotwidth //50 == margin, 20== correction, +5 == no clue old code;)) //so the

Re: [Flashcoders] AS statement this[testStudent + i] in JAVA ?

2008-11-17 Thread Hans Wichman
HI, a HashTable or Dictionary type of object is your friend. HTH, JC On Mon, Nov 17, 2008 at 5:35 PM, tim shaya [EMAIL PROTECTED] wrote: Apologies in advance if this is a bit off topic but are there any ActionScripters who know Java on here? I'm just starting out with Java and I'm stuck.

Re: [Flashcoders] frameworks and flash

2008-11-20 Thread Hans Wichman
Hi Jason, i only saw this post now, not sure if it was directed at me or at the list in general or both, but anyway: i agree the naming conventions could be better, but I don't mind using some kind of locator object. I posted previously about my approach I think. I use an ApplicationRegistry

Re: [Flashcoders] frameworks and flash

2008-11-20 Thread Hans Wichman
but could you describe some of the projects you've worked on where Flex was an easy choice over Flash? On Thu, Nov 20, 2008 at 6:18 AM, Hans Wichman [EMAIL PROTECTED] wrote: Hi Jason, i only saw this post now, not sure if it was directed at me or at the list in general or both, but anyway

Re: [Flashcoders] Text Stroke?

2008-11-21 Thread Hans Wichman
I think that's only possible using mxml... just kidding, sorry could't resist :) On Fri, Nov 21, 2008 at 8:45 AM, Elia Morling [EMAIL PROTECTED] wrote: Has the ugly Glow-Filter trick been replaced with anything better in CS4? Thanks, Elia ___

Re: [Flashcoders] singleton returns null

2008-11-21 Thread Hans Wichman
Hi, im not sure about your syntax. This: class MyClass { public static var _instance:MyClass = this; } will not work. You are looking for something like: class MyClass { public static var _instance:MyClass = null; public function MyClass () { _instance = this; } } Although

Re: [Flashcoders] singleton returns null

2008-11-21 Thread Hans Wichman
, Hans Wichman [EMAIL PROTECTED] wrote: Hi, im not sure about your syntax. This: class MyClass { public static var _instance:MyClass = this; } will not work. You are looking for something like: class MyClass { public static var _instance:MyClass = null; public function MyClass

Re: [Flashcoders] synchronous app

2008-11-21 Thread Hans Wichman
nah where'd be the fun in that!? :) On Sat, Nov 22, 2008 at 6:14 AM, poste9 [EMAIL PROTECTED] wrote: someone discovered some way to make synchronous app? something like that: foo = doSomeHttpRequest(); and the response from http request is attribued to foo var --

Re: [Flashcoders] showing code progress with progress bar

2008-11-21 Thread Hans Wichman
Hi, the onenterframe will work, but you can approach it a little differently, in pseudo: onEnterFrame { if (no items to process left) { clear onEnterFrame, signal done; } set loop start time while (currenttime - loop start time 100 ms) { process loop item } update progressbar } greetz

Re: [Flashcoders] mp3 player AS2

2008-11-22 Thread Hans Wichman
Hi, I don't think posting the same question 3 times is going to get you any closer to the solution. If people know the answer, they will reply really:) greetz JC On Sat, Nov 22, 2008 at 10:04 PM, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Please help me understand how correctly to show

Re: [Flashcoders] snap to guide AS code?

2008-11-23 Thread Hans Wichman
Hi, if you iterate through the guides and you locate the one with the closest distance to your object, you got the closest guide. Now if your mouse/object is closer than 'x' pixels to the guide, set the object x to the guide x, otherwise set the object x to the mouse x. Is that what you are

Re: [Flashcoders] full screen rectangle issue

2008-11-23 Thread Hans Wichman
are you testing in the player version 9? On Sun, Nov 23, 2008 at 5:42 PM, carlos varner [EMAIL PROTECTED] wrote: I keep getting full screen based on the entire stage but not my 640x480 rectangle. I gotta be missing something? I'm using actionscript 2 with flash 8 and the example at

Re: [Flashcoders] Re: showing code progress with progress bar

2008-11-24 Thread Hans Wichman
wont work On Mon, Nov 24, 2008 at 6:36 PM, Latcho [EMAIL PROTECTED] wrote: what about a functioncall every 100th loop that has to return fake data (a true or false or anything else) to the loop? Within that function you update the display progress Latcho Mac Angell wrote: Yeah, I

Re: [Flashcoders] online .swf generator

2008-11-26 Thread Hans Wichman
Hi, so if they can download a zip that contains an swf, some sort of config file, and maybe some assets, that they can extract anywhere, that'd be ok too? I'm asking cause what paul says makes a lot of sense. greetz JC On Wed, Nov 26, 2008 at 8:45 PM, Michael Stocke [EMAIL PROTECTED] wrote:

Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Hans Wichman
Hi, I'm still in the middle. I used to use getMyVariable setMyVariable for everything, now I usually use public variables for entity/value objects. I still hate not being able to see whether something is a variable or function, so for everything else than very simple objects I prefer

Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Hans Wichman
ps we're probably not the first ones discussing this old subject, has n1 found some good sources/references? Most of the old CS textbooks sentence you to hell for using public variables so let's not refer to those ;) On Wed, Dec 10, 2008 at 8:28 AM, Hans Wichman [EMAIL PROTECTED] wrote: Hey

Re: [Flashcoders] use get / set functions or make your own

2008-12-09 Thread Hans Wichman
Hey, I'm not against using public variables, but I dont like using get set as you did below *if *setting the data has sideeffects outside the area of validation. If you are setting a property and you want to test or verify it or whatever, I can imagine using set get. If you are setting a property

Re: [Flashcoders] colour and transform matrices

2008-12-10 Thread Hans Wichman
Hi, have you seen this one: http://www.quasimondo.com/archives/000565.php Or are you looking behind the math of it? greetz JC On Wed, Dec 10, 2008 at 12:25 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: Hi guys After a brief discussion with some of the devs where i'm

[Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi list, I was wondering how you handle your assets in version control. I usually follow a standard project setup something like: trunk branches tags The trunk contains for example sources, deploy, deploy/assets Now especially the assets folder tends to get very large. Each time I tag the

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Hans Wichman
Hi, yep that was the article, but the original poster asked a subtly different question (unless I'm mistaken). allandt asked about implicit vs explicit getters setters. Darron talks about using public variables vs implicit no brain getters setters. First time I read that article I thought he

Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Hans Wichman
hmmm no guess I didn't, been pixelstaring too long already today;) On Wed, Dec 10, 2008 at 4:18 PM, Merrill, Jason [EMAIL PROTECTED] wrote: yep that was the article, but the original poster asked a subtly different question (unless I'm mistaken). allandt asked about implicit vs explicit

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
. If you create a tag, it just creates an alias to the files, not a true copy; so the size in the repository doesn't go up by a huge amount. Are you keeping a local copy of all your tagged code or something? Ian On Wed, Dec 10, 2008 at 2:36 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi list

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hans Wichman wrote: Hi, yep using subversion. I usually create the tag in my workingcopy, but on the server would be fine as well. We have one system though with some 500 small projects, all in a single repository, which are tagged before they are released. But the structure

Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
that when we extract project1 at v1-0 we can roll back our shared code to exactly the right point too. It also means our build utils are the right versions to recreate that project at v1-0. Hope that's helpful! Ian On Wed, Dec 10, 2008 at 7:21 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi

Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread Hans Wichman
Hi, does trapallkeys make any difference? greetz JC On Thu, Dec 11, 2008 at 11:05 AM, laurent [EMAIL PROTECTED] wrote: Hi list, I made some form in my app and the textfields work fine on local from the flash ide. But when the site is in the browser the texfield don't recognise that the

Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread Hans Wichman
:( L Hans Wichman a écrit : Hi, does trapallkeys make any difference? greetz JC On Thu, Dec 11, 2008 at 11:05 AM, laurent [EMAIL PROTECTED] wrote: Hi list, I made some form in my app and the textfields work fine on local from the flash ide. But when the site is in the browser

Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread Hans Wichman
, ...like mac..:) http://240plan.ovh.net/~frenchda/index2.php down right menu: 'MON COMPTE' you have a email texfield, try to write you one ;) L Hans Wichman a écrit : Hi, ok I misunderstood the problem at first, thinking you were trying to detect shift keypress, but the whole

Re: [Flashcoders] asset versioncontrol (beginning to go OT:))

2008-12-11 Thread Hans Wichman
, Dec 10, 2008 at 9:22 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi Ian, Doesn't tagging take an awful lot of time this way? No, not really. We only tag on release of a new version (not every build or anything), and the time taken is worth it. Ian

Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread Hans Wichman
?? it was french keyboard thank you! L Hans Wichman a écrit : Hi, I can enter my email in the bottom textfield, win xp sp2, ie,player10. Ar you using a non english keyboard? And what happens when you turn wmode transparent off? greetz JC On Thu, Dec 11, 2008 at 3:46 PM, laurent laur

[Flashcoders] autosize and dropshadow

2008-12-15 Thread Hans Wichman
Hi list, when creating a dynamic textfield with a dropshadow, autosize stops working correctly. Unfortunately only for some textfields so it's not easily reproduced. I found someone with the same problem ( http://www.gotoandlearnforum.com/viewtopic.php?f=28t=15359 ) and applying the filter after

Re: [Flashcoders] round number to closet value of 8

2008-12-18 Thread Hans Wichman
very cool! On Thu, Dec 18, 2008 at 4:26 PM, Benjamin Wolsey b...@benjaminwolsey.dewrote: Am Donnerstag, den 18.12.2008, 16:13 +0100 schrieb Hans Wichman: Hi, I think you are looking for : function roundToEight (pVal:Number) { return Math.round(pVal/8)3; } although 44.9 and 44.4

Re: [Flashcoders] round number to closet value of 8

2008-12-19 Thread Hans Wichman
his trick :) greetz JC On Fri, Dec 19, 2008 at 10:04 AM, Jiri Heitlager jiriheitla...@googlemail.com wrote: Indeed it looks very impressive. Could some explain what is does exactly? Hans Wichman wrote: very cool! On Thu, Dec 18, 2008 at 4:26 PM, Benjamin Wolsey b...@benjaminwolsey.de

Re: [Flashcoders] Tweening a Bitmap Blur in combo w/generateFilterRect?

2009-01-09 Thread Hans Wichman
Hi, how about setting up a couple properties, and tween them using TweenLite, calling your apply method using TweenLite's onUpdate method? greetz JC On Fri, Jan 9, 2009 at 6:49 PM, Matt S. mattsp...@gmail.com wrote: So I'm applying a blur to a bitmap via the code below (a little clunky

Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-13 Thread Hans Wichman
What I don't understand is that someone takes the time to write an elaborate answer and you have the nerve to reply with how about a real answer, some attitude dude. Although noone seems to take offense, it's a one way trip to my ignore list. On Mon, Jan 12, 2009 at 9:24 PM, Anthony Pace

Re: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-13 Thread Hans Wichman
HI, can you put up a simplified zip that allows us to try it out? And then for something else, if you don't get a response within a day, there's need to get cynical or offensive referring to us as 'coders' as if everyone here is only a wannabe of some sort. Last time I checked I'm geting paid to

Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-13 Thread Hans Wichman
to their club, it is not a real answer. As I said, I appreciated his second answer, where he actually gave information about how to accomplish it on my own. allandt bik-elliott (thefieldcomic.com) wrote: i thought it was so rude that you were being sarcastic On Tue, Jan 13, 2009 at 9:17 AM, Hans

Re: [Flashcoders] object passed to function has values undefined

2009-01-31 Thread Hans Wichman
Hi, can you reproduce the problem and put up some fla for download for us to test? greetz JC On Fri, Jan 30, 2009 at 10:07 PM, Matt McKeon m...@camadro.com wrote: Hi all, I've got some code in AS2, and a function that has one parameter of type Object. That function gets called from a

Re: [Flashcoders] jpeg enhancement

2009-02-04 Thread Hans Wichman
Hi, are you loading them or are they in the library? greetz JC On Tue, Feb 3, 2009 at 3:45 PM, Matt S. mattsp...@gmail.com wrote: As Laurent said, check the smoothing, eg image.smoothing = true; , that's almost always the issue, especially if they're being scaled down and appearing jaggy.

Re: [Flashcoders] MovieClip Opacity

2009-02-05 Thread Hans Wichman
Definitely do that:). Are you using as2 or as3? In any case reading through a book such as essential actionscript or a similar book, covers all of this stuff and saves you many headaches. TO get you started:

Re: [Flashcoders] jpeg enhancement

2009-02-05 Thread Hans Wichman
o n] percepti...@gmail.com wrote: Hi, I'm loading them...appreciate all the tips... cheers percy On Wed, Feb 4, 2009 at 12:05 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi, are you loading them or are they in the library? greetz JC On Tue, Feb 3, 2009 at 3

<    1   2   3   4   5   6   7   >