Re: [Flashcoders] singleton returns null

2008-11-21 Thread Hans Wichman
use, > but I was wondering if it was being a stupidity of mine with singleton > concept, since I'm a bit new with oop. > > Thanks a lot, > Pinatti > > On Fri, Nov 21, 2008 at 10:53 AM, Hans Wichman < > [EMAIL PROTECTED]> wrote: > >> Hi, >> >>

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 I

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] frameworks and flash

2008-11-20 Thread Hans Wichman
re > I can truly judge it. > > You guys don't have to post links 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: > >&g

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 wher

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 st

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 actua

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 9:4

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 y

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 Hersh

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, 20

Re: [Flashcoders] FLV: reliable height&width 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 a

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

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

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

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

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] Disabling Print Screen key

2008-10-23 Thread Hans Wichman
be with JS? > > Pinatti > > On Thu, Oct 23, 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,

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

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 to

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, sebas

Re: [Flashcoders] working with getPixel32 and setPixel32,

2008-10-06 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 Califa

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 belie

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 Some

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 functio

Re: [Flashcoders] getURL and ExternalInterface

2008-09-10 Thread Hans Wichman
t; read this for more information 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

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

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 lo

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 m

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 som

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

2008-08-26 Thread Hans Wichman
liott (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 eas

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

2008-08-26 Thread Hans Wichman
Hi, isnt milliseconds since 1970 easier? Something like: 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 > time and the amou

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. Wo

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

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

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

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

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

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/ > > gr

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 m

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

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 i

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 t

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

2008-07-16 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 thi

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,

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 th

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

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 > http://www.limoosoft.com

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;

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 &

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 i<10 => 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 va

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, 2

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 7

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

2008-07-02 Thread Hans Wichman
kids) and mostly 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, &g

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

2008-07-02 Thread Hans Wichman
kids) and mostly 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, &g

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

2008-07-02 Thread Hans Wichman
PROTECTED]> wrote: > 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. :-( > >

[Flashcoders] Re: window create popup weirdness as2

2008-07-02 Thread Hans Wichman
e swf 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 PopUpMana

[Flashcoders] Re: window create popup weirdness as2

2008-07-01 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 functiona

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

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

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) + > (eve

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

[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: > > myCli

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

[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 http://cha

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 sugges

Re: [Flashcoders] Decorator Pattern - removing a decorator

2008-03-20 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

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: > http:

[Flashcoders] Re: doDecoding

2008-03-12 Thread Hans Wichman
Decoding = true; 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'

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

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 Arra

Re: [Flashcoders] dictionary vs array

2008-03-11 Thread Hans Wichman
Hi, its a conceptual difference, array maps indices to objects, while a dictionary maps objects to objects. There is no such thing as better, it depends on what you need. greetz JC On Tue, Mar 11, 2008 at 7:02 PM, Dwayne Neckles <[EMAIL PROTECTED]> wrote: > can anyone say why dictionary is bette

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

Re: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Hans Wichman
ago. However, I 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 F

Re: [Flashcoders] bitMapData - function optimization

2008-02-28 Thread Hans Wichman
http://objectpainters.com/blog/2007/11/30/inverting-the-alpha-of-a-bitmap-image/ of any help? On Thu, Feb 28, 2008 at 6:56 PM, Steven Sacks <[EMAIL PROTECTED]> wrote: > maybe... > > private function createInvertedMask() > { >var r:int = mask_bitmap.width; >var c:int = mask_bitmap.height

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 co

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 th

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 gu

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

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-02-01 Thread Hans Wichman
eems that, despite my fondest hopes, > >> there is > >> no easy way to "retro-fit" hundreds of SWFs originally built without > >> this > >> loadMovie() requirement in mind. > >> > >> Cheers and thanks :-) > >> > >> >

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

[Flashcoders] 2 fonts different results

2008-01-28 Thread Hans Wichman
Hi list, ive got 2 fonts, both non standard that I'm playing with. While doing: ta_test.setStyle ("fontFamily", [font1here]); ta_test.setStyle ("fontSize", 20); i see the font in the textarea, although its not aliased. If I do: ta_test.setStyle ("fontFamily", [font2here]); ta_test.setStyle ("fo

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

<    1   2   3   4   5   6   7   8   >