Re: [Flashcoders] Q:Tween Class..detect tween in progress
Hi, there is tween.onMotionChanged ( obj:Object ) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FP8 AS2 color picker and comboBox
Hello everyone, i seek for color picker component (tried many, Illogiz, not working in as2), please doeas anyone have some really good? And custom combobox. simple as possible, thanks in advance Martin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Heap Size Eclipse
I have some problems using eclipse lately. Problems start when launching MTASC for compiling a huge project. The heap size goes up to 253M of 254M, and remains this high, even after mtasc has compiled. I tried to set maximum heapsize to 512M, but then it seems as heapsize goes up to 512M, and problems are even bigger (computer slows down). Is there a Java Virtual Machine that can do better, and what has MTASC to do with the heap size...? Met vriendelijke groeten, Lieven Cardoen MULTIMEDIALOFT | POINT X Engelse Wandeling 2 K18v | 8500 Kortrijk | T +32 (0)56/36.11.97 // communicatie bij voorkeur op [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Heap Size Eclipse
Is there a Java Virtual Machine that can do better, and what has MTASC to do with the heap size...? MTASC is an external process and doesn't run on the JVM. I don't see how it could even have some effect on it (?). Nicolas ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Newbiew question AS3
stefan burt wrote: I've heard a lot about flex are there any sites/app's on the net which offer a good impression of what the platform is capable of? Take a look at adobe labs showcase, the most interesting Flex 2 Apps at the moment can be found there -- Michael Antares Klishin, Email: [EMAIL PROTECTED] Web: www.novemberain.com Non progredi est regredi ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Load external bitmap into bitmapdata?
Awesome! Thanks Jesse/JesterXL. I love finding out I'm wrong when there is a better way :) On 3/6/06, Marcelo Volmaro [EMAIL PROTECTED] wrote: Indeed, it works!, Also, trying this i´ve found a method to attach loaded movies as bitmaps... now i can create libraries of MCs!! Thanks! On Mon, 06 Mar 2006 19:50:24 -0300, JesterXL [EMAIL PROTECTED] wrote: I started to eat a cup, but it really didn't taste so good. Suddenly, my mouth really hurt trying to voraciously chew on ceramics, thus I gave up upon realising cups don't taste so good. ...however, this code in fact works: import flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.Matrix; import flash.geom.ColorTransform; function init() { Stage.align = TL; Stage.scaleMode = noScale; createEmptyMovieClip(image_mc, 0); var mcl:MovieClipLoader = new MovieClipLoader(); mcl.addListener(this); mcl.loadClip(test.jpg, image_mc); } function onLoadInit(target) { var width:Number = image_mc._width; var height:Number = image_mc._height; var transparent:Boolean = false; var fillColor:Number = 0x; var myBitmapData:BitmapData = new BitmapData(width, height, transparent, fillColor); myBitmapData.draw(image_mc, new Matrix(), new ColorTransform()); createEmptyMovieClip(copy_mc, 1); copy_mc._x = 20; copy_mc._y = 20; copy_mc.attachBitmap(myBitmapData, 0); image_mc._alpha = 20; } init() - Original Message - From: Marcelo Volmaro [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, March 06, 2006 5:38 PM Subject: Re: [Flashcoders] Load external bitmap into bitmapdata? The problem is: I need to load a bitmap. I can´t embed the bitmap inside a swf, because i have no control over the bitmaps. Any other ideas? On Mon, 06 Mar 2006 17:36:46 -0300, Adrian Park [EMAIL PROTECTED] wrote: Hey Marcelo, I've been playing with BitmapData for the first time this past weekend so I stand to be corrected on what I'm about to say! My understanding is that you can only load BitmapData from an existing image which is already in your library and has a linkage ID. For this reason, I don't think you can load an image and get its BitmapData. I was thinking there might be a workaround though... I was going to try embedding the jpg/png/gif in an swf and giving it a linkage id in the library, then load that swf into your master movie and attach the BitmapData from the loaded swf's library. Possible issues? I know you can't attach library assets from a loaded swf into another swf so the same limitation may apply with BitmapData. Again, I thought a workaround for this might be to attach the BitmapData into the swf you've just loaded and then clone it to a BitmapData object elsewhere? As you can see, I've been doing a lot of thinking and not a lot of doing so I'm not sure if this is of any help at all! I'd be very interested to know if any of this works. Cheers, Adrian P On 3/6/06, Marcelo Volmaro [EMAIL PROTECTED] wrote: Hi list!, It´s possible to load an external bitmap (jpg, png, gif) into a bitmapData? Or.. It´s possible to load an external bitmap into an MC and then render that mc into a bitmapData? All what i tried didn´t work... Thanks in advance!, -- _ Marcelo Volmaro ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- _ Marcelo Volmaro ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Heap Size Eclipse
That's what I thought also. Maybe because before launching MTASC, Eclipse goes parsing all of the files in the project. Ok, I restarted My Computer because after compiling with MTASC there was a System Idle Process that kept on using 95% of CPU. I restarted Eclipse and now Heap Size is 34M. I compile using Ant + MTASC and heap size goes up to 124M. After garbage collection is rests at 106, which is strange I think (shouldn't it drop again to 34M). But, it compiled. I put some spaces in some files, and compile again. No, eclipse goes parsing all the files and heapsize goes up to 214M. After garbage collection it drops to 140M. Now, if I repeat this process several times, the heap size gets to maximum, and I get an error from eclipse saying I should increase maximum heapsize (which doesn't help -- I tried it). So it seems garbage collection doesn't work???... Met vriendelijke groeten, Lieven Cardoen MULTIMEDIALOFT | POINT X Engelse Wandeling 2 K18v | 8500 Kortrijk | T +32 (0)56/36.11.97 // communicatie bij voorkeur op [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Cannasse Sent: dinsdag 7 maart 2006 10:24 To: Flashcoders mailing list Subject: Re: [Flashcoders] Heap Size Eclipse Is there a Java Virtual Machine that can do better, and what has MTASC to do with the heap size...? MTASC is an external process and doesn't run on the JVM. I don't see how it could even have some effect on it (?). Nicolas ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FP8 AS2 color picker and comboBox
Martin Weiser schrieb: Hello everyone, i seek for color picker component (tried many, Illogiz, not working in as2), please doeas anyone have some really good? And custom combobox. simple as possible, thanks in advance i've done some color picker work on this @ home, can put it OL when back @ home. micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Deactivate dragScroll in FlashPaper, it is possible?
Anybody know if I can deactivate the scrollDrag in a FlashPaper(I think is called panning)? I only want to deactivate this one. I want the others options (scrollbar, mousewheel) continue working. Any response? Thanks in advance. David ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Bouncing laserbeam for game
Hello games people, I'm tasked with programming a bouncing laserbeam like in the following pic. http://www.irem.co.jp/e/game/r/rtype/image/r1stg6.gif Has anyone done this kind of thing before and can point me in the right direction? TIA, James ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FP8 AS2 color picker and comboBox
Hello Martin, MW i seek for color picker component (tried many, Illogiz, not MW working in as2), please doeas anyone have some really good? - try this: http://www.dembicki.org/GradientAndSafePalette.as -- Ivan Dembicki [EMAIL PROTECTED] || http://www.design.ru ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Bouncing laserbeam for game
Well I've never made one before - but I'd store an array of the gun, mirrors, and goals x,y and rotation properties and crawl through them to draw the line...something like: [as] w = Stage.width; h = Stage.height; Stage.align = TL; Stage.scaleMode = noScale; // points = new Array({x:10, y:10, rot:0}, {x:300, y:10, rot:90}, {x:300, y:300, rot:180}, {x:100, y:300, rot:90}); drawBeam = function () { holder = this.createEmptyMovieClip(holder, this.getNextHighestDepth()); holder.lineStyle(1); for (i=0; ipoints.length; i++) { pt = points[i]; npt = points[i+1]; if (i == 0) { holder.moveTo(pt.x, pt.y); } // if rot = 0 draw horizontally right if (pt.rot == 0) { // // is next point on same y axes? // // // is next point x greater than this x? if (pt.y == npt.y npt.xpt.x) { holder.lineTo(npt.x, npt.y); } else { holder.lineTo(pt.x, w); //draw to edge return; } } // // if rot = 90 draw vertically down if (pt.rot == 90) { // // is next point on same x axes? // // // is next point y greater than this y? if (pt.x == npt.x npt.ypt.y) { holder.lineTo(npt.x, npt.y); } else { //draw to edge holder.lineTo(pt.x, h); return; } } // // if rot= 180 draw horizontally left if (pt.rot == 180) { // // is next point on same y axes? // // // is next point x less than this x? if (pt.y == npt.y npt.xpt.x) { holder.lineTo(npt.x, npt.y); } else { //draw to edge holder.lineTo(0, pt.y); return; } } // // if rot = 270 draw vertically up if (rot == 270) { // // is next point on same x axes? // // // is next point y less than this y? if (pt.x == npt.x npt.ypt.y) { holder.lineTo(npt.x, npt.y); } else { //draw to edge holder.lineTo(pt.x, 0); return; } } } }; drawBeam(); [/as] Untested though - but it gives the general idea. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Marsden Sent: 07 March 2006 11:45 To: Flashcoders mailing list Subject: [Flashcoders] Bouncing laserbeam for game Hello games people, I'm tasked with programming a bouncing laserbeam like in the following pic. http://www.irem.co.jp/e/game/r/rtype/image/r1stg6.gif Has anyone done this kind of thing before and can point me in the right direction? TIA, James ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Bouncing laserbeam for game
Hey thanks Mike, I've managed to do it rather simply with this in case anyone is interested: // create laser point var laser = {x:0, y:0, vx:10, vy:10, steps:[], count:0}; onEnterFrame = function() { // bounce off the walls if (laser.x 400) { laser.vx *=-1; } else if (laser.x 0) { laser.vx *=-1; } if (laser.y 200) { laser.vy *=-1; } else if (laser.y 0) { laser.vy *=-1; } // update current point laser.x+=laser.vx; laser.y+=laser.vy; // if laser doesn't have a complete history of steps if (laser.steps.length 10) { // add a step laser.steps[laser.count] = {x:laser.x, y:laser.y}; // update count laser.count++; } else { // remove the oldest step laser.steps[0] = undefined; // loop through all steps for (var i=1;ilaser.steps.length;i++) { // shuffle steps back by one position laser.steps[(i-1)] = laser.steps[i]; } // add the current position to the top of the stack laser.steps[10] = {x:laser.x, y:laser.y}; } // clear drawings from last frame _root.clear(); // choose base colour for laser _root.lineStyle(8, 0xFF, 80); // move to laser head point _root.moveTo(laser.x, laser.y); // loop through previous steps drawing back to oldest recorded step for (var i=laser.steps.length-1;i0;i--) { _root.lineTo(laser.steps[i].x, laser.steps[i].y); } // change to medium colour _root.lineStyle(7, 0xFF0099, 100); // move back to laser head point _root.moveTo(laser.x, laser.y); // loop through previous steps drawing back to oldest recorded step for (var i=laser.steps.length-1;i0;i--) { _root.lineTo(laser.steps[i].x, laser.steps[i].y); } // change to topmost colour _root.lineStyle(4, 0xFF, 100); // move back to laser head point _root.moveTo(laser.x, laser.y); // loop through previous steps drawing back to the oldest recorded step for (var i=laser.steps.length-1;i0;i--) { _root.lineTo(laser.steps[i].x, laser.steps[i].y); } } Mike Mountain wrote: Well I've never made one before - but I'd store an array of the gun, mirrors, and goals x,y and rotation properties and crawl through them to draw the line...something like: ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Bouncing laserbeam for game
Cool - you've used fixed mirrors though? The versions of this game I've played had the rotation of the mirror as part of the puzzle complexity. So you have a selection of mirrors in a toolbox that point at varying 90 degree steps that you drag onto the screen in some kind of maze - then when you press 'go' the laser draws its way across the screen to the goal. There'll also be fixed mirrors on the screen that you have to hit with the laser to complete the level. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Marsden Sent: 07 March 2006 13:19 To: Flashcoders mailing list Subject: Re: [Flashcoders] Bouncing laserbeam for game Hey thanks Mike, I've managed to do it rather simply with this in case anyone is interested: // create laser point var laser = {x:0, y:0, vx:10, vy:10, steps:[], count:0}; onEnterFrame = function() { // bounce off the walls if (laser.x 400) { laser.vx *=-1; } else if (laser.x 0) { laser.vx *=-1; } if (laser.y 200) { laser.vy *=-1; } else if (laser.y 0) { laser.vy *=-1; } // update current point laser.x+=laser.vx; laser.y+=laser.vy; // if laser doesn't have a complete history of steps if (laser.steps.length 10) { // add a step laser.steps[laser.count] = {x:laser.x, y:laser.y}; // update count laser.count++; } else { // remove the oldest step laser.steps[0] = undefined; // loop through all steps for (var i=1;ilaser.steps.length;i++) { // shuffle steps back by one position laser.steps[(i-1)] = laser.steps[i]; } // add the current position to the top of the stack laser.steps[10] = {x:laser.x, y:laser.y}; } // clear drawings from last frame _root.clear(); // choose base colour for laser _root.lineStyle(8, 0xFF, 80); // move to laser head point _root.moveTo(laser.x, laser.y); // loop through previous steps drawing back to oldest recorded step for (var i=laser.steps.length-1;i0;i--) { _root.lineTo(laser.steps[i].x, laser.steps[i].y); } // change to medium colour _root.lineStyle(7, 0xFF0099, 100); // move back to laser head point _root.moveTo(laser.x, laser.y); // loop through previous steps drawing back to oldest recorded step for (var i=laser.steps.length-1;i0;i--) { _root.lineTo(laser.steps[i].x, laser.steps[i].y); } // change to topmost colour _root.lineStyle(4, 0xFF, 100); // move back to laser head point _root.moveTo(laser.x, laser.y); // loop through previous steps drawing back to the oldest recorded step for (var i=laser.steps.length-1;i0;i--) { _root.lineTo(laser.steps[i].x, laser.steps[i].y); } } Mike Mountain wrote: Well I've never made one before - but I'd store an array of the gun, mirrors, and goals x,y and rotation properties and crawl through them to draw the line...something like: ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Bouncing laserbeam for game
I haven't heard of that, but it sounds ace! Might have to have a go... Mike Mountain wrote: Cool - you've used fixed mirrors though? The versions of this game I've played had the rotation of the mirror as part of the puzzle complexity. So you have a selection of mirrors in a toolbox that point at varying 90 degree steps that you drag onto the screen in some kind of maze - then when you press 'go' the laser draws its way across the screen to the goal. There'll also be fixed mirrors on the screen that you have to hit with the laser to complete the level. M ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] String problems?
Ah! I knew I was missing something! Dang. Thanks, Geoffrey! On 3/6/06, Geoffrey Williams [EMAIL PROTECTED] wrote: Need to 'eval' num. use array notation. controller_mc.attachMovie(gallery_mc, gallery_mc, 50); theGallery = controller_mc.gallery_mc; gallery_contains = 4; for (i = 0; igallery_contains; i++){ num = img_+i; theGallery[num]._alpha = 0; trace(num); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Flash Mel Sent: Monday, March 06, 2006 6:31 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] String problems? I am writing this wrong: controller_mc.attachMovie(gallery_mc, gallery_mc, 50); theGallery = controller_mc.gallery_mc; gallery_contains = 4; for (i = 0; igallery_contains; i++){ num = img_+i; theGallery.num._alpha = 0; trace(num); } gallery_mc has _mc's in it named, img_0, img_1, img_2, img_3. What am I doing wrong here? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Remove right click menu
I can't use director because of the following reason: 1. The client worry that Director will be gone in the next 4, 5 years, and the application have to last longer than that :( 2. We are using Flash Remoting, loadVariables via ASP.NET page, load XML and I am not so sure we can do that with Flash embedded inside Director 3. Resource: I am not really good at Director :( I just wonder if we can buy licenses from MM as North Code does, so we can distribute customized players (one without that right click menu) to our clients/students? Thanks for reading and replying. Dominic ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Shape tweens through AS?
That is the nastiest green I have ever seen it hurts my brain looking at it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Weber Sent: 07 March 2006 05:29 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Shape tweens through AS? Actually there are many very interesting uses for code-based Shape Tweening, one of them is to dynamically morph any shape into any other shape. As for finding the coordinates of the points that define the shape: one option is a custom, AS based shape editor / drawing tool. Another one is to draw in the Flash IDE and then extract the drawing data with ASV (using some code by Peter Hall) or Robin Dubreuil's brilliant JSFL script sel2Draw (part of an old SDK). For translating the points of one drawing to the points of the other one - we'd need something analogous to the 'shape-hints' in the IDE. Another, much easier approach, is to just use shapes that have an equal number of defining points, thus making it easy to map each point to a point of the new shape. In this sample http://www.motiondraw.com/md/as_samples/t/cards/2006/FlashCard.php each shape is defined by 60 points - it is then quite straight-forward to morph each shape into a randomly chosen other shape. To make a shape with only 60 defining points look good (smooth) a fast Catmull-Rom spline was helpful: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/tween.html Shape tweens through AS - not as straight-forward as it would be if we could access the drawing data at runtime, but still possible. hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Montag, 6. März 2006 22:08 To: Flashcoders mailing list Subject: Re: [Flashcoders] Shape tweens through AS? I haven't dug very deeply into the tween class. Anyone know if it is possible to do shape tweens with it (or has someone written a custom class to do this)? Well, short answer: you can't do it. It isn't a matter of building classes for it; you can't just modify an existing drawing. There are two things you can do though, depending on what you actually want to build: 1. build a normal shape tween using the timeline, then use any tween class/code to control the playhead on that timeline, so you can go back and forth on the animation, use different times, etc. 2. build objects by code (using the drawing API). Then you'll be fully able to animate each of their points separately. This is overkill though and probably not what you want, since you will not only have to draw all your objects by code, but also need to create code to properly translate the points of one drawing to the other. - Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Shape tweens through AS?
very nice Andreas. M. On 3/7/06, Andreas Weber [EMAIL PROTECTED] wrote: Actually there are many very interesting uses for code-based Shape Tweening, one of them is to dynamically morph any shape into any other shape. As for finding the coordinates of the points that define the shape: one option is a custom, AS based shape editor / drawing tool. Another one is to draw in the Flash IDE and then extract the drawing data with ASV (using some code by Peter Hall) or Robin Dubreuil's brilliant JSFL script sel2Draw (part of an old SDK). For translating the points of one drawing to the points of the other one - we'd need something analogous to the 'shape-hints' in the IDE. Another, much easier approach, is to just use shapes that have an equal number of defining points, thus making it easy to map each point to a point of the new shape. In this sample http://www.motiondraw.com/md/as_samples/t/cards/2006/FlashCard.php each shape is defined by 60 points - it is then quite straight-forward to morph each shape into a randomly chosen other shape. To make a shape with only 60 defining points look good (smooth) a fast Catmull-Rom spline was helpful: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/tween.html Shape tweens through AS - not as straight-forward as it would be if we could access the drawing data at runtime, but still possible. hth -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Montag, 6. März 2006 22:08 To: Flashcoders mailing list Subject: Re: [Flashcoders] Shape tweens through AS? I haven't dug very deeply into the tween class. Anyone know if it is possible to do shape tweens with it (or has someone written a custom class to do this)? Well, short answer: you can't do it. It isn't a matter of building classes for it; you can't just modify an existing drawing. There are two things you can do though, depending on what you actually want to build: 1. build a normal shape tween using the timeline, then use any tween class/code to control the playhead on that timeline, so you can go back and forth on the animation, use different times, etc. 2. build objects by code (using the drawing API). Then you'll be fully able to animate each of their points separately. This is overkill though and probably not what you want, since you will not only have to draw all your objects by code, but also need to create code to properly translate the points of one drawing to the other. - Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Do getters and setters add any size to a file
I understand that the Actionscript class files are compiled into bytecode but I have not had enough experience to know whether or not all of this object oriented refactoring that I am doing to my current project is going to make it bulkier. I read somewhere about the different increases in file size due to different assets and wondered how much I had to worry about this type of thing if I'm trying to keep my files as tiny as possible. In particular doe a bunch of getters and setters contribute to end weight such that if a client wants the lightest outcome they might be a factor or is it negligable. Mani ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FlashPaper and Flash 8 Issues
Wanted to know if anyone found a workaround for the issues created by using FlashPaper 2 documents in a Flash application. Funny how Breeze doesn't seem to have any issues like this - almost like Macromedia has a version they're using but isn't available to the public. Greg Conover Committee Chair Wolf Den 5 Leader Cub Scout Pack 165 Light of the World Lutheran Church home: (817) 232-9554 cell: (817) 909-3326 e-mail: [EMAIL PROTECTED] BLOCKED::blocked::mailto:[EMAIL PROTECTED] www.pack165fw.org BLOCKED::blocked::http://www.pack165fw.org/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Do getters and setters add any size to a file
using getters and setters adds no noticeable overhead to your application. Yes the functions add a few bytes, but after compile the difference is undetectable. The benefit you get from proper encapsulation greatly outweighs the slight increase in development time it and script size you get from using getters and setters. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] trace inside the browser
hi, i'm trying to figure out a way to implement a debug that i can see online (in the browser) and not just inside the flash environment. just like trace, but it must work when the swf is online. i thought about a list component that appear and desapeear on a X keypress, and a function that could add my traces outputs to it i was wondering what other methods/ways you are doing this. thanks in advice. rodrigo___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Bouncing laserbeam for game
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Marsden Sent: Tuesday, March 07, 2006 5:45 AM To: Flashcoders mailing list Subject: [Flashcoders] Bouncing laserbeam for game Hello games people, I'm tasked with programming a bouncing laserbeam like in the following pic. http://www.irem.co.jp/e/game/r/rtype/image/r1stg6.gif Has anyone done this kind of thing before and can point me in the right direction? I wrote a similar game under contract a couple of years ago. I could've done lasers, but I decided to go with bouncing projectiles instead: http://www.kidstation.de/junior/r5u3/r5u3m16/a.html The physics for the bounce is really simple. The bounce-angle is just 180-(the angle that the projectile is hitting the paddle) --- John Hattan The Code Zone - Sweet Software for a Saturnine World www.thecodezone.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] trace inside the browser
I use Xray: http://www.osflash.org/xray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo Guerra Sent: 07 March 2006 15:16 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] trace inside the browser hi, i'm trying to figure out a way to implement a debug that i can see online (in the browser) and not just inside the flash environment. just like trace, but it must work when the swf is online. i thought about a list component that appear and desapeear on a X keypress, and a function that could add my traces outputs to it i was wondering what other methods/ways you are doing this. thanks in advice. rodrigo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] trace inside the browser
Use the luminic box logger. http://www.luminicbox.com/blog/default.aspx?page=postid=2 Rodrigo Guerra wrote: hi, i'm trying to figure out a way to implement a debug that i can see online (in the browser) and not just inside the flash environment. just like trace, but it must work when the swf is online. i thought about a list component that appear and desapeear on a X keypress, and a function that could add my traces outputs to it i was wondering what other methods/ways you are doing this. thanks in advice. rodrigo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] trace inside the browser
or if you just like using trace, follow my post here: http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php - markW On 3/7/06, Chris Hill [EMAIL PROTECTED] wrote: Use the luminic box logger. http://www.luminicbox.com/blog/default.aspx?page=postid=2 Rodrigo Guerra wrote: hi, i'm trying to figure out a way to implement a debug that i can see online (in the browser) and not just inside the flash environment. just like trace, but it must work when the swf is online. i thought about a list component that appear and desapeear on a X keypress, and a function that could add my traces outputs to it i was wondering what other methods/ways you are doing this. thanks in advice. rodrigo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] trace inside the browser
i was using the folowing code that i got from another list, it's quick and dirty, (the problem is the *no history*) _global.alerta = function(mensagem){ getURL(javascript:alert(' + mensagem + ')); } alerta(bla) but for sure the ones showd here are more robust...i'm give a try... thank you all! - Original Message - From: Mark Walters [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 12:41 PM Subject: Re: [Flashcoders] trace inside the browser or if you just like using trace, follow my post here: http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php - markW On 3/7/06, Chris Hill [EMAIL PROTECTED] wrote: Use the luminic box logger. http://www.luminicbox.com/blog/default.aspx?page=postid=2 Rodrigo Guerra wrote: hi, i'm trying to figure out a way to implement a debug that i can see online (in the browser) and not just inside the flash environment. just like trace, but it must work when the swf is online. i thought about a list component that appear and desapeear on a X keypress, and a function that could add my traces outputs to it i was wondering what other methods/ways you are doing this. thanks in advice. rodrigo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] trace inside the browser
Or, you can use: getURL(javascript:window.status = yourData); I like to think of the browser's status bar as a built in output spot, granted, it's only one line at a time. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] trace inside the browser
This trace viewer works well for viewing traces inside the browser http://www.alexisisaac.net/flash/articles/flash-7-trace-viewer.html At 08:12 AM 3/7/2006, you wrote: i was using the folowing code that i got from another list, it's quick and dirty, (the problem is the *no history*) _global.alerta = function(mensagem){ getURL(javascript:alert(' + mensagem + ')); } alerta(bla) but for sure the ones showd here are more robust...i'm give a try... thank you all! - Original Message - From: Mark Walters [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 12:41 PM Subject: Re: [Flashcoders] trace inside the browser or if you just like using trace, follow my post here: http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php - markW On 3/7/06, Chris Hill [EMAIL PROTECTED] wrote: Use the luminic box logger. http://www.luminicbox.com/blog/default.aspx?page=postid=2 Rodrigo Guerra wrote: hi, i'm trying to figure out a way to implement a debug that i can see online (in the browser) and not just inside the flash environment. just like trace, but it must work when the swf is online. i thought about a list component that appear and desapeear on a X keypress, and a function that could add my traces outputs to it i was wondering what other methods/ways you are doing this. thanks in advice. rodrigo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Do getters and setters add any size to a file
In particular doe a bunch of getters and setters contribute to end weight such that if a client wants the lightest outcome they might be a factor or is it negligable. In general, code changes are not going to add noticable weight to the bytecode. Your library assets will usually be the bulk of the swf files weight, and changes/additions in code are going to be so small as to either be unnoticable or will be measurable in hundreds of bytes, not kilobytes. Obviously, there are exceptions. Adding heavy classes like compression algorhithms, or anything with a big library or hash table, will obviously add more weight, but even then it is usually only several kilobytes. ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] NEED HELP - i have a demo in a few dayssss... IMG embed into TextArea and Scrollbar
I only need to solve a question... Can i embed an IMG with html code into a TextArea (smaller than Image) and one vertical scrollbar that scroll the image up and down? thanks in advance ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] NEED HELP - i have a demo in a few dayssss... IMG embed into TextArea and Scrollbar
If you don't need overflowing (around the image) text a ScrollPane would be better. Yotam. On 07/03/06, julian atienza [EMAIL PROTECTED] wrote: I only need to solve a question... Can i embed an IMG with html code into a TextArea (smaller than Image) and one vertical scrollbar that scroll the image up and down? thanks in advance ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype: ubermutt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: NEED HELP - i have a demo in a few dayssss... IMG embed into TextArea and Scrollbar
Ok. Sorry. I didn't knew the ScrollPane Component (lol) I have only a image, so i can use it thanks anyway ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Heap Size Eclipse
Which VM are you using? You might want to show the Eclipse startup command. Ron [EMAIL PROTECTED] wrote: I have some problems using eclipse lately. Problems start when launching MTASC for compiling a huge project. The heap size goes up to 253M of 254M, and remains this high, even after mtasc has compiled. I tried to set maximum heapsize to 512M, but then it seems as heapsize goes up to 512M, and problems are even bigger (computer slows down). Is there a Java Virtual Machine that can do better, and what has MTASC to do with the heap size...? Met vriendelijke groeten, Lieven Cardoen MULTIMEDIALOFT | POINT X Engelse Wandeling 2 K18v | 8500 Kortrijk | T +32 (0)56/36.11.97 // communicatie bij voorkeur op [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: NEED HELP - i have a demo in a few dayssss... IMG embed into TextArea and Scrollbar
no problem. good luck. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Load external bitmap into bitmapdata?
Wow thats great On 3/7/06, Adrian Park [EMAIL PROTECTED] wrote: Awesome! Thanks Jesse/JesterXL. I love finding out I'm wrong when there is a better way :) On 3/6/06, Marcelo Volmaro [EMAIL PROTECTED] wrote: Indeed, it works!, Also, trying this i´ve found a method to attach loaded movies as bitmaps... now i can create libraries of MCs!! Thanks! On Mon, 06 Mar 2006 19:50:24 -0300, JesterXL [EMAIL PROTECTED] wrote: I started to eat a cup, but it really didn't taste so good. Suddenly, my mouth really hurt trying to voraciously chew on ceramics, thus I gave up upon realising cups don't taste so good. ...however, this code in fact works: import flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.Matrix; import flash.geom.ColorTransform; function init() { Stage.align = TL; Stage.scaleMode = noScale; createEmptyMovieClip(image_mc, 0); var mcl:MovieClipLoader = new MovieClipLoader(); mcl.addListener(this); mcl.loadClip(test.jpg, image_mc); } function onLoadInit(target) { var width:Number = image_mc._width; var height:Number = image_mc._height; var transparent:Boolean = false; var fillColor:Number = 0x; var myBitmapData:BitmapData = new BitmapData(width, height, transparent, fillColor); myBitmapData.draw(image_mc, new Matrix(), new ColorTransform()); createEmptyMovieClip(copy_mc, 1); copy_mc._x = 20; copy_mc._y = 20; copy_mc.attachBitmap(myBitmapData, 0); image_mc._alpha = 20; } init() - Original Message - From: Marcelo Volmaro [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, March 06, 2006 5:38 PM Subject: Re: [Flashcoders] Load external bitmap into bitmapdata? The problem is: I need to load a bitmap. I can´t embed the bitmap inside a swf, because i have no control over the bitmaps. Any other ideas? On Mon, 06 Mar 2006 17:36:46 -0300, Adrian Park [EMAIL PROTECTED] wrote: Hey Marcelo, I've been playing with BitmapData for the first time this past weekend so I stand to be corrected on what I'm about to say! My understanding is that you can only load BitmapData from an existing image which is already in your library and has a linkage ID. For this reason, I don't think you can load an image and get its BitmapData. I was thinking there might be a workaround though... I was going to try embedding the jpg/png/gif in an swf and giving it a linkage id in the library, then load that swf into your master movie and attach the BitmapData from the loaded swf's library. Possible issues? I know you can't attach library assets from a loaded swf into another swf so the same limitation may apply with BitmapData. Again, I thought a workaround for this might be to attach the BitmapData into the swf you've just loaded and then clone it to a BitmapData object elsewhere? As you can see, I've been doing a lot of thinking and not a lot of doing so I'm not sure if this is of any help at all! I'd be very interested to know if any of this works. Cheers, Adrian P On 3/6/06, Marcelo Volmaro [EMAIL PROTECTED] wrote: Hi list!, It´s possible to load an external bitmap (jpg, png, gif) into a bitmapData? Or.. It´s possible to load an external bitmap into an MC and then render that mc into a bitmapData? All what i tried didn´t work... Thanks in advance!, -- _ Marcelo Volmaro ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- _ Marcelo Volmaro ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:
Re: [Flashcoders] Do getters and setters add any size to a file
Thank you. That's good to know because I was worried that with all of my preaching to people about getters and setters that I might hand over a nice fat file and look extra dumb! Mani On 3/7/06, Scott Fanetti [EMAIL PROTECTED] wrote: using getters and setters adds no noticeable overhead to your application. Yes the functions add a few bytes, but after compile the difference is undetectable. The benefit you get from proper encapsulation greatly outweighs the slight increase in development time it and script size you get from using getters and setters. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] trace inside the browser
Hi list, I wrote a simple class to do that. example here: http://w1imr.tvi.edu/apps/damian/temp/debug/traceinbrowser.html Download (with .as dependencies): http://w1imr.tvi.edu/apps/damian/temp/debug.rar If anyone improves this, let me know! example usage: import edu.tvi.utils.Debug; Debug.start(); Debug.traceObjects(this, false, true); Debug.trace('\nJust use the function like regular old trace!'); --Damian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] clicking through an iframe on mozilla-based browsers ?
I happen to be trying to make this work for a flash movie behind the transparent iframe, but it could be anything interactive behind the iframe the problem is the same. On mozilla based browsers, the iframe prevents a click through it to whaever is behind, not so on IE/PC where the interactive content behind the iframe is accessible to the mouse. This seems to be true for Safari and Firefox for mac and pc. Any suggestions? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] 2D first person shooter
well doom is kinda of a 2d first person shoot ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] components within custom components
i posted this q on my blog, but wnated to ask here too: So, I'm taking my frist foray into building a legit flash component, and it uses some standard v2 components. I read in the documentation that you should use the component mc's instead of the compiled clips for the v2 components, but I didn't see any reasoning as to why. I made the switch, and I lost out on the live preview for components withing my component. Can anyone shed some light for me? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Using setMask to Mask a loaded swf
Make sure the swf is loaded before assigning the mask, eg: var loader:MovieClipLoader = new MovieClipLoader(); function onLoadInit(_mc) { _mc.setMask(mask_mc); }; loader.addListener(this); loader.loadClip(movie.swf, holder_mc); Helen -- http://flash-creations.com http://i-technica.com Matt Muller wrote: Hi, Im attaching a swf to a movieClip and then using setMask to mask the swf once the animation has loaded. So whats happening is most of it is masked but there seem to be these little lines and stuff running outside the mask. Anyone had this, or have a solution/suggestion? Cheers MaTT ___ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] attatchMovie issue with a loaded mc
I have a parent swf that loads in a series of children swfs and acts as a browser for them. Within the children swfs - there are a number of hotspot movieclips that trigger other events. I'd like to centralize the appearance of those 'hotspot' movieclips to the parent swf so that if i need to change how the icon's look i can change it once in the parent rather than in each child swf. I thought that the best way to do this would make the hotspot clips into placeholders and use attachMovie to put the appropriate icon on it. The problem is that is appears attachMovie doesn't work if the path to the clip is in a one of the children swfs that was loaded. Is this correct? If so, is there a workaround of some sort that I can try? Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] 9-slice bugs
Hi list, I'm trying to get 9-slice scaling to work with several clips at the same time, which seems ridiculously buggy. If I have two instances of the same clip with 9-slice applied on stage, and scale them both with a Tween object, they scale fine. However, if I have two instances of different clips with 9 slice scaling, one of them will stop scaling properly (i.e. revert to the traditional way) and the other will work fine. The only difference between the clips is that the assets have their registration points changed so that they scale in from either sides of the stage. I've tried all sorts of things; originally they were based on the same assets, I've broken the clips apart, and recreated them from shapes. I've tried the hint in LiveDocs that mentions only editing Library assets directly (not instances) to avoid unpredictable behaviour. Seems like the 9-slice implementation is totally messed up, anyone got any hints? Regards, Sam Thorne Interaction Design Web: http://www.native.com/ Tel: +44 (0)207 588 7970 Fax: +44 (0)207 588 7971 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] components within custom components
Some background just to give reasoning behind the insanity. Regarding First Frame, the point of bounding box on the first frame is to give the component initial widht and height values. If there is nothing on the first frame, you're width and height properties (a.k.a. you're __width and __height private properties of UIComponent) will be 0, thus when you go to position in your size function, you won't have any room. Therefore, the bounding box gives your coponent a default value for width and heigth. That's why a List component is 100x100 when you drag it to the stage. The 2nd reason is because LivePreview needs a default width and height to draw. If there is nothing on frame 1, it doesn't know how big to be, thus the defautl size will be 0x0, and thus you're LivePreview will show nothing except for tiny blue outlines. You have to have SOMETHING on frame 1. mx.core.View hides boundingBox_mc for you, so the user will never see it. Regarding assets, that is only to ensure that your components assets (images graphics) as well as the classes are exported into the SWF. If you are not creating them dynamically, and actually using them on frame 1, there is no reason for an assets layer frame then. - Original Message - From: Rich Rodecker [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 1:15 PM Subject: Re: [Flashcoders] components within custom components yeah it just seemd really wierd to do that. if I have my components on the stage in the first frame, and all i'm doing is hiding or showing the components, do i still need to put all of the components on an asset layer? On 3/7/06, JesterXL [EMAIL PROTECTED] wrote: Not sure what the heck the docs are talking about. I use the SWC's on asset layers all the time and it works great. To get a LivePreview to work, there are a number of factors, but the big one is ensuring a boundingBox is on frame 1 with a size bigger than 0x0, so you can actually see it. - Original Message - From: Rich Rodecker [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 12:53 PM Subject: [Flashcoders] components within custom components i posted this q on my blog, but wnated to ask here too: So, I'm taking my frist foray into building a legit flash component, and it uses some standard v2 components. I read in the documentation that you should use the component mc's instead of the compiled clips for the v2 components, but I didn't see any reasoning as to why. I made the switch, and I lost out on the live preview for components withing my component. Can anyone shed some light for me? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] 9-slice bugs
do u have an example online we can look at to see the behavior? On 3/7/06, Sam Thorne [EMAIL PROTECTED] wrote: Hi list, I'm trying to get 9-slice scaling to work with several clips at the same time, which seems ridiculously buggy. If I have two instances of the same clip with 9-slice applied on stage, and scale them both with a Tween object, they scale fine. However, if I have two instances of different clips with 9 slice scaling, one of them will stop scaling properly (i.e. revert to the traditional way) and the other will work fine. The only difference between the clips is that the assets have their registration points changed so that they scale in from either sides of the stage. I've tried all sorts of things; originally they were based on the same assets, I've broken the clips apart, and recreated them from shapes. I've tried the hint in LiveDocs that mentions only editing Library assets directly (not instances) to avoid unpredictable behaviour. Seems like the 9-slice implementation is totally messed up, anyone got any hints? Regards, Sam Thorne Interaction Design Web: http://www.native.com/ Tel: +44 (0)207 588 7970 Fax: +44 (0)207 588 7971 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] components within custom components
ok cool. so, if all my assets are on frame one, i probably don't need the bounding box mc too then, right? On 3/7/06, JesterXL [EMAIL PROTECTED] wrote: Some background just to give reasoning behind the insanity. Regarding First Frame, the point of bounding box on the first frame is to give the component initial widht and height values. If there is nothing on the first frame, you're width and height properties (a.k.a. you're __width and __height private properties of UIComponent) will be 0, thus when you go to position in your size function, you won't have any room. Therefore, the bounding box gives your coponent a default value for width and heigth. That's why a List component is 100x100 when you drag it to the stage. The 2nd reason is because LivePreview needs a default width and height to draw. If there is nothing on frame 1, it doesn't know how big to be, thus the defautl size will be 0x0, and thus you're LivePreview will show nothing except for tiny blue outlines. You have to have SOMETHING on frame 1. mx.core.View hides boundingBox_mc for you, so the user will never see it. Regarding assets, that is only to ensure that your components assets (images graphics) as well as the classes are exported into the SWF. If you are not creating them dynamically, and actually using them on frame 1, there is no reason for an assets layer frame then. - Original Message - From: Rich Rodecker [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 1:15 PM Subject: Re: [Flashcoders] components within custom components yeah it just seemd really wierd to do that. if I have my components on the stage in the first frame, and all i'm doing is hiding or showing the components, do i still need to put all of the components on an asset layer? On 3/7/06, JesterXL [EMAIL PROTECTED] wrote: Not sure what the heck the docs are talking about. I use the SWC's on asset layers all the time and it works great. To get a LivePreview to work, there are a number of factors, but the big one is ensuring a boundingBox is on frame 1 with a size bigger than 0x0, so you can actually see it. - Original Message - From: Rich Rodecker [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 12:53 PM Subject: [Flashcoders] components within custom components i posted this q on my blog, but wnated to ask here too: So, I'm taking my frist foray into building a legit flash component, and it uses some standard v2 components. I read in the documentation that you should use the component mc's instead of the compiled clips for the v2 components, but I didn't see any reasoning as to why. I made the switch, and I lost out on the live preview for components withing my component. Can anyone shed some light for me? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] moving components on stage
I have a bunch of components on stage. I'd like to be able to set their position on stage depending on some values. The way it looks like I have to do it now is add a listener to each component named move, and then do a component.move(x,y) to move it...is this the simplest way? it looks like the component.y property is read only so you can't set it, and i dont think you are supposed to use the movieclip _y property with components. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] preloader issue?
I have posted this before, and gotten some feedback, this is the result, yet i still cannot get the clip to display the load progress of bigfile.swf inside the label_txt. the swf loads inside of _root.target_mc ... any ideas here people? // - begin code target_mc.loadMovie(bigfile.swf); target_mc.onEnterFrame = function() { tBytes = getBytesTotal(); trace (tBytes: + tBytes); bLoaded = getBytesLoaded(); trace (bLoaded: + bLoaded); percent = (bLoaded/tBytes) * 100; if (bLoaded tBytes){ _root.bar_mc._xscale = (bLoaded/tBytes)*100; _root.label_txt.text = percent % LOADED } else { //play(); //_root.target_mc.unloadMovie(); delete this.onEnterFrame; } } // end code regards, edward ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] preloader issue?
are your trace statements showing the expected info? -Original Message- From: murder design [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 1:46 PM To: Flashcoders mailing list Subject: [Flashcoders] preloader issue? I have posted this before, and gotten some feedback, this is the result, yet i still cannot get the clip to display the load progress of bigfile.swf inside the label_txt. the swf loads inside of _root.target_mc ... any ideas here people? // - begin code target_mc.loadMovie(bigfile.swf); target_mc.onEnterFrame = function() { tBytes = getBytesTotal(); trace (tBytes: + tBytes); bLoaded = getBytesLoaded(); trace (bLoaded: + bLoaded); percent = (bLoaded/tBytes) * 100; if (bLoaded tBytes){ _root.bar_mc._xscale = (bLoaded/tBytes)*100; _root.label_txt.text = percent % LOADED } else { //play(); //_root.target_mc.unloadMovie(); delete this.onEnterFrame; } } // end code regards, edward ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] preloader issue?
Also, double check the string concatenation. You had an ampersand in... _root.label_txt.text = percent % LOADED It should be a plus sign... _root.label_txt.text = percent + % LOADED ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] preloader issue?
If you attach this to the clip itself, it does work - onClipEvent (load) { this.loadMovie(bigfile.swf); } onClipEvent (enterFrame) { tBytes = this.getBytesTotal(); trace(tBytes: +tBytes); bLoaded = this.getBytesLoaded(); trace(bLoaded: +bLoaded); percent = (bLoaded/tBytes)*100; if (bLoadedtBytes) { _root.bar_mc._xscale = (bLoaded/tBytes)*100; _root.label_txt.text = percent % LOADED; } else { //play(); //_root.target_mc.unloadMovie(); //delete this.onEnterFrame; } } Van R Tuck Director of Web Development Cause Design Group 1519 Stanford Street Suite 6 Santa Monica, CA 90404 t: 310.430.5369 www.causedesigngroup.com On Mar 7, 2006, at 10:45 AM, murder design wrote: I have posted this before, and gotten some feedback, this is the result, yet i still cannot get the clip to display the load progress of bigfile.swf inside the label_txt. the swf loads inside of _root.target_mc ... any ideas here people? // - begin code target_mc.loadMovie(bigfile.swf); target_mc.onEnterFrame = function() { tBytes = getBytesTotal(); trace (tBytes: + tBytes); bLoaded = getBytesLoaded(); trace (bLoaded: + bLoaded); percent = (bLoaded/tBytes) * 100; if (bLoaded tBytes){ _root.bar_mc._xscale = (bLoaded/tBytes)*100; _root.label_txt.text = percent % LOADED } else { //play(); //_root.target_mc.unloadMovie(); delete this.onEnterFrame; } } // end code regards, edward ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] preloader issue?
one for all those with gmail On 3/7/06, Van Tuck [EMAIL PROTECTED] wrote: If you attach this to the clip itself, it does work - onClipEvent (load) { this.loadMovie(bigfile.swf); } onClipEvent (enterFrame) { tBytes = this.getBytesTotal(); trace(tBytes: +tBytes); bLoaded = this.getBytesLoaded(); trace(bLoaded: +bLoaded); percent = (bLoaded/tBytes)*100; if (bLoadedtBytes) { _root.bar_mc._xscale = (bLoaded/tBytes)*100; _root.label_txt.text = percent % LOADED; } else { //play(); //_root.target_mc.unloadMovie(); //delete this.onEnterFrame; } } Van R Tuck Director of Web Development Cause Design Group 1519 Stanford Street Suite 6 Santa Monica, CA 90404 t: 310.430.5369 www.causedesigngroup.com On Mar 7, 2006, at 10:45 AM, murder design wrote: I have posted this before, and gotten some feedback, this is the result, yet i still cannot get the clip to display the load progress of bigfile.swf inside the label_txt. the swf loads inside of _root.target_mc ... any ideas here people? // - begin code target_mc.loadMovie(bigfile.swf); target_mc.onEnterFrame = function() { tBytes = getBytesTotal(); trace (tBytes: + tBytes); bLoaded = getBytesLoaded(); trace (bLoaded: + bLoaded); percent = (bLoaded/tBytes) * 100; if (bLoaded tBytes){ _root.bar_mc._xscale = (bLoaded/tBytes)*100; _root.label_txt.text = percent % LOADED } else { //play(); //_root.target_mc.unloadMovie(); delete this.onEnterFrame; } } // end code regards, edward ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Customizing Accordeon component
Hi List! I am trying to customize the Accordion component and want to achieve the following: The Component will serve as a quizso each section of it will contain a quiz-questionnow in the header of the sections I want to display the number of the question AND the answer given to a questionthe answers should be evenly aligend on the right So i tried to use a movieclip for the label, containing two textfields, for the quiznumber and for the answer, but didnt work...messed around with the icon: no luck... Anybody can think of a smart way to achieve this? Thanks! Wout ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] preloader issue?
Part of the problem is that your onEnterFrame is getting stomped on by the reinstantiation of the target movieclip when the SWF actually begins to load. That effectively (quite) deletes the onEnterFrame. Either attach the onEnterFrame to some other timeline, or load the movie into some other timeline, perhaps a child movieclip. -- Byron Barn Canfield I have posted this before, and gotten some feedback, this is the result, yet i still cannot get the clip to display the load progress of bigfile.swf inside the label_txt. the swf loads inside of _root.target_mc ... any ideas here people? // - begin code target_mc.loadMovie(bigfile.swf); target_mc.onEnterFrame = function() { tBytes = getBytesTotal(); trace (tBytes: + tBytes); bLoaded = getBytesLoaded(); trace (bLoaded: + bLoaded); percent = (bLoaded/tBytes) * 100; if (bLoaded tBytes){ _root.bar_mc._xscale = (bLoaded/tBytes)*100; _root.label_txt.text = percent % LOADED } else { //play(); //_root.target_mc.unloadMovie(); delete this.onEnterFrame; } } // end code regards, edward ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FP8 AS2 color picker and comboBox
If there's one piece of advice I can give you is to stay awat from Jumpeye Software's Color Picker Pro. It looks really nice and is very slick until you try and use it in a real world application. You CANNOT open the color picker with predefined values. The rainbow picker and lightness values don't adjust to the values. Sure, some of the color picker does respond, but not those parts. They say in the site and in the help docs that you can open the component with predefined values, you CANNOT, unless you don't care about the GUI NOT BEING IN SYNC with the actual values. I've been flipping over this component for days now trying to get it to work. Tech support took forever to answer and when they did all they could say that it's not implemented. Is this not expected behaviour? When I asked to be refunded because it doesn't do what it says on the box the cheeky bastard told me that I'm not eligible for a refund. He did offer to sell me his source code for $400 so that I can finish his work. Considering the fact that I can write one myself and all I wanted to do was save development time.. well... there you go. Thanks for nothing. Yotam. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] RadioButton CellRenderer vs. CheckBox CellRenderer
I have need of a DataGrid with one column filled with CheckBoxes, and another column filled with RadioButtons. The RadioButtons should all be in the same RadioButtonGroup. I put together CellRenderers for these two columns, and everything *almost* works. Problems: No RadioButtonGroup is ever constructed by my radioButtons, for one thing. RadioButton.as should be building a Group as soon as it sees the need for one. I've monkeyed with my cellrenderer to keep track of the selected radioButton and deselect all other radioButtons as needed, so this shouldn't be a huge problem. Clicking a checkBox affects the radioButton in the same row, without rhyme or reason. Does anyone have yet more cellrenderer code they can share, with radioButtons and checkboxes playing happily together? RadioButton cellRenderer code seems very hard to come by. (I know this sounds like a very stupid looking dataGrid, and there are much better ways to present the data -- but I have to match the HTML version of the table in dispute as closely as possible.) -Mark Hawley -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] attachMovie to a loaded swf
I have a parent swf that loads in a series of children swfs and acts as a browser for them. Within the children swfs - there are a number of hotspot movieclips that trigger other events. I'd like to centralize the appearance of those 'hotspot' movieclips to the parent swf so that if i need to change how the icon's look i can change it once in the parent rather than in each child swf. I thought that the best way to do this would make the hotspot clips into placeholders and use attachMovie to put the appropriate icon on it. The problem is that is appears attachMovie doesn't work if the path to the clip is in a one of the children swfs that was loaded. Is this correct? If so, is there a workaround of some sort that I can try? Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FlashPaper and Flash 8 Issues
Greg Conover wrote: Wanted to know if anyone found a workaround for the issues created by using FlashPaper 2 documents in a Flash application. Funny how Breeze doesn't seem to have any issues like this - almost like Macromedia has a version they're using but isn't available to the public. Are you seeing a particular problem yourself? If so, what would others need to do to see it too, in a new small bare example of their own? jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] How does goowy do it? (HTML in Flash)
Ramon Miguel M. Tayag wrote: How do you put an HTML window within the Flash movie? I thought it might be superimposed... but I'm not sure. Jeremy Suriel of Goowy offered an excellent and extensive interview with Ryan Stewart just recently... searching for text inline on the second page has some info on their implementation: http://www.digitalbackcountry.com/index.cfm/2006/2/23/Interview-with-Goowy-Chief-Architect-Jeremy-Suriel-Part-2--Flash-and-Web-20 jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attachMovie to a loaded swf
if i get it right this sounds more like a initialization or depth problem. attachMovieClip should work. have you tried createEmptyMovieClip with a getNextHighestDepth and load those icons into those? hth: lars Am 07.03.2006 22:37 Uhr schrieb Marlon Harrison unter [EMAIL PROTECTED]: I have a parent swf that loads in a series of children swfs and acts as a browser for them. Within the children swfs - there are a number of hotspot movieclips that trigger other events. I'd like to centralize the appearance of those 'hotspot' movieclips to the parent swf so that if i need to change how the icon's look i can change it once in the parent rather than in each child swf. I thought that the best way to do this would make the hotspot clips into placeholders and use attachMovie to put the appropriate icon on it. The problem is that is appears attachMovie doesn't work if the path to the clip is in a one of the children swfs that was loaded. Is this correct? If so, is there a workaround of some sort that I can try? Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Doh! Converting a floating point string to number loses precision
How do you usually deal with the loss in precision (a bit oxymoron since floating point can't be exactly represented) when converting a floating point string to a number? var s:String = 952.86; var i:Number = parseFloat(s); trace(i); trace(i - 952.86); // Not zero! - boon - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attachMovie to a loaded swf
thanks I don't think attachMovieClip will work in this instance from what I've been reading. Perhaps I can clarify a bit more. I have a container swf that loads in a series of children swfs. All of my code is in the container swf, as are the icon movieclips. I want to use attachMovie to put an icon on a path that's inside of one of the children swfs. If I add the movieclips to the child's fla and export them like I have in the container swf, they load OK, but obviously that's what I want. On 3/7/06, lars [EMAIL PROTECTED] wrote: if i get it right this sounds more like a initialization or depth problem. attachMovieClip should work. have you tried createEmptyMovieClip with a getNextHighestDepth and load those icons into those? hth: lars Am 07.03.2006 22:37 Uhr schrieb Marlon Harrison unter [EMAIL PROTECTED]: I have a parent swf that loads in a series of children swfs and acts as a browser for them. Within the children swfs - there are a number of hotspot movieclips that trigger other events. I'd like to centralize the appearance of those 'hotspot' movieclips to the parent swf so that if i need to change how the icon's look i can change it once in the parent rather than in each child swf. I thought that the best way to do this would make the hotspot clips into placeholders and use attachMovie to put the appropriate icon on it. The problem is that is appears attachMovie doesn't work if the path to the clip is in a one of the children swfs that was loaded. Is this correct? If so, is there a workaround of some sort that I can try? Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Doh! Converting a floating point string to number loses precision
-1.13686837721616e-13 is as close to zero as you get matey 13 places after the decimal... On 07/03/06, Boon Chew [EMAIL PROTECTED] wrote: How do you usually deal with the loss in precision (a bit oxymoron since floating point can't be exactly represented) when converting a floating point string to a number? var s:String = 952.86; var i:Number = parseFloat(s); trace(i); trace(i - 952.86); // Not zero! - boon - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype: ubermutt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] preloader issue?
this code does work, however the percent displays something like 15 places ... onClipEvent (load) { this.loadMovie(bigfile.swf); } onClipEvent (enterFrame) { tBytes = this.getBytesTotal(); trace(tBytes: +tBytes); bLoaded = this.getBytesLoaded(); trace(bLoaded: +bLoaded); percent = (bLoaded/tBytes)*100; if (bLoadedtBytes) { _root.bar_mc._xscale = (bLoaded/tBytes)*100; _root.label_txt.text = percent % LOADED; } else { //play(); //_root.target_mc.unloadMovie(); //delete this.onEnterFrame; } } i tried math.round but that does not seem to cut the text field length, any ideas? i just want 00. thats it ... not 00.0 thanks for helping me to get this to work - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] attachMovie to a loaded swf
I have always understood that you cannot attach an asset from the library of one swf into another loaded swf. I've never succeeded in doing it and haven't seen a workaround. Sorry I can't be more helpful. Please can someone prove me wrong! Adrian P On 3/7/06, Marlon Harrison [EMAIL PROTECTED] wrote: thanks I don't think attachMovieClip will work in this instance from what I've been reading. Perhaps I can clarify a bit more. I have a container swf that loads in a series of children swfs. All of my code is in the container swf, as are the icon movieclips. I want to use attachMovie to put an icon on a path that's inside of one of the children swfs. If I add the movieclips to the child's fla and export them like I have in the container swf, they load OK, but obviously that's what I want. On 3/7/06, lars [EMAIL PROTECTED] wrote: if i get it right this sounds more like a initialization or depth problem. attachMovieClip should work. have you tried createEmptyMovieClip with a getNextHighestDepth and load those icons into those? hth: lars Am 07.03.2006 22:37 Uhr schrieb Marlon Harrison unter [EMAIL PROTECTED]: I have a parent swf that loads in a series of children swfs and acts as a browser for them. Within the children swfs - there are a number of hotspot movieclips that trigger other events. I'd like to centralize the appearance of those 'hotspot' movieclips to the parent swf so that if i need to change how the icon's look i can change it once in the parent rather than in each child swf. I thought that the best way to do this would make the hotspot clips into placeholders and use attachMovie to put the appropriate icon on it. The problem is that is appears attachMovie doesn't work if the path to the clip is in a one of the children swfs that was loaded. Is this correct? If so, is there a workaround of some sort that I can try? Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] a way to get the position in an array during interation
Is there a more elegant way to get the position of an element in an array than this: var firstList:Array=[element1,element2,element3]; for var(i=0;ifirstList.length;i++){ secondArray.push({itemId:i,itemname:firstList[i].name,firstList[i]} } my_lb.dataProvider=secondArray; i'm trying to basically move the items from one list to the other list but wanted to use a model for the second list instead of adding stuff right to it. For example - I know there's an iterator Interface in Flash but is there a class that would have already written iteration code (in AS2). I've tried the dataSet but have am looking for something less heavy. Thanks, Mani ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: Doh! Converting a floating point string to numberloses precision
define epsilon and check if abs(x-y)epsilon Boon Chew [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do you usually deal with the loss in precision (a bit oxymoron since floating point can't be exactly represented) when converting a floating point string to a number? var s:String = 952.86; var i:Number = parseFloat(s); trace(i); trace(i - 952.86); // Not zero! - boon - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RadioButton CellRenderer vs. CheckBox CellRenderer
John - PhilFlash has lots of great sample code for CellRenderers, including a radiobutton one. http://philflash.inway.fr/dgratingrd/dgratingrd.html best, - rajat On 3/7/06, John Mark Hawley [EMAIL PROTECTED] wrote: I have need of a DataGrid with one column filled with CheckBoxes, and another column filled with RadioButtons. The RadioButtons should all be in the same RadioButtonGroup. I put together CellRenderers for these two columns, and everything *almost* works. Problems: No RadioButtonGroup is ever constructed by my radioButtons, for one thing. RadioButton.as should be building a Group as soon as it sees the need for one. I've monkeyed with my cellrenderer to keep track of the selected radioButton and deselect all other radioButtons as needed, so this shouldn't be a huge problem. Clicking a checkBox affects the radioButton in the same row, without rhyme or reason. Does anyone have yet more cellrenderer code they can share, with radioButtons and checkboxes playing happily together? RadioButton cellRenderer code seems very hard to come by. (I know this sounds like a very stupid looking dataGrid, and there are much better ways to present the data -- but I have to match the HTML version of the table in dispute as closely as possible.) -Mark Hawley -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Rajat Paharia [EMAIL PROTECTED] http://www.bunchball.com http://www.rootburn.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] textArea background colour
How can I remove the border and background fill of a textArea component? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Getting a screenshot of flash app?
Anyone know an automated server-side way of getting a jpg screenshot of a flash app? Would need to be linux based...no windows here. TIA, Sean ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Getting a screenshot of flash app?
if it flash 8 you could use bitmapdata On 3/7/06, Sean K. Moran [EMAIL PROTECTED] wrote: Anyone know an automated server-side way of getting a jpg screenshot of a flash app? Would need to be linux based...no windows here. TIA, Sean ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- j:pn http://www.lennel.org ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] trace inside the browser
Make sure that if you're using 7, that you've got 7.2, it cures all the problems where it mysteriously stops working I think :) -- I got a fever! And the only prescription, is more cowbell. Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email: [EMAIL PROTECTED] [EMAIL PROTECTED] 08/03/2006 1:41:27 am or if you just like using trace, follow my post here: http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php - markW On 3/7/06, Chris Hill [EMAIL PROTECTED] wrote: Use the luminic box logger. http://www.luminicbox.com/blog/default.aspx?page=postid=2 Rodrigo Guerra wrote: hi, i'm trying to figure out a way to implement a debug that i can see online (in the browser) and not just inside the flash environment. just like trace, but it must work when the swf is online. i thought about a list component that appear and desapeear on a X keypress, and a function that could add my traces outputs to it i was wondering what other methods/ways you are doing this. thanks in advice. rodrigo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com *** Messages included in this e-mail and any of its attachments are those of the author unless specifically stated to represent WorkCover Queensland. The contents of this message are to be used for the intended purpose only and are to be kept confidential at all times. This message may contain privileged information directed only to the intended addressee/s. Accidental receipt of this information should be deleted promptly and the sender notified. This e-mail has been scanned by Sophos for known viruses. However, no warranty nor liability is implied in this respect. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Doh! Converting a floating point string to number loses precision
The way you deal with it will depend on what you want to do. If you want to see is something is close enough to zero you subtract them and check the difference if (Math.abs(i - 952.86)=0.1){trace(close enough for me)}else {trace(Not the same)}; if (Math.abs(i - 952.86)=0.01){trace(Really close )}else {trace(Not yet the same)}; If you use enough leading zeros you will get code that never evaluates to true so do not get wild with leading zeros. As long as you remember that numbers that are not explicitly cast as integers have to be treated with care, you will be alright. This problem has been around the computer world for the last 50 years and will be around for some time to come, so we have to just deal with it. Ron Yotam Laufer wrote: -1.13686837721616e-13 is as close to zero as you get matey 13 places after the decimal... On 07/03/06, Boon Chew [EMAIL PROTECTED] wrote: How do you usually deal with the loss in precision (a bit oxymoron since floating point can't be exactly represented) when converting a floating point string to a number? var s:String = 952.86; var i:Number = parseFloat(s); trace(i); trace(i - 952.86); // Not zero! - boon - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype: ubermutt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Datefield cell renderer needed
Anyone have a datefield cell renderer that works? I have a datagrid bound to a dataset bound to a RDBMSResolver. When the data returned via Flash Remoting is bound to the dataset's dataprovider, my datefield cell renderer won't display the dates. The dates are in -MM-DD format to keep MySQL happy if they dates are changed and the resolver must return them. Dave Rabkin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Video / on2 VP6 Keyframes/Interframes
I'm looking for more information on how on2 Vp6 keyframes and interframes are related to each other in an FLV. I understand how the FLV file has been packaged up, but how does vp6 apply interframes to a keyframe to generate the final video frame? -Vibol ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Create an mxp from the command line
Anyone ever created an mxp from the command line? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] components within custom components
Correct. - Original Message - From: Rich Rodecker [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 1:28 PM Subject: Re: [Flashcoders] components within custom components ok cool. so, if all my assets are on frame one, i probably don't need the bounding box mc too then, right? On 3/7/06, JesterXL [EMAIL PROTECTED] wrote: Some background just to give reasoning behind the insanity. Regarding First Frame, the point of bounding box on the first frame is to give the component initial widht and height values. If there is nothing on the first frame, you're width and height properties (a.k.a. you're __width and __height private properties of UIComponent) will be 0, thus when you go to position in your size function, you won't have any room. Therefore, the bounding box gives your coponent a default value for width and heigth. That's why a List component is 100x100 when you drag it to the stage. The 2nd reason is because LivePreview needs a default width and height to draw. If there is nothing on frame 1, it doesn't know how big to be, thus the defautl size will be 0x0, and thus you're LivePreview will show nothing except for tiny blue outlines. You have to have SOMETHING on frame 1. mx.core.View hides boundingBox_mc for you, so the user will never see it. Regarding assets, that is only to ensure that your components assets (images graphics) as well as the classes are exported into the SWF. If you are not creating them dynamically, and actually using them on frame 1, there is no reason for an assets layer frame then. - Original Message - From: Rich Rodecker [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 1:15 PM Subject: Re: [Flashcoders] components within custom components yeah it just seemd really wierd to do that. if I have my components on the stage in the first frame, and all i'm doing is hiding or showing the components, do i still need to put all of the components on an asset layer? On 3/7/06, JesterXL [EMAIL PROTECTED] wrote: Not sure what the heck the docs are talking about. I use the SWC's on asset layers all the time and it works great. To get a LivePreview to work, there are a number of factors, but the big one is ensuring a boundingBox is on frame 1 with a size bigger than 0x0, so you can actually see it. - Original Message - From: Rich Rodecker [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 07, 2006 12:53 PM Subject: [Flashcoders] components within custom components i posted this q on my blog, but wnated to ask here too: So, I'm taking my frist foray into building a legit flash component, and it uses some standard v2 components. I read in the documentation that you should use the component mc's instead of the compiled clips for the v2 components, but I didn't see any reasoning as to why. I made the switch, and I lost out on the live preview for components withing my component. Can anyone shed some light for me? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___
[Flashcoders] Create an mxp from the command line
Anyone ever created an mxp from the command line? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] getURL not working
Hi all, I have doubt in getURL method.Im using a XML in a file which is more than 500 nodes. i will be creating new nodes dynamically in XML and i want to write it to a text file using PHP. im using the getURL method inside press of a button component to transfer the data from flash to PHP.but i cant get.can anyone of pls tell me what wrong in it. Regards, S.Hidayath ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Doh! Converting a floating point string to number loses precision
I am aware of this issue in precision loss in floating point computation. But here we are talking about converting a number from string back to number. Why is it so hard to implement this correctly in the VM to ensure that the string when converted back to number is representated exactly the same as the number version? Out of curiosity I implemented this piece of logic in C++ and the resulting floating point number represented in string is exactly the same after the conversion. Looks like there is a bug in the string to number conversion. - boon Ron Wheeler [EMAIL PROTECTED] wrote: The way you deal with it will depend on what you want to do. If you want to see is something is close enough to zero you subtract them and check the difference if (Math.abs(i - 952.86)=0.1){trace(close enough for me)}else {trace(Not the same)}; if (Math.abs(i - 952.86)=0.01){trace(Really close )}else {trace(Not yet the same)}; If you use enough leading zeros you will get code that never evaluates to true so do not get wild with leading zeros. As long as you remember that numbers that are not explicitly cast as integers have to be treated with care, you will be alright. This problem has been around the computer world for the last 50 years and will be around for some time to come, so we have to just deal with it. Ron Yotam Laufer wrote: -1.13686837721616e-13 is as close to zero as you get matey 13 places after the decimal... On 07/03/06, Boon Chew wrote: How do you usually deal with the loss in precision (a bit oxymoron since floating point can't be exactly represented) when converting a floating point string to a number? var s:String = 952.86; var i:Number = parseFloat(s); trace(i); trace(i - 952.86); // Not zero! - boon - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype: ubermutt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Doh! Converting a floating point string to numberloses precision
Late in the thread, and suck at math, but there was discussion about this on Flexcoders too. Something about how certain numbers are only so big in Flash Player, and there was talk of porting BigInt from Java. Might want to check the archives there, or join, and ask since more Adobe peeps float around there. - Original Message - From: Boon Chew [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 08, 2006 12:03 AM Subject: Re: [Flashcoders] Doh! Converting a floating point string to numberloses precision I am aware of this issue in precision loss in floating point computation. But here we are talking about converting a number from string back to number. Why is it so hard to implement this correctly in the VM to ensure that the string when converted back to number is representated exactly the same as the number version? Out of curiosity I implemented this piece of logic in C++ and the resulting floating point number represented in string is exactly the same after the conversion. Looks like there is a bug in the string to number conversion. - boon Ron Wheeler [EMAIL PROTECTED] wrote: The way you deal with it will depend on what you want to do. If you want to see is something is close enough to zero you subtract them and check the difference if (Math.abs(i - 952.86)=0.1){trace(close enough for me)}else {trace(Not the same)}; if (Math.abs(i - 952.86)=0.01){trace(Really close )}else {trace(Not yet the same)}; If you use enough leading zeros you will get code that never evaluates to true so do not get wild with leading zeros. As long as you remember that numbers that are not explicitly cast as integers have to be treated with care, you will be alright. This problem has been around the computer world for the last 50 years and will be around for some time to come, so we have to just deal with it. Ron Yotam Laufer wrote: -1.13686837721616e-13 is as close to zero as you get matey 13 places after the decimal... On 07/03/06, Boon Chew wrote: How do you usually deal with the loss in precision (a bit oxymoron since floating point can't be exactly represented) when converting a floating point string to a number? var s:String = 952.86; var i:Number = parseFloat(s); trace(i); trace(i - 952.86); // Not zero! - boon - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype: ubermutt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Doh! Converting a floating point string to number loses precision
For this reason people usually use server side scripts to supply flash with correct calculations for finance apps. It might not look like a big deal until you are using Flash to do some financial app, where you obtain a number from a string variable, convert it to a number, divide it with something and Math.floor it, all the while thinking it's the same as taking a number, divide it with something and Math.floor it. (The diff can be as big as 1 because of Math.floor). - boon Yotam Laufer [EMAIL PROTECTED] wrote: -1.13686837721616e-13 is as close to zero as you get matey 13 places after the decimal... On 07/03/06, Boon Chew wrote: How do you usually deal with the loss in precision (a bit oxymoron since floating point can't be exactly represented) when converting a floating point string to a number? var s:String = 952.86; var i:Number = parseFloat(s); trace(i); trace(i - 952.86); // Not zero! - boon - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype: ubermutt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com - Yahoo! Mail Use Photomail to share photos without annoying attachments. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] getURL not working
getURL() is the wrong way to go for sending data. The Flash XML object has methods specifically for sending and receiving data. Read up on the XML.load(), XML.send() and XML.sendAndLoad() methods. They'll do you right. hth hidayath q wrote: Hi all, I have doubt in getURL method.Im using a XML in a file which is more than 500 nodes. i will be creating new nodes dynamically in XML and i want to write it to a text file using PHP. im using the getURL method inside press of a button component to transfer the data from flash to PHP.but i cant get.can anyone of pls tell me what wrong in it. Regards, S.Hidayath ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Thanks, ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] getURL not working
seems obvious, but you are adding a GET or POST to the getURL? On 3/8/06, Bob Leisle [EMAIL PROTECTED] wrote: getURL() is the wrong way to go for sending data. The Flash XML object has methods specifically for sending and receiving data. Read up on the XML.load(), XML.send() and XML.sendAndLoad() methods. They'll do you right. hth hidayath q wrote: Hi all, I have doubt in getURL method.Im using a XML in a file which is more than 500 nodes. i will be creating new nodes dynamically in XML and i want to write it to a text file using PHP. im using the getURL method inside press of a button component to transfer the data from flash to PHP.but i cant get.can anyone of pls tell me what wrong in it. Regards, S.Hidayath ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Thanks, ~ Bob Leisle Headsprout Software Engineering http://www.headsprout.com Where kids learn to read! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] vector to jpeg or png, php
I searched the list archives for a good solution for generating a jpeg or png using php. nothing found. I know i've seen some articles on this here and there but can't remember where exactly. does anyone have any good links for this? Flash 8 preferred because of bitmap api. Also note the DPI and res need to be huge ( 2300 X 3500, 200DPI ) thanks in advance smith ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com