Re: [Flashcoders] avoiding a stack of lists
Nathan Derksen wrote: Sorry for the delayed response, it's been a busy day. Not a problem at all. I hope this helps. That looks great, an improvement over what I've already done, but it wont require a full rewrite. Thanks a lot. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [FlashCoders] RadioButton group
Nevermind, I found it. It's radioButtonGroupName.selection. Dimitrios - Original Message - From: Dimitrios Bendilas [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, January 30, 2006 9:41 PM Subject: [FlashCoders] RadioButton group Hello all, Sorry for bothering you with this very basic question, but I need this very quickly and I can't remember how to do this. I have a single group of radio buttons on stage. How can I see which one is selected? Do I have to create a listener and save the changes on a variable? Thanks! Dimitrios ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ConvolutionFilter performance
OK you'll need a movie 768x768 - copy this code on to frame 1 etc. with blur filter: [/as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function RGBtoHEX(r, g, b) { return (r 16 | g 8 | b); } function spectre(angle) { r = (180-angle)/180*Math.PI; var c_r = Math.sin(r++)*127+128 16; var c_g = Math.sin(r)*127+128 8; var c_b = Math.cos(r--)*127+128; return (c_r | c_g | c_b); } var filterArray = new Array(); //var filter:GlowFilter = new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); //filterArray.push(filter); var blurX = 20; var blurY = 20; var quality = 2; var filter = new BlurFilter(blurX, blurY, quality); filterArray.push(filter); // var plug = _root.createEmptyMovieClip('plug', 10); plug._y = 200; plug._x = 200; createEmptyMovieClip('canvas', 200); t = 0; numsegs = 15; segmentLength = 6; drawCord = function () { t += 2; lw = Math.sin(t)*100; //trace(lw); a = 100; //trace(a) canvas.clear(); var col = spectre(t); canvas.lineStyle(1, col, a); canvas.moveTo(plug._x, plug._y); points[0] = new Object(); points[0].x = plug._x; points[0].y = plug._y; var v1 = 1; while (v1points.length-1) { v4 = Math.atan2(points[v1].y-points[v1-1].y, points[v1].x-points[v1-1].x); v3 = points[v1-1].x+(segmentLength)*Math.cos(v4)*2; v2 = points[v1-1].y+(segmentLength)*Math.sin(v4)*2; points[v1].x = v3; points[v1].y = v2; canvas.lineStyle((points.length-v1)/2, col); canvas.lineTo(v3, v2); ++v1; } //(points.length-v1)/2 }; var points = new Array(); var i = 0; while (inumsegs) { points[i] = new Object(); points[i].x=5*i, points[i].y=Math.sin(i/20); ++i; } //drawCord(); plug.xVel = 10+Math.random()*10; plug.yVel = 10+Math.random()*10; plug.xmax = Stage.width; plug.xmin = 0; plug.ymax = Stage.height; plug.ymin = 0; /* var matrixX:Number = 3; var matrixY:Number = 3; var matrix:Array = [1, 1, 1, 0, 0, 0, 0, 1, 0]; var divisor:Number = 4; */ //var sfilter:ConvolutionFilter = new ConvolutionFilter(matrixX, matrixY, matrix, divisor); var blurX = 10; var blurY = 10; var quality = 2; var sfilter = new BlurFilter(blurX, blurY, quality); // myMatrix = new Matrix(); translateMatrix = new Matrix(); degrees = 180; radians = (degrees/180)*Math.PI; myMatrix.rotate(radians); translateMatrix.translate(768, 768); myMatrix.concat(translateMatrix); myColorTransform = new ColorTransform(); blendMode = normal; myRectangle = new Rectangle(0, 0, 768, 768); smooth = true; // sfilter = new BlurFilter(5, 5, 1); plug.onEnterFrame = function() { rolldie = Math.random()*100; if (rolldie97) { this.xVel = -10+Math.random()*20; this.yVel = -10+Math.random()*20; } canvas.filters = filterArray; drawCord(); copyStage(); var nextX = this.xVel+this._x; var nextY = this.yVel+this._y; if (nextXthis.xmax) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmax-(nextX-this.xmax); } else if (nextXthis.xmin) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmin+(this.xmin-nextX); } if (nextYthis.ymax) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymax-(nextY-this.ymax); } else if (nextYthis.ymin) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymin+(this.ymin-nextY); } this._x = nextX; this._y = nextY; onScreen.copyPixels(offScreen1, offScreen1.rectangle, zeroPoint); onScreen.applyFilter(offScreen1, offScreen1.rectangle, new Point(0, 0), sfilter); offScreen1.draw(_root, myMatrix, myColorTransform, blendMode, myRectangle, smooth); }; [/as] With convolution filter: [as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function
Re: [Flashcoders] ConvolutionFilter performance
much better with Convolution filter :) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: OK you'll need a movie 768x768 - copy this code on to frame 1 etc. with blur filter: [/as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function RGBtoHEX(r, g, b) { return (r 16 | g 8 | b); } function spectre(angle) { r = (180-angle)/180*Math.PI; var c_r = Math.sin(r++)*127+128 16; var c_g = Math.sin(r)*127+128 8; var c_b = Math.cos(r--)*127+128; return (c_r | c_g | c_b); } var filterArray = new Array(); //var filter:GlowFilter = new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); //filterArray.push(filter); var blurX = 20; var blurY = 20; var quality = 2; var filter = new BlurFilter(blurX, blurY, quality); filterArray.push(filter); // var plug = _root.createEmptyMovieClip('plug', 10); plug._y = 200; plug._x = 200; createEmptyMovieClip('canvas', 200); t = 0; numsegs = 15; segmentLength = 6; drawCord = function () { t += 2; lw = Math.sin(t)*100; //trace(lw); a = 100; //trace(a) canvas.clear(); var col = spectre(t); canvas.lineStyle(1, col, a); canvas.moveTo(plug._x, plug._y); points[0] = new Object(); points[0].x = plug._x; points[0].y = plug._y; var v1 = 1; while (v1points.length-1) { v4 = Math.atan2(points[v1].y-points[v1-1].y, points[v1].x-points[v1-1].x); v3 = points[v1-1].x+(segmentLength)*Math.cos(v4)*2; v2 = points[v1-1].y+(segmentLength)*Math.sin(v4)*2; points[v1].x = v3; points[v1].y = v2; canvas.lineStyle((points.length-v1)/2, col); canvas.lineTo(v3, v2); ++v1; } //(points.length-v1)/2 }; var points = new Array(); var i = 0; while (inumsegs) { points[i] = new Object(); points[i].x=5*i, points[i].y=Math.sin(i/20); ++i; } //drawCord(); plug.xVel = 10+Math.random()*10; plug.yVel = 10+Math.random()*10; plug.xmax = Stage.width; plug.xmin = 0; plug.ymax = Stage.height; plug.ymin = 0; /* var matrixX:Number = 3; var matrixY:Number = 3; var matrix:Array = [1, 1, 1, 0, 0, 0, 0, 1, 0]; var divisor:Number = 4; */ //var sfilter:ConvolutionFilter = new ConvolutionFilter(matrixX, matrixY, matrix, divisor); var blurX = 10; var blurY = 10; var quality = 2; var sfilter = new BlurFilter(blurX, blurY, quality); // myMatrix = new Matrix(); translateMatrix = new Matrix(); degrees = 180; radians = (degrees/180)*Math.PI; myMatrix.rotate(radians); translateMatrix.translate(768, 768); myMatrix.concat(translateMatrix); myColorTransform = new ColorTransform(); blendMode = normal; myRectangle = new Rectangle(0, 0, 768, 768); smooth = true; // sfilter = new BlurFilter(5, 5, 1); plug.onEnterFrame = function() { rolldie = Math.random()*100; if (rolldie97) { this.xVel = -10+Math.random()*20; this.yVel = -10+Math.random()*20; } canvas.filters = filterArray; drawCord(); copyStage(); var nextX = this.xVel+this._x; var nextY = this.yVel+this._y; if (nextXthis.xmax) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmax-(nextX-this.xmax); } else if (nextXthis.xmin) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmin+(this.xmin-nextX); } if (nextYthis.ymax) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymax-(nextY-this.ymax); } else if (nextYthis.ymin) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymin+(this.ymin-nextY); } this._x = nextX; this._y = nextY; onScreen.copyPixels(offScreen1, offScreen1.rectangle, zeroPoint); onScreen.applyFilter(offScreen1, offScreen1.rectangle, new Point(0, 0), sfilter); offScreen1.draw(_root, myMatrix, myColorTransform, blendMode, myRectangle, smooth); }; [/as] With convolution filter: [as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var
Re: [Flashcoders] ConvolutionFilter performance
??? blurFilter=very smooth convultionFilter=shaky and unstable much better with Convolution filter :) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: OK you'll need a movie 768x768 - copy this code on to frame 1 etc. with blur filter: [/as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function RGBtoHEX(r, g, b) { return (r 16 | g 8 | b); } function spectre(angle) { r = (180-angle)/180*Math.PI; var c_r = Math.sin(r++)*127+128 16; var c_g = Math.sin(r)*127+128 8; var c_b = Math.cos(r--)*127+128; return (c_r | c_g | c_b); } var filterArray = new Array(); //var filter:GlowFilter = new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); //filterArray.push(filter); var blurX = 20; var blurY = 20; var quality = 2; var filter = new BlurFilter(blurX, blurY, quality); filterArray.push(filter); // var plug = _root.createEmptyMovieClip('plug', 10); plug._y = 200; plug._x = 200; createEmptyMovieClip('canvas', 200); t = 0; numsegs = 15; segmentLength = 6; drawCord = function () { t += 2; lw = Math.sin(t)*100; //trace(lw); a = 100; //trace(a) canvas.clear(); var col = spectre(t); canvas.lineStyle(1, col, a); canvas.moveTo(plug._x, plug._y); points[0] = new Object(); points[0].x = plug._x; points[0].y = plug._y; var v1 = 1; while (v1points.length-1) { v4 = Math.atan2(points[v1].y-points[v1-1].y, points [v1].x-points[v1-1].x); v3 = points[v1-1].x+(segmentLength)*Math.cos(v4)*2; v2 = points[v1-1].y+(segmentLength)*Math.sin(v4)*2; points[v1].x = v3; points[v1].y = v2; canvas.lineStyle((points.length-v1)/2, col); canvas.lineTo(v3, v2); ++v1; } //(points.length-v1)/2 }; var points = new Array(); var i = 0; while (inumsegs) { points[i] = new Object(); points[i].x=5*i, points[i].y=Math.sin(i/20); ++i; } //drawCord(); plug.xVel = 10+Math.random()*10; plug.yVel = 10+Math.random()*10; plug.xmax = Stage.width; plug.xmin = 0; plug.ymax = Stage.height; plug.ymin = 0; /* var matrixX:Number = 3; var matrixY:Number = 3; var matrix:Array = [1, 1, 1, 0, 0, 0, 0, 1, 0]; var divisor:Number = 4; */ //var sfilter:ConvolutionFilter = new ConvolutionFilter(matrixX, matrixY, matrix, divisor); var blurX = 10; var blurY = 10; var quality = 2; var sfilter = new BlurFilter(blurX, blurY, quality); // myMatrix = new Matrix(); translateMatrix = new Matrix(); degrees = 180; radians = (degrees/180)*Math.PI; myMatrix.rotate(radians); translateMatrix.translate(768, 768); myMatrix.concat(translateMatrix); myColorTransform = new ColorTransform(); blendMode = normal; myRectangle = new Rectangle(0, 0, 768, 768); smooth = true; // sfilter = new BlurFilter(5, 5, 1); plug.onEnterFrame = function() { rolldie = Math.random()*100; if (rolldie97) { this.xVel = -10+Math.random()*20; this.yVel = -10+Math.random()*20; } canvas.filters = filterArray; drawCord(); copyStage(); var nextX = this.xVel+this._x; var nextY = this.yVel+this._y; if (nextXthis.xmax) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmax-(nextX-this.xmax); } else if (nextXthis.xmin) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmin+(this.xmin-nextX); } if (nextYthis.ymax) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymax-(nextY-this.ymax); } else if (nextYthis.ymin) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymin+(this.ymin-nextY); } this._x = nextX; this._y = nextY; onScreen.copyPixels(offScreen1, offScreen1.rectangle, zeroPoint); onScreen.applyFilter(offScreen1, offScreen1.rectangle, new Point(0, 0), sfilter); offScreen1.draw(_root, myMatrix, myColorTransform, blendMode, myRectangle, smooth); }; [/as] With convolution filter: [as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point =
Re: [Flashcoders] ConvolutionFilter performance
I am using Flash 8 on OS X 10.4 ?? really strange ... much better with Convolution filter :) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: OK you'll need a movie 768x768 - copy this code on to frame 1 etc. with blur filter: [/as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function RGBtoHEX(r, g, b) { return (r 16 | g 8 | b); } function spectre(angle) { r = (180-angle)/180*Math.PI; var c_r = Math.sin(r++)*127+128 16; var c_g = Math.sin(r)*127+128 8; var c_b = Math.cos(r--)*127+128; return (c_r | c_g | c_b); } var filterArray = new Array(); //var filter:GlowFilter = new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); //filterArray.push(filter); var blurX = 20; var blurY = 20; var quality = 2; var filter = new BlurFilter(blurX, blurY, quality); filterArray.push(filter); // var plug = _root.createEmptyMovieClip('plug', 10); plug._y = 200; plug._x = 200; createEmptyMovieClip('canvas', 200); t = 0; numsegs = 15; segmentLength = 6; drawCord = function () { t += 2; lw = Math.sin(t)*100; //trace(lw); a = 100; //trace(a) canvas.clear(); var col = spectre(t); canvas.lineStyle(1, col, a); canvas.moveTo(plug._x, plug._y); points[0] = new Object(); points[0].x = plug._x; points[0].y = plug._y; var v1 = 1; while (v1points.length-1) { v4 = Math.atan2(points[v1].y-points[v1-1].y, points [v1].x-points[v1-1].x); v3 = points[v1-1].x+(segmentLength)*Math.cos(v4)*2; v2 = points[v1-1].y+(segmentLength)*Math.sin(v4)*2; points[v1].x = v3; points[v1].y = v2; canvas.lineStyle((points.length-v1)/2, col); canvas.lineTo(v3, v2); ++v1; } //(points.length-v1)/2 }; var points = new Array(); var i = 0; while (inumsegs) { points[i] = new Object(); points[i].x=5*i, points[i].y=Math.sin(i/20); ++i; } //drawCord(); plug.xVel = 10+Math.random()*10; plug.yVel = 10+Math.random()*10; plug.xmax = Stage.width; plug.xmin = 0; plug.ymax = Stage.height; plug.ymin = 0; /* var matrixX:Number = 3; var matrixY:Number = 3; var matrix:Array = [1, 1, 1, 0, 0, 0, 0, 1, 0]; var divisor:Number = 4; */ //var sfilter:ConvolutionFilter = new ConvolutionFilter(matrixX, matrixY, matrix, divisor); var blurX = 10; var blurY = 10; var quality = 2; var sfilter = new BlurFilter(blurX, blurY, quality); // myMatrix = new Matrix(); translateMatrix = new Matrix(); degrees = 180; radians = (degrees/180)*Math.PI; myMatrix.rotate(radians); translateMatrix.translate(768, 768); myMatrix.concat(translateMatrix); myColorTransform = new ColorTransform(); blendMode = normal; myRectangle = new Rectangle(0, 0, 768, 768); smooth = true; // sfilter = new BlurFilter(5, 5, 1); plug.onEnterFrame = function() { rolldie = Math.random()*100; if (rolldie97) { this.xVel = -10+Math.random()*20; this.yVel = -10+Math.random()*20; } canvas.filters = filterArray; drawCord(); copyStage(); var nextX = this.xVel+this._x; var nextY = this.yVel+this._y; if (nextXthis.xmax) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmax-(nextX-this.xmax); } else if (nextXthis.xmin) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmin+(this.xmin-nextX); } if (nextYthis.ymax) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymax-(nextY-this.ymax); } else if (nextYthis.ymin) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymin+(this.ymin-nextY); } this._x = nextX; this._y = nextY; onScreen.copyPixels(offScreen1, offScreen1.rectangle, zeroPoint); onScreen.applyFilter(offScreen1, offScreen1.rectangle, new Point(0, 0), sfilter); offScreen1.draw(_root, myMatrix, myColorTransform, blendMode, myRectangle, smooth); }; [/as] With convolution filter: [as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0,
RE: [Flashcoders] ConvolutionFilter performance
Interesting, it runs like a dog with blur filter on mine, fast and sweet as pie (a bit 'shaky' but not enough to be a problem) with convolution on my PC. You PC or Mac? M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cédric Muller Sent: 31 January 2006 09:43 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance ??? blurFilter=very smooth convultionFilter=shaky and unstable ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
uff, Cedric, i got opposite results blurFilter=shaky and unstable convultionFilter=svery smooth can anybody tell me why? On 1/31/06, Cédric Muller [EMAIL PROTECTED] wrote: ??? blurFilter=very smooth convultionFilter=shaky and unstable much better with Convolution filter :) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: OK you'll need a movie 768x768 - copy this code on to frame 1 etc. with blur filter: [/as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function RGBtoHEX(r, g, b) { return (r 16 | g 8 | b); } function spectre(angle) { r = (180-angle)/180*Math.PI; var c_r = Math.sin(r++)*127+128 16; var c_g = Math.sin(r)*127+128 8; var c_b = Math.cos(r--)*127+128; return (c_r | c_g | c_b); } var filterArray = new Array(); //var filter:GlowFilter = new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); //filterArray.push(filter); var blurX = 20; var blurY = 20; var quality = 2; var filter = new BlurFilter(blurX, blurY, quality); filterArray.push(filter); // var plug = _root.createEmptyMovieClip('plug', 10); plug._y = 200; plug._x = 200; createEmptyMovieClip('canvas', 200); t = 0; numsegs = 15; segmentLength = 6; drawCord = function () { t += 2; lw = Math.sin(t)*100; //trace(lw); a = 100; //trace(a) canvas.clear(); var col = spectre(t); canvas.lineStyle(1, col, a); canvas.moveTo(plug._x, plug._y); points[0] = new Object(); points[0].x = plug._x; points[0].y = plug._y; var v1 = 1; while (v1points.length-1) { v4 = Math.atan2(points[v1].y-points[v1-1].y, points [v1].x-points[v1-1].x); v3 = points[v1-1].x+(segmentLength)*Math.cos(v4)*2; v2 = points[v1-1].y+(segmentLength)*Math.sin(v4)*2; points[v1].x = v3; points[v1].y = v2; canvas.lineStyle((points.length-v1)/2, col); canvas.lineTo(v3, v2); ++v1; } //(points.length-v1)/2 }; var points = new Array(); var i = 0; while (inumsegs) { points[i] = new Object(); points[i].x=5*i, points[i].y=Math.sin(i/20); ++i; } //drawCord(); plug.xVel = 10+Math.random()*10; plug.yVel = 10+Math.random()*10; plug.xmax = Stage.width; plug.xmin = 0; plug.ymax = Stage.height; plug.ymin = 0; /* var matrixX:Number = 3; var matrixY:Number = 3; var matrix:Array = [1, 1, 1, 0, 0, 0, 0, 1, 0]; var divisor:Number = 4; */ //var sfilter:ConvolutionFilter = new ConvolutionFilter(matrixX, matrixY, matrix, divisor); var blurX = 10; var blurY = 10; var quality = 2; var sfilter = new BlurFilter(blurX, blurY, quality); // myMatrix = new Matrix(); translateMatrix = new Matrix(); degrees = 180; radians = (degrees/180)*Math.PI; myMatrix.rotate(radians); translateMatrix.translate(768, 768); myMatrix.concat(translateMatrix); myColorTransform = new ColorTransform(); blendMode = normal; myRectangle = new Rectangle(0, 0, 768, 768); smooth = true; // sfilter = new BlurFilter(5, 5, 1); plug.onEnterFrame = function() { rolldie = Math.random()*100; if (rolldie97) { this.xVel = -10+Math.random()*20; this.yVel = -10+Math.random()*20; } canvas.filters = filterArray; drawCord(); copyStage(); var nextX = this.xVel+this._x; var nextY = this.yVel+this._y; if (nextXthis.xmax) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmax-(nextX-this.xmax); } else if (nextXthis.xmin) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmin+(this.xmin-nextX); } if (nextYthis.ymax) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymax-(nextY-this.ymax); } else if (nextYthis.ymin) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymin+(this.ymin-nextY); } this._x = nextX; this._y = nextY; onScreen.copyPixels(offScreen1, offScreen1.rectangle, zeroPoint); onScreen.applyFilter(offScreen1, offScreen1.rectangle, new Point(0, 0),
Re: [Flashcoders] LoadMovie Problem?
this is complete nonsesnse, take a look to the manual, first, not sure if loadMovie to _root is proper solution, create new movieClip, and load to it and most important: you have to wait for the movie being loaded, which is the hardCore and basic knowledge for every flash programmer :-) good luck Martin - Original Message - From: Dhiraj Girdhar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 31, 2006 8:35 AM Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
my mails seem to fall before getting to the list... I am on OS X 10.4.4 using Flash 8 on a G5 dualcore 2*2ghz ouch WHAT IS THAT ? we are in a bad shape ;) and macromedia is the only one to shed some light on 'hardware acceleration' is it ?? cedric uff, Cedric, i got opposite results blurFilter=shaky and unstable convultionFilter=svery smooth can anybody tell me why? On 1/31/06, Cédric Muller [EMAIL PROTECTED] wrote: ??? blurFilter=very smooth convultionFilter=shaky and unstable much better with Convolution filter :) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: OK you'll need a movie 768x768 - copy this code on to frame 1 etc. with blur filter: [/as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function RGBtoHEX(r, g, b) { return (r 16 | g 8 | b); } function spectre(angle) { r = (180-angle)/180*Math.PI; var c_r = Math.sin(r++)*127+128 16; var c_g = Math.sin(r)*127+128 8; var c_b = Math.cos(r--)*127+128; return (c_r | c_g | c_b); } var filterArray = new Array(); //var filter:GlowFilter = new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); //filterArray.push(filter); var blurX = 20; var blurY = 20; var quality = 2; var filter = new BlurFilter(blurX, blurY, quality); filterArray.push(filter); // var plug = _root.createEmptyMovieClip('plug', 10); plug._y = 200; plug._x = 200; createEmptyMovieClip('canvas', 200); t = 0; numsegs = 15; segmentLength = 6; drawCord = function () { t += 2; lw = Math.sin(t)*100; //trace(lw); a = 100; //trace(a) canvas.clear(); var col = spectre(t); canvas.lineStyle(1, col, a); canvas.moveTo(plug._x, plug._y); points[0] = new Object(); points[0].x = plug._x; points[0].y = plug._y; var v1 = 1; while (v1points.length-1) { v4 = Math.atan2(points[v1].y-points[v1-1].y, points [v1].x-points[v1-1].x); v3 = points[v1-1].x+(segmentLength)*Math.cos(v4)*2; v2 = points[v1-1].y+(segmentLength)*Math.sin(v4)*2; points[v1].x = v3; points[v1].y = v2; canvas.lineStyle((points.length-v1)/2, col); canvas.lineTo(v3, v2); ++v1; } //(points.length-v1)/2 }; var points = new Array(); var i = 0; while (inumsegs) { points[i] = new Object(); points[i].x=5*i, points[i].y=Math.sin(i/20); ++i; } //drawCord(); plug.xVel = 10+Math.random()*10; plug.yVel = 10+Math.random()*10; plug.xmax = Stage.width; plug.xmin = 0; plug.ymax = Stage.height; plug.ymin = 0; /* var matrixX:Number = 3; var matrixY:Number = 3; var matrix:Array = [1, 1, 1, 0, 0, 0, 0, 1, 0]; var divisor:Number = 4; */ //var sfilter:ConvolutionFilter = new ConvolutionFilter(matrixX, matrixY, matrix, divisor); var blurX = 10; var blurY = 10; var quality = 2; var sfilter = new BlurFilter(blurX, blurY, quality); // myMatrix = new Matrix(); translateMatrix = new Matrix(); degrees = 180; radians = (degrees/180)*Math.PI; myMatrix.rotate(radians); translateMatrix.translate(768, 768); myMatrix.concat(translateMatrix); myColorTransform = new ColorTransform(); blendMode = normal; myRectangle = new Rectangle(0, 0, 768, 768); smooth = true; // sfilter = new BlurFilter(5, 5, 1); plug.onEnterFrame = function() { rolldie = Math.random()*100; if (rolldie97) { this.xVel = -10+Math.random()*20; this.yVel = -10+Math.random()*20; } canvas.filters = filterArray; drawCord(); copyStage(); var nextX = this.xVel+this._x; var nextY = this.yVel+this._y; if (nextXthis.xmax) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmax-(nextX-this.xmax); } else if (nextXthis.xmin) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmin+(this.xmin-nextX); } if (nextYthis.ymax) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymax-(nextY-this.ymax); } else if (nextYthis.ymin) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymin+(this.ymin-nextY); } this._x = nextX; this._y = nextY; onScreen.copyPixels(offScreen1, offScreen1.rectangle, zeroPoint); onScreen.applyFilter(offScreen1, offScreen1.rectangle, new Point(0, 0), sfilter);
RE: [Flashcoders] LoadMovie Problem?
Hi, Please tell me, what is the main problem with loading the movie on root? I tried another solution i.e. loading in some other movie which is working fine but I don't know the reason. :( Please clear my doubts. DJ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Weiser Sent: Tuesday, January 31, 2006 3:23 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadMovie Problem? this is complete nonsesnse, take a look to the manual, first, not sure if loadMovie to _root is proper solution, create new movieClip, and load to it and most important: you have to wait for the movie being loaded, which is the hardCore and basic knowledge for every flash programmer :-) good luck Martin - Original Message - From: Dhiraj Girdhar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 31, 2006 8:35 AM Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
Actually, I don't have time to write a small 'performance' reporter but I did upload the files so most of us can see them live ... WHAT IS IT ??? pure crazyness http://www.benga.li/performance/ Cedric my mails seem to fall before getting to the list... I am on OS X 10.4.4 using Flash 8 on a G5 dualcore 2*2ghz ouch WHAT IS THAT ? we are in a bad shape ;) and macromedia is the only one to shed some light on 'hardware acceleration' is it ?? cedric uff, Cedric, i got opposite results blurFilter=shaky and unstable convultionFilter=svery smooth can anybody tell me why? On 1/31/06, Cédric Muller [EMAIL PROTECTED] wrote: ??? blurFilter=very smooth convultionFilter=shaky and unstable much better with Convolution filter :) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: OK you'll need a movie 768x768 - copy this code on to frame 1 etc. with blur filter: [/as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function RGBtoHEX(r, g, b) { return (r 16 | g 8 | b); } function spectre(angle) { r = (180-angle)/180*Math.PI; var c_r = Math.sin(r++)*127+128 16; var c_g = Math.sin(r)*127+128 8; var c_b = Math.cos(r--)*127+128; return (c_r | c_g | c_b); } var filterArray = new Array(); //var filter:GlowFilter = new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); //filterArray.push(filter); var blurX = 20; var blurY = 20; var quality = 2; var filter = new BlurFilter(blurX, blurY, quality); filterArray.push(filter); // var plug = _root.createEmptyMovieClip('plug', 10); plug._y = 200; plug._x = 200; createEmptyMovieClip('canvas', 200); t = 0; numsegs = 15; segmentLength = 6; drawCord = function () { t += 2; lw = Math.sin(t)*100; //trace(lw); a = 100; //trace(a) canvas.clear(); var col = spectre(t); canvas.lineStyle(1, col, a); canvas.moveTo(plug._x, plug._y); points[0] = new Object(); points[0].x = plug._x; points[0].y = plug._y; var v1 = 1; while (v1points.length-1) { v4 = Math.atan2(points[v1].y-points[v1-1].y, points [v1].x-points[v1-1].x); v3 = points[v1-1].x+(segmentLength)*Math.cos(v4) *2; v2 = points[v1-1].y+(segmentLength)*Math.sin(v4) *2; points[v1].x = v3; points[v1].y = v2; canvas.lineStyle((points.length-v1)/2, col); canvas.lineTo(v3, v2); ++v1; } //(points.length-v1)/2 }; var points = new Array(); var i = 0; while (inumsegs) { points[i] = new Object(); points[i].x=5*i, points[i].y=Math.sin(i/20); ++i; } //drawCord(); plug.xVel = 10+Math.random()*10; plug.yVel = 10+Math.random()*10; plug.xmax = Stage.width; plug.xmin = 0; plug.ymax = Stage.height; plug.ymin = 0; /* var matrixX:Number = 3; var matrixY:Number = 3; var matrix:Array = [1, 1, 1, 0, 0, 0, 0, 1, 0]; var divisor:Number = 4; */ //var sfilter:ConvolutionFilter = new ConvolutionFilter(matrixX, matrixY, matrix, divisor); var blurX = 10; var blurY = 10; var quality = 2; var sfilter = new BlurFilter(blurX, blurY, quality); // myMatrix = new Matrix(); translateMatrix = new Matrix(); degrees = 180; radians = (degrees/180)*Math.PI; myMatrix.rotate(radians); translateMatrix.translate(768, 768); myMatrix.concat(translateMatrix); myColorTransform = new ColorTransform(); blendMode = normal; myRectangle = new Rectangle(0, 0, 768, 768); smooth = true; // sfilter = new BlurFilter(5, 5, 1); plug.onEnterFrame = function() { rolldie = Math.random()*100; if (rolldie97) { this.xVel = -10+Math.random()*20; this.yVel = -10+Math.random()*20; } canvas.filters = filterArray; drawCord(); copyStage(); var nextX = this.xVel+this._x; var nextY = this.yVel+this._y; if (nextXthis.xmax) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmax-(nextX-this.xmax); } else if (nextXthis.xmin) { this.xVel = (this.xVel+Math.random()*10)*-1; nextX = this.xmin+(this.xmin-nextX); } if (nextYthis.ymax) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymax-(nextY-this.ymax); } else if (nextYthis.ymin) { this.yVel = (this.yVel+Math.random()*10)*-1; nextY = this.ymin+(this.ymin-nextY); }
[Flashcoders] Flash Tree Not Clickable
I have a tree and to Buttons to navigate to tree (up and down). Now I need to make the tree not clickable. A user may only navigate with the buttons. Disabling the change event is not an option, neither is disabling the tree. 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Tree Not Clickable
Place another movieclip over the top of it, 100% alpha, with onRelease set to a dummy function? On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a tree and to Buttons to navigate to tree (up and down). Now I need to make the tree not clickable. A user may only navigate with the buttons. Disabling the change event is not an option, neither is disabling the tree. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Tree Not Clickable
Sorry, I meant 0% alpha, of course. :-) Ian On 1/31/06, Ian Thomas [EMAIL PROTECTED] wrote: Place another movieclip over the top of it, 100% alpha, with onRelease set to a dummy function? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash Tree Not Clickable
I know, but then users will still think there's something to be clicked... Isn't there a way to access the movieclips for each rows in where the click's are processed... 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 Ian Thomas Sent: dinsdag 31 januari 2006 11:27 To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash Tree Not Clickable Place another movieclip over the top of it, 100% alpha, with onRelease set to a dummy function? On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a tree and to Buttons to navigate to tree (up and down). Now I need to make the tree not clickable. A user may only navigate with the buttons. Disabling the change event is not an option, neither is disabling the tree. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Tree Not Clickable
Why will they think there's something to be clicked? Set .useHandCursor to false on the blocking clip? Cheers, Ian On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know, but then users will still think there's something to be clicked... Isn't there a way to access the movieclips for each rows in where the click's are processed... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
in your performance test in Firefox, all seems same for me, little bit blur has slower but CPU usage on blur: 38-40 % on convo: 34 - 38% my previous tests was in Flash IDE On 1/31/06, Cédric Muller [EMAIL PROTECTED] wrote: Actually, I don't have time to write a small 'performance' reporter but I did upload the files so most of us can see them live ... WHAT IS IT ??? pure crazyness http://www.benga.li/performance/ Cedric my mails seem to fall before getting to the list... I am on OS X 10.4.4 using Flash 8 on a G5 dualcore 2*2ghz ouch WHAT IS THAT ? we are in a bad shape ;) and macromedia is the only one to shed some light on 'hardware acceleration' is it ?? cedric uff, Cedric, i got opposite results blurFilter=shaky and unstable convultionFilter=svery smooth can anybody tell me why? On 1/31/06, Cédric Muller [EMAIL PROTECTED] wrote: ??? blurFilter=very smooth convultionFilter=shaky and unstable much better with Convolution filter :) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: OK you'll need a movie 768x768 - copy this code on to frame 1 etc. with blur filter: [/as] import flash.filters.*; import flash.geom.*; import flash.display.*; // //import flash.display.Bitmap; var width:Number = 768; var height:Number = 768; var offScreen1:BitmapData = new BitmapData(width, height, false, 0); var onScreen:BitmapData = new BitmapData(width, height, false, 0); var zeroPoint:Point = new Point(0, 0); var clip:MovieClip = createEmptyMovieClip(clip, 1); clip._x = 0; clip._y = 0; clip.attachBitmap(onScreen, 1); // wire the bitmap to the screen function RGBtoHEX(r, g, b) { return (r 16 | g 8 | b); } function spectre(angle) { r = (180-angle)/180*Math.PI; var c_r = Math.sin(r++)*127+128 16; var c_g = Math.sin(r)*127+128 8; var c_b = Math.cos(r--)*127+128; return (c_r | c_g | c_b); } var filterArray = new Array(); //var filter:GlowFilter = new GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); //filterArray.push(filter); var blurX = 20; var blurY = 20; var quality = 2; var filter = new BlurFilter(blurX, blurY, quality); filterArray.push(filter); // var plug = _root.createEmptyMovieClip('plug', 10); plug._y = 200; plug._x = 200; createEmptyMovieClip('canvas', 200); t = 0; numsegs = 15; segmentLength = 6; drawCord = function () { t += 2; lw = Math.sin(t)*100; //trace(lw); a = 100; //trace(a) canvas.clear(); var col = spectre(t); canvas.lineStyle(1, col, a); canvas.moveTo(plug._x, plug._y); points[0] = new Object(); points[0].x = plug._x; points[0].y = plug._y; var v1 = 1; while (v1points.length-1) { v4 = Math.atan2(points[v1].y-points[v1-1].y, points [v1].x-points[v1-1].x); v3 = points[v1-1].x+(segmentLength)*Math.cos(v4) *2; v2 = points[v1-1].y+(segmentLength)*Math.sin(v4) *2; points[v1].x = v3; points[v1].y = v2; canvas.lineStyle((points.length-v1)/2, col); canvas.lineTo(v3, v2); ++v1; } //(points.length-v1)/2 }; var points = new Array(); var i = 0; while (inumsegs) { points[i] = new Object(); points[i].x=5*i, points[i].y=Math.sin(i/20); ++i; } //drawCord(); plug.xVel = 10+Math.random()*10; plug.yVel = 10+Math.random()*10; plug.xmax = Stage.width; plug.xmin = 0; plug.ymax = Stage.height; plug.ymin = 0; /* var matrixX:Number = 3; var matrixY:Number = 3; var matrix:Array = [1, 1, 1, 0, 0, 0, 0, 1, 0]; var divisor:Number = 4; */ //var sfilter:ConvolutionFilter = new ConvolutionFilter(matrixX, matrixY, matrix, divisor); var blurX = 10; var blurY = 10; var quality = 2; var sfilter = new BlurFilter(blurX, blurY, quality); // myMatrix = new Matrix(); translateMatrix = new Matrix(); degrees = 180; radians = (degrees/180)*Math.PI; myMatrix.rotate(radians); translateMatrix.translate(768, 768); myMatrix.concat(translateMatrix); myColorTransform = new ColorTransform(); blendMode = normal; myRectangle = new Rectangle(0, 0, 768, 768); smooth = true; // sfilter = new BlurFilter(5, 5, 1); plug.onEnterFrame = function() { rolldie = Math.random()*100; if (rolldie97) { this.xVel = -10+Math.random()*20; this.yVel = -10+Math.random()*20; } canvas.filters = filterArray; drawCord(); copyStage(); var nextX = this.xVel+this._x; var nextY = this.yVel+this._y; if (nextXthis.xmax) { this.xVel =
RE: [Flashcoders] ConvolutionFilter performance
in IE convo is still faster - not got firefox at work so can't test. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of franto Sent: 31 January 2006 10:35 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance in your performance test in Firefox, all seems same for me, little bit blur has slower but CPU usage on blur: 38-40 % on convo: 34 - 38% my previous tests was in Flash IDE ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash Tree Not Clickable
Yep, Ian, I'v been programming Flash now for a year, and didn't know there was a useHandCursor to be set false... Thank you for enlightening me... cheers 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 Ian Thomas Sent: dinsdag 31 januari 2006 11:33 To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash Tree Not Clickable Why will they think there's something to be clicked? Set .useHandCursor to false on the blocking clip? Cheers, Ian On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know, but then users will still think there's something to be clicked... Isn't there a way to access the movieclips for each rows in where the click's are processed... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Tree Not Clickable
Lieven, No problems. Masking things out with a clip might feel a bit like cheating, but I'm all for 'do the simplest thing that works...' Cheers, Ian On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yep, Ian, I'v been programming Flash now for a year, and didn't know there was a useHandCursor to be set false... Thank you for enlightening me... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
I definitely get better performance out of Convo rather than Blur in both Firefox and IE on Win XP. Cheers, Ian On 1/31/06, franto [EMAIL PROTECTED] wrote: in your performance test in Firefox, all seems same for me, little bit blur has slower but CPU usage on blur: 38-40 % on convo: 34 - 38% my previous tests was in Flash IDE ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Use C: pages.swf since \ is used to escape characters -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: dinsdag 31 januari 2006 12:00 To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
I notice between lines 29 33 of your convolution version you have pushed a blurFilter into the filterArray - if you remove this from both versions and rely on convolution purely for blurring, as you can observe the effect isn't as pronounced as directly applying a blurFilter - to get an effective blur from a single iteration of a convolution matrix I've found requires a 5x5 matrix or alternatively use multiple iterations which may negate any cpu advantage that a single 3x3 convolution matrix application has? On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: Looks like: Convolution = better on PC Blur = better on mac Oh joy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cédric Muller Sent: 31 January 2006 09:44 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance I am using Flash 8 on OS X 10.4 ?? really strange ... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re:AS3 reference live docs missing?
Same deal here Tom. I really need that documentation available. Can anybody from Adobe comment on this issue please? Cheers, Mischa On 1/30/06, Tom Bray [EMAIL PROTECTED] wrote: Is there a mirror for this somewhere? I was depending on this for a proof-of-concept I'm working on. Broken link: http://livedocs.macromedia.com/labs/1/flex/langref/index.html On 1/27/06, M S [EMAIL PROTECTED] wrote: Let's hope they are filling in all the HOELS! :) Many things in the interfaces that would be great to start reading. Sorry, a bit more detal www.macromedia.com/go/programmingAS3 This is a help book http://livedocs.macromedia.com/labs/1/flex/langref/ This is the language reference API book. Peace, Mike On 1/27/06, M S [EMAIL PROTECTED] wrote: No, that is not the API book. I get the same page dead link to. On 1/27/06, Greg Hamer [EMAIL PROTECTED] wrote: Weird. This redirect link still works: www.macromedia.com/go/programmingAS3 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Use C: pages.swf ...and remove the space in there as well... Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Frank Pepermans Sent: Tuesday, January 31, 2006 6:18 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Use C: pages.swf since \ is used to escape characters -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: dinsdag 31 januari 2006 12:00 To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ConvolutionFilter performance
I notice between lines 29 33 of your convolution version you have pushed a blurFilter into the filterArray It's blurring the individual item - the second time around blurs the entire canvas. This still means Blur + blur = slow on Pc/ fast on mac blur + convo slow on mac/fast on PC - if you remove this from both versions and rely on convolution purely for blurring, as you can observe the effect isn't as pronounced But there's still a performance difference - which is platform dependant, which to me is an issue. as directly applying a blurFilter - to get an effective blur from a single iteration of a convolution matrix I've found requires a 5x5 matrix or alternatively use multiple iterations which may negate any cpu advantage that a single 3x3 convolution matrix application has? Go for it - obviously you'd use the best technique in order to achieve the effect you desire. Like I say this code is WIP but I thought it demonstrates the differences quite effectively. M ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Hey Jason, Thanks for your reply. Sorry, it was just a typo mistake (C:\\ pages.swf). I just want to know problems of loading the SWF file on root movie. Creating a new movie clip and loading that SWF file in that will solve the purpose but it is not clearing my doubt. Let me explore this problem in more detail. If I am loading the movie clip in some other movie clip (except root) then the control will be still in previous movie. But I want the control in new movie clip which I am going to load. Is it making any sense? Please correct if I am wrong. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 4:30 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] how to recover a flash from a screensaver
Hi to all i have to recover a .swf from a .src is there any tool to do this infamous job? thanks in advance Alfonso Florio ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Well, a couple of reasons. I mean you can, it's possible, but the reason for container clips is so you have the ability to load more than one clip. If you load into _root, everything in that movie clip will be replaced by the new clip you are loading in, and if you try and load a second clip into _root, only the second clip will appear, the first clip will be overwritten: loadMovie(clip1.swf, _root); loadMovie(clip2.swf, _root); //only clip2.swf will appear And loading from c:, I can't see how that would be wise in almost any circumstance, but maybe you have a reason to do so. As for _root itself, a lot of people will tell you its not wise to reference it, because as Flash applications gain hierarchies, _root changes often and is not a reliable reference to hard code into your application. I don't mean to be harsh, only to answer your questions. Hope that helps. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 6:33 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Hey Jason, Thanks for your reply. Sorry, it was just a typo mistake (C:\\ pages.swf). I just want to know problems of loading the SWF file on root movie. Creating a new movie clip and loading that SWF file in that will solve the purpose but it is not clearing my doubt. Let me explore this problem in more detail. If I am loading the movie clip in some other movie clip (except root) then the control will be still in previous movie. But I want the control in new movie clip which I am going to load. Is it making any sense? Please correct if I am wrong. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 4:30 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] loading external flv's - what's best way?
should i use netstream or media class component? and why? i'm just trying to figure out whats the mainly differences between both. cheers ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
I am still puzzled about that thing ... (unbalanced results on PC vs MAC) ... I notice between lines 29 33 of your convolution version you have pushed a blurFilter into the filterArray It's blurring the individual item - the second time around blurs the entire canvas. This still means Blur + blur = slow on Pc/ fast on mac blur + convo slow on mac/fast on PC - if you remove this from both versions and rely on convolution purely for blurring, as you can observe the effect isn't as pronounced But there's still a performance difference - which is platform dependant, which to me is an issue. as directly applying a blurFilter - to get an effective blur from a single iteration of a convolution matrix I've found requires a 5x5 matrix or alternatively use multiple iterations which may negate any cpu advantage that a single 3x3 convolution matrix application has? Go for it - obviously you'd use the best technique in order to achieve the effect you desire. Like I say this code is WIP but I thought it demonstrates the differences quite effectively. M ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
This line: _root.Test.loadMovie(clip.swf, _root); Should either be: Test.loadMovie(clip.swf); or loadMovie(clip.swf, Test); (and drop the use of _root gollygoshdarnnit!) You have instead combined both methods. By stating the movieClip name first and then LoadMovie, the second paramter is not needed. If you don't state the movieClip being loaded into first and then LoadMovie, then you do need the second paramter to tell it where to load the movie clip in to. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 7:06 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Hi Jason, Again thanks for your reply. But still my doubt is not clear. Please check the following code... // Code on first movie clip. _root.createEmptyMovieClip(Test, 1); _root.Test.loadMovie(clip.swf, _root); // Introducing a dummy time interval to wait until SWF file is not loaded. _root.$SI = setInterval(_root.func, 10); function func () { if ((_root. Test.getBytesLoaded() == _root. Test.getBytesTotal()) _root. Test._height 0 _root. Test._width 0) { // Going to second page in loaded movie. _root.Test.gotoAndStop(2); clearInterval(_root.$SI); _root.$SI = undefined; } } // code in second movie clip. // Displaying the name of the movie clip creating in first clip to load the clip. trace(_root.Test._name); Now it will work fine. But in case of loading the movie in root it is not working. It will load its first page only. Please let me know if I am not able to clear the problem. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 5:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Well, a couple of reasons. I mean you can, it's possible, but the reason for container clips is so you have the ability to load more than one clip. If you load into _root, everything in that movie clip will be replaced by the new clip you are loading in, and if you try and load a second clip into _root, only the second clip will appear, the first clip will be overwritten: loadMovie(clip1.swf, _root); loadMovie(clip2.swf, _root); //only clip2.swf will appear And loading from c:, I can't see how that would be wise in almost any circumstance, but maybe you have a reason to do so. As for _root itself, a lot of people will tell you its not wise to reference it, because as Flash applications gain hierarchies, _root changes often and is not a reliable reference to hard code into your application. I don't mean to be harsh, only to answer your questions. Hope that helps. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 6:33 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Hey Jason, Thanks for your reply. Sorry, it was just a typo mistake (C:\\ pages.swf). I just want to know problems of loading the SWF file on root movie. Creating a new movie clip and loading that SWF file in that will solve the purpose but it is not clearing my doubt. Let me explore this problem in more detail. If I am loading the movie clip in some other movie clip (except root) then the control will be still in previous movie. But I want the control in new movie clip which I am going to load. Is it making any sense? Please correct if I am wrong. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 4:30 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or
[Flashcoders] What native events do (AS2, but not V2) components implement?
Hi guys, This is always really hard to find information about, so I wanted to ask the list. Which events do AS2 components automatically have? I'm not talking about V2 components, I'm referring to components created from scratch in AS2. For example, there are functions like onResize, which seem to be automatically called, and others, which don't, but get implemented by the component developers themselves. Can anyone point me to a list of these? Or just let me know what they are? Cheers, Alias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Hi Jason, Again thanks for your reply. But still my doubt is not clear. Please check the following code... // Code on first movie clip. _root.createEmptyMovieClip(Test, 1); _root.Test.loadMovie(clip.swf, _root); // Introducing a dummy time interval to wait until SWF file is not loaded. _root.$SI = setInterval(_root.func, 10); function func () { if ((_root. Test.getBytesLoaded() == _root. Test.getBytesTotal()) _root. Test._height 0 _root. Test._width 0) { // Going to second page in loaded movie. _root.Test.gotoAndStop(2); clearInterval(_root.$SI); _root.$SI = undefined; } } // code in second movie clip. // Displaying the name of the movie clip creating in first clip to load the clip. trace(_root.Test._name); Now it will work fine. But in case of loading the movie in root it is not working. It will load its first page only. Please let me know if I am not able to clear the problem. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 5:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Well, a couple of reasons. I mean you can, it's possible, but the reason for container clips is so you have the ability to load more than one clip. If you load into _root, everything in that movie clip will be replaced by the new clip you are loading in, and if you try and load a second clip into _root, only the second clip will appear, the first clip will be overwritten: loadMovie(clip1.swf, _root); loadMovie(clip2.swf, _root); //only clip2.swf will appear And loading from c:, I can't see how that would be wise in almost any circumstance, but maybe you have a reason to do so. As for _root itself, a lot of people will tell you its not wise to reference it, because as Flash applications gain hierarchies, _root changes often and is not a reliable reference to hard code into your application. I don't mean to be harsh, only to answer your questions. Hope that helps. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 6:33 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Hey Jason, Thanks for your reply. Sorry, it was just a typo mistake (C:\\ pages.swf). I just want to know problems of loading the SWF file on root movie. Creating a new movie clip and loading that SWF file in that will solve the purpose but it is not clearing my doubt. Let me explore this problem in more detail. If I am loading the movie clip in some other movie clip (except root) then the control will be still in previous movie. But I want the control in new movie clip which I am going to load. Is it making any sense? Please correct if I am wrong. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 4:30 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] named anchor with dynamic text field - Possible?
Hi, Is it possible to create named anchors in dynamic text field? Something similar to HTML named anchors where a link in the text jumps to another position with that anchor name. I searched the archives but could not get an answer. -- Sajid ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
nice example :)) maybe let the result textfield editable, to be able past results ;) blur: 12740 convo3x3 : 9092 convo5x5: 36517 uff no filter: 5634 it's very interesting topic, i will post in on my blog to have more results... can I? On 1/31/06, Mike Duguid [EMAIL PROTECTED] wrote: I've stuck another example here: http://www.flashcool.com/blur.html On the pc, as Mike said, convolution is faster, but if you need more than a subtle blur may not be what's required. On 1/30/06, Andreas Rønning [EMAIL PROTECTED] wrote: Does anyone know which is faster; a blurring one-pass convolution filter or a blurfilter? Or are they just 2 sides to the same story? I need a high performance blur operation for depth of field.. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] named anchor with dynamic text field - Possible?
At 08:45 AM 1/31/2006, Sajid Saiyed wrote: Hi, Is it possible to create named anchors in dynamic text field? Something similar to HTML named anchors where a link in the text jumps to another position with that anchor name. I searched the archives but could not get an answer. -- Sajid No -- tried last fall, was hoping to link a list of headlines to stories. Links can be used to trigger asfunction() or to do something in the browser. Miles -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 267.14.25/246 - Release Date: 1/30/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ConvolutionFilter performance
In that test the convolution filter came out marginally faster than no filters at all! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Duguid Sent: 31 January 2006 13:05 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance I've stuck another example here: http://www.flashcool.com/blur.html On the pc, as Mike said, convolution is faster, but if you need more than a subtle blur may not be what's required. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ConvolutionFilter performance
Are these just the filters applied to a stright MC? It'd be interesting to see the same thing done double buffered - with the filters being applied to the bitmapdata before it is drawn back. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Duguid Sent: 31 January 2006 13:05 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance I've stuck another example here: http://www.flashcool.com/blur.html On the pc, as Mike said, convolution is faster, but if you need more than a subtle blur may not be what's required. On 1/30/06, Andreas Rønning [EMAIL PROTECTED] wrote: Does anyone know which is faster; a blurring one-pass convolution filter or a blurfilter? Or are they just 2 sides to the same story? I need a high performance blur operation for depth of field.. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
but not on PC :)) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: In that test the convolution filter came out marginally faster than no filters at all! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Duguid Sent: 31 January 2006 13:05 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance I've stuck another example here: http://www.flashcool.com/blur.html On the pc, as Mike said, convolution is faster, but if you need more than a subtle blur may not be what's required. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
and i got 2.8Ghx, 512MB Ram PC :) On 1/31/06, franto [EMAIL PROTECTED] wrote: but not on PC :)) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: In that test the convolution filter came out marginally faster than no filters at all! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Duguid Sent: 31 January 2006 13:05 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance I've stuck another example here: http://www.flashcool.com/blur.html On the pc, as Mike said, convolution is faster, but if you need more than a subtle blur may not be what's required. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ConvolutionFilter performance
Yes - on my PC. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of franto Sent: 31 January 2006 13:21 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance but not on PC :)) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: In that test the convolution filter came out marginally faster than no filters at all! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
just applied directly to mc. whoops there was a bug in there too, I've added the fla to the page if anybody wants to muck about with it Are these just the filters applied to a stright MC? It'd be interesting to see the same thing done double buffered - with the filters being applied to the bitmapdata before it is drawn back. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
so, please wrote the times, its really strange On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: Yes - on my PC. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of franto Sent: 31 January 2006 13:21 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance but not on PC :)) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: In that test the convolution filter came out marginally faster than no filters at all! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ConvolutionFilter performance
so, please wrote the times, its really strange Blur: 5622 Conv 3x3: 5625 Conv 5x5: 14453 None: 5640 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
Firefox: blurFilter blur v convolution blur blur filter time : 9382 convolution 3x3 (not very blurry though) : 8037 convolution 5x5 (more blurry but still not very) : 36431 no filter : 5637 IE: blurFilter blur v convolution blur blur filter time : 5771 convolution 3x3 (not very blurry though) : 5625 convolution 5x5 (more blurry but still not very) : 31900 no filter : 5648 Flash IDE (120 FPS): blurFilter blur v convolution blur blur filter time : 4849 convolution 3x3 (not very blurry though) : 3556 convolution 5x5 (more blurry but still not very) : 32154 no filter : 2909 Flash IDE (30 FPS): blurFilter blur v convolution blur blur filter time : 12129 convolution 3x3 (not very blurry though) : 12139 convolution 5x5 (more blurry but still not very) : 32906 no filter : 1216 On 1/31/06, franto [EMAIL PROTECTED] wrote: so, please wrote the times, its really strange On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: Yes - on my PC. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of franto Sent: 31 January 2006 13:21 To: Flashcoders mailing list Subject: Re: [Flashcoders] ConvolutionFilter performance but not on PC :)) On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: In that test the convolution filter came out marginally faster than no filters at all! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
ok, thanks Conclusion: convolution filters plainly DON'T WORK on macs ... (dualcore 2ghz!) I've stuck another example here: http://www.flashcool.com/blur.html On the pc, as Mike said, convolution is faster, but if you need more than a subtle blur may not be what's required. On 1/30/06, Andreas Rønning [EMAIL PROTECTED] wrote: Does anyone know which is faster; a blurring one-pass convolution filter or a blurfilter? Or are they just 2 sides to the same story? I need a high performance blur operation for depth of field.. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
blur filter time : 7295 convolution 3x3 (not very blurry though) : 31391 convolution 5x5 (more blurry but still not very) : 56559 no filter : 7265 Mac OS 10.4.4 DualCore G5 2x2Ghz :-)) so shitty I have now have to go for a sleep ... or book a room in a sanatorium oh oh you want a scoop ? Flash is no more ubiquitous ;) of course, this has to do with hardware acceleration AND decceleration nice example :)) maybe let the result textfield editable, to be able past results ;) blur: 12740 convo3x3 : 9092 convo5x5: 36517 uff no filter: 5634 it's very interesting topic, i will post in on my blog to have more results... can I? On 1/31/06, Mike Duguid [EMAIL PROTECTED] wrote: I've stuck another example here: http://www.flashcool.com/blur.html On the pc, as Mike said, convolution is faster, but if you need more than a subtle blur may not be what's required. On 1/30/06, Andreas Rønning [EMAIL PROTECTED] wrote: Does anyone know which is faster; a blurring one-pass convolution filter or a blurfilter? Or are they just 2 sides to the same story? I need a high performance blur operation for depth of field.. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -- -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
Hrm. I get: blur filter time : 11032 convolution 3x3: 10144 convolution 5x5: 37781 no filter : 7510 Win XP, 3GHz, 512MB RAM I wonder if it's a graphics card/hardware acceleration thing. (I have a rubbish graphics card.) Ian On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: so, please wrote the times, its really strange Blur: 5622 Conv 3x3: 5625 Conv 5x5: 14453 None: 5640 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] extending collectionimpl
Hi, im trying to extend mx.utils.CollectionImpl but it doesn't seem to work. Is there a restriction to intrinsic classes im not aware of? greetz Hans ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Tell me more about _global
I'm reading about the wrongs of using _global in various books and articles and blogs but I have used several extensions and resources that I am confident are well built that seem to be making use of _global. My current project has some use of _global in the code that I am updating an I m wondering in which cases I should try to remove those. Is there a reference that I can read that would educate me on the reasons not to use _global and even tell me some workarounds that would allow me to safely use _Global if it's necessary. I'm familiar with the use of the Singleton pattern but feel as if in some cases I might be better with some _globals. One case in particular that I'm considering is for some functions that we would like to have globally available. Am I better off making them static functions of a class (like Math.random() etc) and having people importing the class or just plopping them as functions on the global timeline? Thanks in advance- Mani ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ConvolutionFilter performance
Blur: 5944 convolution 3x3: 5641 convolution 5x5: 29932 no filter: 5646 also Win XP, 3GHz (northwood), 512MB RAM - intel 915 GAV motherboard w/built in crap vga -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Ian Thomas Verzonden: dinsdag 31 januari 2006 14:48 Aan: Flashcoders mailing list Onderwerp: Re: [Flashcoders] ConvolutionFilter performance Hrm. I get: blur filter time : 11032 convolution 3x3: 10144 convolution 5x5: 37781 no filter : 7510 Win XP, 3GHz, 512MB RAM I wonder if it's a graphics card/hardware acceleration thing. (I have a rubbish graphics card.) Ian On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: so, please wrote the times, its really strange Blur: 5622 Conv 3x3: 5625 Conv 5x5: 14453 None: 5640 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Fire Event Manually
sorr its a late, but cheat... var foo:Object = myCheckBox; foo.dispatchEvent( {type:cick, target:myCheckBox}); if you use an object reference the compiler doesn't enforce class modifiers so you can basically bypass protected. Grant. - Original Message - From: Yotam Laufer [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 1/20/06 9:52 AM Subject: Re: [Flashcoders] Fire Event Manually unless dispatchEvent is a private method ;) On 20 Jan 20 06 14:27:30 -, [EMAIL PROTECTED] wrote: myCheckBox.dispatchEvent( {type:cick, targ et:myCheckBox}); or should work ? Grant. - Original Message - From: julian atienza j [EMAIL PROTECTED] To: [EMAIL PROTECTED] af.com Sent: 1/20/06 5:59 AM Subject: [Flashcoders] F ire Event Manually Anybody can helps me with this? I have a collection of checkbox, with their own a ctionscript code in the on(click) or on(change) regio n of code to manage events... in one special case , i want to manually (through actionscript code in a class) fire the click event on every checkbox control of my panel. there is any way to make this? to fire click event like if a user interacts with the contr ol and click on it? I'm talking about Checkbox Co ntrol (not about HTML checkbox) ... thank u in ad vance! __ _ Flashcoders mailing list [EMAIL PROTECTED] figleaf.com http://chattyfig.figleaf.com/mailman/list info/flashcoders ___ Flashcoders mailing list [EMAIL PROTECTED] tyfig.figleaf.com http://chattyfig.figleaf.com/mailman/ listinfo/flashcoders -- Yotam Laufer | Flash Develop er | mobile +44 (0) 79 205 17 212 V¬ Êz»¨¥x+- V¬ Êz» «mÉø ~(%y§Ü¢ Ûiÿ÷!jÛr~( ^i÷(ùYùb²Ø§~ß«!r^® ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Noise Cancelling in Flash
Noise Cancelling = Hi, I wondered whether noise cancelling was possible in Flash using the Microphone functionality? It's just that Carl here is setting up one of those 8 drive servers here and it sounds like a jet engine - I'm going mad - sitting here scripting and I forgot to bring my Closed back headphones. I have some small ones. Basically I need to just replay the sound back through my little headphones - exactly out of phase to the sound in the office. (This is not life or death, but I might pour some coffee in the new server) Cheers Steve ( Grinding Teeth ) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
powerbook 15, 1.25 GHz, 1GB RAM: blur filter: 13 745 convolution 3x3: 44 437 convolution 5x5 : 119 497 no filter : 7 216 kalle On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Blur: 5944 convolution 3x3: 5641 convolution 5x5: 29932 no filter: 5646 also Win XP, 3GHz (northwood), 512MB RAM - intel 915 GAV motherboard w/built in crap vga -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Ian Thomas Verzonden: dinsdag 31 januari 2006 14:48 Aan: Flashcoders mailing list Onderwerp: Re: [Flashcoders] ConvolutionFilter performance Hrm. I get: blur filter time : 11032 convolution 3x3: 10144 convolution 5x5: 37781 no filter : 7510 Win XP, 3GHz, 512MB RAM I wonder if it's a graphics card/hardware acceleration thing. (I have a rubbish graphics card.) Ian On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: so, please wrote the times, its really strange Blur: 5622 Conv 3x3: 5625 Conv 5x5: 14453 None: 5640 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] dateField and Remoting problem
Did you try using the DateFormat() function? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adams, Matt Sent: Monday, January 30, 2006 8:57 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] dateField and Remoting problem I've tried posting this in the Adobe (Macromedia) forums with no luck. I'm hoping that someone here can help. Might be a newbie question, but I'm thinking I'd get better response here. Sorry for the cross-post and sorry if this is beneath the level of this list or OT. I'm trying to send a date from a dateField.selectedDate in Flash to a CFC. I'm using that date as a filter in the query. The query looks like this: cfquery name=get_classes datasource=#myDataSource# SELECT * FROM trainTrack WHERE classDate #Flash.Params[2]# ORDER BY className /cfquery I've tried using a cfm page as a test page and I know that the following format will filter the result appropriately: cfset date1 = CreateDateTime(2006, 02, 10, 4, 20, 20) cfset date2 = CreateDateTime(DatePart(, date1), DatePart(m, date1), DatePart(d, date1), 4, 20, 20) cfquery name=get_classes datasource=#myDataSource# SELECT * FROM trainTrack WHERE classDate = #date2# ORDER BY className /cfquery This works when used in the query, but whenever I try to do this with remoting it doesn't work. When I don't try to filter by date, the correct result of the query is returned so I'm fairly sure that the problem lies in the way that the date is formated when it hits the query. I've tried several ways to format the date, but I haven't had any luck. Oh, and I'm using Access as the DB (which might be some of my touble). I would really appreciate any insight! Thanks! Matt Adams --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE:[Flashcoders] Component and Live Preview problems
Thanks for the reply. I am using UIComponent. The code that is in the live preview fla is: [code] function onUpdate() { pushBtn.buttonText_txt.text = xch.btnLabel; } [/code] The strange thing is that in the component's FLA I can drag as many instances from the library on the stage and it works fine. Once I convert it to SWC, the problems start. I did trace out the the xch properties, but I couldn't seem to find the component's name. I did read the other replies to my post and looks like it is somewhat of a flawed design and it has to be hacked to get it to work properly. Thanks for the assistance. GregoryN greg at gousable.com wrote: Do you subclass UIComponent or just MovieClip? What code do you use for onUpdate? Try to trace components names etc while in live preview. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash Game Developer Needed
Hello, We at Atomik.be are looking for an experienced Flash Game Developer. You should be able to show us several games you have developed. Games may vary from Memory over Pooltables to 3D racers. Customers in the past include Sony Ericcson, AMD, ING, Technopolis, etc. We're developing a lot of games and are trying to keep up with the future workload. Send your resumes to [EMAIL PROTECTED] grts ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tell me more about _global
Hi, For me one of the _global biggest problems is that EVERYONE, EVERYWHERE can modify the value of a global variable. There's no private attribute at all. AND be careful because one Player 6 movie can NOT see global variables of a Player 7 movie. And vicecersa, of course. My 2 cents. Bye! On 1/31/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote: I'm reading about the wrongs of using _global in various books and articles and blogs but I have used several extensions and resources that I am confident are well built that seem to be making use of _global. My current project has some use of _global in the code that I am updating an I m wondering in which cases I should try to remove those. Is there a reference that I can read that would educate me on the reasons not to use _global and even tell me some workarounds that would allow me to safely use _Global if it's necessary. I'm familiar with the use of the Singleton pattern but feel as if in some cases I might be better with some _globals. One case in particular that I'm considering is for some functions that we would like to have globally available. Am I better off making them static functions of a class (like Math.random() etc) and having people importing the class or just plopping them as functions on the global timeline? Thanks in advance- Mani ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Zárate ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How to detect security violations?
In player 8, certain actions can be blocked due to security restrictions. In my case this can occur when a swf tries to access (with getURL()) a javascript function in the html page that contains the embedded swf. This can happen when both files are on a local computer (no webserver involved). It would be very nice if this blocking could be detected inside the Flash movie. How can this be done? regards, Jan Oosterhuis Faculty of Behavioral Sciences University of Twente, PO BOX 217, 7500 AE Enschede, The Netherlands E-mail: [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What native events do (AS2, but not V2) components implement?
Take a look in the Flash help panel under Components Language Reference - UIComponent Class and UIObject Class. Most components inherit from UIComponent, which in turn inherits from UIObject, so all the properties/methods/events listed for these two classes will apply. When you create your own components, you have a choice as to whether you want to go the somewhat lighter-weight approach and just extend UIObject, or to get the full V2 framework from UIComponent. Nathan http://www.nathanderksen.com On Jan 31, 2006, at 4:22 AM, Alias wrote: Hi guys, This is always really hard to find information about, so I wanted to ask the list. Which events do AS2 components automatically have? I'm not talking about V2 components, I'm referring to components created from scratch in AS2. For example, there are functions like onResize, which seem to be automatically called, and others, which don't, but get implemented by the component developers themselves. Can anyone point me to a list of these? Or just let me know what they are? Cheers, Alias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Referencing DataHolder properties from a class
Hi all! I'm trying to reference the properties of a DataHolder component from inside a custom component (extending UI Component). The DataHolder and its properties are added in the component itself at authoring time as there are no ways, to my knowledge, to add them dynamically via AS2. No matter what I do, if I try to reference the added DataHolder properties (except the default data property) from the init() method (or any other methods) of the class code of my component, the compiler complains that There is no property with the name 'myProperty' . What am I doing wrong? Am I missing something? Any help is greatly appreciated. Ettore Paolillo ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash 8 components in Flash 6 player
Hi, We have a Flash 6.0 application which we are expanding with Flash 8.0 components (to do with image uploading). Specifically, if a user is viewing the app with a lower Flash player, we offer them the Flash 6.0 upload interface (HTML), otherwise, they get the Flash 8.0 upload interface (Flash). We are doing this by loading the Flash 8.0 upload component into a new level in the Flash 6.0 shell (loading into a movie clip did not seem to work so well). Re-writing the Flash 6.0 shell is not really an option as it is far too big. My question is although this works - is it 'right' to do it the right way to do it i.e. before we make it live, has anyone had any real experience / lessons from doing something like this? Much obliged, Jason. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to detect security violations?
great question On 1/31/06, Jan Oosterhuis [EMAIL PROTECTED] wrote: In player 8, certain actions can be blocked due to security restrictions. In my case this can occur when a swf tries to access (with getURL()) a javascript function in the html page that contains the embedded swf. This can happen when both files are on a local computer (no webserver involved). It would be very nice if this blocking could be detected inside the Flash movie. How can this be done? regards, Jan Oosterhuis Faculty of Behavioral Sciences University of Twente, PO BOX 217, 7500 AE Enschede, The Netherlands E-mail: [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tell me more about _global
I generally keep at least one singleton class which is responsible for storing global properties. I make those properties accessible with getters and setters so that I can allow changes in those properties to trigger events. You can't really do that if you use _global to store your data. Also, there is always a risk in name space collision if you load in other elements that also use global, where one or more variables use the same name and are thus inadvertently shared for different uses. You definitely do not want to use _global within any classes that you create, as that can cause entanglement, gives you no private protection, and does not properly contain your code into a well-defined unit with a well-defined API. Nathan http://www.nathanderksen.com On Jan 31, 2006, at 6:26 AM, Manuel Saint-Victor wrote: I'm reading about the wrongs of using _global in various books and articles and blogs but I have used several extensions and resources that I am confident are well built that seem to be making use of _global. My current project has some use of _global in the code that I am updating an I m wondering in which cases I should try to remove those. Is there a reference that I can read that would educate me on the reasons not to use _global and even tell me some workarounds that would allow me to safely use _Global if it's necessary. I'm familiar with the use of the Singleton pattern but feel as if in some cases I might be better with some _globals. One case in particular that I'm considering is for some functions that we would like to have globally available. Am I better off making them static functions of a class (like Math.random() etc) and having people importing the class or just plopping them as functions on the global timeline? Thanks in advance- Mani ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tell me more about _global
also, if i read your code (or my own a few months after i've written it), i have o way of knowing where that mysterious _global.settings.maxItems property has been defined so i can change it. mark -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Right Mouse Click Event?
I am aware that you can alter the right mouse click context menu, but is there a right mouse click event that can be used to activate other code?? Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] XML Driven Application Driving me crazy :)
Hi, I need some advice from you guys :) I have an XML Driven FLash APP, basically it's a tool that displays charts and data in grids, containers, etc...that my client will handout in CDs. So at the beginning of the development process I thought XML would suit perfectly in the purpose of this app. But it happened that the DB used to generate the apporpiate XML files that my app consume had grown amazingly so eventually my app (exclusively the part that searches for an specific registry entry) turns very slow and sometimes (rarely but happens) it crashes due to the exhaustive loops and interations i do in order to the search/display data of an specific registry and filtering functions. So i thouhgt, upon your experience, to ask how would you do to optimize this thing or what its the best way to do the queries to an XML in order smooth things a little bit more :) Or what approaches (or guidelines ) do you use when you have to develop an app. that will have XML to serve as its DB. Do you load everysingle XML at once ? on demand ? etc ? Thanks in advanced! Mario ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Right Mouse Click Event?
All the Mouse events are summarized in the Mouse Class documentation. There isn't a right mouse click event. M. On 1/31/06, Charles Parcell [EMAIL PROTECTED] wrote: I am aware that you can alter the right mouse click context menu, but is there a right mouse click event that can be used to activate other code?? Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Noise Cancelling in Flash
hi Steve, Man, I feel your pain! No purely Flash solution I know of, but you can use Flash to: 1) createEmptyMovieClip 2) using drawing methods, draw a 1-inch square rectangle 3) repeat to draw a second square 4) using the print methods, print the two squares Then comes the manual portion: with scissors, cut out the squares. One at a time, chew them into a pulp. Roll each one into a ball and insert into either ear. (NOTE: Thinner paper or larger ear canals may require larger squares). When no longer needed, VERY CAREFULLY extract the pulp balls using the end of a straightened paper clip. Works for me :) Marc At 06:45 AM 1/31/2006, you wrote: Noise Cancelling = Hi, I wondered whether noise cancelling was possible in Flash using the Microphone functionality? It's just that Carl here is setting up one of those 8 drive servers here and it sounds like a jet engine - I'm going mad - sitting here scripting and I forgot to bring my Closed back headphones. I have some small ones. Basically I need to just replay the sound back through my little headphones - exactly out of phase to the sound in the office. (This is not life or death, but I might pour some coffee in the new server) Cheers Steve ( Grinding Teeth ) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: OT THANK YOU: Re: [Flashcoders] How to call functions in sequence
Fuse, the animation engine from mosessupposes.com has a build-in Sequence class. I't easy to add commands to this sequence like method calls. You might want to look into it. Bart 2006/1/30, Kevin Cannon [EMAIL PROTECTED]: On Sun, Jan 29, 2006 at 10:04:22AM +0100, Sander wrote: If your functions are motion-based, have a look at Fuse. It's a set of Tween classes that lets you execute a lot of tweens in sequence. 2 can fire off when 1 finished if you want. You can tween position, alpha, rotation and many more. You could also use setInterval to call the functions. Also, there's Sequence classses out there that are useful too: http://proto.layer51.com/d.aspx?f=1417 - Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash 8 components in Flash 6 player
The way this can be done most certainly would be to convert the shell to a flash 8.0 swf. Earlier players will be able to play the swf, so long as it does not include any Flash 8 Movieclip exports, or Flash 8 actionscript in the initialization code. M. On 1/31/06, Jason Ross [EMAIL PROTECTED] wrote: Hi, We have a Flash 6.0 application which we are expanding with Flash 8.0 components (to do with image uploading). Specifically, if a user is viewing the app with a lower Flash player, we offer them the Flash 6.0 upload interface (HTML), otherwise, they get the Flash 8.0 upload interface (Flash). We are doing this by loading the Flash 8.0 upload component into a new level in the Flash 6.0 shell (loading into a movie clip did not seem to work so well). Re-writing the Flash 6.0 shell is not really an option as it is far too big. My question is although this works - is it 'right' to do it the right way to do it i.e. before we make it live, has anyone had any real experience / lessons from doing something like this? Much obliged, Jason. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What native events do (AS2, but not V2) components implement?
Hi Nathan, I'm actually talking about the level below that. I'm not using the V2 components, but creating my own from scratch. There are some more low-level events that are called by flash the IDE itself, which is what I'm looking for. Thanks, Alias On 1/31/06, Nathan Derksen [EMAIL PROTECTED] wrote: Take a look in the Flash help panel under Components Language Reference - UIComponent Class and UIObject Class. Most components inherit from UIComponent, which in turn inherits from UIObject, so all the properties/methods/events listed for these two classes will apply. When you create your own components, you have a choice as to whether you want to go the somewhat lighter-weight approach and just extend UIObject, or to get the full V2 framework from UIComponent. Nathan http://www.nathanderksen.com On Jan 31, 2006, at 4:22 AM, Alias wrote: Hi guys, This is always really hard to find information about, so I wanted to ask the list. Which events do AS2 components automatically have? I'm not talking about V2 components, I'm referring to components created from scratch in AS2. For example, there are functions like onResize, which seem to be automatically called, and others, which don't, but get implemented by the component developers themselves. Can anyone point me to a list of these? Or just let me know what they are? Cheers, Alias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic class creation
Or just use mx.utils.ClassFinder. var classname:String = com.mosesSupposes.fuse.Fuse; var FuseClass:Function = mx.utils.ClassFinder.findClass(classname); fuse = new FuseClass(); 2006/1/30, franto [EMAIL PROTECTED]: thank you all, i've already made it! var str:String = 'test1.test2.ClassC'; var arr = str.split('.'); var variable = _global; for (var i=0;iarr.length;i++) { variable = variable[arr[i]]; trace(variable); } new variable(); On 1/30/06, Serge [EMAIL PROTECTED] wrote: import pkg1.pkg2.pkg3.* or import pkg1.* new pkg1.pkg2.pkg3.className(), sorry, should be: new className() make sure pkg1 has classes you would like to be compiled in swf or use exclude xml file On 1/30/06, franto [EMAIL PROTECTED] wrote: Hi all, maybe it is easy, maybe not, but i cant figure it out now, and i need it :) when i got class e,gpkg1.pkg2.pkg3.className i can make new instance in this way new pkg1.pkg2.pkg3.className() but i want to make it from string this dont work of course _global['pkg1.pkg2.pkg3.className'](); but this work: _global['pkg1']['pkg2']['pkg3']['className'](); can this done automatcally? i want jsut read string from XML and create new class instance, but i cant do it now. Any help is appreciated :) - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] XML Data visualization
Hey all, I've seen some pretty cool examples of data visualization, but I'm looking for some example sources to play with. Specifically for XML typed data, but I can always port other types across. Thanks, !K ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] extending collectionimpl
I don't seem to have a problem with it. Succes, Bart // -- class Col extends mx.utils.CollectionImpl { function Col() { super(); _items = new Array(); } } // -- import Col; var col = new Col(); col.addItem(hello); col.addItem(world); var it = col.getIterator(); while (it.hasNext()) { var item = it.next(); trace(item); } 2006/1/31, j.c.wichman [EMAIL PROTECTED]: Hi, im trying to extend mx.utils.CollectionImpl but it doesn't seem to work. Is there a restriction to intrinsic classes im not aware of? greetz Hans ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] changing reference of sounds to _parent clip
if I had some sounds loaded in a swf, but i wanted to move their reference from the swf to the parent, is that possible? cheers MaTT ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Right Mouse Click Event?
You can fake it though.. Here's a class I wrote a while ago. And here you find a demo: http://www.mediamonkey.nl/flashfiles/MouseDetection.html /** MouseDetection.as * @Author: Bart Mediamonkey Wttewaall * @Date: 31-10-2005 * @Description: * A class that tests throug an interval if the left, middle or right mousebutton is up or down. * It returns an event that can be listened to through the EventDispatcher. * * Usage: import MouseDetection; import mx.utils.Delegate; var MD = new MouseDetection(); MD.addEventListener(MouseDetection.LEFT_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.LEFT_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.RIGHT_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.RIGHT_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.MIDDLE_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.MIDDLE_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.DOUBLE, Delegate.create(this, doubleclick)); MD.addEventListener(MouseDetection.SCROLL, Delegate.create(this, scroll)); function write(evt:Object) { trace(evt.target+ = +evt.isDown); } function doubleclick(evt:Object) { trace(evt.target+ doubleclick: +evt.value+ ms); } function scroll(evt:Object) { trace(evt.target+ = +evt.value); } */ import mx.utils.Delegate; import mx.events.EventDispatcher; class MouseDetection { // static event variables. call these as listenernames. static public var LEFT_DOWN:Number = 1 0; static public var LEFT_UP:Number = 1 1; static public var RIGHT_DOWN:Number = 1 2; static public var RIGHT_UP:Number= 1 3; static public var MIDDLE_DOWN:Number = 1 4; static public var MIDDLE_UP:Number = 1 5; static public var DOUBLE:Number = 1 6; static public var SCROLL:Number = 1 7; private var intervalID:Number; private var mouseListener:Object; // Button states (true = down, false = up) private var LMB:Boolean; private var RMB:Boolean; private var MMB:Boolean; // stored time between two clicks private var LMBtime:Number; private var MMBtime:Number; private var RMBtime:Number; // after some tests, the fastests I could click was 30 ms public var time:Number = 30; // offset between two mouseclicks to count as a doubleclick public var doubletime:Number = 250; // mixin methods from the EventDispatcher public var addEventListener:Function; public var removeEventListener:Function; public var dispatchEvent:Function; public var dispatchQueue:Function; function MouseDetection() { EventDispatcher.initialize(this); LMB = RMB = MMB = false; LMBtime = MMBtime = RMBtime = 0; mouseListener = new Object(); mouseListener.onMouseWheel = Delegate.create(this, mousewheel); Mouse.addListener(mouseListener); startTesting(); } public function startTesting() { intervalID = setInterval(this, enterframe, time); } public function stopTesting() { clearInterval(intervalID); } // -- the rest are private methods, don't bother with them private function enterframe() { LMBsetter = Key.isDown(1); RMBsetter = Key.isDown(2); MMBsetter = Key.isDown(4); // this commented bit of code doesn't seem to work all the time, must be because of ALT // Keycodes: 18 = ALT, 37 = LEFT, 39 = RIGHT // backbutton = ALT+LEFT, forwardbutton = ALT+RIGHT //if (Key.isDown(18) Key.isDown(37)) trace(backbutton); //if (Key.isDown(18) Key.isDown(39)) trace(forwardbutton); } // -- LMB property setter, without getter (no need for it). // This catches the true/false value, checks for double entries (!!!) and dispatches the // correct event before assigning the value to the LMB boolean, thus saving a few lines. function set LMBsetter(b:Boolean) { if (b !LMB) { dispatchEvent({type:LEFT_DOWN, target:LMB, isDown:true}); } else if (!b LMB) { dispatchEvent({type:LEFT_UP, target:LMB, isDown:false}); // test doubleclick var diff = getTimer()-LMBtime; if (diff doubletime) dispatchEvent({type:DOUBLE, target:LMB, value:diff});
Re: [Flashcoders] Right Mouse Click Event?
Thanks for both of your input. Charles P. On 1/31/06, Bart Wttewaall [EMAIL PROTECTED] wrote: You can fake it though.. Here's a class I wrote a while ago. And here you find a demo: http://www.mediamonkey.nl/flashfiles/MouseDetection.html /** MouseDetection.as * @Author: Bart Mediamonkey Wttewaall * @Date: 31-10-2005 * @Description: * A class that tests throug an interval if the left, middle or right mousebutton is up or down. * It returns an event that can be listened to through the EventDispatcher. * * Usage: import MouseDetection; import mx.utils.Delegate; var MD = new MouseDetection(); MD.addEventListener(MouseDetection.LEFT_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.LEFT_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.RIGHT_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.RIGHT_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.MIDDLE_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.MIDDLE_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.DOUBLE, Delegate.create(this, doubleclick)); MD.addEventListener(MouseDetection.SCROLL, Delegate.create(this, scroll)); function write(evt:Object) { trace(evt.target+ = +evt.isDown); } function doubleclick(evt:Object) { trace(evt.target+ doubleclick: +evt.value+ ms); } function scroll(evt:Object) { trace(evt.target+ = +evt.value); } */ import mx.utils.Delegate; import mx.events.EventDispatcher; class MouseDetection { // static event variables. call these as listenernames. static public var LEFT_DOWN:Number = 1 0; static public var LEFT_UP:Number = 1 1; static public var RIGHT_DOWN:Number = 1 2; static public var RIGHT_UP:Number= 1 3; static public var MIDDLE_DOWN:Number = 1 4; static public var MIDDLE_UP:Number = 1 5; static public var DOUBLE:Number = 1 6; static public var SCROLL:Number = 1 7; private var intervalID:Number; private var mouseListener:Object; // Button states (true = down, false = up) private var LMB:Boolean; private var RMB:Boolean; private var MMB:Boolean; // stored time between two clicks private var LMBtime:Number; private var MMBtime:Number; private var RMBtime:Number; // after some tests, the fastests I could click was 30 ms public var time:Number = 30; // offset between two mouseclicks to count as a doubleclick public var doubletime:Number = 250; // mixin methods from the EventDispatcher public var addEventListener:Function; public var removeEventListener:Function; public var dispatchEvent:Function; public var dispatchQueue:Function; function MouseDetection() { EventDispatcher.initialize(this); LMB = RMB = MMB = false; LMBtime = MMBtime = RMBtime = 0; mouseListener = new Object(); mouseListener.onMouseWheel = Delegate.create(this, mousewheel); Mouse.addListener(mouseListener); startTesting(); } public function startTesting() { intervalID = setInterval(this, enterframe, time); } public function stopTesting() { clearInterval(intervalID); } // -- the rest are private methods, don't bother with them private function enterframe() { LMBsetter = Key.isDown(1); RMBsetter = Key.isDown(2); MMBsetter = Key.isDown(4); // this commented bit of code doesn't seem to work all the time, must be because of ALT // Keycodes: 18 = ALT, 37 = LEFT, 39 = RIGHT // backbutton = ALT+LEFT, forwardbutton = ALT+RIGHT //if (Key.isDown(18) Key.isDown(37)) trace(backbutton); //if (Key.isDown(18) Key.isDown(39)) trace(forwardbutton); } // -- LMB property setter, without getter (no need for it). // This catches the true/false value, checks for double entries (!!!) and dispatches the // correct event before assigning the value to the LMB boolean, thus saving a few lines. function set LMBsetter(b:Boolean) { if (b !LMB) { dispatchEvent({type:LEFT_DOWN, target:LMB, isDown:true}); } else if (!b LMB) { dispatchEvent({type:LEFT_UP, target:LMB, isDown:false}); // test doubleclick var diff = getTimer()-LMBtime; if (diff doubletime) dispatchEvent({type:DOUBLE, target:LMB, value:diff});
RE: [Flashcoders] extending collectionimpl
Hi bart, Tnx for helping me finding out it's a flash 7 bug. If I copy the flash 8 implementation to my flash 7 dir it works fine ;) Greetz thanks again Hans J.C. Wichman . Software Engineer Tel. +31 (0)53 - 48 00 472 [EMAIL PROTECTED] www.TriMM.nl TriMM interactieve media . PO Box 1208 . 7500 BE Enschede . The Netherlands Oldenzaalsestraat 141-143 . tel +31 (0)53 - 48 00 480 . fax +31 (0)53 - 43 53 027 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart Wttewaall Sent: Tuesday, January 31, 2006 6:51 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] extending collectionimpl I don't seem to have a problem with it. Succes, Bart // -- class Col extends mx.utils.CollectionImpl { function Col() { super(); _items = new Array(); } } // -- import Col; var col = new Col(); col.addItem(hello); col.addItem(world); var it = col.getIterator(); while (it.hasNext()) { var item = it.next(); trace(item); } 2006/1/31, j.c.wichman [EMAIL PROTECTED]: Hi, im trying to extend mx.utils.CollectionImpl but it doesn't seem to work. Is there a restriction to intrinsic classes im not aware of? greetz Hans ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How will asfunction work in AS3/MXML? Jester?
Your code is right, you just need a textfield with a link in it: var a:TextField = new TextField(); addChild(a); a.html = true; a.htmlText = a href='iforgotname:sometext'click here/a; - Original Message - From: Tom Bray [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 31, 2006 2:33 AM Subject: Re: [Flashcoders] How will asfunction work in AS3/MXML? Jester? Thanks, Jesse. I was able to find the right event using the code hints in Flexbuilder (see below) but I'm stuck until I find out how asfunction has changed so I can actually trigger the event. I'll hold my breath until the docs come back... import flash.events.* private function init():Void { myTextArea.addEventListener( TextEventType.LINK, linkClickHandler ); } public function linkClickHandler( event:TextEvent ):Void { myTextArea.text = worked; } On 1/30/06, JesterXL [EMAIL PROTECTED] wrote: Docs are down, but here's some psuedo code for you: import flash.util.trace; your_txt.addEventListener(TextStuff.LINK, onHyperlinkClicked); function onHyperlinkClicked( event:Event ) { trace(You clicked on + event.target); // your_txt trace(The text is: + event.text); // doSomething } I think asfunction is changed to something else; again, wait until the docs come back up to get confirmation on WHAT it actually changed to, but that's the basic code. Whatever you store after the newAsfunction: is passed into the text property of the event. Only thing is, the text is just for context now, meaning doSomething is no longer a function that is called, and the comma no longer seperates that as the argument; it's basically just text that is passed into the event, so you could remove doSomething, and leave foo. doSomething could be your event listener function passed to the textField.addEventLisetener for example. - Original Message - From: Tom Bray [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 31, 2006 1:33 AM Subject: [Flashcoders] How will asfunction work in AS3/MXML? Jester? If I have a link like this in a Flex2 TextArea like this: a href='asfunction:doSomething,foo'click here/a Where do I put my doSomething() method? -Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Right Mouse Click Event?
Great work Bart, there is something that I would like to discuss with you off the list concerning input devices, if you oblige, please email me: elibol at gmail dot com M. On 1/31/06, Bart Wttewaall [EMAIL PROTECTED] wrote: You can fake it though.. Here's a class I wrote a while ago. And here you find a demo: http://www.mediamonkey.nl/flashfiles/MouseDetection.html /** MouseDetection.as * @Author: Bart Mediamonkey Wttewaall * @Date: 31-10-2005 * @Description: * A class that tests throug an interval if the left, middle or right mousebutton is up or down. * It returns an event that can be listened to through the EventDispatcher. * * Usage: import MouseDetection; import mx.utils.Delegate; var MD = new MouseDetection(); MD.addEventListener(MouseDetection.LEFT_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.LEFT_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.RIGHT_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.RIGHT_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.MIDDLE_DOWN, Delegate.create(this, write)); MD.addEventListener(MouseDetection.MIDDLE_UP, Delegate.create(this, write)); MD.addEventListener(MouseDetection.DOUBLE, Delegate.create(this, doubleclick)); MD.addEventListener(MouseDetection.SCROLL, Delegate.create(this, scroll)); function write(evt:Object) { trace(evt.target+ = +evt.isDown); } function doubleclick(evt:Object) { trace(evt.target+ doubleclick: +evt.value+ ms); } function scroll(evt:Object) { trace(evt.target+ = +evt.value); } */ import mx.utils.Delegate; import mx.events.EventDispatcher; class MouseDetection { // static event variables. call these as listenernames. static public var LEFT_DOWN:Number = 1 0; static public var LEFT_UP:Number = 1 1; static public var RIGHT_DOWN:Number = 1 2; static public var RIGHT_UP:Number= 1 3; static public var MIDDLE_DOWN:Number = 1 4; static public var MIDDLE_UP:Number = 1 5; static public var DOUBLE:Number = 1 6; static public var SCROLL:Number = 1 7; private var intervalID:Number; private var mouseListener:Object; // Button states (true = down, false = up) private var LMB:Boolean; private var RMB:Boolean; private var MMB:Boolean; // stored time between two clicks private var LMBtime:Number; private var MMBtime:Number; private var RMBtime:Number; // after some tests, the fastests I could click was 30 ms public var time:Number = 30; // offset between two mouseclicks to count as a doubleclick public var doubletime:Number = 250; // mixin methods from the EventDispatcher public var addEventListener:Function; public var removeEventListener:Function; public var dispatchEvent:Function; public var dispatchQueue:Function; function MouseDetection() { EventDispatcher.initialize(this); LMB = RMB = MMB = false; LMBtime = MMBtime = RMBtime = 0; mouseListener = new Object(); mouseListener.onMouseWheel = Delegate.create(this, mousewheel); Mouse.addListener(mouseListener); startTesting(); } public function startTesting() { intervalID = setInterval(this, enterframe, time); } public function stopTesting() { clearInterval(intervalID); } // -- the rest are private methods, don't bother with them private function enterframe() { LMBsetter = Key.isDown(1); RMBsetter = Key.isDown(2); MMBsetter = Key.isDown(4); // this commented bit of code doesn't seem to work all the time, must be because of ALT // Keycodes: 18 = ALT, 37 = LEFT, 39 = RIGHT // backbutton = ALT+LEFT, forwardbutton = ALT+RIGHT //if (Key.isDown(18) Key.isDown(37)) trace(backbutton); //if (Key.isDown(18) Key.isDown(39)) trace(forwardbutton); } // -- LMB property setter, without getter (no need for it). // This catches the true/false value, checks for double entries (!!!) and dispatches the // correct event before assigning the value to the LMB boolean, thus saving a few lines. function set LMBsetter(b:Boolean) { if (b !LMB) { dispatchEvent({type:LEFT_DOWN, target:LMB, isDown:true}); } else if (!b LMB) { dispatchEvent({type:LEFT_UP, target:LMB, isDown:false}); // test doubleclick var
Re: [Flashcoders] XML Driven Application Driving me crazy :)
Do you need all the data beforehand? If not, Do paging with data by getting data in chunks from your DB. or As you mentioned, get data on demand. Thats how I recently solved a similar issue. -- Sajid On 1/31/06, Ing. Mario Falomir [EMAIL PROTECTED] wrote: Hi, I need some advice from you guys :) I have an XML Driven FLash APP, basically it's a tool that displays charts and data in grids, containers, etc...that my client will handout in CDs. So at the beginning of the development process I thought XML would suit perfectly in the purpose of this app. But it happened that the DB used to generate the apporpiate XML files that my app consume had grown amazingly so eventually my app (exclusively the part that searches for an specific registry entry) turns very slow and sometimes (rarely but happens) it crashes due to the exhaustive loops and interations i do in order to the search/display data of an specific registry and filtering functions. So i thouhgt, upon your experience, to ask how would you do to optimize this thing or what its the best way to do the queries to an XML in order smooth things a little bit more :) Or what approaches (or guidelines ) do you use when you have to develop an app. that will have XML to serve as its DB. Do you load everysingle XML at once ? on demand ? etc ? Thanks in advanced! Mario ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Noise Cancelling in Flash
Wow, the questions people ask on this list... Jason Merrill | E-Learning Solutions | icfconsulting.com Hi, I wondered whether noise cancelling was possible in Flash using the Microphone functionality? It's just that Carl here is setting up one of those 8 drive servers here and it sounds like a jet engine - I'm going mad - sitting here scripting and I forgot to bring my Closed back headphones. I have some small ones. Basically I need to just replay the sound back through my little headphones - exactly out of phase to the sound in the office. (This is not life or death, but I might pour some coffee in the new server) Cheers Steve ( Grinding Teeth ) NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] online security development needed
Good day everyone, I am involved in an online education project. The developer who was building the backbone for the past several months has bowed out of the project leaving us back at square one. The good news is that there is now a clean slate for someone new. wry grin I have a clear outline of what is needed but do not have the skills to ensure the level of protection necessary to safeguard the online lesson plans and virtual classroom materials. If you have expertise in this area, I'd love to chat off-list! (Keep in mind that this is a truly online project. The company is based in Australia so communication will be done mainly via email.) Thanking you in advance, Flashgrrl Send instant messages to your online friends http://au.messenger.yahoo.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML Driven Application Driving me crazy :)
On 1/31/06, Ing. Mario Falomir [EMAIL PROTECTED] wrote: Hi, I need some advice from you guys :) I have an XML Driven FLash APP, Would it be possible to format the data as JSON on the server side? It'd be much lighter weight ... http://www.crockford.com/JSON/ specifically: http://www.crockford.com/JSON/JSON.as Daniel -- Daniel Smith - Sonoma County, CA dls [at] daniel [dot] org - AIM: SonomaDaniel http://daniel.org/blog- http://resume.daniel.org FlexiPhoto is in Alpha! - http://FlexiPhoto.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML Driven Application Driving me crazy :)
well, I will definetely take a look at it , thanks! On 1/31/06, Daniel Smith [EMAIL PROTECTED] wrote: On 1/31/06, Ing. Mario Falomir [EMAIL PROTECTED] wrote: Hi, I need some advice from you guys :) I have an XML Driven FLash APP, Would it be possible to format the data as JSON on the server side? It'd be much lighter weight ... http://www.crockford.com/JSON/ specifically: http://www.crockford.com/JSON/JSON.as Daniel -- Daniel Smith - Sonoma County, CA dls [at] daniel [dot] org - AIM: SonomaDaniel http://daniel.org/blog- http://resume.daniel.org FlexiPhoto is in Alpha! - http://FlexiPhoto.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XML Data visualization
Well a couple good examples are from Samual Wan: http://samuelwan.com/downloads/treemap/Sample_Treemap_Renderer.html http://www.samuelwan.com/flashmx_repository/xilhouette/XilhouetteEditor.html http://www.marumushi.com/apps/newsmap/ Here are some good examples, but not all are flash: http://www.cs.umd.edu/hcil/research/visualization.shtml Cheers, !k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Flash guru Sent: January 31, 2006 12:18 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML Data visualization Wat do you mean by data visualization. Can you be a little more precise? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] com.ge package throws compile error?
**Error** D:\Blitz\GE\Medical\DEV_Source\classes\com\ge\himss\Logo.as: Line 4: Expected a field name after '.' operator. class com.ge.himss.Logo extends MovieClip { if I take out .ge in the the path, it works fine. .ge turns blue in the Flash editor, so I'm assuming its reserved - but for what?? anyone know? GrandExit? GreatEchosystem? GummyEggs? Looked in help searching for com.ge - nothing came back. Looked in classes folders - nada. -- John Grden - Blitz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] com.ge package throws compile error?
Greater than or Equal to for Strings. http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary374.html Existed only in Flash 4. Cheers, Ian On 1/31/06, John Grden [EMAIL PROTECTED] wrote: **Error** D:\Blitz\GE\Medical\DEV_Source\classes\com\ge\himss\Logo.as: Line 4: Expected a field name after '.' operator. class com.ge.himss.Logo extends MovieClip { if I take out .ge in the the path, it works fine. .ge turns blue in the Flash editor, so I'm assuming its reserved - but for what?? anyone know? GrandExit? GreatEchosystem? GummyEggs? Looked in help searching for com.ge - nothing came back. Looked in classes folders - nada. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE:[Flashcoders] Tell me more about _global
I am using _global variables throught my FLAs, probably because I haven't really been exposed to the negatives of using them, thus not really knowing any better. I am interested in conforming to better 'design' standards and am familiar with the Singleton Design Pattern. Any chance you could provide an example of how _global variables might be stored in a class for retrieval and a later time. Thanks. Nathan Derksen nderksen at sfu.ca wrote: I generally keep at least one singleton class which is responsible for storing global properties. I make those properties accessible with getters and setters so that I can allow changes in those properties to trigger events. You can't really do that if you use _global to store your data. Also, there is always a risk in name space collision if you load in other elements that also use global, where one or more variables use the same name and are thus inadvertently shared for different uses. You definitely do not want to use _global within any classes that you create, as that can cause entanglement, gives you no private protection, and does not properly contain your code into a well-defined unit with a well-defined API. Nathan http://www.nathanderksen.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
win xp amd sempron 3100+ 1.8ghz 960MB ram crappy integrated gfx card -- firefox FP8 blur : 9720 convolution 3x3 : 8836 convolution 5x5 : 38737 no filter : 5372 -- IE FP 8.5 blur : 5965 convolution 3x3 : 5704 convolution 5x5 : 39783 no filter : 5717 On 1/31/06, Kalle Thyselius, inlovewith [EMAIL PROTECTED] wrote: powerbook 15, 1.25 GHz, 1GB RAM: blur filter: 13 745 convolution 3x3: 44 437 convolution 5x5 : 119 497 no filter : 7 216 kalle On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Blur: 5944 convolution 3x3: 5641 convolution 5x5: 29932 no filter: 5646 also Win XP, 3GHz (northwood), 512MB RAM - intel 915 GAV motherboard w/built in crap vga -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] Namens Ian Thomas Verzonden: dinsdag 31 januari 2006 14:48 Aan: Flashcoders mailing list Onderwerp: Re: [Flashcoders] ConvolutionFilter performance Hrm. I get: blur filter time : 11032 convolution 3x3: 10144 convolution 5x5: 37781 no filter : 7510 Win XP, 3GHz, 512MB RAM I wonder if it's a graphics card/hardware acceleration thing. (I have a rubbish graphics card.) Ian On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: so, please wrote the times, its really strange Blur: 5622 Conv 3x3: 5625 Conv 5x5: 14453 None: 5640 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] com.ge package throws compile error?
Hi John, Its seems ge, gt, le,lt etc are all reserved, probably something like greater than, greater or equal, etc. If u google for 'flash reserved keywords' you get the whole list... Why it is reserver? No clue, sorry ;) Grtz Hans J.C. Wichman . Software Engineer Tel. +31 (0)53 - 48 00 472 [EMAIL PROTECTED] www.TriMM.nl TriMM interactieve media . PO Box 1208 . 7500 BE Enschede . The Netherlands Oldenzaalsestraat 141-143 . tel +31 (0)53 - 48 00 480 . fax +31 (0)53 - 43 53 027 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Grden Sent: Tuesday, January 31, 2006 9:30 PM To: Flashcoders mailing list Subject: [Flashcoders] com.ge package throws compile error? **Error** D:\Blitz\GE\Medical\DEV_Source\classes\com\ge\himss\Logo.as: Line 4: Expected a field name after '.' operator. class com.ge.himss.Logo extends MovieClip { if I take out .ge in the the path, it works fine. .ge turns blue in the Flash editor, so I'm assuming its reserved - but for what?? anyone know? GrandExit? GreatEchosystem? GummyEggs? Looked in help searching for com.ge - nothing came back. Looked in classes folders - nada. -- John Grden - Blitz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] com.ge package throws compile error?
[ smacks forehead ] I KNEW it was something stupid like that. I KNEW IT. LOL and I looked alll over the dang place for the answer (idiot) It's still around apparently. Thanks Ian :) On 1/31/06, Ian Thomas [EMAIL PROTECTED] wrote: Greater than or Equal to for Strings. http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary374.html Existed only in Flash 4. Cheers, Ian On 1/31/06, John Grden [EMAIL PROTECTED] wrote: **Error** D:\Blitz\GE\Medical\DEV_Source\classes\com\ge\himss\Logo.as: Line 4: Expected a field name after '.' operator. class com.ge.himss.Logo extends MovieClip { if I take out .ge in the the path, it works fine. .ge turns blue in the Flash editor, so I'm assuming its reserved - but for what?? anyone know? GrandExit? GreatEchosystem? GummyEggs? Looked in help searching for com.ge - nothing came back. Looked in classes folders - nada. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- John Grden - Blitz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] v2 components - are you kidding me?
My main question is: why does opening a v2 combobox subsequently cause an onRollOut event to fire every time I click a button or movieclip, and is there any way to prevent that? Some other questions I have are: Is there anything that the combobox does right? Why can I not use getNextHighestDepth anymore when I put a component on the stage? Why does DepthManager.kCursor exist when I can still attach all kinds of objects above that depth? Why can I attach movie clips at depths that are outside the valid range? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
Mike Mountain wrote: In my tests convolution filter was much faster than a blurfilter. But it's an easy one to swap oout and test for yourself... Of course you could use the ConvolutionFilter on the pc, and BlurFilter on the mac by using: System.capabilities.os ;=) Anyway on my computer the BlurFilter looks better quality-wise then the ConvolutionFilter version. Anyway where can I find the flash movie with the timing? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Noise Cancelling in Flash
I wondered whether noise cancelling was possible in Flash using the Microphone functionality? Not at present. However, if v8.5 offers binary access to the waveform, you could use any of a dozen standard noise cancelling algorhithms on them, or you could do your own by inverting the waveform and clipping at a low amplitude, then combine the waveforms, kind of like a noise gate (only sounds above a certain volume get through). Or you could add low pass and high pass filters to remove sounds outside of the range of the human voice. And so on. Without low level access to the waveform, though, you're SOL. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Free Flex???
eclipse and the zorn plugin will obviously not be there. a tried and tested model IMO. On 1/31/06, hank williams [EMAIL PROTECTED] wrote: There is an article on news.com that says the following. Adobe is introducing a free, basic software developers kit which includes the Flex Framework, compiler and documentation. The Flex Builder development tool costs $1,000 per developer. The link is here. http://news.com.com/Adobe+to+release+Flex+beta/2100-1012_3-6033462.html?tag=nefd.hed Is this true? If so what will the difference be between the $1000 flex and the free version. Regards Hank ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- j:pn ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders