Re: [Flashcoders] AS3 - From BitmapAsset to BitmapData?
You don't attach BitmapData, you draw it. Look at the draw function in the BitmapData class. Charles P. On 7/30/06, Sascha Balkau [EMAIL PROTECTED] wrote: Thanks a lot Jim! That was the link I was looking for! Maybe you can give me a hint on another BitmapData problem: How do I attach a BitmapData to a MovieClip in AS3? attachBitmap is no more and if I use addChild I get a Coercion failed again. Sascha When embedding the images like this I use a normal Bitmap class not a BitmapAsset. Then you can access the bitmapData property of the bitmap class. [Embed(source=image.png)] private var imageClass:Class; private var image:Bitmap = new imageClass(); private var bitmapData:BitmapData = image.bitmapData; hth Jim ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] just a test
___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] AS3 - From BitmapAsset to BitmapData?
Thanks Charles! However I didn't wanted to put a MovieClip into a BitmapData, I wanted to do the opposite. But I think I have just found out how to do that ... by putting the BitmapData into a new Bitmap object ... img = new Bitmap(imageBitmapData); mc.addChild(img); Thanks for the help! -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Charles Parcell Sent: Monday, 31. July, 2006 15:37 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 - From BitmapAsset to BitmapData? You don't attach BitmapData, you draw it. Look at the draw function in the BitmapData class. Charles P. On 7/30/06, Sascha Balkau [EMAIL PROTECTED] wrote: Thanks a lot Jim! That was the link I was looking for! Maybe you can give me a hint on another BitmapData problem: How do I attach a BitmapData to a MovieClip in AS3? attachBitmap is no more and if I use addChild I get a Coercion failed again. Sascha When embedding the images like this I use a normal Bitmap class not a BitmapAsset. Then you can access the bitmapData property of the bitmap class. [Embed(source=image.png)] private var imageClass:Class; private var image:Bitmap = new imageClass(); private var bitmapData:BitmapData = image.bitmapData; hth Jim ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] FLVPlayback connectionError
Good things to know I think I'll look further into this next time i have to deal with flv players, for now i'll simply stick with the above mentionned hack, can't afford to waste any more time experimenting :) Thank you very much for your input, it'll certainly come in handy the next time! cheers, J. Steve Krichten a écrit : One thing to note about the FLV Playback component is that under the hood it uses VideoPlayer Objects. I believe if you use SMIL to make the player play multiple videos, the FLV Playback will use a new VideoPlayer Object for each new video that is requested. If you are not using SMIL, it seems that the FLV Playback always tries to use the same VideoPlayer Object unless you explicitly tell it to change. And I have found (at least in certian situations) that can cause problems similar to what you describe. Below is the method I use to make the player use a new VideoPlayer object each time I ask it to play a video. This method is part of a wrapper class I use so... player is a property that referes to the FLV Playback instance and nextVpIndex is a property that stores an integer to keep track of what VideoObject to use next. I don't use the VideoObject at index 0 because that one cannot be deleted. private function _playVideo(url:String) { if (player.activeVideoPlayerIndex 0) { player.closeVideoPlayer(player.activeVideoPlayerIndex); delete player.getVideoPlayer(player.activeVideoPlayerIndex); } player.activeVideoPlayerIndex = ++nextVpIndex; player.visibleVideoPlayerIndex = nextVpIndex; player.play(url); } -Steve ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS and virtual functions
Just reading up on some C++ and realized all functions in an AS2 class are virtual.. Anyone know if this has any negative implications? :) Cheers, - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Help...cant unload the xml menu...!!
Hello, i have a xml menu and when i go to other frame my menu doenst unload... i tried with the functions clearMenu and clearSubMenu but they dont work..please help..i will send the code: import mx.xpath.XPathAPI; var infoHolder:XML = new XML(); infoHolder.load(menuInfoXML); infoHolder.ignoreWhite = true; var titlePath:String = /root; //main menu array. var mainMenus:Array; //sub menu array. var subMenus:Array; //load the xml with xpath infoHolder.onLoad = function(ok) { if (ok) { mainMenus = mx.xpath.XPathAPI.selectNodeList(infoHolder.firstChild, titlePath+/menu); createTreeMenu(); } }; MovieClip.prototype.getPos = function(target:Number) { this.onEnterFrame = function() { this._y -= (this._y-target)/6; if (Math.abs(this._y-target)0.3) { delete this.onEnterFrame; _root.newsMC.showNews.appear(); } }; }; function createTreeMenu():Void { for (i=0; imainMenus.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut.arrow._alpha = 0; newBut.shine._alpha = 0; newBut._x = 105; newBut._y = 180+(newBut._height+5)*i; newBut.txt.text = mainMenus[i].attributes.txt; newBut.link2 = mainMenus[i].attributes.url; newBut.submenuCnt = mainMenus[i].childNodes.length; newBut.y = newBut._y; newBut.onRollOver = function() { _root.tween(this, 10, 13); this.arrow.appear(); this.shine.appear(); var textCol = new Color(this.txt); textCol.setRGB(0xff); }; newBut.onRollOut = function() { _root.tween(this, 15, 10); this.arrow.disappear(); this.shine.disappear(); var textCol = new Color(this.txt); textCol.setRGB(0x6F6A63); }; newBut.onRelease = function() { if (this.submenuCnt0) { var butNum:Number = new Number(this._name.substr(3, 1)); this.createSubMenu(butNum); for (i=0; imainMenus.length; i++) { if (ibutNum+1) { _root[but+i].getPos(_root[but+i].y); } else { _root[but+i].getPos(_root[but+i].y+this.submenuCnt*22); } } } else { _root.conteudos_mc.portfolio_mc.clearSubMenus(); for (i=0; imainMenus.length; i++) { _root[but+i].getPos(_root[but+i].y); } } }; } } MovieClip.prototype.createSubMenu = function(buttonNumber:Number):Void { clearSubMenus(); subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber], /menu/submenu); var butNum:Number = new Number(this._name.substr(3, 1)); for (i=0; isubMenus.length; i++) { subBut = _root.attachMovie(submenu, subMenu+i, Math.random ()*99); subBut._alpha = 0; subBut._x -= i; subAppear(subBut, (i+3), 130); subBut._y = this.y+this._height+(subBut._height+5)*i; subBut.txt.text = subMenus[i].attributes.txt; subBut.link2 = subMenus[i].attributes.url; subBut.but.onRollOver = function(){ var textSubCol = new Color(this._parent.txt); textSubCol.setRGB(0xff); } subBut.but.onRollOut = function(){ var textSubCol = new Color(this._parent.txt); textSubCol.setRGB(0x6F6A63); } subBut.but.onRelease = function() { loadMovie(this._parent.link2, _root.conteudos_mc.vazio4_mc); //this doesnt disapear either... //trace(this._parent); }; } }; function clearSubMenus() { for (k=0; ksubMenus.length; k++) { _root[subMenu+k].removeMovieClip(); } } function clearAllMenus() { for (i=0; imainMenus.length; i++) { _root[but+i].removeMovieClip(); } } Sorry..but im really desperate with this...i tried with unloadMovie, and ...nothing happens... Many thanks. Jose Maria ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS and virtual functions
Only the standard be really careful what you do when calling methods in your constructor issue. i.e. class A { function A() { someFunction(); } function someFunction() { // do Something } } class B extends A { function B() { super(); // set up some initialisation stuff here... (*) } function someFunction() { // This is automatically called by the parent class's constructor... // Do something that relies on (*) here - oh, we can't, the initialisation step hasn't been // carried out yet! } } In AS2 this does work, but clearly can cause a problem. In C++ it's a whole different kettle of fish if you do this with a virtual function, as you might (depending on the compiler) end up calling the parent implementation of someFunction instead of the child function as the virtual function table hasn't been properly constructed yet... (in better compilers you get a compile error) but at least you could have avoided marking someFunction as virtual, and thus got predictable behaviour (the parent implementation called every time). In other words - I can't think of any major issues. But as a general rule, take care calling potentially overridden functions from the constructor... Ian On 7/31/06, Andreas R [EMAIL PROTECTED] wrote: Just reading up on some C++ and realized all functions in an AS2 class are virtual.. Anyone know if this has any negative implications? :) Cheers, - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] AS and virtual functions
If you are concerned about performance differences between virtual and non-virtual functions than AS2 is propably the wrong language for you ;) I can´t think of other downsides except that you would be able to override a function at compile-time by mistake without making the compiler shouting at you... Regards André -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas R Sent: Monday, July 31, 2006 12:18 PM To: Flashcoders mailing list Subject: [Flashcoders] AS and virtual functions Just reading up on some C++ and realized all functions in an AS2 class are virtual.. Anyone know if this has any negative implications? :) Cheers, - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel
Brightness of color can be found in quite easy way. If we have decimal representation of RGB brightness in percents will be 100*(((R+G+B)/3)/255) Color brightness represents position of particular color in color tween from 0xFF at 0 position The base color at position 127.5 and 0x0 at 255. 2006/7/30, Bernard Poulin [EMAIL PROTECTED]: hum, I guess you missed my last post(?) Here's the code again: function computeBrightness(pixelvalue) { var r = pixelvalue 16 0xFF; var g = pixelvalue 8 0xFF; var b = pixelvalue 0xFF; var bright = Math.max(Math.max(r,g),b); return Math.round((bright/255)*100); } And for an optimized/faster version, you could try something like: function computeBrightness(pixelvalue) { // returns the larger value of r, g or b -- and scale it down to a 0..100 range. var r = pixelvalue 16 0xFF; var g = pixelvalue 8 0xFF; var b = pixelvalue 0xFF; var bright = (rg)?((rb)?r:b):((gb)?g:b); return (bright/255)*100; // no rounding. } (Again, this is untested code -- but it looks like it should work). Bernard 2006/7/30, James Deakin [EMAIL PROTECTED]: HI Guys, Thanks very much to you all for your help and explanations. I understood that the number represented a colour value but I now have a much better understanding of how it does so. In your opinion what is the most efficient way to retrieve the relative brightness of that colour. What I need is a value between 0 and 100 where 0 is black and 100 is white and the numbers in-between represent the shades in-between. What I am going to try is this. Split the number into its components RGB use this code which came from the Flash API project //colorModel converter RGB-HSB //returns a hsb object RGBtoHSB = function(rgb){ var r = rgb.r var g = rgb.g var b = rgb.b var hsb = new Object(); hsb.b = Math.max(Math.max(r,g),b); var min = Math.min(Math.min(r,g),b); hsb.s = (hsb.b = 0) ? 0 : Math.round (100*(hsb.b - min)/hsb.b); hsb.b = Math.round((hsb.b /255)*100); hsb.h = 0; if((r == g) (g == b)){ hsb.h = 0; } else if(r = g g = b){ hsb.h = 60*(g-b)/(r-b); } else if(g = r r = b){ hsb.h = 60 + 60*(g-r)/(g-b); } else if(g = b b = r){ hsb.h = 120 + 60*(b-r)/(g-r); } else if(b = g g = r){ hsb.h = 180 + 60*(b-g)/(b-r); } else if(b = r r = g){ hsb.h = 240 + 60*(r-g)/(b-g); } else if(r = b b = g){ hsb.h = 300 + 60*(r-b)/(r-g); } else{ hsb.h = 0; } hsb.h = Math.round(hsb.h); return hsb; } to turn it into an object with three values hue saturation and brightness and then just make use of the brightness. If there is a better way especially a more efficient way I would really like to know. On 7/29/06, Mike [EMAIL PROTECTED] wrote: Small correction. This: This compares each bit in the first number to each bit in the second number. If both bits are 1 (on), that bit is 1 (on) in the result. If both bits are 0 (off), both bits are 0 (off) in the result. So the result is: ...should be: This compares each bit in the first number to each bit in the second number. If both bits are 1 (on), that bit is 1 (on) in the result. If *either bit is* 0 (off), *that bit is* 0 (off) in the result. So the result is: (emphasis added) -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Sent: Saturday, July 29, 2006 3:25 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel You seem to be thinking of numbers as if they are stored like strings. They aren't. RGB colors are stored as 3-byte (24-bit) numbers. For example, red looks like this in binary: b ...which is the same thing as this in hexadecimal: 0xFF ... which is the same thing as this in decimal: 16711680 To isolate, for example the red portion, you can use SHIFT RIGHT () to shift all bits to the right by 16 bits. Binary: b 16 = b Hexadecimal: 0xFF 16 = 0xFF Decimal: 16711680 16 = 255 Generally it's a good idea not to presume that there may not be more bits to the left, so you can filter them out using a bitwise AND (). To explain, this better, here's how to extract the green value from bright cyan (0x7F): The binary value of the color: 0111 Split into colors: 0111 Shift right 8 bits: 10111b 8 = In hexadecimal, this result is: 0x In decimal, it is: 65535 Clearly this is too large, because it includes the red value. To remove it, we use a bitwise AND. b 0xFF = b = 0xFF To illustrate, we are taking this value: b (=0x; =65535) ...and doing a bitwise AND with
[Flashcoders] Custom cacheAsBitmap with scale and rotate
Hi guys, So cacheAsBitmap is great, but it re-renders the bitmap every time you scale or rotate. I remember seeing some code that you could apply to a movie clip and it manually cached a bitmap version of the clip, which was scaled and rotated as a bitmap... but I can't remember where... can anyone else? Thanks in advance! Seb ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Custom cacheAsBitmap with scale and rotate
If you are scaling and rotating a clip often, it wouldn't seem likely to be a good candidate for cacheAsBitmap in the first place. - e.d. On 7/31/06, Seb L [EMAIL PROTECTED] wrote: Hi guys, So cacheAsBitmap is great, but it re-renders the bitmap every time you scale or rotate. I remember seeing some code that you could apply to a movie clip and it manually cached a bitmap version of the clip, which was scaled and rotated as a bitmap... but I can't remember where... can anyone else? Thanks in advance! Seb ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Custom cacheAsBitmap with scale and rotate
Have you tried drawing the movieclip to a bitmap using the BitmapData draw() methos? You could display (scale/rotate) the bitmap instead of the cacheAsBitmap movieclip. -Original Message- From: [EMAIL PROTECTED] on behalf of eric dolecki Sent: Mon 7/31/2006 8:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Custom cacheAsBitmap with scale and rotate If you are scaling and rotating a clip often, it wouldn't seem likely to be a good candidate for cacheAsBitmap in the first place. - e.d. On 7/31/06, Seb L [EMAIL PROTECTED] wrote: Hi guys, So cacheAsBitmap is great, but it re-renders the bitmap every time you scale or rotate. I remember seeing some code that you could apply to a movie clip and it manually cached a bitmap version of the clip, which was scaled and rotated as a bitmap... but I can't remember where... can anyone else? Thanks in advance! Seb ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Custom cacheAsBitmap with scale and rotate
Yes that's exactly what I'm about to do, but I remember seeing someone else had done that a while back, and I was asking if anyone could tell me who it was, to save me the trouble :-) Seb On 31/07/06, Howard Nager [EMAIL PROTECTED] wrote: Have you tried drawing the movieclip to a bitmap using the BitmapData draw() methos? You could display (scale/rotate) the bitmap instead of the cacheAsBitmap movieclip. -Original Message- From: [EMAIL PROTECTED] on behalf of eric dolecki Sent: Mon 7/31/2006 8:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Custom cacheAsBitmap with scale and rotate If you are scaling and rotating a clip often, it wouldn't seem likely to be a good candidate for cacheAsBitmap in the first place. - e.d. On 7/31/06, Seb L [EMAIL PROTECTED] wrote: Hi guys, So cacheAsBitmap is great, but it re-renders the bitmap every time you scale or rotate. I remember seeing some code that you could apply to a movie clip and it manually cached a bitmap version of the clip, which was scaled and rotated as a bitmap... but I can't remember where... can anyone else? Thanks in advance! Seb ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Help...cant unload the xml menu...!!
You are attaching everything to the _root, so you need to clean up the clips one by one, unless you decide to better nest your menu submenu items in one movieclip. You could then remove it much easier, etc. On 7/31/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Hello, i have a xml menu and when i go to other frame my menu doenst unload... i tried with the functions clearMenu and clearSubMenu but they dont work..please help..i will send the code: import mx.xpath.XPathAPI; var infoHolder:XML = new XML(); infoHolder.load(menuInfoXML); infoHolder.ignoreWhite = true; var titlePath:String = /root; //main menu array. var mainMenus:Array; //sub menu array. var subMenus:Array; //load the xml with xpath infoHolder.onLoad = function(ok) { if (ok) { mainMenus = mx.xpath.XPathAPI.selectNodeList(infoHolder.firstChild , titlePath+/menu); createTreeMenu(); } }; MovieClip.prototype.getPos = function(target:Number) { this.onEnterFrame = function() { this._y -= (this._y-target)/6; if (Math.abs(this._y-target)0.3) { delete this.onEnterFrame; _root.newsMC.showNews.appear(); } }; }; function createTreeMenu():Void { for (i=0; imainMenus.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut.arrow._alpha = 0; newBut.shine._alpha = 0; newBut._x = 105; newBut._y = 180+(newBut._height+5)*i; newBut.txt.text = mainMenus[i].attributes.txt; newBut.link2 = mainMenus[i].attributes.url; newBut.submenuCnt = mainMenus[i].childNodes.length; newBut.y = newBut._y; newBut.onRollOver = function() { _root.tween(this, 10, 13); this.arrow.appear(); this.shine.appear(); var textCol = new Color(this.txt); textCol.setRGB(0xff); }; newBut.onRollOut = function() { _root.tween(this, 15, 10); this.arrow.disappear(); this.shine.disappear(); var textCol = new Color(this.txt); textCol.setRGB(0x6F6A63); }; newBut.onRelease = function() { if (this.submenuCnt0) { var butNum:Number = new Number(this._name.substr(3, 1)); this.createSubMenu(butNum); for (i=0; imainMenus.length; i++) { if (ibutNum+1) { _root[but+i].getPos(_root[but+i].y); } else { _root[but+i].getPos(_root[but+i].y+this.submenuCnt*22); } } } else { _root.conteudos_mc.portfolio_mc.clearSubMenus(); for (i=0; imainMenus.length; i++) { _root[but+i].getPos(_root[but+i].y); } } }; } } MovieClip.prototype.createSubMenu = function(buttonNumber:Number):Void { clearSubMenus(); subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber], /menu/submenu); var butNum:Number = new Number(this._name.substr(3, 1)); for (i=0; isubMenus.length; i++) { subBut = _root.attachMovie(submenu, subMenu+i, Math.random ()*99); subBut._alpha = 0; subBut._x -= i; subAppear(subBut, (i+3), 130); subBut._y = this.y+this._height+(subBut._height+5)*i; subBut.txt.text = subMenus[i].attributes.txt; subBut.link2 = subMenus[i].attributes.url; subBut.but.onRollOver = function(){ var textSubCol = new Color(this._parent.txt); textSubCol.setRGB(0xff); } subBut.but.onRollOut = function(){ var textSubCol = new Color(this._parent.txt); textSubCol.setRGB(0x6F6A63); } subBut.but.onRelease = function() { loadMovie(this._parent.link2, _root.conteudos_mc.vazio4_mc); //this doesnt disapear either... //trace(this._parent); }; } }; function clearSubMenus() { for (k=0; ksubMenus.length; k++) { _root[subMenu+k].removeMovieClip(); } } function clearAllMenus() { for (i=0; imainMenus.length; i++) { _root[but+i].removeMovieClip(); } } Sorry..but im really desperate with this...i tried with unloadMovie, and ...nothing happens... Many thanks. Jose Maria ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com
Re: [Flashcoders] Help...cant unload the xml menu...!!
Oh manthank you so much..i was getting so frustrated...well..i am ...but at least..the problem is solved.. On 7/31/06, eric dolecki [EMAIL PROTECTED] wrote: You are attaching everything to the _root, so you need to clean up the clips one by one, unless you decide to better nest your menu submenu items in one movieclip. You could then remove it much easier, etc. On 7/31/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Hello, i have a xml menu and when i go to other frame my menu doenst unload... i tried with the functions clearMenu and clearSubMenu but they dont work..please help..i will send the code: import mx.xpath.XPathAPI; var infoHolder:XML = new XML(); infoHolder.load(menuInfoXML); infoHolder.ignoreWhite = true; var titlePath:String = /root; //main menu array. var mainMenus:Array; //sub menu array. var subMenus:Array; //load the xml with xpath infoHolder.onLoad = function(ok) { if (ok) { mainMenus = mx.xpath.XPathAPI.selectNodeList( infoHolder.firstChild , titlePath+/menu); createTreeMenu(); } }; MovieClip.prototype.getPos = function(target:Number) { this.onEnterFrame = function() { this._y -= (this._y-target)/6; if (Math.abs(this._y-target)0.3) { delete this.onEnterFrame; _root.newsMC.showNews.appear(); } }; }; function createTreeMenu():Void { for (i=0; imainMenus.length; i++) { newBut = _root.attachMovie(but, but+i, 999+i); newBut.arrow._alpha = 0; newBut.shine._alpha = 0; newBut._x = 105; newBut._y = 180+(newBut._height+5)*i; newBut.txt.text = mainMenus[i].attributes.txt; newBut.link2 = mainMenus[i].attributes.url; newBut.submenuCnt = mainMenus[i].childNodes.length; newBut.y = newBut._y; newBut.onRollOver = function() { _root.tween(this, 10, 13); this.arrow.appear(); this.shine.appear(); var textCol = new Color(this.txt); textCol.setRGB(0xff); }; newBut.onRollOut = function() { _root.tween(this, 15, 10); this.arrow.disappear(); this.shine.disappear(); var textCol = new Color(this.txt); textCol.setRGB(0x6F6A63); }; newBut.onRelease = function() { if (this.submenuCnt0) { var butNum:Number = new Number(this._name.substr(3, 1)); this.createSubMenu(butNum); for (i=0; imainMenus.length; i++) { if (ibutNum+1) { _root[but+i].getPos(_root[but+i].y); } else { _root[but+i].getPos(_root[but+i].y+this.submenuCnt*22); } } } else { _root.conteudos_mc.portfolio_mc.clearSubMenus(); for (i=0; imainMenus.length; i++) { _root[but+i].getPos(_root[but+i].y); } } }; } } MovieClip.prototype.createSubMenu = function(buttonNumber:Number):Void { clearSubMenus(); subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber], /menu/submenu); var butNum:Number = new Number(this._name.substr(3, 1)); for (i=0; isubMenus.length; i++) { subBut = _root.attachMovie(submenu, subMenu+i, Math.random ()*99); subBut._alpha = 0; subBut._x -= i; subAppear(subBut, (i+3), 130); subBut._y = this.y+this._height+(subBut._height+5)*i; subBut.txt.text = subMenus[i].attributes.txt; subBut.link2 = subMenus[i].attributes.url; subBut.but.onRollOver = function(){ var textSubCol = new Color(this._parent.txt); textSubCol.setRGB(0xff); } subBut.but.onRollOut = function(){ var textSubCol = new Color(this._parent.txt); textSubCol.setRGB(0x6F6A63); } subBut.but.onRelease = function() { loadMovie(this._parent.link2, _root.conteudos_mc.vazio4_mc); //this doesnt disapear either... //trace(this._parent); }; } }; function clearSubMenus() { for (k=0; ksubMenus.length; k++) { _root[subMenu+k].removeMovieClip(); } } function clearAllMenus() { for (i=0; imainMenus.length; i++) { _root[but+i].removeMovieClip(); } } Sorry..but im really desperate with this...i tried with unloadMovie, and ...nothing happens... Many thanks. Jose Maria ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] skinning the DataGrid component
This will work. var alpha = 20; var color = 0xFF; // _global.styles.ScrollSelectList.backgroundColor = null; mx.controls.listclasses.SelectableRow.prototype.drawRowFill = function(mc:MovieClip, newClr:Number):Void { mc.clear(); if (newClr == null) { mc.beginFill(color, alpha); } else { mc.beginFill(newClr); } mc.drawRect(1, 0, this.__width, this.__height); mc.endFill(); mc._width = this.__width; mc._height = this.__height; }; -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tyson Tune Sent: Friday, July 28, 2006 9:59 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] skinning the DataGrid component I'm trying to skin the DataGrid component in Flash 8. All I really want to do is turn the background of the grid transparent. I've been able to skin other components by passing an object to the component as I create it. However, I'm having some trouble with DataGrid. Has anyone had any success with this? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Custom cacheAsBitmap with scale and rotate
cacheAsBitmap is a boolean property of a moive clip, so cant you set it to true while it is static, and then false before you have to scale or rotate it? On 7/31/06, Seb L [EMAIL PROTECTED] wrote: Yes that's exactly what I'm about to do, but I remember seeing someone else had done that a while back, and I was asking if anyone could tell me who it was, to save me the trouble :-) Seb On 31/07/06, Howard Nager [EMAIL PROTECTED] wrote: Have you tried drawing the movieclip to a bitmap using the BitmapData draw() methos? You could display (scale/rotate) the bitmap instead of the cacheAsBitmap movieclip. -Original Message- From: [EMAIL PROTECTED] on behalf of eric dolecki Sent: Mon 7/31/2006 8:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Custom cacheAsBitmap with scale and rotate If you are scaling and rotating a clip often, it wouldn't seem likely to be a good candidate for cacheAsBitmap in the first place. - e.d. On 7/31/06, Seb L [EMAIL PROTECTED] wrote: Hi guys, So cacheAsBitmap is great, but it re-renders the bitmap every time you scale or rotate. I remember seeing some code that you could apply to a movie clip and it manually cached a bitmap version of the clip, which was scaled and rotated as a bitmap... but I can't remember where... can anyone else? Thanks in advance! Seb ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- John Van Horn [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] 5 Star Rating System
Thanks for the illumination! However, here's a link with a nice voting system To Whom It May Concern... http://www.flashkod.com/code.aspx?ID=18813 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] AS3 - From BitmapAsset to BitmapData?
You don't attach the BitmapData, you have to attach a Bitmap object via the addChild method. To get the BitmapData onto a movieclip you need to make a new Bitmap object with the BimapData, of course you could just attach the original image. [Embed(source=image.png)] private var imageClass:Class; private var moveiclip :MovieClip = new MovieClip(); private var image :Bitmap = new imageClass(); private var bitmapData :BitmapData = image.bitmapData; private var newImage:Bitmap = new Bitmap(bitmapData); movieclip.addChild(newImage); //Add new bitmap movieclip.addChild(image); //Add original image hth Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sascha Balkau Sent: 31 July 2006 03:12 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] AS3 - From BitmapAsset to BitmapData? Thanks a lot Jim! That was the link I was looking for! Maybe you can give me a hint on another BitmapData problem: How do I attach a BitmapData to a MovieClip in AS3? attachBitmap is no more and if I use addChild I get a Coercion failed again. Sascha When embedding the images like this I use a normal Bitmap class not a BitmapAsset. Then you can access the bitmapData property of the bitmap class. [Embed(source=image.png)] private var imageClass:Class; private var image:Bitmap = new imageClass(); private var bitmapData:BitmapData = image.bitmapData; hth Jim ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] skinning the DataGrid component
Thanks Andy. Worked like a charm. Tyson Tune [EMAIL PROTECTED] mobile -Original Message- From: Andy Stone [EMAIL PROTECTED] Date: Mon, 31 Jul 2006 09:45:59 To:'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] skinning the DataGrid component This will work. var alpha = 20; var color = 0xFF; // _global.styles.ScrollSelectList.backgroundColor = null; mx.controls.listclasses.SelectableRow.prototype.drawRowFill = function(mc:MovieClip, newClr:Number):Void { mc.clear(); if (newClr == null) { mc.beginFill(color, alpha); } else { mc.beginFill(newClr); } mc.drawRect(1, 0, this.__width, this.__height); mc.endFill(); mc._width = this.__width; mc._height = this.__height; }; -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tyson Tune Sent: Friday, July 28, 2006 9:59 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] skinning the DataGrid component I'm trying to skin the DataGrid component in Flash 8. All I really want to do is turn the background of the grid transparent. I've been able to skin other components by passing an object to the component as I create it. However, I'm having some trouble with DataGrid. Has anyone had any success with this? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Interactive Map Examples
hi. i'm looking for examples of interactive flash maps. i'm trying to see what else is out there as i build out my application...which will be a map of the US. what i'd like is that a user can click a state and that state will be the prominent viewpoint from which a user can select a county. i've heard of examples where the state, in some planar 3D motion, will stand up and the map of the US will almost lay down beneath it, so to speak. but i'd also like to take the state and perhaps center it in the view container and get rid of the US map entirely. anyhow, if anyone can point me to some examples that'd be very much appreciated. thank you. -- matt. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Loading a 3500 entry XML file
Hi all, For reasons I'd rather not get into :s I'm loading an XML file into flash with 3500 entries (each has 13 child nodes describing elements of the entry). To my initia, happyl surprise, Flash 8 only took several seconds to load it! I'm easing into processing to vars, and realized I needed something with no whitespace so flash could discern it's contents properly. When I told flash to .ignoreWhite on the XML object it kaks out and dies (unresponsive and crash). I decided to save it the trouble and had a developer strip the whitespace out of the actual XML file when generated from the Database. Smaller file (sans whitespace) however.that becomes unresponsive on load too, and crashes Flash! (even with the .ignoreWhite removed). Any ideas why? Any suggested other methods? Clayton ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Help...cant unload the xml menu...!!
i singed too soon...when i test locally everything works great...but when i try it in internet..it doesnt..he doestn load the xml file why...? The code is the same...but i did alter the url..like you said..: //EDIT XML PATH menuInfoXML = ./xml/menu.xml; // DO NOT EDIT BELOW.. System.useCodepage = true; import mx.xpath.XPathAPI; var infoHolder:XML = new XML(); infoHolder.load(menuInfoXML); infoHolder.ignoreWhite = true; var titlePath:String = /root; //main menu array. var mainMenus:Array; //sub menu array. var subMenus:Array; infoHolder.onLoad = function(ok) { if (ok) { mainMenus = mx.xpath.XPathAPI.selectNodeList(infoHolder.firstChild, titlePath+/menu); createTreeMenu(); } }; MovieClip.prototype.getPos = function(target:Number) { this.onEnterFrame = function() { this._y -= (this._y-target)/6; if (Math.abs(this._y-target)0.3) { delete this.onEnterFrame; _root.newsMC.showNews.appear(); } }; }; function createTreeMenu():Void { for (i=0; imainMenus.length; i++) { newBut = _root.conteudos_mc.portfolio_mc.attachMovie(but, but+i, 999+i); newBut.arrow._alpha = 0; newBut.shine._alpha = 0; newBut._x = 18; newBut._y = 93+(newBut._height+5)*i; newBut.txt.text = mainMenus[i].attributes.txt; newBut.link2 = mainMenus[i].attributes.url; newBut.submenuCnt = mainMenus[i].childNodes.length; newBut.y = newBut._y; newBut.onRollOver = function() { _root.conteudos_mc.portfolio_mc.tween(this, 16, 18); this.arrow.appear(); this.shine.appear(); var textCol = new Color(this.txt); textCol.setRGB(0xff); }; newBut.onRollOut = function() { _root.conteudos_mc.portfolio_mc.tween(this, 18, 16); this.arrow.disappear(); this.shine.disappear(); var textCol = new Color(this.txt); textCol.setRGB(0x6F6A63); }; newBut.onRelease = function() { if (this.submenuCnt0) { var butNum:Number = new Number(this._name.substr(3, 1)); this.createSubMenu(butNum); for (i=0; imainMenus.length; i++) { if (ibutNum+1) { _root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y); } else { _root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y+this.submenuCnt*22); } } } else { _root.conteudos_mc.portfolio_mc.clearSubMenus(); for (i=0; imainMenus.length; i++) { _root.conteudos_mc.portfolio_mc[but+i].getPos(_root.conteudos_mc.portfolio_mc[but+i].y); } //getURL(this.link); } }; } } MovieClip.prototype.createSubMenu = function(buttonNumber:Number):Void { clearSubMenus(); subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber], /menu/submenu); var butNum:Number = new Number(this._name.substr(3, 1)); for (i=0; isubMenus.length; i++) { subBut = _root.conteudos_mc.portfolio_mc.attachMovie(submenu, subMenu+i, Math.random()*99); subBut._alpha = 0; subBut._x -= i; subAppear(subBut, (i+3), 30); subBut._y = this.y+this._height+(subBut._height+5)*i; subBut.txt.text = subMenus[i].attributes.txt; subBut.link2 = subMenus[i].attributes.url; subBut.but.onRollOver = function(){ var textSubCol = new Color(this._parent.txt); textSubCol.setRGB(0xff); } subBut.but.onRollOut = function(){ var textSubCol = new Color(this._parent.txt); textSubCol.setRGB(0x6F6A63); } subBut.but.onRelease = function() { loadMovie(this._parent.link2, _root.conteudos_mc.vazio4_mc); trace(this._parent.link2); }; } }; function clearSubMenus() { for (k=0; ksubMenus.length; k++) { _root.conteudos_mc.portfolio_mc[subMenu+k].removeMovieClip(); } } function clearAllMenus() { for (i=0; imainMenus.length; i++) { _root.conteudos_mc.portfolio_mc[but+i].removeMovieClip(); } } Thanks...once again..xml drives me nuts.. On 7/31/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Oh manthank you so much..i was getting so frustrated...well..i am ...but at least..the problem is solved.. On 7/31/06, eric dolecki [EMAIL PROTECTED] wrote: You are attaching everything to the _root, so you need to clean up the clips one by one, unless you decide to better nest your menu submenu items in one movieclip. You could then remove it much easier, etc. On 7/31/06, Jose Maria Barros [EMAIL PROTECTED] wrote: Hello, i have a xml menu and when i go to other frame my menu doenst unload... i tried with the functions clearMenu and clearSubMenu but they dont work..please help..i will send the code: import
RE: [Flashcoders] Loading a 3500 entry XML file
Now there's an interesting problem. I have one really awkward idea. I'm assuming the XML structure is something like this? ?xml version=1.0? root entry entry-data / !--12 more entry-data nodes-- /entry !--3499 more entry nodes-- /root - Use the XML object's onData handler so that you can work with the raw string data. - Strip out the root opening and closing tags. - Iterate through the string until you reach the end: --- (The current character should be a .) --- Set a countOpenTags variable to 1 --- Iterate: - move forward one character - For every character, if it is a , increment countOpenTags, and if it is a , decrement countOpenTags - When countOpenTags is 0: --- Grab everything from to the current position in the string. This grabbed string represents the raw data for an entry tag. --- Create a timeout call to parse the grabbed string. Timeouts should be spaced apart by a certain number of milliseconds. (Experimentation will be required.) The last timeout should have a callback that signals that all the XML has been parsed. --- Break the loop. --- If at the last character, break the loop. Also, if you're interesting, I have an async package for performing long calculations asynchronously. It works somewhat similarly. Basically it keeps track of checkpoints and provides ways to keep track of time, so that if too much time is spent, it can break out of the procedure and re-enter it on a timeout. Checkpoints correspond to options on a large switch statement. It's kind of a hack, but it's come in useful on several occasions. -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clayton Sent: Monday, July 31, 2006 9:10 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Loading a 3500 entry XML file Hi all, For reasons I'd rather not get into :s I'm loading an XML file into flash with 3500 entries (each has 13 child nodes describing elements of the entry). To my initia, happyl surprise, Flash 8 only took several seconds to load it! I'm easing into processing to vars, and realized I needed something with no whitespace so flash could discern it's contents properly. When I told flash to .ignoreWhite on the XML object it kaks out and dies (unresponsive and crash). I decided to save it the trouble and had a developer strip the whitespace out of the actual XML file when generated from the Database. Smaller file (sans whitespace) however.that becomes unresponsive on load too, and crashes Flash! (even with the .ignoreWhite removed). Any ideas why? Any suggested other methods? Clayton ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Loading a 3500 entry XML file
My advice is: Hock yourself up with a SAX XML Parser simply and easily. This type of XML parser can easily be leveraged to parse HUGE streaming XML data, without needing to keep the XML data in memory. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Sent: July 31, 2006 1:42 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Loading a 3500 entry XML file Now there's an interesting problem. I have one really awkward idea. I'm assuming the XML structure is something like this? ?xml version=1.0? root entry entry-data / !--12 more entry-data nodes-- /entry !--3499 more entry nodes-- /root - Use the XML object's onData handler so that you can work with the raw string data. - Strip out the root opening and closing tags. - Iterate through the string until you reach the end: --- (The current character should be a .) --- Set a countOpenTags variable to 1 --- Iterate: - move forward one character - For every character, if it is a , increment countOpenTags, and if it is a , decrement countOpenTags - When countOpenTags is 0: --- Grab everything from to the current position in the string. This grabbed string represents the raw data for an entry tag. --- Create a timeout call to parse the grabbed string. Timeouts should be spaced apart by a certain number of milliseconds. (Experimentation will be required.) The last timeout should have a callback that signals that all the XML has been parsed. --- Break the loop. --- If at the last character, break the loop. Also, if you're interesting, I have an async package for performing long calculations asynchronously. It works somewhat similarly. Basically it keeps track of checkpoints and provides ways to keep track of time, so that if too much time is spent, it can break out of the procedure and re-enter it on a timeout. Checkpoints correspond to options on a large switch statement. It's kind of a hack, but it's come in useful on several occasions. -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clayton Sent: Monday, July 31, 2006 9:10 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Loading a 3500 entry XML file Hi all, For reasons I'd rather not get into :s I'm loading an XML file into flash with 3500 entries (each has 13 child nodes describing elements of the entry). To my initia, happyl surprise, Flash 8 only took several seconds to load it! I'm easing into processing to vars, and realized I needed something with no whitespace so flash could discern it's contents properly. When I told flash to .ignoreWhite on the XML object it kaks out and dies (unresponsive and crash). I decided to save it the trouble and had a developer strip the whitespace out of the actual XML file when generated from the Database. Smaller file (sans whitespace) however.that becomes unresponsive on load too, and crashes Flash! (even with the .ignoreWhite removed). Any ideas why? Any suggested other methods? Clayton ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] RE: help with linking a flash button to a file folder
I am trying figure out how to create a flash presentation on cd with buttons that open file folders in windows explorer also on the cd. I have found that I can use the get url behavior to open file folders in the default web browser using the absolute pathname, but I need to be able to use a relative pathname and for the file folder to open in windows explorer, not an internet application. Any help would be very much appreciated. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] RE: help with linking a flash button to a file folder
Not sure about a CD, but should work something like this? myDynamicFilepath = this._url.slice(0, this._url.lastIndexOf(/)+1)+myfile.html; Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ben Smith Sent: Monday, July 31, 2006 2:47 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] RE: help with linking a flash button to a file folder I am trying figure out how to create a flash presentation on cd with buttons that open file folders in windows explorer also on the cd. I have found that I can use the get url behavior to open file folders in the default web browser using the absolute pathname, but I need to be able to use a relative pathname and for the file folder to open in windows explorer, not an internet application. Any help would be very much appreciated. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Problems with Object-Oriented Actionscript
Take a look at: http://www.albinoblacksheep.com/flash/animatorhttp://www.albinoblacksheep.com/flash/animator -- Randal ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Dynamically loading a Shared Library symbol
You'll have to use the absolute root path in the shared font symbol, which makes local testing kind of a pain. This post may help: http://chattyfig.figleaf.com/pipermail/flashcoders/2006-May/166686.html If you develop on a Mac, you'll have to create two shared font files, one for local testing that uses the absolute path all the way down to the file system root of your machine, and one for use on the server using the absolute path to the server root. Hope this helps. Cheers, Michael -Original Message- From: Jake Prime [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 7:27 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Dynamically loading a Shared Library symbol Hi all Is there any way to dynamically set the path for loading a shared library object? I am using a shared library system to have a central store for all fonts in a mulitlanguage site. Unfortunately I'm not permitted to use relative links in the site. I am being given an absolute root path as a FlashVar, and appending that to all loading. Any help appreciated Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Problems with Object-Oriented Actionscript
Thats at least the third time that movie was posted here,... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Randal Sent: Monday, July 31, 2006 9:13 PM To: Flashcoders mailing list Subject: [Flashcoders] Problems with Object-Oriented Actionscript Take a look at: http://www.albinoblacksheep.com/flash/animatorhttp://www.albinoblacksheep. com/flash/animator -- Randal ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Express Install is reliable?
Hi, I have been implementing the Express Install feature on my site for the last few days, and after extensively testing it, I have found some of the servers it relays on are intermittently not available. It really fails very often. I have tested this for several days, on different browsers, and using the default playerProductInstall.swf, and customizing it. The result is always the same a good percentage of the times (maybe more than 50% I would say): The Express Install dialog comes up as expected, with the spining circle, then is says 'Connecting... and it stays there for as long as you wait. If it fails and you immediately try again it usually fails again. You have to try at a later time, like 20-30 minutes later and see if it works then. I have noticed a similar unreliability on some pages at the old macromedia website (the problem is usually that it can't connect to the server). Does anybody have experienced this problem. Could you test it on your site, or here: http://blog.deconcept.com/swfobject/expressinstall.html (you need an older flash player) I have also just tested this url: http://www.macromedia.com/go/getflashplayer (which is often included as the embed tag pluginspage url), and this fails as well (cannot find server) Please let me know if it works in your tests. Thank you very much Orange ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Express Install is reliable?
There was mention on the SWFObject list that the expressinstall servers were being hit pretty hard right now because myspace (the #1 site on the internet traffic wise) started requiring Flash Player 9, and are using expressinstall... so there's thousands (millions?) of people upgrading right now and for the past couple of weeks. just gotta wait for adobe to either add more servers or for the flow of upgrades to settle down a bit. On Jul 31, 2006, at 4:11 PM, orange wrote: Hi, I have been implementing the Express Install feature on my site for the last few days, and after extensively testing it, I have found some of the servers it relays on are intermittently not available. It really fails very often. I have tested this for several days, on different browsers, and using the default playerProductInstall.swf, and customizing it. The result is always the same a good percentage of the times (maybe more than 50% I would say): The Express Install dialog comes up as expected, with the spining circle, then is says 'Connecting... and it stays there for as long as you wait. If it fails and you immediately try again it usually fails again. You have to try at a later time, like 20-30 minutes later and see if it works then. I have noticed a similar unreliability on some pages at the old macromedia website (the problem is usually that it can't connect to the server). Does anybody have experienced this problem. Could you test it on your site, or here: http://blog.deconcept.com/swfobject/expressinstall.html (you need an older flash player) I have also just tested this url: http://www.macromedia.com/go/getflashplayer (which is often included as the embed tag pluginspage url), and this fails as well (cannot find server) Please let me know if it works in your tests. Thank you very much Orange ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Enabling NetConnection debugger with ActionScript 2.0
According to the help files, one starts up the NetConnection Debugger as follows: 1. Drag the RemotingDebugClasses library to the stage. For information on adding and removing the RemotingDebugClasses library to your application, see The NetConnection Debugger. 2. Import the NetDebug class in the first frame of the Flash application by placing the following import statement at the beginning of your application: import mx.remoting.debug.NetDebug; 3. Call the NetDebug.initialize() method before connecting to the service or calling any other debugging methods. Is there any way to do step 1 (or bypass it) using actionscript? I'd prefer to just edit my actionscript file to turn the NetConnection debugging on or off. TIA, -phaedrus (PS: Fanball.com is looking for a Flash Developer in Minneapolis MN USA: http://www.fanball.com/jobs.cfm) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Enabling NetConnection debugger with ActionScript 2.0
Is there any way to do step 1 (or bypass it) using actionscript? No. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FLVPlayback -- pause works, but resume happens at a different point?
I'm running into an odd bug which I'm not sure I can do anything about. I'm using the FLVPlayback component with custom controls, but otherwise as-is, to stream video over RTMP from thePlatform (theplatform.com). It all works just fine. However, when I hit my pause button, wait a while, and hit the play button, the video is not always resuming from where it was paused. Occasionally this difference is up to 5s, but seems random. As an example, I'm listening for the stateChange event, and here are the properties of its event object when pausing and resuming: target=_level0.app.__player.__flvPlayback type=stateChange state=paused playheadTime=6.87 vp=0 target=_level0.app.__player.__flvPlayback type=stateChange state=buffering playheadTime=6.87 vp=0 target=_level0.app.__player.__flvPlayback type=stateChange state=playing playheadTime=10.007 vp=0 The difference in this test is about 3s. Has anyone else run into this? Is it a problem with the server or the client? thanks, -josh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Enabling NetConnection debugger with ActionScript 2.0
Try this instead use Service Capture http://www.kevinlangdon.com/serviceCapture/release_notes.html On 7/31/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Is there any way to do step 1 (or bypass it) using actionscript? No. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: help with linking a flash button to a file folder
google mprojector or zinc + actionscript On 7/31/06, Merrill, Jason [EMAIL PROTECTED] wrote: Not sure about a CD, but should work something like this? myDynamicFilepath = this._url.slice(0, this._url.lastIndexOf(/)+1)+myfile.html; Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ben Smith Sent: Monday, July 31, 2006 2:47 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] RE: help with linking a flash button to a file folder I am trying figure out how to create a flash presentation on cd with buttons that open file folders in windows explorer also on the cd. I have found that I can use the get url behavior to open file folders in the default web browser using the absolute pathname, but I need to be able to use a relative pathname and for the file folder to open in windows explorer, not an internet application. Any help would be very much appreciated. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel
Thanks to all of you for your comments that has been tremedously helpful and informative. James On 7/31/06, Janis Radins [EMAIL PROTECTED] wrote: Brightness of color can be found in quite easy way. If we have decimal representation of RGB brightness in percents will be 100*(((R+G+B)/3)/255) Color brightness represents position of particular color in color tween from 0xFF at 0 position The base color at position 127.5 and 0x0 at 255. 2006/7/30, Bernard Poulin [EMAIL PROTECTED]: hum, I guess you missed my last post(?) Here's the code again: function computeBrightness(pixelvalue) { var r = pixelvalue 16 0xFF; var g = pixelvalue 8 0xFF; var b = pixelvalue 0xFF; var bright = Math.max(Math.max(r,g),b); return Math.round((bright/255)*100); } And for an optimized/faster version, you could try something like: function computeBrightness(pixelvalue) { // returns the larger value of r, g or b -- and scale it down to a 0..100 range. var r = pixelvalue 16 0xFF; var g = pixelvalue 8 0xFF; var b = pixelvalue 0xFF; var bright = (rg)?((rb)?r:b):((gb)?g:b); return (bright/255)*100; // no rounding. } (Again, this is untested code -- but it looks like it should work). Bernard 2006/7/30, James Deakin [EMAIL PROTECTED]: HI Guys, Thanks very much to you all for your help and explanations. I understood that the number represented a colour value but I now have a much better understanding of how it does so. In your opinion what is the most efficient way to retrieve the relative brightness of that colour. What I need is a value between 0 and 100 where 0 is black and 100 is white and the numbers in-between represent the shades in-between. What I am going to try is this. Split the number into its components RGB use this code which came from the Flash API project //colorModel converter RGB-HSB //returns a hsb object RGBtoHSB = function(rgb){ var r = rgb.r var g = rgb.g var b = rgb.b var hsb = new Object(); hsb.b = Math.max(Math.max(r,g),b); var min = Math.min(Math.min(r,g),b); hsb.s = (hsb.b = 0) ? 0 : Math.round (100*(hsb.b - min)/hsb.b); hsb.b = Math.round((hsb.b /255)*100); hsb.h = 0; if((r == g) (g == b)){ hsb.h = 0; } else if(r = g g = b){ hsb.h = 60*(g-b)/(r-b); } else if(g = r r = b){ hsb.h = 60 + 60*(g-r)/(g-b); } else if(g = b b = r){ hsb.h = 120 + 60*(b-r)/(g-r); } else if(b = g g = r){ hsb.h = 180 + 60*(b-g)/(b-r); } else if(b = r r = g){ hsb.h = 240 + 60*(r-g)/(b-g); } else if(r = b b = g){ hsb.h = 300 + 60*(r-b)/(r-g); } else{ hsb.h = 0; } hsb.h = Math.round(hsb.h); return hsb; } to turn it into an object with three values hue saturation and brightness and then just make use of the brightness. If there is a better way especially a more efficient way I would really like to know. On 7/29/06, Mike [EMAIL PROTECTED] wrote: Small correction. This: This compares each bit in the first number to each bit in the second number. If both bits are 1 (on), that bit is 1 (on) in the result. If both bits are 0 (off), both bits are 0 (off) in the result. So the result is: ...should be: This compares each bit in the first number to each bit in the second number. If both bits are 1 (on), that bit is 1 (on) in the result. If *either bit is* 0 (off), *that bit is* 0 (off) in the result. So the result is: (emphasis added) -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Sent: Saturday, July 29, 2006 3:25 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel You seem to be thinking of numbers as if they are stored like strings. They aren't. RGB colors are stored as 3-byte (24-bit) numbers. For example, red looks like this in binary: b ...which is the same thing as this in hexadecimal: 0xFF ... which is the same thing as this in decimal: 16711680 To isolate, for example the red portion, you can use SHIFT RIGHT () to shift all bits to the right by 16 bits. Binary: b 16 = b Hexadecimal: 0xFF 16 = 0xFF Decimal: 16711680 16 = 255 Generally it's a good idea not to presume that there may not be more bits to the left, so you can filter them out using a bitwise AND (). To explain, this better, here's how to extract the green value from bright cyan (0x7F): The binary value of the color: 0111 Split into colors: 0111 Shift right 8 bits: 10111b 8 = In hexadecimal, this result is: 0x
RE: [Flashcoders] RE: help with linking a flash button to a filefolder
Thanks for the response. The local folder I want the button to link to is called 01_company. I am not sure where to insert this name and so far all my experiments have failed. Any further suggestions? Thanks, Ben Smith -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, July 31, 2006 11:54 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] RE: help with linking a flash button to a filefolder Not sure about a CD, but should work something like this? myDynamicFilepath = this._url.slice(0, this._url.lastIndexOf(/)+1)+myfile.html; Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ben Smith Sent: Monday, July 31, 2006 2:47 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] RE: help with linking a flash button to a file folder I am trying figure out how to create a flash presentation on cd with buttons that open file folders in windows explorer also on the cd. I have found that I can use the get url behavior to open file folders in the default web browser using the absolute pathname, but I need to be able to use a relative pathname and for the file folder to open in windows explorer, not an internet application. Any help would be very much appreciated. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Image Loading causes Flash slowness and high cpu utilization
We have a Flex application which loads many copies of an image on the fly. In some situations the image loading seems to cause Flash to slow down (and use more CPU). The slowdown stays with Flash beyond the loading of the image. We can wait a hour and the load is still high. And each time this happens the player gets a little bit slower and never improves until the browser is restarted. This does not appear to be a memory utilization issue. One hypothesis is that there is some type of background element (a layer on the timeline) which is responsible for loading the image, and somehow this gets hung up and doesn't get cleaned up. Get enough of these and the load goes up. Does this ring a bell with anyone. Is this a known problem? It may be related to other events happening at the same time (e.g., moving the image before it is loaded, or loading a new image before the old one is loaded). The longer it takes to load the image (e.g., local web server versus remote), the more likely the problem. This is with Flex 1.5. This affects all versions of flash on all platforms we have tested. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Interactive Map Examples
Hi Matt i'm looking for examples of interactive flash maps. i'm trying to see what else is out there as i build out my application...which will be a map of the US. I'm still very much a beginner myself with this map stuff, but you are welcome to have a peep at this, and I'll do my best to answer any questions you have... http://www.pixelpump.co.nz/photo_map.swf what i'd like is that a user can click a state and that state will be the prominent viewpoint from which a user can select a county. It might be similar in that here the main view is New Zealand, and you can click a button to see one particular region. It's still got a long way to go though, but I'm making progress. Cheers David ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] ExternalInterface, embed tag and IE
Hello, I am trying to use ExternalInterface on a flash movie loaded via an embed tag in Internet Explorer. (For specific reasons I do not want to use the object tag and I can't use firefox). I have set allowScriptAccess=always and I have specified the 'name' attribute. However, when I try to call an AS function from javascript on this object I get an error like Object does not support this property or method. My embed tag looks something like: embed name=testMovie type=application/x-shockwave-flash src=testMovie.swf allowScriptAccess=always /embed The AS function I want to call is exposed via ExternalInterface.addCallback(). Also I do not have the issue if I use an object tag to load the swf. Has anyone faced this issue before? Any thoughts/pointers would be appreciated. Thanks, Vishal ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Interactive Map Examples
With a pretty good fight, you can really customize the yahoo maps component. http://www.oceancityguide.com/hotels/more.cfm?guideID=321 !k -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wood Sent: Monday, July 31, 2006 6:14 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Interactive Map Examples Hi Matt i'm looking for examples of interactive flash maps. i'm trying to see what else is out there as i build out my application...which will be a map of the US. I'm still very much a beginner myself with this map stuff, but you are welcome to have a peep at this, and I'll do my best to answer any questions you have... http://www.pixelpump.co.nz/photo_map.swf what i'd like is that a user can click a state and that state will be the prominent viewpoint from which a user can select a county. It might be similar in that here the main view is New Zealand, and you can click a button to see one particular region. It's still got a long way to go though, but I'm making progress. Cheers David ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash 9: BitmapData with RTMP stream
We just found that using draw() on a source that is using RTMP to stream in video doesn't work in FP9, but it DOES in FP8. Can anyone confirm this being a bug? or is this yet another security feature addition? Thanks for the help, -- John Grden ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: Flash 9: BitmapData with RTMP stream
Never mind: http://weblogs.macromedia.com/emmy/archives/2006/07/new_security_wh.cfm * Restricted access to media data originating from RTMP servers: Flash Player 9 cannot access video data or sound spectrum data for media loaded from RTMP (Flash Media Server) sources, although it can display and play video and sounds loaded from these servers. look, I've heard all the arguments blah blah blah. But what about still having the ability to make a choice about the level of security? I mean, geez, if I'm loading RTMP data from my OWN domain, just like I would be any OTHER content, shouldn't I be able to access video/audio data?? Shouldn't I at least be able to use crossdomain.xml to open it up? Just doesn't make sense. Of course, this will be the time someone comes out of the wood work at Adobe and hands out the this is why we put a smack down on RTMP data. I guess, as usualy, I'll listen and think yeah you're right, if some idiot did that, it WOULD suck. ;) On 8/1/06, John Grden [EMAIL PROTECTED] wrote: We just found that using draw() on a source that is using RTMP to stream in video doesn't work in FP9, but it DOES in FP8. Can anyone confirm this being a bug? or is this yet another security feature addition? Thanks for the help, -- John Grden -- John Grden ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com