Re: [Flashcoders] Javascript Zoom To Location
That makes a lot of sense, but what I am really looking for is some type of control over the ContextMenu built in items. I just want to call a method that causes the flash player to do it's zoom function. Alternately, if I can call a method the just pops up the context menu, that would work as well. I'm trying to avoid right clicking. On Oct 15, 2006, at 6:07 AM, Janis Radins wrote: I'm not realy sure I understand what exactly you are up to, but if youre interesting in zooming specifics maybe one of my lil experiments migth help you. I made this just for fun a while ago, take a look and maybe it can help you: http://www.mediaverk.lv/trash/zoom.html http://www.mediaverk.lv/trash/zoom.as This is designed to zoom in/out/move image with mouse, keyboard and contextMenu. Jānis 2006/10/14, Tyson Tune [EMAIL PROTECTED]: Hey Guys, I'm working on duplicating the zoom function for the Flash Player via fscommand calls. Using an fscommand call to flashplayerobject.Zoom (50) works as expected, it zooms in. However, it always zooms to the center of the swf. If you use the contextual right click menu to Zoom, it zooms to an area surrounding your cursor. I'd like to be able to do this with fscommand. Any ideas? Using ZoomRect seems to disable the panning ability of the flash player, essentially locking your view to the rectangle. Tyson ___ 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] IE 7 Speed
Hi all, Just downloaded and installed IE7 Is it me or is flash content much faster then it was in IE6? I have some movies generating hundreds of movieclips through AS, smeems to go much more fluent then before. Anyone else experiencing the same? Ben ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] need a little help: class problems: nSlideShow
Here's the deal: I've got a little movieclip that is loaded into a movie instance. The movieclip births a class I called nSlideshow - all it really does is create another movieclip on the fly and slowly cycle through an array of images by an interval. Well when I 'close' the window, it kills the instance of the embedded movieclip, and within it it it should kill the slideshow class Well the slideshow still goes through it's image list and tries to display (even though there's nothing 'there'. The submovieclips that birthed the class is unloaded/deleted. The slideshow class' actually 'myBack' movieclip instance doesn't exist...yet it still tries to cycle through list... ___ 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] Bitmap filters
To invert your image, just create a MovieClip in your library, then put your picture inside, and link this MovieClip with the id: picture_id. the code is: import flash.filters.ColorMatrixFilter; var matrix:Array = new Array(); matrix = matrix.concat([-1, 0, 0, 0, 256]); // red matrix = matrix.concat([0, -1, 0, 0, 256]); // green matrix = matrix.concat([0, 0, -1, 0, 256]); // blue matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha var filter:ColorMatrixFilter = new ColorMatrixFilter(matrix); _root.attachMovie(picture_id,pictureMc,1,{x:10,y:10}); pictureMc.filters = new Array(filter); To understand: I you take the exemple of a 100% red picture, you've red=256, green=0, blue=0. The invert of the red is cyan: red=0, green=256, blue=256 Then reed the oline help of colorMatrixFilter, you can see that: redResult = a[0] * srcR + a[1] * srcG + a[2] * srcB + a[3] * srcA + a[4] so the first line of your matrix is -1,0,0,0,256 so redResult = -1*srcR + 0 + 0 + 0 + 256 -- srcR = 256 and -256 + 256 = 0 the result is 0 so the second line of your matrix is 0,-1,0,0,256 so redResult = 0 + -1*srcG + 0 + 0 + 256 -- srcG = 0 and 0 + 256 = 0 the result is 256 same for blue. Your global result is red=0,green=256,blue=256 it's a invert image. - Original Message - From: Keith Reinfeld [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 18, 2006 9:54 PM Subject: RE: [Flashcoders] Bitmap filters Randy, You can use ColorTransform to invert colors: // code stop(); import flash.geom.ColorTransform; import flash.geom.Transform; toggleClr_btn.label.text = Invert; toggleClr_btn.onRelease = toggleClr; var imgClr:Transform = new Transform(image_mc); var toggleFlag:Boolean = false; function toggleClr():Void{ toggleFlag = !toggleFlag; if(toggleFlag){ // invert var clrTrans:ColorTransform = new ColorTransform(-1, -1, -1, 1, 255, 255, 255, 0); imgClr.colorTransform = clrTrans; }else{ // restore var clrTrans:ColorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); imgClr.colorTransform = clrTrans; } } HTH -Keith http://home.mn.rr.com/keithreinfeld -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Randy Tinfow Sent: Wednesday, October 18, 2006 12:07 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Bitmap filters Having a hard time understanding the new bitmap filters, specifically the color matrix filter. We want to programmatically invert an image's colors. Is there any documentation that explains the color matrix properties succintctly? Or provides step-by-step instructions on it's application? Thanks, Randy Tinfow IMAGE PLANT ___ 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] Flash Projectors - mProjector vs. Zinc
http://haxe.org/swhx While I think it's probably a decent OS product, it seems a little behind the curve at this point. When I inquired as to how I could change the icon for the executable, I was directed to hack the .EXE in a resource editor. You will be happy to know that latest version enables you to change the icon without such troubles ;) Nicolas ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] attachbitmap and copy pixels.
Hi all Can anyone give me a super simple example on using copypixels to take a snapshot of a jpg within a movie clip. I'm having trouble understanding the examples of bitmapdata and copypixels. It would be a great help for me. Best wishes Johnny ___ 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 3.0 - Loader.load() a .swf and than control it
I'm a little confused also about loading swf a control it. I didn't succeeded. But I've readed somewhere that you can not import swf compiled in as2 in a as3 loader, because the classes witch define the movieclip is different. But I remember there is another class especially for as2 movieclip... sorry, my licence expired, and I didn't recept the Flex 2.0 I by... Speak again about that when I get my new licence David Buff - Original Message - From: Dave Geurts [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 18, 2006 10:31 PM Subject: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it I am a little confused with loading media into the loader object. I can load a swf in fine but than how do you control that swf's timline? I think that the swf gets loaded into a loader object, that has a display container? Im a little lost with the loader object concept. I assumend it would be loader.getChildAt(0) i saw loader.content in there but not sure what that does. --- var introLoader:Loader = new Loader(); var request:URLRequest = new URLRequest(intro.swf); introLoader.load(request); trace(introLoader.content); --- Intro loads fine and starts playing Trace returns null Another question is can you load in a .swf that was compiled in 2.0 even if it has no AS in it and control its timeline? thanks for your time! -Dave ___ 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] Flash Projectors - mProjector vs. Zinc
What did you find in Director that was lacking in these other projector tools? Well, a fully featured programming language for a start :) It depends a lot I suppose on exactly what you are trying to achieve. Initially, some things can be more labour intensive in Director (for instance, full screen functionality will need to be coded rather than simply 'set'). Obviously though, once you've done it once... Director's MIAWs can be invaluable, especially if you are trying to build a 'desktop mate'. Although there are some differences, it is a very good cross platform solution. You can set title bar text and icon using Lingo. etc etc etc Mike mentions that you have to buy Xtras. This can be seen as a huge pro - any functionality that isn't currently available can be plugged in. Also, there are a *lot* of free Xtras available out there. Finally (on Xtras), if there isn't one available that provides the functionality you require, you can always roll your own. [mailto:[EMAIL PROTECTED] Behalf Of Steven Sacks | BLITZ Sent: 18 October 2006 19:13 All you need with Director for OS level control is BuddyAPI. There is another extra to disable certain key combos (like CTRL+ALT+DEL, etc.) for kiosk purposes but the name of the xtra escapes me; Indeed. And if you are only going to use 2 of it's methods, you don't have to pay for the pleasure. FileIO Xtra is free and also provides a lot of system level interoperability. Steven - I don't think it's the one you are talking about, but I recently came across a nice (free) little Xtra - 'quitMsg', which intercepts quit events (escape, ALT+F4, close button), so allowing you to determine what happens when a user tries to quit. Make no mistake - it can be awkward, Director has a number of, erm, lets be kind and idiosyncratic behaviour traits that sometimes need to be allowed for and coded around (example - the 'resizeWindow'event handler fires when you restore down a window, but not when you restore up). On the whole though, I find it robust, extensible, and *fun* to work with! Cheers, Pete This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. ___ 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] attachbitmap and copy pixels.
Hi, Just create a fla and import a picture (jpg) in the librairy (minimum 150,150). Link this picture with the id: picture_id Then try this code. import flash.display.BitmapData; import flash.geom.Point; import flash.geom.Rectangle; var picture:BitmapData = BitmapData.loadBitmap(picture_id); _root.createEmptyMovieClip(pictureMc,1); pictureMc.attachBitmap(picture,1); var subPicture:BitmapData = new BitmapData(100,100,false,0xFF); _root.createEmptyMovieClip(subPictureMc,2); subPictureMc.attachBitmap(subPicture,1); var xPos:Number = 50; var yPos:Number = 50; var borderSize:Number = 10; subPictureMc.onRelease = function() { subPicture.copyPixels(picture,new Rectangle(xPos,yPos,subPicture.width-borderSize*2,subPicture.height-borderSize*2),new Point(borderSize,borderSize)); } Your picture must be displayed. A red box will appear on it. Then click on the red box, a part of your picture is drawed into the red box. Change the xPos, yPos and borderSize. You'll be abble to anderstand copyPixels with this exemple. (but it don't show how to use the alpha channel... another time, when you'll be familiar with this) enjoy, David Buff - Original Message - From: Johnny Zen [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 10:40 AM Subject: [Flashcoders] attachbitmap and copy pixels. Hi all Can anyone give me a super simple example on using copypixels to take a snapshot of a jpg within a movie clip. I'm having trouble understanding the examples of bitmapdata and copypixels. It would be a great help for me. Best wishes Johnny ___ 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] attachbitmap and copy pixels.
Just explain a little more... subPicture.copyPixels(picture,new Rectangle(xPos,yPos,subPicture.width-borderSize*2,subPicture.height-borderSize*2),new Point(borderSize,borderSize)); It's mean: -subPicture is the BitmapData where you want to copy the pixels -copyPixels is a method of BitmapData object -picture is the BitmapData witch is the source of pixels -new Rectangle is a flash.geom.Rectangle object, witch define the top left point of the part of the source picture (inside the BitmapData here called picture) you want to copy, and the width and the height of this rectangle -new Point is a flash.geom.Point object witch define the top left point inside the destination BitmapData where you want to copy your pixels (usually (0,0) but you can choose something else) David Buff - Original Message - From: David Buff [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 11:05 AM Subject: Re: [Flashcoders] attachbitmap and copy pixels. Hi, Just create a fla and import a picture (jpg) in the librairy (minimum 150,150). Link this picture with the id: picture_id Then try this code. import flash.display.BitmapData; import flash.geom.Point; import flash.geom.Rectangle; var picture:BitmapData = BitmapData.loadBitmap(picture_id); _root.createEmptyMovieClip(pictureMc,1); pictureMc.attachBitmap(picture,1); var subPicture:BitmapData = new BitmapData(100,100,false,0xFF); _root.createEmptyMovieClip(subPictureMc,2); subPictureMc.attachBitmap(subPicture,1); var xPos:Number = 50; var yPos:Number = 50; var borderSize:Number = 10; subPictureMc.onRelease = function() { subPicture.copyPixels(picture,new Rectangle(xPos,yPos,subPicture.width-borderSize*2,subPicture.height-borderSize*2),new Point(borderSize,borderSize)); } Your picture must be displayed. A red box will appear on it. Then click on the red box, a part of your picture is drawed into the red box. Change the xPos, yPos and borderSize. You'll be abble to anderstand copyPixels with this exemple. (but it don't show how to use the alpha channel... another time, when you'll be familiar with this) enjoy, David Buff - Original Message - From: Johnny Zen [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 10:40 AM Subject: [Flashcoders] attachbitmap and copy pixels. Hi all Can anyone give me a super simple example on using copypixels to take a snapshot of a jpg within a movie clip. I'm having trouble understanding the examples of bitmapdata and copypixels. It would be a great help for me. Best wishes Johnny ___ 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] Flash Filters - Progressive enhancement for those with the 8+ player?
Hey all, Is it possible to publish a movie as Flash 6, but use the flash filters to add things like drop shadows for those with the Flash 8 or greater plugin? My basic tests haven't resulted in it working, but I suspect there may be a way. Any ideas? Thanks, - Kevin ___ 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] attachbitmap and copy pixels.
Thanks the help everyone. Ok i'm slowly getting my head around this bitdata. If I wanted to mask a bg pic using setmask. Can i then copy the visible area using copypixels? and use this a fixed image (snapshot) ? Seem to be stuck a little here is my code as far:- import flash.display.BitmapData; import flash.geom.Point; import flash.geom.Rectangle; //create blank movieclip, create bd object. put pic into bd object, then put object into movieclip. var picture:BitmapData = BitmapData.loadBitmap(rawbg); _root.createEmptyMovieClip(pictureMc,this.getNextHighestDepth()); pictureMc.attachBitmap(picture,1); /// //create blank mc, attach piecepic to mc. piece_mc = this.createEmptyMovieClip(orig, this.getNextHighestDepth()); piece_mc.attachMovie(piece0,piece0,this.getNextHighestDepth()); // // create bd for peice. draw the piece into the bd object. piece_bd = new BitmapData (this.piece_mc.width, this.piece_mc.height, true); piece_bd.draw (this.piece_mc, this.matrix); //apply mask pictureMc.setMask(_root.piece_mc) //HELP HERE - I dont understand this section, althougj think i'm on the right lines. piece_bd.copyPixels(piece_mc,new Rectangle(xPos,yPos,subPicture.width-borderSize*2,subPicture.height-borderSize*2),new Point(borderSize,borderSize)); //drag the fixed snapshot piece around piece_mc.onRelease = function() { this.startDrag(); } ___ 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] Flash Filters - Progr essive enhancement for those with the 8+ play er?
Is it possible to publish a movie as Flash 6, but use the flash filters to add things like drop shadows for those with the Flash 8 or greater plugin? No. If you publish for Flash Player 6, you can only use Flash Player 6 features. What you could do is publish for 6 8, run a detection script and serve the appropriate content. This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. ___ 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] Flash Filters - Progressive enhancement for those with the 8+ player?
We use a simple trick to perform this : Prepare all your assets to be compiled to Flash 6, you will apply filters only by code, then, in your code you need to create a local var called flash when flash version is not 8, like that (sorry for the ugly code, it's just for the demonstration): if(parseInt(System.capabilities.version.split( )[1].substr(0,1)) 8) { var flash = {}; } then you can know create filters like that without having any compiler error : var myFilter:Object = new flash.filters.BlurFilter(); You need to use the complete classpath when creating the object, in this way you don't have to add an import in your code (the compiler won't check that, and you have defined a local var called flash so it don't warn you for calling a non defined property) Then you can compile in flash 6 version without errors. But for the moment if you run your swf in flash player 8 you can't see the filters, you just have to modify the version directly in the bytecode of the swf, the the swf can run in flash player 6 (because the complete bytecode is targetted to version 6 except the version byte) and your filters is visible in player 8. I'll post you an example at that url : http://book.abe.free.fr/other/filters.swf Hope that could help you. Cheers, Cédric ___ 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] phantom flash class instance
Ok, this is a flash question I've got a class I'm using in an app - it's really simple, just is a 'slideshow' type class; it gets a list of images and cycles through them as a slideshow with an interval between. Now it's being used in a movieclip that is in turn being loaded in a Window component. When a user clicks the window component close button, I've got it unloading the movieclip instance; but the slideshow class still tries to continue cycling through it's images array -- ie it's 'instance' is still going even though the movieclip that birthed it is gone. For example: the slideshow class, upon birth, gets it's 'owner/parent' movieclip upon it's birth. It then creates a new movieclip (myBack) and starts attaching jpgs to the myBack instance. When the main screen movieclip in the Window instance is removed, myBack no longer has a _url because it doesn't exist. I thought I could use the fact that myBack==undefined to clearInterval() and stop the phantom slideshow, but it doesn't stop. So how does one 'unload' a class, or really, a class instance? ___ 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] attachbitmap and copy pixels.
any help on this anyone? thanks Johnny ___ 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] Flash Filters - Progressive enhancement for tho se with the 8+ player?
We use a simple trick to perform this : snip Cédric - nice hack - I stand corrected :) Pete This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. ___ 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] phantom flash class instance
Hi, implement a destroy method in the class, in which you tell it to release all its own reference, next release all reference to the object itself. Make sure there are no hidden references, (delegates, setIntervals, movieclip pointers, globals) etc to the instance, so it can be garbage collected. greetz JC On 10/19/06, grimmwerks [EMAIL PROTECTED] wrote: Ok, this is a flash question I've got a class I'm using in an app - it's really simple, just is a 'slideshow' type class; it gets a list of images and cycles through them as a slideshow with an interval between. Now it's being used in a movieclip that is in turn being loaded in a Window component. When a user clicks the window component close button, I've got it unloading the movieclip instance; but the slideshow class still tries to continue cycling through it's images array -- ie it's 'instance' is still going even though the movieclip that birthed it is gone. For example: the slideshow class, upon birth, gets it's 'owner/parent' movieclip upon it's birth. It then creates a new movieclip (myBack) and starts attaching jpgs to the myBack instance. When the main screen movieclip in the Window instance is removed, myBack no longer has a _url because it doesn't exist. I thought I could use the fact that myBack==undefined to clearInterval() and stop the phantom slideshow, but it doesn't stop. So how does one 'unload' a class, or really, a class instance? ___ 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] ComboBox
There is 2 combobox on the stage, One_cb and two_cb One_cb.addItem({data:1, label:One}); One_cb.addItem({data:2, label:Two}); How can I do to fill two_cb (data and label) with a button ? Thank you for your tips, Laurent ___ 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] phantom flash class instance
You have to remove the interval before the slideshow gets removed. You can add an onUnload method in the slideshow class. class SlideShow extends MovieClip { function SlideShow() { } function onUnload() { // remove interval } } regards, Muzak - Original Message - From: grimmwerks [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 2:03 PM Subject: [Flashcoders] phantom flash class instance Ok, this is a flash question I've got a class I'm using in an app - it's really simple, just is a 'slideshow' type class; it gets a list of images and cycles through them as a slideshow with an interval between. Now it's being used in a movieclip that is in turn being loaded in a Window component. When a user clicks the window component close button, I've got it unloading the movieclip instance; but the slideshow class still tries to continue cycling through it's images array -- ie it's 'instance' is still going even though the movieclip that birthed it is gone. For example: the slideshow class, upon birth, gets it's 'owner/parent' movieclip upon it's birth. It then creates a new movieclip (myBack) and starts attaching jpgs to the myBack instance. When the main screen movieclip in the Window instance is removed, myBack no longer has a _url because it doesn't exist. I thought I could use the fact that myBack==undefined to clearInterval() and stop the phantom slideshow, but it doesn't stop. So how does one 'unload' a class, or really, a class instance? ___ 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] attachbitmap and copy pixels.
My english's not so good as I would like... Would like to help you but, could you be a little more understandable (for a frenchy) ?? - Original Message - From: Johnny Zen [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 2:04 PM Subject: Re: [Flashcoders] attachbitmap and copy pixels. any help on this anyone? thanks Johnny ___ 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] ComboBox
Just put a button called button on your stage... and code: One_cb.addItem({data:1, label:One}); One_cb.addItem({data:2, label:Two}); One_cb.addItem({data:3, label:Hello}); One_cb.addItem({data:4, label:Yes}); One_cb.addItem({data:5, label:It works}); button.onRelease = function():Void { for (var i:Number=0;iOne_cb.length;i++) { var subObject:Object = One_cb.getItemAt(i); var itemObject:Object = new Object(); trace(--); for (var j:String in subObject) { trace(j: +j+--+subObject[j]); itemObject[j] = subObject[j]; } Two_cb.addItem(itemObject); } } May be there is something more simple... David Buff - Original Message - From: Laurent CUCHET [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 2:15 PM Subject: [Flashcoders] ComboBox There is 2 combobox on the stage, One_cb and two_cb One_cb.addItem({data:1, label:One}); One_cb.addItem({data:2, label:Two}); How can I do to fill two_cb (data and label) with a button ? Thank you for your tips, Laurent ___ 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] Boolean question
Hi list... Why does an object's parameter not change if it's instanced as a new Boolean()? w = new Object(); w.zoomed = new Boolean(false); trace (w.zoomed); //false w.zoomed = !(w.zoomed); trace (w.zoomed); //false q = new Object(); q.zoomed = false; trace (q.zoomed); //false q.zoomed = !(q.zoomed); trace (q.zoomed); //true Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Projectors - mProjector vs. Zinc
Regarding mProjector: think it has quite a good support for system windows Is there an easy way to add min / max buttons to the window? By default it seems to come up only with a close button! Scott On 10/17/06, Adrian Ionut Beschea [EMAIL PROTECTED] wrote: I used mProjector while developing an im chat client and I had little problems with it. Comes with loads of samples and support forum is prompt. I for one, think it has quite a good support for system windows and it's all synchonus meaning you don't have to add event listeners for anything. Not even when chooosing folders. Zinc is already as 3.0, though :-) slangeberg [EMAIL PROTECTED] wrote: I know from reading this list that Steven is really into mProjector. I'm looking at acquiring a projector builder for Flash in our company. Our current task is to create executable CD apps / presentations, but it would be nice to have a system to create desktop apps (ala SpringBox), as well. How do people think mProjector stacks up against Zinc? Zinc seems to have better support for system windows, while mProjector seems more attuned to custom flash windows. Guess I'd like both, as we have corporate clients who'll want to see regular system windows containing the content. Sorry if this is off topic. Scott On 10/5/06, Steven Sacks | BLITZ wrote: it would need to be a full screen projector file Why would it need to be a full screen projector file? mProjector's alpha performance on Windows is the best there is. http://www.thespringbox.com/ uses mProjector and has alpha transparency. If you want to be able to move something around the screen, you can move it around the screen by setting the window's x and y position. You don't need to make it a full screen application. If you want multiple things to appear in different places anywhere on the screen, you open up new mProjector windows and communicate to those using mProjector's API. It's all supported and well documented. You don't need to make it a full screen application to achieve those things. :) ___ 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 -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. ___ 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 -- : : ) Scott ___ 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] Boolean question
Correct me if I'm wrong but I believe the Boolean type is still a primitive and should not be instantiated with 'new'. You could perform casting like this: w = new Object(); w.zoomed = Boolean( false ); But I don't know what benefit it would give, as Flash doesn't support typing on the parameters of an Object instance. Scott On 10/19/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Hi list... Why does an object's parameter not change if it's instanced as a new Boolean()? w = new Object(); w.zoomed = new Boolean(false); trace (w.zoomed); //false w.zoomed = !(w.zoomed); trace (w.zoomed); //false q = new Object(); q.zoomed = false; trace (q.zoomed); //false q.zoomed = !(q.zoomed); trace (q.zoomed); //true Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) Scott ___ 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] htmlText and maxscroll
Try using your original handler function even though the text field is now HTML-enabled, because removing the last 'htmlText' character simply pops off a (non-visible) closing tag's (likely /textformat) final angle bracket. If this method destroys HTML formatting on your text, you can always use the following code. function getTextMinusOneCharacter(targetText:String, presumeHTML:Boolean):String { var lastBracketIndex:Number = targetText.lastIndexOf(''); while (lastBracketIndex 0 targetText.charAt(lastBracketIndex - 1) == '') { lastBracketIndex = targetText.lastIndexOf('', lastBracketIndex - 1); } lastBracketIndex--; if (lastBracketIndex 0 presumeHTML !== false) { targetText = targetText.slice(0, lastBracketIndex) + targetText.slice(lastBracketIndex + 1); } else { targetText = targetText.slice(0, targetText.length - 1); } return targetText; } this.textBox.onChanged = function():Void { if (this.maxscroll 1) { this.htmlText = this._parent.getTextMinusOneCharacter(this.htmlText); } }; - Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Cutting Sent: Thursday, October 19, 2006 7:29 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] htmlText and maxscroll Hello, I'm trying to restrict text input into a field so that you can only enter as much as will fit into the field and the rest gets cut off. I was using code like textBox.onChanged = function() { while (this.maxscroll1) { this.text = this.text.substr(0,-1); } } This works fine as long as its just plain text. However I need to use html text so that the user can apply formatting. If I try using textBox.onChanged = function() { while (this.maxscroll1) { this.htmlText = this.htmlText.substr(0,-1); } } then Flash goes into an infinite loop. I did some debugging and it looks like the value of maxscroll isn't the same for htmlText and so removing the last character doesn't reduce maxscroll in the same way, Anyone any cunning solutions or thoughts? I'm using Flash 8. Cheers Joe Joe Cutting Computer exhibits and installations www.joecutting.com 96 Heslington Road, York, YO10 5BL 01904 627428 ___ 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] Flash Filters - Progressive enhancement for those with the 8+ player?
Wow - thanks a lot, seems perfect. Found one of those SWF changer utilities too to help with the conversion. http://www.orison.biz/blogs/chall3ng3r/?p=101 Do you know if there's any problems or caveats of using this method? - Kevin On 19/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We use a simple trick to perform this : Prepare all your assets to be compiled to Flash 6, you will apply filters only by code, then, in your code you need to create a local var called flash when flash version is not 8, like that (sorry for the ugly code, it's just for the demonstration): ... ___ 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] Flashout not working in eclipse 3.2
Hi has anyone else encountered this? It doest seem to register as a plug in, ie in the prefs in Eclipse 3.2 for me. Its in the plug ins folder. 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
Re: [Flashcoders] Flashout not working in eclipse 3.2
That's what it says in the flashOUT page (http://www.potapenko.com/flashout/) Bad news - now Flashout 0.2 works only in eclipse 3.1 and java 5. Matt Muller [EMAIL PROTECTED] wrote: Hi has anyone else encountered this? It doest seem to register as a plug in, ie in the prefs in Eclipse 3.2 for me. Its in the plug ins folder. 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 - All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. ___ 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] LocalConnection and Media Components?
I'm pretty new at this, so I'm not sure how much help I can really be, but I'll give it a shot. One thing I just noticed is that in your code for the button movie you instantiate the LocalConnection but don't call connect(). If what you gave there is all of your code than that's probably the problem. You seem to be including the name of the connection when you call 'send'. I don't think this is right (at least from the way I'm used to using it). Instead, you'd do something like this: var sending_lc:LocalConnection = new LocalConnection(); sending_lc.connect(myConnections); play_button.onRelease = function() { sending_lc.send(methodToExecute, C:/inmylife.mp3, MP3); } Try that and see if it helps. -Andy On 10/18/06, Martin Scott Goldberg [EMAIL PROTECTED] wrote: Hi Andy, I started with a working player, meaning I had a working flash movie that played the local mp3 in the web browser window. So the locality shouldn't be an issue. I then tried extending it with the LocalConnection material. I've been trying to do some things to check out what's being called and what isn't, and it looks like my processing function in the player never gets called. Is it a possibility of an html problem? I'm publishing the player movie, publishing the button movie, and then clipping and pasting the object definition from the button movie html in to the player movie html. The other issue is I don't know if the MediaDisplay component can have its associated file changed midstream? Marty ___ 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] Boolean question
I think it's because q.zoomed = false create a memory space where the boolean value flase is stored, and q.zoomed is a pointer witch point to this memory space. New Boolean(false) create also a memory space and a pointer, but with w.zoomed = new Boolean(false) , w.zoomed point to the pointer of the value and don't point to the value. So you can do !Boolean but not !Pointer(of boolean)... w = new Object(); w.zoomed = new Boolean(false); trace (w.zoomed); //false w.zoomed = !(w.zoomed); trace (w.zoomed); //false test = !(w.zoomed); trace(test); test is a pointer to a bollean value but w.zoomed is a pointer to a pointer of a boolean value... I guess... David Buff - Original Message - From: slangeberg [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 4:32 PM Subject: Re: [Flashcoders] Boolean question Correct me if I'm wrong but I believe the Boolean type is still a primitive and should not be instantiated with 'new'. You could perform casting like this: w = new Object(); w.zoomed = Boolean( false ); But I don't know what benefit it would give, as Flash doesn't support typing on the parameters of an Object instance. Scott On 10/19/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Hi list... Why does an object's parameter not change if it's instanced as a new Boolean()? w = new Object(); w.zoomed = new Boolean(false); trace (w.zoomed); //false w.zoomed = !(w.zoomed); trace (w.zoomed); //false q = new Object(); q.zoomed = false; trace (q.zoomed); //false q.zoomed = !(q.zoomed); trace (q.zoomed); //true Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) Scott ___ 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] nested FLVPlayback and attachMovie
I was having a problem getting a flv to display in a FLVPlayback instance nested in a movie clip that had been created with attachMovie. I could assign the contentPath and confirm that it was OK with a for-in loop, but the video just wasn't displaying. Then I found a workaround, where I have to first attach the holder movie clip, then attach the FLVPlayback to that. It's seems less than elegant but it works. Does anyone know if this is an issue with nested clips and attachMovie in general, or something special about FLVPlayback component? Thanks, Pauline ___ 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] Selection.getFocus()
Lieven Cardoen schrieb: FlashCoders, Selection.getFocus() gives back a String. Is there a way to get the Object? eval() micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Filters - Progressive enhancement for those with the 8+ player?
Hi Kevin, Do you know if there's any problems or caveats of using this method? We haven't see any problems at using this trick in our projects, but we use it only for small occasional swf in our site and only to have a better look, not for big game or critical point I think there's probably some bugs with some functions witch have a different behavior in Flash 6 than in greater version, but no example come to my mind at this time. A lot of people use that hack to test flash 8 functionalities when flash 8 ide wasn't even released. Some googling will give you more information about that (search for blog post dated from that period) Cédric ___ 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 File Upload using .NET
Hi, I was wondering if anyone knew of a source or a way to get file uploads to work under ASP.NET 2.0 through Flash? I have found examples of doing this under PHP and ColdFusion, but nothing that does file uploads without the postback under .NET Thanks, liam m- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] XPath
Does anyone know where I can samples using these (http:// www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ 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] Selection.getFocus()
Exactly. I was amazed too first time I saw it. As micha said, you can do getFocusObject():MovieClip{ eval(Selection.getFocus()); } Any ideas why is working that way? Cheers On 10/19/06, Michael Stuhr [EMAIL PROTECTED] wrote: Lieven Cardoen schrieb: FlashCoders, Selection.getFocus() gives back a String. Is there a way to get the Object? eval() micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Juan Delgado - Zárate http://www.zarate.tv ___ 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: htmlText and maxscroll
Jason, Thanks for this. As you say, if I continue using the .text attribute it will still work but will remove the html formatting which isn't what I want. I tried using your routine which removes the last character or tag from a html text and it doesn't quite do what I need. The main problem is that the maxscroll property for htmlText seems to behave in a different way to normal text and almost always seems to be greater than 1 regardless of how many times you call getTextMinusOneCharacter - this results in the input field removing text which should be kept. Anymore thoughts on this would be welcome. Joe Date: Thu, 19 Oct 2006 08:41:14 -0600 From: Jason Lutes [EMAIL PROTECTED] Subject: RE: [Flashcoders] htmlText and maxscroll To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Try using your original handler function even though the text field is now HTML-enabled, because removing the last 'htmlText' character simply pops off a (non-visible) closing tag's (likely /textformat) final angle bracket. If this method destroys HTML formatting on your text, you can always use the following code. function getTextMinusOneCharacter(targetText:String, presumeHTML:Boolean):String { var lastBracketIndex:Number = targetText.lastIndexOf(''); while (lastBracketIndex 0 targetText.charAt(lastBracketIndex - 1) == '') { lastBracketIndex = targetText.lastIndexOf('', lastBracketIndex - 1); } lastBracketIndex--; if (lastBracketIndex 0 presumeHTML !== false) { targetText = targetText.slice(0, lastBracketIndex) + targetText.slice(lastBracketIndex + 1); } else { targetText = targetText.slice(0, targetText.length - 1); } return targetText; } this.textBox.onChanged = function():Void { if (this.maxscroll 1) { this.htmlText = this._parent.getTextMinusOneCharacter(this.htmlText); } }; Original post I'm trying to restrict text input into a field so that you can only enter as much as will fit into the field and the rest gets cut off. I was using code like textBox.onChanged = function() { while (this.maxscroll1) { this.text = this.text.substr(0,-1); } } This works fine as long as its just plain text. However I need to use html text so that the user can apply formatting. If I try using textBox.onChanged = function() { while (this.maxscroll1) { this.htmlText = this.htmlText.substr(0,-1); } } then Flash goes into an infinite loop. I did some debugging and it looks like the value of maxscroll isn't the same for htmlText and so removing the last character doesn't reduce maxscroll in the same way, Joe Cutting Computer exhibits and installations www.joecutting.com 96 Heslington Road, York, YO10 5BL 01904 627428 ___ 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] Event Listener and Levvels
I create a listener at level0 How can I do to apply the action with another level component ? var comb_fill:Object = new Object(); comb_fill.change = function(evt2:Object) { //action }; my_cb.addEventListener(change, comb_fill); _level40.mycb1.addEventListener(change, comb_fill);// doesnt work Thank you very much ___ 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] color
Hello, I draw a rectangle with AS2 and I would like to change color of the fill. Not in one time but in several time as a motion. Have you got an Idea to ? Thank you very much var mcc:MovieClip = this.createEmptyMovieClip(mcc, 5000); MovieClip.prototype.drawRectangle = function(w, h) { this.clear(); this.lineStyle(1, 0xFF, 100, true, none, square, miter, 5001); this.beginFill(0xCC, 100); this.lineTo(w, 0); this.lineTo(w, h); this.lineTo(0, h); this.lineTo(0, 0); this.endFill(); }; mcc.drawRectangle(1550, 400); _root.mcc._x = -500; _root.mcc._y = 0; ___ 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] Flash File Upload using .NET
Yes, I use the FileReference class and call an aspx page, attaching variables to the URL string. Works great. There is lots of information on using the Filereference class in the help docs. However, if you want to know how to write the script (C#, VBScript, whatever) to receive and process the file, I have a C# aspx script, but might get in trouble for sending it to you - I would try a .NET forum for that. On the Flash side, this is part of my media upload class that does the magic: private function browse(mediaTypes_arr:Array):Void{ fileRef = new FileReference(); fileRef.addListener(listener_obj); fileRef.browse(mediaTypes_arr); listener_obj.type = type_str; listener_obj.projId = projId; listener_obj.onSelect = function(file:FileReference):Void { var uploadString:String = /Upload.aspx?ProjId=+this.projId +type=+this.type; if(!file.upload(uploadString)) { trace(Upload dialog failed to open.); } } listener_obj.onCancel = function(){ ..etc. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Liam Mincy Sent: Thursday, October 19, 2006 11:12 AM To: Flashcoders mailing list Subject: [Flashcoders] Flash File Upload using .NET Hi, I was wondering if anyone knew of a source or a way to get file uploads to work under ASP.NET 2.0 through Flash? I have found examples of doing this under PHP and ColdFusion, but nothing that does file uploads without the postback under .NET Thanks, liam m- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] XPath
It's not the samples but this may be of use to you: http://download.macromedia.com/pub/documentation/en/flash/fl8/XpathAPI.pdf http://www.sephiroth.it/file_detail.php?id=130# --Damian Mindshare Media, Inc. 622A Alto St. Santa Fe, NM 87501-2519 http://mindsharemedia.net ___ 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] XPath
Here is an old one: http://flash.terra.ee/flash-books/o'reilly%20-%20actionscript.cookbook.2 003/0596004907_actscptckbk-chp-19-sect-15.html Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Chip Moeser Sent: Thursday, October 19, 2006 11:10 AM To: Flashcoders mailing list Subject: [Flashcoders] XPath Does anyone know where I can samples using these (http:// www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ 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] XPath
there you go: www.w3schools.com cheers, thomas Chip Moeser wrote: Does anyone know where I can samples using these (http://www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ 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 -- Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.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] Event Listener and Levvels
You're loading components into levels (_level40 in your example) ? Hmm, sounds a little troublesome in the first place IMO. level42 was also an 80s Brit pop group by the way so steer clear of that one. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Laurent CUCHET Sent: Thursday, October 19, 2006 11:30 AM To: Flashcoders mailing list Subject: [Flashcoders] Event Listener and Levvels I create a listener at level0 How can I do to apply the action with another level component ? var comb_fill:Object = new Object(); comb_fill.change = function(evt2:Object) { //action }; my_cb.addEventListener(change, comb_fill); _level40.mycb1.addEventListener(change, comb_fill);// doesnt work Thank you very much ___ 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] Event Listener and Levvels
You have the answer in your question ! ;) I create a listener at level0 If you know the level of your listener, then you should use it to reference it in your function calls. But all that depends on how your projects is built. Is your code on _level0? is it loaded in another swf ? Etc ... So to return to the question, You should try this : _level40.my_cb1.addEventListener(change,_level0.comb_fill); (or use this.comb_fill instead of _level0.comb_fill) So you are sure to send to right reference of your listener to the other combo_box in the right scope ... Haven't tried it but I believe this should work ! Bonne chance ! Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurent CUCHET Sent: 19 octobre 2006 11:30 To: Flashcoders mailing list Subject: [Flashcoders] Event Listener and Levvels I create a listener at level0 How can I do to apply the action with another level component ? var comb_fill:Object = new Object(); comb_fill.change = function(evt2:Object) { //action }; my_cb.addEventListener(change, comb_fill); _level40.mycb1.addEventListener(change, comb_fill);// doesnt work Thank you very much ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.6/486 - Release Date: 2006-10-19 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.6/486 - Release Date: 2006-10-19 ___ 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] Flash File Upload using .NET
Liam, I found this code after searching for hours on the net. I'm not sure of its original source, but this works for me. It should place the file in the root (or virtual directory if using virtual directories under a root) string saveToFolder = string.Empty; HttpFileCollection uploadedFiles = Request.Files; string Path = Server.MapPath(saveToFolder); for (int i = 0; i uploadedFiles.Count; i++) { HttpPostedFile F = uploadedFiles[i]; if (uploadedFiles[i] != null F.ContentLength 0) { string newName = F.FileName.Substring(F.FileName.LastIndexOf(\\) + 1); F.SaveAs(Path + / + newName); } } If you are going to be uploading large files, the web.config file should be changed to allow this. The size and timeout properties are up to the individual to decide. //httpRuntime executionTimeout=600 maxRequestLength=10/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, October 19, 2006 11:49 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash File Upload using .NET Yes, I use the FileReference class and call an aspx page, attaching variables to the URL string. Works great. There is lots of information on using the Filereference class in the help docs. However, if you want to know how to write the script (C#, VBScript, whatever) to receive and process the file, I have a C# aspx script, but might get in trouble for sending it to you - I would try a .NET forum for that. On the Flash side, this is part of my media upload class that does the magic: private function browse(mediaTypes_arr:Array):Void{ fileRef = new FileReference(); fileRef.addListener(listener_obj); fileRef.browse(mediaTypes_arr); listener_obj.type = type_str; listener_obj.projId = projId; listener_obj.onSelect = function(file:FileReference):Void { var uploadString:String = /Upload.aspx?ProjId=+this.projId +type=+this.type; if(!file.upload(uploadString)) { trace(Upload dialog failed to open.); } } listener_obj.onCancel = function(){ ..etc. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Liam Mincy Sent: Thursday, October 19, 2006 11:12 AM To: Flashcoders mailing list Subject: [Flashcoders] Flash File Upload using .NET Hi, I was wondering if anyone knew of a source or a way to get file uploads to work under ASP.NET 2.0 through Flash? I have found examples of doing this under PHP and ColdFusion, but nothing that does file uploads without the postback under .NET Thanks, liam m- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] XPath
Can't find the links i've looked at, but here's the code I'm currently using. This example probably shows most of the xml data-access capabilities: //in this case, we're only pulling the title of a video, //if a section has any videos! import com.xfactorstudio.xml.xpath.*; . . . var path:String = /content/section/[EMAIL PROTECTED]' + id + ']/video; var videos:Array = XPath.selectNodes( xmlDoc, path ); for ( var i:Number = 0; ivideos.length; i++ ) { var video:XML = new XML( videos[i] ); path = XPath.selectSingleNode( video, video/source ).firstChild.nodeValue; var title:String = XPath.selectSingleNode( video, video/title ).firstChild.nodeValue; } example xml: ?xml version=1.0 encoding=utf-8 ? content section id=1.0 title ![CDATA[...text here...]] /title /section section id=1.1 titleHigher Fatality Rates and Costs/title bkgd_imgassets/pics/to_load/safety_concerns_tab1.jpg/bkgd_img text/text video title/title /video /section . . . /content On 10/19/06, Chip Moeser [EMAIL PROTECTED] wrote: Does anyone know where I can samples using these (http:// www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ 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 -- : : ) Scott ___ 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] Webservices with Zinc and a certificate
Hi all, Basically, I need do webservices call through Flash with a certificate in a Zinc-powered kiosk app. I know this works in a browser - with SSL the browser does all the hard work. But I'm not sure if it's possible with a projector. Zinc would have to provide some means of handling an https handshake and I've not been able to find any indication that it can. Anyone have any experience with this kind of thing? Thanks, Jim Kremens ___ 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] Form app questions, frustrations
I have a mx2004Pro form application I'm working on and the following bizarre behavior is happening: - switch back and forth between screens, working on this and that, and over time the visible property for various forms revert to true at run-time although their property value in the design environment is still set correctly to false. That is, when my app starts, randomly some forms start defaulting to visible. I've taken ALL code out of the project to verify this is not something with my code. It's not. Is the form application support in MX2004 just that buggy? If so, wtf? - also, why does ONLY absolute pathing work for setting values/properties on forms in a form application? In the code layer for my main form, the top level form, I have code that is attached to a menu that has the requisite setVisible(true/false) code to show and hide various screens(forms) based on menu selections by the user. But, I've verified that ONLY absolute pathing works e.g. _root.frmMain.frmDesktop.setVisible(false); //frmMain is the top level form with a child of frmDesktop But, Since the code exists in a code layer for frmMain, why doesn't this work: This.frmDesktop or even, this._parent.frmDesktop when referenced from within a contained component's function handler? Thx!! Chris ___ 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: Flashcoders Digest, Vol 21, Issue 51
Yes, you can copy only the visible pixels of a bitmap. To do this, you must pass the optional AlphaBitmap parameter for copyPixels: public copyPixels(sourceBitmap:BitmapData, sourceRect:Rectangle, destPoint:Point, [alphaBitmap:BitmapData], [alphaPoint:Point], [mergeAlpha:Boolean]) : Void piece_bd.copyPixels(piece_mc,new Rectangle(xPos,yPos,subPicture.width-borderSize*2,subPicture.height- borderSize*2),new Point(borderSize,borderSize), ALPHA BITMAP); I'm not sure what's going on in your code, so I can't say what should be the ALPHA BITMAP, piece_mc? If you do that, the copied parts of piece_mc would be basically self- masked. On Oct 19, 2006, at 8:01 AM, flashcoders- [EMAIL PROTECTED] wrote: Thanks the help everyone. Ok i'm slowly getting my head around this bitdata. If I wanted to mask a bg pic using setmask. Can i then copy the visible area using copypixels? and use this a fixed image (snapshot) ? Seem to be stuck a little here is my code as far:- import flash.display.BitmapData; import flash.geom.Point; import flash.geom.Rectangle; //create blank movieclip, create bd object. put pic into bd object, then put object into movieclip. var picture:BitmapData = BitmapData.loadBitmap(rawbg); _root.createEmptyMovieClip(pictureMc,this.getNextHighestDepth()); pictureMc.attachBitmap(picture,1); /// //create blank mc, attach piecepic to mc. piece_mc = this.createEmptyMovieClip(orig, this.getNextHighestDepth()); piece_mc.attachMovie(piece0,piece0,this.getNextHighestDepth()); // // create bd for peice. draw the piece into the bd object. piece_bd = new BitmapData (this.piece_mc.width, this.piece_mc.height, true); piece_bd.draw (this.piece_mc, this.matrix); //apply mask pictureMc.setMask(_root.piece_mc) //HELP HERE - I dont understand this section, althougj think i'm on the right lines. piece_bd.copyPixels(piece_mc,new Rectangle(xPos,yPos,subPicture.width-borderSize*2,subPicture.height- borderSize*2),new Point(borderSize,borderSize)); //drag the fixed snapshot piece around piece_mc.onRelease = function() { this.startDrag(); } ___ 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] Event Listener and Levvels
Lol, Got a record from them ... Message to Love if I remember right ;) a gift ... So don't get any funny ideas ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 19 octobre 2006 11:58 To: Flashcoders mailing list Subject: RE: [Flashcoders] Event Listener and Levvels You're loading components into levels (_level40 in your example) ? Hmm, sounds a little troublesome in the first place IMO. level42 was also an 80s Brit pop group by the way so steer clear of that one. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Laurent CUCHET Sent: Thursday, October 19, 2006 11:30 AM To: Flashcoders mailing list Subject: [Flashcoders] Event Listener and Levvels I create a listener at level0 How can I do to apply the action with another level component ? var comb_fill:Object = new Object(); comb_fill.change = function(evt2:Object) { //action }; my_cb.addEventListener(change, comb_fill); _level40.mycb1.addEventListener(change, comb_fill);// doesnt work Thank you very much ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.6/486 - Release Date: 2006-10-19 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.6/486 - Release Date: 2006-10-19 ___ 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] LocalConnection and Media Components?
argh, error in the last piece of code In the sending swf: var sending_lc:LocalConnection = new LocalConnection(); sending_lc.send(myConnections, setMP3, inmylife.mp3, MP3); regards, Muzak ___ 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 3.0 - Loader.load() a .swf and than control it
Oh wow that would be nice, does anybody know of this class? I cant seem to find anything but, people saying you have no control of a AS 2 movie. -Original Message- From: [EMAIL PROTECTED] on behalf of David Buff Sent: Thu 10/19/2006 2:42 AM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it I'm a little confused also about loading swf a control it. I didn't succeeded. But I've readed somewhere that you can not import swf compiled in as2 in a as3 loader, because the classes witch define the movieclip is different. But I remember there is another class especially for as2 movieclip... sorry, my licence expired, and I didn't recept the Flex 2.0 I by... Speak again about that when I get my new licence David Buff - Original Message - From: Dave Geurts [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 18, 2006 10:31 PM Subject: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it I am a little confused with loading media into the loader object. I can load a swf in fine but than how do you control that swf's timline? I think that the swf gets loaded into a loader object, that has a display container? Im a little lost with the loader object concept. I assumend it would be loader.getChildAt(0) i saw loader.content in there but not sure what that does. --- var introLoader:Loader = new Loader(); var request:URLRequest = new URLRequest(intro.swf); introLoader.load(request); trace(introLoader.content); --- Intro loads fine and starts playing Trace returns null Another question is can you load in a .swf that was compiled in 2.0 even if it has no AS in it and control its timeline? thanks for your time! -Dave ___ 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] Selection.getFocus()
Hi I did something like this before... You can do a recursive method parsing the path like this: function extractObject(aPath:String):Object { return extractObjectRecurs(this, aPath.split(.), 0); } // end extractRunTime function extractObjectRecurs(aRankObject:Object,aPathArray:Array,aIndex:Number):Object { if (aIndexaPathArray.length-1) { return extractObjectRecurs(aRankObject[aPathArray[aIndex]],aPathArray,aIndex+1); } else { return aRankObject[aPathArray[aIndex]]; } } // end extractRecursRunTime onEnterFrame = function() { trace(--- NEW FRAME ); var path:String = Selection.getFocus(); trace(PATH: +path); var object:Object = extractObject(path); trace(TARGET POSITION: +object._x); } Put your object inside your object inside your object inside ... and on the stage... run the fla and select it. David Buff - Original Message - From: Lieven Cardoen [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 4:53 PM Subject: [Flashcoders] Selection.getFocus() FlashCoders, Selection.getFocus() gives back a String. Is there a way to get the Object? Thx, Lieven Cardoen Lieven Cardoen Application developer indiegroup interactive digital experience engelse wandeling 2 k18 b8500 kortrijk Indie group zal op maandag 23 oktober uitzonderlijk gesloten zijn. Indie group will be closed on Monday, October 23th. ___ 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] Flash File Upload using .NET
Thanks a lot guys!!! I had also searched myself and found something on CodeProject that almost fixed the solution, but it did the upload on PostBack which made it somewhat limited in usefulness for working with a live Flash app. Thanks, liam m- --- Brake, Stephen [EMAIL PROTECTED] wrote: Liam, I found this code after searching for hours on the net. I'm not sure of its original source, but this works for me. It should place the file in the root (or virtual directory if using virtual directories under a root) string saveToFolder = string.Empty; HttpFileCollection uploadedFiles = Request.Files; string Path = Server.MapPath(saveToFolder); for (int i = 0; i uploadedFiles.Count; i++) { HttpPostedFile F = uploadedFiles[i]; if (uploadedFiles[i] != null F.ContentLength 0) { string newName = F.FileName.Substring(F.FileName.LastIndexOf(\\) + 1); F.SaveAs(Path + / + newName); } } If you are going to be uploading large files, the web.config file should be changed to allow this. The size and timeout properties are up to the individual to decide. //httpRuntime executionTimeout=600 maxRequestLength=10/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, October 19, 2006 11:49 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash File Upload using .NET Yes, I use the FileReference class and call an aspx page, attaching variables to the URL string. Works great. There is lots of information on using the Filereference class in the help docs. However, if you want to know how to write the script (C#, VBScript, whatever) to receive and process the file, I have a C# aspx script, but might get in trouble for sending it to you - I would try a .NET forum for that. On the Flash side, this is part of my media upload class that does the magic: private function browse(mediaTypes_arr:Array):Void{ fileRef = new FileReference(); fileRef.addListener(listener_obj); fileRef.browse(mediaTypes_arr); listener_obj.type = type_str; listener_obj.projId = projId; listener_obj.onSelect = function(file:FileReference):Void { var uploadString:String = /Upload.aspx?ProjId=+this.projId +type=+this.type; if(!file.upload(uploadString)) { trace(Upload dialog failed to open.); } } listener_obj.onCancel = function(){ ..etc. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Liam Mincy Sent: Thursday, October 19, 2006 11:12 AM To: Flashcoders mailing list Subject: [Flashcoders] Flash File Upload using .NET Hi, I was wondering if anyone knew of a source or a way to get file uploads to work under ASP.NET 2.0 through Flash? I have found examples of doing this under PHP and ColdFusion, but nothing that does file uploads without the postback under .NET Thanks, liam m- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] Selection.getFocus()
Hi again... eval works but it's a old fonction... I'm not sure it works good in AS 2.0 David Buff - Original Message - From: Michael Stuhr [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 5:08 PM Subject: Re: [Flashcoders] Selection.getFocus() Lieven Cardoen schrieb: FlashCoders, Selection.getFocus() gives back a String. Is there a way to get the Object? eval() micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@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] using parseInt() and Math.floor() doesn't return the same value
I'm wandering if we should continue to use Math.floor() and Math.ceil() since they are unreliable. Code: var a = 2.999; trace(parseInt(a.toString())); trace(Math.floor(a)); trace(a); output: 3 2 3 Would using methods using parseInt to simulate Math.floor() and Math.ceil() be safer? Example public static function floor(_nValue:Number):Number { return parseInt(_nValue.toString()); } public static function ceil(_nValue:Number):Number { return parseInt(_nValue.toString()) + 1; } Martin T. lvl ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] using parseInt() and Math.floor() doesn't return the same value
Uh, isn't Math.floor supposed to round down? [and Math.ceil() rounds up?] If so, it's working as advertised here. Scott On 10/19/06, Martin Tremblay [EMAIL PROTECTED] wrote: I'm wandering if we should continue to use Math.floor() and Math.ceil() since they are unreliable. Code: var a = 2.999; trace(parseInt(a.toString())); trace(Math.floor(a)); trace(a); output: 3 2 3 Would using methods using parseInt to simulate Math.floor() and Math.ceil() be safer? Example public static function floor(_nValue:Number):Number { return parseInt(_nValue.toString()); } public static function ceil(_nValue:Number):Number { return parseInt(_nValue.toString()) + 1; } Martin T. lvl ___ 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 -- : : ) Scott ___ 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] Selection.getFocus()
eval() is not deprecated. It's usage has changed in different versions. http://livedocs.macromedia.com/flash/8/main/1726.html regards, Muzak - Original Message - From: David Buff [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 7:10 PM Subject: Re: [Flashcoders] Selection.getFocus() Hi again... eval works but it's a old fonction... I'm not sure it works good in AS 2.0 David Buff ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] using parseInt() and Math.floor() doesn't returnthe same value
Today's user headspace error brought to you by the number n. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] using parseInt() and Math.floor() doesn't return thesame value
I think you're looking for Math.round() Math.floor() always rounds down Math.ceil() always rounds up regards, Muzak - Original Message - From: Martin Tremblay [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 7:27 PM Subject: [Flashcoders] using parseInt() and Math.floor() doesn't return thesame value I'm wandering if we should continue to use Math.floor() and Math.ceil() since they are unreliable. Code: var a = 2.999; trace(parseInt(a.toString())); trace(Math.floor(a)); trace(a); output: 3 2 3 ___ 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] Q: Javascript Injection Examples
Hi Trying a new technique that allows javascript to be 'injected'from within a swf. Has anyone seen any interesting examples of this technique? Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca into the html page from within a swf. ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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: simulating mouse clicks
I'll ask the question a different way: what are all the ways that a mouse click event can be handled in a flash movie? (other than defining an onPress/onRelease callback) -- Vishal On 10/17/06, Vishal Kapur [EMAIL PROTECTED] wrote: I'm trying to solve the problem of generically simulating mouse clicks in a running flash movie. So, I'd like to be able to write a function that when invoked with the targetPath of the flash object to be clicked, would be able to simulate a mouse click on that object as if a user had actually clicked it. I should also mention that the technique needs to work with arbitrary 3rd-party flash movies (so I don't have control to change the code). The simplest thing to try is just to try to invoke the onPress/onRelease callbacks on the target object. This works sometimes. However, in some cases it doesn't quite simulate a real mouse click. In particular, I seem to have trouble simulating clicks on components (in a List component, for example, the selected row will get highlighted but the handler that does further processing and refreshes the UI doesn't seem to get called). Currently I am (sort of) working around this by getting the coordinates of the center of the target object and using the Win32 api's to move the mouse pointer and simulate the windows mouse down/up events. As you can imagine this is not truly generic (doesn't handle scrollbars, movielclips obscured by other objects, etc). Any thoughts on this? Anyone with previous experience with this or ideas on a better way to generically simulate a click event in flash? 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] XPath
there you go: www.w3schools.com W3schools Xpath specs are not the same as Xfactorstudio's implementation - Xfactorstudios is still only a partial implementation, and I think the poster also wanted Actionscript examples to get what they want from the classes. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Thomas Rühl -akitogo- Sent: Thursday, October 19, 2006 11:59 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] XPath there you go: www.w3schools.com cheers, thomas Chip Moeser wrote: Does anyone know where I can samples using these (http://www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ 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 -- Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.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] Webservices with Zinc and a certificate
Depending on what you need to do and what expertize you have on hand, I believe there is also a customizable, kiosk oriented version of Firefox that might be the answer. Jim Kremens wrote: Hi all, Basically, I need do webservices call through Flash with a certificate in a Zinc-powered kiosk app. I know this works in a browser - with SSL the browser does all the hard work. But I'm not sure if it's possible with a projector. Zinc would have to provide some means of handling an https handshake and I've not been able to find any indication that it can. Anyone have any experience with this kind of thing? Thanks, Jim Kremens ___ 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 -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net ___ 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] Selection.getFocus()
eval() is not deprecated. You're right. It's more than deprecated. It's been removed altogether in the next version of Flash. http://livedocs.macromedia.com/flex/2/langref/migration.html Global Functions eval() Removed No screen name said on Jul 22, 2006 at 7:59 AM : Why was eval() removed? djtechwriter said on Jul 25, 2006 at 5:31 PM : eval() was removed because the implementation of it in AS2 was limited and you can use other more efficient operations for obtaining the same result. In the AS2 entry for eval(): http://livedocs.macromedia.com/flash/8/main/1726.html You'll notice the description suggests some alternatives. ___ 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] Webservices with Zinc and a certificate
Interesting thanks for the reply! I'll look into it. Still, this thing is largely built (we're taking it over from another developer). It would be a drag to have to rebuild it. So if anyone has any experience doing this in Zinc, please chime in! Thanks, Jim Kremens On 10/19/06, Robert r. Sanders [EMAIL PROTECTED] wrote: Depending on what you need to do and what expertize you have on hand, I believe there is also a customizable, kiosk oriented version of Firefox that might be the answer. Jim Kremens wrote: Hi all, Basically, I need do webservices call through Flash with a certificate in a Zinc-powered kiosk app. I know this works in a browser - with SSL the browser does all the hard work. But I'm not sure if it's possible with a projector. Zinc would have to provide some means of handling an https handshake and I've not been able to find any indication that it can. Anyone have any experience with this kind of thing? Thanks, Jim Kremens ___ 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 -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net ___ 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 -- Jim Kremens ___ 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] fileUpload - suprise
i must be dreaming: the fileSelect-Window is now (9,0,18,60) resizable? wooohhooo! thanks mother! micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Q: Javascript Injection Examples
i saw some interesting, but simple examples at flash forward. i wrote a function for using javascript's regex for email validation: var s:String = ; s += function checkEmail_flash(email){; s += var s = /^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;; s += var r = new RegExp(s);; s += return r.test(email);; s += }; ExternalInterface.call(eval, s); var emailCheck:Boolean = Boolean(ExternalInterface.call(checkEmail_flash, [EMAIL PROTECTED])); notice all the escaping in the regex string. you could conceivably write any javascript you wanted. just make sure you escape all the characters correctly. On 10/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Trying a new technique that allows javascript to be 'injected'from within a swf. Has anyone seen any interesting examples of this technique? Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca into the html page from within a swf. ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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] Swf to image java library?
Does anyone know of or how to implement a java library that can create an image from a frame in your flash movie (for thumbnails and such) http://www.bytescout.com/swftoimage.html 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] Exporting from flash to vector format
Howdy list, I'm looking for a way to export vector data from flash to some sort of a format that Illustrator can use-svg, ai, eps, etc. Does anyone know how to do this? Thanks! -eric ++ ___ 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] incrementing a target?
Hello, I'm having problems figuring out how to grab an array value and use that when targeting. This is my fucntion below. What I am wanting to do is take the [i]value and be able to use that when trying to write to my textfields function ExpandData(turbo){ var turboItem = turbo.firstChild.childNodes; for (var i = 0; i turboItem.length; i++){ but = eval(but+i); var turbo = turboItem[i]; _root.mainMC.auto.subMC.txtField+i.text = turbo.attributes.name; } } /// Thanks, Bill ___ 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] Problem loading files in Server-side code when using compiled (.ase) files
I'm having a really weird problem with my server-side code when trying to use compiled versions of the files. When using the source files (.asc) everything works correctly, but when using the compiled versions of the files things get weird. The short version is this: If I try loading a file more than once (using load()) the class defined in that file suddenly becomes inaccessable. The files protect against running the code in them more than once on their own, so there shouldn't be any conflicts there. And now the long version with code: My test has 3 files: main.asc premiere/TestBaseClass.asc premiere/TestChildClass.asc The source for the working version of the files are below. TestBaseClass is a simple base class with a single 'init' function used by the constructor. TestChildClass is a simple class that extends TestBaseClass with its own version of init. The child class does a load(premiere/TestBaseClass.asc) at the top. If that's the only place the file is loaded then it works fine. However, if I load the base class in main.asc as well then I get the following error when initializing the application in FMS: premiere\TestBaseClass.asc: line 6: this.init has no properties If I then remove the load() from the child class and leave it in main.asc it starts working again. Now, for a single child class this works fine. However, our code has a lot of cases where a class is extended by many other classes. Right now each of these classes do a load() of the base class at the top. Up until now we've been running the code interpreted so it's been working fine, but now that I'm trying to compile the code I'm hitting the multiple load problem. Is there any easy way to fix this problem other than changing everything in a way that prevents any file from being loaded more than once? Has anyone else seen this problem? -Andy ===main.asc=== //load(premiere/TestBaseClass.asc); load(premiere/TestChildClass.asc); // application stuff down here that doesn't matter as it's never reached ===TestBaseClass.asc=== try { var dummy = application.TestBaseClassLoaded(); } catch ( e ) { trace(::: Loading TestBaseClass Class :::); function TestBaseClass() { this.init.apply(this, arguments); } TestBaseClass.prototype.init = function() { trace(TestBaseClass.init()); } // Used to prevent this class from being loaded twice: function TestBaseClassLoaded() { return true; }; application.TestBaseClassLoaded = TestBaseClassLoaded; trace(::: LOADING ::: TestBaseClass Class loaded successfully. :::); } ===TestChildClass.asc=== try { var dummy = application.TestChildClassLoaded(); } catch ( e ) { trace(::: Loading TestChildClass Class :::); load(premiere/TestBaseClass.asc); function TestChildClass() { this.init.apply(this, arguments); } TestChildClass.prototype = new TestBaseClass(); TestChildClass.prototype.constructor = TestChildClass; TestChildClass.superclass = TestBaseClass.prototype; TestChildClass.prototype.init = function() { TestChildClass.superclass.init.apply(this, arguments); trace(TestChildClass.init()); } // Used to prevent this class from being loaded twice: function TestChildClassLoaded() { return true; }; application.TestChildClassLoaded = TestChildClassLoaded; trace(::: LOADING ::: TestChildClass Class loaded successfully. :::); } ___ 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] Exporting from flash to vector format
Copy and paste seems to work if you are using both Flash Illustrator at home. If you have to share with others, Flash will export to a sensible medium - ai / eps are both available in the Export Image dialogues, but watch out, I think it exports from the clip you are editing rather than the main timeline. Eric Lee wrote: Howdy list, I'm looking for a way to export vector data from flash to some sort of a format that Illustrator can use-svg, ai, eps, etc. Does anyone know how to do this? Thanks! -eric ++ ___ 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] Swf to image java library?
I could probably figure out where to start, at least on windows (where I'd probably use SWT's ActiveX hosting ability to load the Flash Player), I don't know about on other platforms. Rick Schmitty wrote: Does anyone know of or how to implement a java library that can create an image from a frame in your flash movie (for thumbnails and such) http://www.bytescout.com/swftoimage.html 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 -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net ___ 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] incrementing a target?
Erm, I think you might want to try _root.mainMC.auto.subMC[textField + i].text Not sure. Bill Pelon wrote: Hello, I'm having problems figuring out how to grab an array value and use that when targeting. This is my fucntion below. What I am wanting to do is take the [i]value and be able to use that when trying to write to my textfields function ExpandData(turbo){ var turboItem = turbo.firstChild.childNodes; for (var i = 0; i turboItem.length; i++){ but = eval(but+i); var turbo = turboItem[i]; _root.mainMC.auto.subMC.txtField+i.text = turbo.attributes.name; } } /// Thanks, Bill ___ 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] Swf to image java library?
My guess is that would be pretty difficult to do. Given that the the swftoimage library you linked to requires that the player be installed, my guess is that it loads the player's ActiveX control and uses that to extract the image information. I don't know of any way to load an ActiveX control in Java so I'm not sure how you'd go about implementing this. You could create a DLL in C++ or C# (I think you can make C# DLLs) and load that in Java and then call that to do it, but that would get a bit tricky. -Andy On 10/19/06, Rick Schmitty [EMAIL PROTECTED] wrote: Does anyone know of or how to implement a java library that can create an image from a frame in your flash movie (for thumbnails and such) http://www.bytescout.com/swftoimage.html 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
Re: [Flashcoders] XPath
Hi, yeah I know, however w3schools still show the direction to go and give a sense of how to use xpath generally. cheers, thomas. Merrill, Jason wrote: there you go: www.w3schools.com W3schools Xpath specs are not the same as Xfactorstudio's implementation - Xfactorstudios is still only a partial implementation, and I think the poster also wanted Actionscript examples to get what they want from the classes. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Thomas Rühl -akitogo- Sent: Thursday, October 19, 2006 11:59 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] XPath there you go: www.w3schools.com cheers, thomas Chip Moeser wrote: Does anyone know where I can samples using these (http://www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ 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 -- Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.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 -- Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.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] incrementing a target?
Seems to jumble me up a bit, I get this error. Expected a field name after '.' operator. _root.mainMC.auto.subMC.[textField+i].text = turbo.attributes.name; thanks though... - Original Message - From: Glen Pike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 3:16 PM Subject: Re: [Flashcoders] incrementing a target? Erm, I think you might want to try _root.mainMC.auto.subMC[textField + i].text Not sure. Bill Pelon wrote: Hello, I'm having problems figuring out how to grab an array value and use that when targeting. This is my fucntion below. What I am wanting to do is take the [i]value and be able to use that when trying to write to my textfields function ExpandData(turbo){ var turboItem = turbo.firstChild.childNodes; for (var i = 0; i turboItem.length; i++){ but = eval(but+i); var turbo = turboItem[i]; _root.mainMC.auto.subMC.txtField+i.text = turbo.attributes.name; } } /// Thanks, Bill ___ 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] incrementing a target?
Hi, There maybe a typo in your code? it should say subMC[textField + i] There should be no (dot) . before the (square bracket) [ Basically you treat the movieclip subMC like an array. It contains some text fields textField0, textField1, etc. so you can index the array with to get the contents of it. You can do the same with your other bit of code rather than using eval: //instead of but = eval(but+i); //Try this - not sure if you need to use the this operator, but it makes things clearer. but = this[but + i] Bill Pelon wrote: Seems to jumble me up a bit, I get this error. Expected a field name after '.' operator. _root.mainMC.auto.subMC.[textField+i].text = turbo.attributes.name; thanks though... - Original Message - From: Glen Pike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 3:16 PM Subject: Re: [Flashcoders] incrementing a target? Erm, I think you might want to try _root.mainMC.auto.subMC[textField + i].text Not sure. Bill Pelon wrote: Hello, I'm having problems figuring out how to grab an array value and use that when targeting. This is my fucntion below. What I am wanting to do is take the [i]value and be able to use that when trying to write to my textfields function ExpandData(turbo){ var turboItem = turbo.firstChild.childNodes; for (var i = 0; i turboItem.length; i++){ but = eval(but+i); var turbo = turboItem[i]; _root.mainMC.auto.subMC.txtField+i.text = turbo.attributes.name; } } /// Thanks, Bill ___ 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] incrementing a target?
Get rid of the extra period _root.mainMC.auto.subMC.[textField+i].text = ^ ^ _root.mainMC.auto.subMC[textField+i].text = -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Bill Pelon Sent: Thursday, October 19, 2006 5:33 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] incrementing a target? Seems to jumble me up a bit, I get this error. Expected a field name after '.' operator. _root.mainMC.auto.subMC.[textField+i].text = turbo.attributes.name; thanks though... - Original Message - From: Glen Pike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 3:16 PM Subject: Re: [Flashcoders] incrementing a target? Erm, I think you might want to try _root.mainMC.auto.subMC[textField + i].text Not sure. Bill Pelon wrote: Hello, I'm having problems figuring out how to grab an array value and use that when targeting. This is my fucntion below. What I am wanting to do is take the [i]value and be able to use that when trying to write to my textfields / /// function ExpandData(turbo){ var turboItem = turbo.firstChild.childNodes; for (var i = 0; i turboItem.length; i++){ but = eval(but+i); var turbo = turboItem[i]; _root.mainMC.auto.subMC.txtField+i.text = turbo.attributes.name; } } / // Thanks, Bill ___ 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] incrementing a target?
Yes... _root.mainMC.auto.subMC[textField + i].text and u wrote _root.mainMC.auto.subMC.[textField + i].text note the dot after subMC greetz JC On 10/19/06, Bill Pelon [EMAIL PROTECTED] wrote: Seems to jumble me up a bit, I get this error. Expected a field name after '.' operator. _root.mainMC.auto.subMC.[textField+i].text = turbo.attributes.name ; thanks though... - Original Message - From: Glen Pike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 3:16 PM Subject: Re: [Flashcoders] incrementing a target? Erm, I think you might want to try _root.mainMC.auto.subMC[textField + i].text Not sure. Bill Pelon wrote: Hello, I'm having problems figuring out how to grab an array value and use that when targeting. This is my fucntion below. What I am wanting to do is take the [i]value and be able to use that when trying to write to my textfields function ExpandData(turbo){ var turboItem = turbo.firstChild.childNodes; for (var i = 0; i turboItem.length; i++){ but = eval(but+i); var turbo = turboItem[i]; _root.mainMC.auto.subMC.txtField+i.text = turbo.attributes.name; } } /// Thanks, Bill ___ 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] Exporting from flash to vector format
Sorry, should've been a bit more specific -- I have a swf that is dynamically generating vector data (placing movie clips, drawing lines, etc. according to predefined algorithms). I'm looking to export data generated from that swf to a vector format, and I don't think copy and paste works for this type of thing. Any recommendations? Thanks! -Eric ++ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Thursday, October 19, 2006 1:13 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Exporting from flash to vector format Copy and paste seems to work if you are using both Flash Illustrator at home. If you have to share with others, Flash will export to a sensible medium - ai / eps are both available in the Export Image dialogues, but watch out, I think it exports from the clip you are editing rather than the main timeline. Eric Lee wrote: Howdy list, I'm looking for a way to export vector data from flash to some sort of a format that Illustrator can use-svg, ai, eps, etc. Does anyone know how to do this? Thanks! -eric ++ ___ 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] Exporting from flash to vector format
If you have access to the source (or are willing to decompile) you can add code to create a SVG or other description as the lines are drawn, then use getURL to POST the results to a server or dump them into a textarea. You may also be able to hijack the original code, by wrapping the SWF in a custom SWF which replaces the original methods with ones that first save the data to your structure and then pass the arguments on to the replaced method. Eric Lee wrote: Sorry, should've been a bit more specific -- I have a swf that is dynamically generating vector data (placing movie clips, drawing lines, etc. according to predefined algorithms). I'm looking to export data generated from that swf to a vector format, and I don't think copy and paste works for this type of thing. Any recommendations? Thanks! -Eric ++ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Thursday, October 19, 2006 1:13 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Exporting from flash to vector format Copy and paste seems to work if you are using both Flash Illustrator at home. If you have to share with others, Flash will export to a sensible medium - ai / eps are both available in the Export Image dialogues, but watch out, I think it exports from the clip you are editing rather than the main timeline. Eric Lee wrote: Howdy list, I'm looking for a way to export vector data from flash to some sort of a format that Illustrator can use-svg, ai, eps, etc. Does anyone know how to do this? Thanks! -eric ++ -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net ___ 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] incrementing a target?
This seems to work great on the right hand side and comes back with the correct data when traced but I need to use that value as my target. I may be missing something completely obvious as I'm a total newbie on the coding so forgive me if I'm overlooking something simple. I have uploaded my fla and the xml I'm using here if anyone wants to check it out. I have commented out the section I'm having trouble with. http://www.billpelon.com/mainFeature.zip The code I'm stuck on is ClipEvent(load) of the MC on layer 2. Thanks again, Bill - Original Message - From: Glen Pike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 3:40 PM Subject: Re: [Flashcoders] incrementing a target? Hi, There maybe a typo in your code? it should say subMC[textField + i] There should be no (dot) . before the (square bracket) [ Basically you treat the movieclip subMC like an array. It contains some text fields textField0, textField1, etc. so you can index the array with to get the contents of it. You can do the same with your other bit of code rather than using eval: //instead of but = eval(but+i); //Try this - not sure if you need to use the this operator, but it makes things clearer. but = this[but + i] Bill Pelon wrote: Seems to jumble me up a bit, I get this error. Expected a field name after '.' operator. _root.mainMC.auto.subMC.[textField+i].text = turbo.attributes.name; thanks though... - Original Message - From: Glen Pike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 3:16 PM Subject: Re: [Flashcoders] incrementing a target? Erm, I think you might want to try _root.mainMC.auto.subMC[textField + i].text Not sure. Bill Pelon wrote: Hello, I'm having problems figuring out how to grab an array value and use that when targeting. This is my fucntion below. What I am wanting to do is take the [i]value and be able to use that when trying to write to my textfields function ExpandData(turbo){ var turboItem = turbo.firstChild.childNodes; for (var i = 0; i turboItem.length; i++){ but = eval(but+i); var turbo = turboItem[i]; _root.mainMC.auto.subMC.txtField+i.text = turbo.attributes.name; } } /// Thanks, Bill ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] incrementing a target?
var mc = this[btn + i]; mc is your target. mc.onRollOver = function() {}; The issue you might have is that you cannot assign functions and certain properties to a movieclip you are going to loadMovie on because as soon as the movie is loaded, it overwrites all the methods and properties you assigned to it except for certain things like _x/_y/_alpha, etc. ___ 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] incrementing a target?
Yes, this was just recently an issue I ran up against. I could not figure out why I could not get a trace on an event. I finally figured it out. Good post Steve, I am sure it will save someone A LOT of time. Victor The issue you might have is that you cannot assign functions and certain properties to a movieclip you are going to loadMovie on because as soon as the movie is loaded, it overwrites all the methods and properties you assigned to it except for certain things like _x/_y/_alpha, etc. - Original Message - From: Steven Sacks | BLITZ [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 2:45 PM Subject: RE: [Flashcoders] incrementing a target? var mc = this[btn + i]; mc is your target. mc.onRollOver = function() {}; The issue you might have is that you cannot assign functions and certain properties to a movieclip you are going to loadMovie on because as soon as the movie is loaded, it overwrites all the methods and properties you assigned to it except for certain things like _x/_y/_alpha, etc. ___ 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] incrementing a target?
Aha! Your text fields on stage are named txtField0, txtField1, etc. But you are trying to index them as [textField + i] Sorry that is partly my fault as my original answer said text... not txt.. as your code does. so to clarify.. _root.mainMC.auto.subMC[txtField + i].text = turbo.attributes.name; Should work. A tip that might help: If you are trying to find out stuff like this, then you can use a trace to make sure you are referencing something correctly - I used: trace(_root.mainMC.auto.subMC[textField + i]); Which kept returning undefined, so I then used this to find out what was in the _root.mainMC.auto.subMC movie clip. for(obj in _root.mainMC.auto.subMC) { trace(obj + = + _root.mainMC.auto.subMC[obj]); } You can also use the debugger and put a breakpoint in your code - then expand the movie clips to see what you have got at that point in time. Good luck. Glen ___ 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] Exporting from flash to vector format
Hi Eric I'm not sure if it will help your exact situation, but my blazePDF component will allow you to create a PDF document at run-time entirely within your Flash app (no print drivers or anything). You could, in theory, use this to create your PDF which retains vector representations of drawing commands, allows bitmap images or MovieClips to be rendered as bitmap, and then save the PDF. You can then open the PDF in Illustrator, Freehand, PhotoShop, et al. While I did have a Flash2EPS project many years ago, it was fairly limited in scope. And since you mentioned MovieClips, I avoid going this route as it was just basic drawing commands. You can find more info on blazePDF at www.blazepdf.com (neat, huh?) ;-) Hope that helps. Cheers g. On 10/19/06, Eric Lee [EMAIL PROTECTED] wrote: Sorry, should've been a bit more specific -- I have a swf that is dynamically generating vector data (placing movie clips, drawing lines, etc. according to predefined algorithms). I'm looking to export data generated from that swf to a vector format, and I don't think copy and paste works for this type of thing. Any recommendations? Thanks! -Eric ++ -- weblog: broadcast.artificialcolors.com blazePDF: www.blazepdf.com band: www.cutratebox.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] incrementing a target?
try the Flashnewbie mailing list http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie - Original Message - From: Bill Pelon [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, October 20, 2006 12:07 AM Subject: Re: [Flashcoders] incrementing a target? This seems to work great on the right hand side and comes back with the correct data when traced but I need to use that value as my target. I may be missing something completely obvious as I'm a total newbie on the coding so forgive me if I'm overlooking something simple. I have uploaded my fla and the xml I'm using here if anyone wants to check it out. I have commented out the section I'm having trouble with. http://www.billpelon.com/mainFeature.zip The code I'm stuck on is ClipEvent(load) of the MC on layer 2. Thanks again, Bill ___ 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] incrementing a target?
Thanks Glen, This worked perfectly... Bill - Original Message - From: Glen Pike [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, October 19, 2006 6:10 PM Subject: Re: [Flashcoders] incrementing a target? Aha! Your text fields on stage are named txtField0, txtField1, etc. But you are trying to index them as [textField + i] Sorry that is partly my fault as my original answer said text... not txt.. as your code does. so to clarify.. _root.mainMC.auto.subMC[txtField + i].text = turbo.attributes.name; Should work. A tip that might help: If you are trying to find out stuff like this, then you can use a trace to make sure you are referencing something correctly - I used: trace(_root.mainMC.auto.subMC[textField + i]); Which kept returning undefined, so I then used this to find out what was in the _root.mainMC.auto.subMC movie clip. for(obj in _root.mainMC.auto.subMC) { trace(obj + = + _root.mainMC.auto.subMC[obj]); } You can also use the debugger and put a breakpoint in your code - then expand the movie clips to see what you have got at that point in time. Good luck. Glen ___ 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] Exporting from flash to vector format
If I could tap in here and ask a question: Greg, that looks really cool - I had heard of it before, but now I might be interested Blaze PDF for a project. Do you know how many PDF pages it can generate (is there a max)? Will it render out dynamic textfields in the positions they are in? What about HTML text? Can you generate a hardcopy PDF Document or does it just sent the PDF data to a browser window? Thanks Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of g.wygonik Sent: Thursday, October 19, 2006 6:53 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Exporting from flash to vector format Hi Eric I'm not sure if it will help your exact situation, but my blazePDF component will allow you to create a PDF document at run-time entirely within your Flash app (no print drivers or anything). You could, in theory, use this to create your PDF which retains vector representations of drawing commands, allows bitmap images or MovieClips to be rendered as bitmap, and then save the PDF. You can then open the PDF in Illustrator, Freehand, PhotoShop, et al. While I did have a Flash2EPS project many years ago, it was fairly limited in scope. And since you mentioned MovieClips, I avoid going this route as it was just basic drawing commands. You can find more info on blazePDF at www.blazepdf.com (neat, huh?) ;-) Hope that helps. Cheers g. On 10/19/06, Eric Lee [EMAIL PROTECTED] wrote: Sorry, should've been a bit more specific -- I have a swf that is dynamically generating vector data (placing movie clips, drawing lines, etc. according to predefined algorithms). I'm looking to export data generated from that swf to a vector format, and I don't think copy and paste works for this type of thing. Any recommendations? Thanks! -Eric ++ -- weblog: broadcast.artificialcolors.com blazePDF: www.blazepdf.com band: www.cutratebox.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] Exporting from flash to vector format
Hey Greg, This looks like a perfect solution for my project, thanks for the tip! -Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of g.wygonik Sent: Thursday, October 19, 2006 3:53 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Exporting from flash to vector format Hi Eric I'm not sure if it will help your exact situation, but my blazePDF component will allow you to create a PDF document at run-time entirely within your Flash app (no print drivers or anything). You could, in theory, use this to create your PDF which retains vector representations of drawing commands, allows bitmap images or MovieClips to be rendered as bitmap, and then save the PDF. You can then open the PDF in Illustrator, Freehand, PhotoShop, et al. While I did have a Flash2EPS project many years ago, it was fairly limited in scope. And since you mentioned MovieClips, I avoid going this route as it was just basic drawing commands. You can find more info on blazePDF at www.blazepdf.com (neat, huh?) ;-) Hope that helps. Cheers g. On 10/19/06, Eric Lee [EMAIL PROTECTED] wrote: Sorry, should've been a bit more specific -- I have a swf that is dynamically generating vector data (placing movie clips, drawing lines, etc. according to predefined algorithms). I'm looking to export data generated from that swf to a vector format, and I don't think copy and paste works for this type of thing. Any recommendations? Thanks! -Eric ++ -- weblog: broadcast.artificialcolors.com blazePDF: www.blazepdf.com band: www.cutratebox.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] Re: simulating mouse clicks
Hi, what you wanna do is to send Windows messages, this is not supported in flash, and I know nothing of a workaround. Sorry Yehia On 10/19/06, Vishal Kapur [EMAIL PROTECTED] wrote: I'll ask the question a different way: what are all the ways that a mouse click event can be handled in a flash movie? (other than defining an onPress/onRelease callback) -- Vishal On 10/17/06, Vishal Kapur [EMAIL PROTECTED] wrote: I'm trying to solve the problem of generically simulating mouse clicks in a running flash movie. So, I'd like to be able to write a function that when invoked with the targetPath of the flash object to be clicked, would be able to simulate a mouse click on that object as if a user had actually clicked it. I should also mention that the technique needs to work with arbitrary 3rd-party flash movies (so I don't have control to change the code). The simplest thing to try is just to try to invoke the onPress/onRelease callbacks on the target object. This works sometimes. However, in some cases it doesn't quite simulate a real mouse click. In particular, I seem to have trouble simulating clicks on components (in a List component, for example, the selected row will get highlighted but the handler that does further processing and refreshes the UI doesn't seem to get called). Currently I am (sort of) working around this by getting the coordinates of the center of the target object and using the Win32 api's to move the mouse pointer and simulate the windows mouse down/up events. As you can imagine this is not truly generic (doesn't handle scrollbars, movielclips obscured by other objects, etc). Any thoughts on this? Anyone with previous experience with this or ideas on a better way to generically simulate a click event in flash? 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 ___ 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] Exporting from flash to vector format
Hey Jason (and all) Do you know how many PDF pages it can generate (is there a max)? There is no programmatic limit to the number of pages. While I have had users create 20-40 page documents, I haven't had anyone try, say, 9,000 pages. :-) Will it render out dynamic textfields in the positions they are in? No. Not exactly. Basically all text is created in the document by using a drawString() method. So, you would need to re-draw things into the PDF. Or, you could use the component as your main display and only do it once. But it's not take this textfield and pop it into the PDF. What about HTML text? Nope. Can you generate a hardcopy PDF Document or does it just sent the PDF data to a browser window? It generates a full PDF document into a variable in Flash. So it's left up to the developer to either save it to the server, push it to the client via the server, or save it locally via Zinc or other projector. Thanks No problem. Hope that helps. :-) g. -- weblog: broadcast.artificialcolors.com blazePDF: www.blazepdf.com band: www.cutratebox.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] Converting a comma delimitted list to an array from MySql
Oi, All. I am recieving a comma delimitted list/String from MySql that looks like this: 0,0,0,26.361817121505737,10.903573036193848,7.390960305929184,24.12494868040085,21.304115653038025,6.756003946065903,11.561043560504913 I am trying to convert it into an Array. I used to do something like it in MM Director, but I cannot figure out how to do it in AS. Can someone help a brother out? Thank you! -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ 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] Converting a comma delimitted list to an array from MySql
use the string.split method var my_array:Array = my_str.split(,); A Carl Welch wrote: Oi, All. I am recieving a comma delimitted list/String from MySql that looks like this: 0,0,0,26.361817121505737,10.903573036193848,7.390960305929184,24.12494868040085,21.304115653038025,6.756003946065903,11.561043560504913 I am trying to convert it into an Array. I used to do something like it in MM Director, but I cannot figure out how to do it in AS. Can someone help a brother out? Thank you! -- *Anthony Eden*: Inventor at Snepo http://www.snepo.com/ contact | [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] | 0411 5622 02 ___ 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] Flash File Upload using .NET
I've found that when uploading using FileReference, my files end up being read only by the owner (chmod 600). Which in turn doesn't allow the file to be read back into my swf Does anyone know of a way to make it chmod to 644? I 've tried to make php set it to the proper chmod but to no avail. Or maybe someone can enlighten me to what may be causing this I did set the php to safe_mode off - In hopes that would help me solve the issue -- but no, it didn't... Cheers. -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ 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] Converting a comma delimitted list to an array from MySql
Thanks, though, I heard that the split function built into AS is notoriously slow. True? On 10/19/06, Arse @ Snepo [EMAIL PROTECTED] wrote: use the string.split method var my_array:Array = my_str.split(,); A Carl Welch wrote: Oi, All. I am recieving a comma delimitted list/String from MySql that looks like this: 0,0,0,26.361817121505737,10.903573036193848,7.390960305929184,24.12494868040085,21.304115653038025,6.756003946065903,11.561043560504913 I am trying to convert it into an Array. I used to do something like it in MM Director, but I cannot figure out how to do it in AS. Can someone help a brother out? Thank you! -- *Anthony Eden*: Inventor at Snepo http://www.snepo.com/ contact | [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] | 0411 5622 02 ___ 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 -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ 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