[Flashcoders] Extra White Space in Flash Movie
Hi; I guess you all think I'm a pariah because nobody responded to my last post weeks ago, but I sure hope you're willing to help me one last time then I'll go away and leave you all alone. Please go here: http://globalsolutionsgroup.vi/index.py I've had to do all sorts of bizarre css stuff to this all of a sudden. It was working flawlessly the other day. Forget the splash page. It works fine. I've had to position the banner swf using a negative valign so that it appears on top. I've had to do the same with the iframe, but when I do I discover that there's some extra white space that appears to be attached to or under the swf banner which blocks the iframe. Now, even if I set the z-index of the iframe to the highest position this still happens. Remove the swf banner and it no white space. What in tarnation is going on here??? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Extra White Space in Flash Movie
Never mind. I figured it out. beno On Mon, Mar 1, 2010 at 12:40 PM, beno - flashmeb...@gmail.com wrote: Hi; I guess you all think I'm a pariah because nobody responded to my last post weeks ago, but I sure hope you're willing to help me one last time then I'll go away and leave you all alone. Please go here: http://globalsolutionsgroup.vi/index.py I've had to do all sorts of bizarre css stuff to this all of a sudden. It was working flawlessly the other day. Forget the splash page. It works fine. I've had to position the banner swf using a negative valign so that it appears on top. I've had to do the same with the iframe, but when I do I discover that there's some extra white space that appears to be attached to or under the swf banner which blocks the iframe. Now, even if I set the z-index of the iframe to the highest position this still happens. Remove the swf banner and it no white space. What in tarnation is going on here??? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Registration Point Issue
Hi; I have this code: package { import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.DisplayObject; import flash.net.URLRequest; import flash.display.Shape; import flash.geom.*; import flash.display.Bitmap; import flash.display.BitmapData; import flash.filters.GlowFilter; import flash.filters.BitmapFilterQuality; import flash.geom.Rectangle; import com.greensock.*; import com.greensock.easing.*; import SpinningWorld; public class GlobalSolutions extends MovieClip { //Import Library Assests public var mySpinningWorld:SpinningWorld; public var radius:int = 500; public var textureMap:BitmapData; public var myLogo:Bitmap; public function GlobalSolutions() { init(); } public function init():void { mySpinningWorld = new SpinningWorld(); mySpinningWorld.x = -500; mySpinningWorld.y = -500; mySpinningWorld.alpha = 0; addChild(mySpinningWorld); TweenLite.to(mySpinningWorld, 1, {x:-100, y:0, scaleX:0.4, scaleY:0.4, alpha:1}); loadImage(); } private function loadImage():void { var path:String = images/logo.png; var req:URLRequest = new URLRequest(path); var loader:Loader = new Loader(); loader.load(req); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded); } function loaded(evt:Event):void { var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 150; displayObject.height = 150; displayObject.x = 1000; displayObject.y = 208; addChild(displayObject); displayObject.alpha = 0; TweenLite.to(displayObject, 1, {x:65, y:117, scaleX:0.5, scaleY:0.5, rotation:520, alpha:1}); } } } For some reason, logo.png describes an arc as it spins on its axis, similar to, say, the Earth spinning on its axis while simultaneously rotating around the Sun. The gent from greensock tells me this is because I've misplaced my registration point, but this graphic doesn't have a registration point as far as I can see. So what gives? How do I get rid of the arcing? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Registration Point Issue
On Tue, Feb 9, 2010 at 8:24 AM, Greg Ligierko gre...@l-d5.com wrote: All display objects have registration points (their internal 0,0 coordinates). Also bitmaps. By default a loaded image (png) has its registration point in the top-left corner. If you like to get rid of the improperly set registration point then you may place the loaded image into a parent container and align the image centrally inside its parent: stage - parent_container - your_image You can do this by creating a new Sprite (or MovieClip) in the Event.COMPLETE handler: function loaded(evt:Event):void { //create the parent var parent_container:Sprite = new Sprite(); // ...and add it to the stage addChild(parent_container) var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 150; displayObject.height = 150; // instead, move the parent //displayObject.x = 1000; //displayObject.y = 208; parent_container.x = 1000; parent_container.y = 208; //note that the displayObject is added to parent_container parent_container.addChild(displayObject); // now, place the displayObject's center over its parent // (0,0) point, by moving half width and half height in // top-left direction displayObject.x = -displayObject.width / 2; displayObject.y = -displayObject.height / 2; // see what you get: trace('parent_container.x: ' + parent_container.x); trace('parent_container.y: ' + parent_container.y); trace('displayObject.x: ' + displayObject.x); trace('displayObject.y: ' + displayObject.y); //.. //.. continue with tween etc. but (!) perform all operations on // the parent container: parent_container.alpha = 0; TweenLite.to(parent_container, 1, {x:65, y:117, scaleX:0.5, scaleY:0.5, rotation:520, alpha:1}); } Well now that makes a lot of sense! However, here's what's traced: parent_container.x: 100 parent_container.y: 208 displayObject.x: -75 displayObject.y: -75 and the object doesn't show up. I've been playing with values for the x and y of displayObject but with no satisfactory results. Just to be on the safe side, the code follows. Please advise once again. TIA, beno package { import flash.display.Sprite; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.DisplayObject; import flash.net.URLRequest; import flash.display.Shape; import flash.geom.*; import flash.display.Bitmap; import flash.display.BitmapData; import flash.filters.GlowFilter; import flash.filters.BitmapFilterQuality; import flash.geom.Rectangle; import com.greensock.*; import com.greensock.easing.*; import SpinningWorld; public class GlobalSolutions extends MovieClip { //Import Library Assests public var mySpinningWorld:SpinningWorld; public var radius:int = 500; public var textureMap:BitmapData; public var myLogo:Bitmap; var parent_container:Sprite = new Sprite(); public function GlobalSolutions() { init(); } public function init():void { mySpinningWorld = new SpinningWorld(); mySpinningWorld.x = -500; mySpinningWorld.y = -500; mySpinningWorld.alpha = 0; addChild(mySpinningWorld); TweenLite.to(mySpinningWorld, 1, {x:-100, y:0, scaleX:0.4, scaleY:0.4, alpha:1}); loadImage(); } private function loadImage():void { addChild(parent_container) var path:String = images/logo.png; var req:URLRequest = new URLRequest(path); var loader:Loader = new Loader(); loader.load(req); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loaded); } function loaded(evt:Event):void { var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 150; displayObject.height = 150; parent_container.x = 100; parent_container.y = 208; parent_container.addChild(displayObject); displayObject.x = -displayObject.width / 2; displayObject.y = -displayObject.height / 2; trace('parent_container.x: ' + parent_container.x); trace('parent_container.y: ' + parent_container.y); trace('displayObject.x: ' + displayObject.x); trace('displayObject.y: ' + displayObject.y); addChild(displayObject); displayObject.alpha = 0; TweenLite.to(parent_container, 1, {x:65, y:117, scaleX:0.5, scaleY:0.5, rotation:520, alpha:1}); } // DisplayList } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http
[Flashcoders] SWF Doesn't Render
Hi; I just uploaded a swf and, while it didn't throw an error, it didn't display, either. There's one image that's rendered as a bitmap, but that image is also there and in the appropriate folder. Why doesn't it render? Also, I would prefer to embed this element in a standard HTML (or, code-rendered pythonic version of the same) as opposed to re-creating this site in Flash. My question is, since I have one element zoom in from full screen to its final small size, I'm wondering if it's even possible. That is, the embedded element would not be the entire screen, yet that's how the Flash movie would begin. Please advise on both counts. TIA, beno package { import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.BitmapDataChannel; import flash.display.Loader; import flash.display.Shape; import flash.display.Sprite; import flash.events.Event; import flash.events.TimerEvent; import flash.filters.BitmapFilterQuality; import flash.filters.DisplacementMapFilter; import flash.filters.GlowFilter; import flash.geom.Point; import flash.geom.Rectangle; import flash.net.URLRequest; import flash.utils.Timer; import com.greensock.*; import com.greensock.easing.*; public class SpinningWorld extends Sprite { // The Bitmap containing the Earth map that's actually displayed on the screen. private var sphere:Bitmap; // The Earth map source -- pixels from this map are copied onto sphere // to create the animated motion of the Earth. private var textureMap:BitmapData; // The radius of the Earth. private var radius:int; // The current x position on textureMap from which the pixels are copied onto sphere. private var sourceX:int = 0; // EarthSphere constructor // Starts loading the Earth image. public function SpinningWorld() { var imageLoader:Loader = new Loader(); imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoadComplete); imageLoader.load(new URLRequest(images/world_map_doubled-small.png)); } // Movement (a'la rotation) routine private function rotateEarth(event:TimerEvent):void { sourceX += 1; if (sourceX = textureMap.width / 2) { sourceX = 0; } sphere.bitmapData.copyPixels(textureMap, new Rectangle(sourceX, 0, sphere.width, sphere.height), new Point(0, 0)); event.updateAfterEvent(); } // Creates the displacement map image that's used to create the fisheye lens effect private function createFisheyeMap(radius:int):BitmapData { var diameter:int = 2 * radius; var result:BitmapData = new BitmapData(diameter, diameter, false, 0x808080); // Loop through the pixels in the image one by one for (var i:int = 0; i diameter; i++) { for (var j:int = 0; j diameter; j++) { // Calculate the x and y distances of this pixel from // the center of the circle (as a percentage of the radius). var pctX:Number = (i - radius) / radius; var pctY:Number = (j - radius) / radius; // Calculate the linear distance of this pixel from // the center of the circle (as a percentage of the radius). var pctDistance:Number = Math.sqrt(pctX * pctX + pctY * pctY); // If the current pixel is inside the circle, // set its color. if (pctDistance 1) { // Calculate the appropriate color depending on the // distance of this pixel from the center of the circle. var red:int; var green:int; var blue:int; var rgb:uint; red = 128 * (1 + 0.75 * pctX * pctX * pctX / (1 - pctY * pctY)); green = 0; blue = 0; rgb = (red 16 | green 8 | blue); // Set the pixel to the calculated color. result.setPixel(i, j, rgb); } } } return result; } // Called when the Earth map image finishes loading. // Sets up the on-screen elements (Earth image with fisheye filter and its mask); // starts the Timer that creates the animation effect. private function imageLoadComplete(event:Event):void { textureMap = event.target.content.bitmapData; radius = textureMap.height / 2; sphere = new Bitmap(); sphere.bitmapData = new BitmapData(textureMap.width / 2, textureMap.height); sphere.bitmapData.copyPixels(textureMap, new Rectangle(0, 0, sphere.width, sphere.height), new Point(0, 0)); // Create the BitmapData instance that's used as the displacement map image // to create the fisheye lens effect. var fisheyeLens:BitmapData = createFisheyeMap(radius); // Create the fisheye filter var displaceFilter:DisplacementMapFilter; displaceFilter = new DisplacementMapFilter(fisheyeLens, new Point(radius, 0), BitmapDataChannel.RED, BitmapDataChannel.BLUE, radius, 0); // Apply the filter sphere.filters = [displaceFilter]; this.addChild(sphere); // Create and apply the image mask var EarthMask:Shape = new Shape(); EarthMask.graphics.beginFill(0); EarthMask.graphics.drawCircle(radius * 2, radius, radius); this.addChild(EarthMask); this.mask = EarthMask; // Set up the timer to start the animation that 'spins' the Earth var rotationTimer:Timer = new Timer(15); rotationTimer.addEventListener(TimerEvent.TIMER, rotateEarth); rotationTimer.start(); // add a slight atmospheric glow effect this.filters = [new GlowFilter(0xC2C2C2, .75, 20, 20, 2
[Flashcoders] Moock
I got the book! (You can all breathe a collective sigh of relief lol.) Yes, I forgot how essential the O'Reilly books are and yes, I can now understand your prior frustration with me. I'm about a quarter of the way through it and reading as fast as reasonably possible. Thanks for the suggestion! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [beno's eyes only] I Must Be Asking This Question Wrong...
On Thu, Feb 4, 2010 at 5:02 PM, Keith Reinfeld keithreinf...@comcast.netwrote: Glen Pike has kindly sent along some code... Thanks for all your help, Glen! And next time, make me work a little harder! How can I do any less? beno, the enclosed code contains comments which you should read as instructions (i.e. what you need to do.) NOTE: beno, in your .fla, you will need to go into the library and edit mcCloseThumbTop and mcCloseThumbBottom to correct those graphics as they are way out of position relative to the registration point. Also, turn off Slice-9 on mcCloseThumbBottom. I hope I haven't made it too easy for you. This is cool! Thanks! I should have thought to post yesterday that I finally got Cor's separate class concept working, so unfortunately I don't need this code...for *this* project. (Thought to post after I went home.) But I do need to study code! So I'll study it and use it somewhere else. Thanks again! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [beno's eyes only] I Must Be Asking This Question Wrong...
Oh, and thanks Cor!! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [beno's eyes only] I Must Be Asking This Question Wrong...
On Fri, Feb 5, 2010 at 11:39 AM, Keith Reinfeld keithreinf...@comcast.netwrote: I do and do and do for you kids, and this is the thanks I get. - David Letterman catchphrase candidate, circa: back in the day. Hey man, I do thank you and I've already been studying your code. You probably wrote the above in jest, but just so you know :) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Wed, Feb 3, 2010 at 8:42 PM, Keith Reinfeld keithreinf...@comcast.netwrote: Naw... The bobblehead and googlie-eyes was something I did for fun. beno has been trying to work out the business with the hands. Would you mind sending your *.as file along? Sure would like to see what you're doing! TIA, beno PS If sending other than as a response to this thread, please send to: benoismyn...@gmail.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
Gustavo Duenas asks what I am trying to accomplish. I'm trying to get a single-frame mc in a single-frame single-layer timeline to play whenever I call it from an external class actionscript. Hendrik Andersson writes the following about breakpoints: Hit ctrl-b to set them, use ctrl-shift-enter to start debugging mode so that they actually are used. Then use the classical step-in, step-over and step-out buttons to step the code. Also check out the memory viewer panel where you can explore the current scope. Could you kindly translate that into Mac lingo? Kieth Reinfeld sent along a humorous version of my fla/as that seems to have the element that I'm looking for (and another very cute idea gratis ;) Would you please send me the *.as? Please either send it in this same thread or separately to this address: benoismyn...@gmail.com Glen Pike has kindly sent along some code that traces out exactly as he anticipated. It doesn't show the CloseThumb mc, but it may be easy to fix. Glen has CS3 and I CS4, hence an incompatibility. Thanks for all your help, Glen! And next time, make me work a little harder! I'll ignore all the negative comments. They're not worth responding to. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Wed, Feb 3, 2010 at 12:46 PM, Matt S. mattsp...@gmail.com wrote: For beno of course! Or rather, the one who goes by the pseudonym beno. My legal name is beno by court order. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash and MySQL
On Mon, Feb 1, 2010 at 5:29 PM, Steven Sacks flash...@stevensacks.netwrote: Quite frankly, it boggles my mind anyone ever answers beno's posts with any level of seriousness. He's the love child of a troll and a help vampire. How hard would [building a MySQL equivalent db in AS3] be? Tell me... Well I don't know. You know because you have more experience than I. I think beno is a 4channer and is secretly laughing at how many people provide serious responses to such inanity. Don't be a fool. Don't call me names. Be mature in your responses. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] I Must Be Asking This Question Wrong...
Hi; I have posted this question so many times in so many forums and not gotten an answer that I'm simply asking the helpful, mature people of this list to help me understand better how to ask this question in a way that would elicit a helpful response. TIA, beno I have asked this in the newbies d'list, Adobe's d'list and of the two listers here kind enough to offer off-list help and all to no avail, so with your permission I'm now asking it here. Hi; I have this code: package { import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; public class Main2 extends MovieClip { //Import Library Assests public var myThumb:CloseThumb; public function Main2() { init(); } public function init():void { theThumb(); } public function theThumb():void { myThumb = new CloseThumb(); myThumb.x = 365; myThumb.y = 355; myThumb.addEventListener(Event.ENTER_FRAME, checkFrame); } public function checkFrame(e:Event):void { if (e.target.currentFrame == 1) { e.target.removeEventListener(Event.ENTER_FRAME, checkFrame); trace('check'); addChild(myThumb); TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut}); } } } } It works fine. The problem is that if I change currentFrame from == 1 to any other value, it breaks. The reason apparently is because the mc in the fla is only 1 frame long. Now, I need to be able to call it from various frames. I've been told to extend it to, for example, 2 frames, but that does nothing. My main timeline also has but one frame calling the actionscript. Apparently it's useless to have a listener checkframe on an mc that has 1 frame. Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Tue, Feb 2, 2010 at 8:54 AM, Cor c...@chello.nl wrote: /* Without knowing what you exactly trying to do, maybe this helps. */ package { import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; public class Main2 extends MovieClip { //Import Library Assests public var myThumb:CloseThumb; public function Main2() { init(); } public function init():void { theThumb(); } public function theThumb():void { myThumb = new CloseThumb(); myThumb.x = 365; myThumb.y = 355; addChild(myThumb); myThumb.addEventListener(Event.ADDED_TO_STAGE, onStage); } public function onStage(e:Event):void { if (e.target.currentFrame == 1) { e.target.removeEventListener(Event.ADDED_TO_STAGE, onStage); trace('check'); TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut}); } } } } It did add...at least I saw it on stage. It didn't trace, however. You can d'l everything here: http://angrynates.com/cart/main2.zip TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Tue, Feb 2, 2010 at 9:03 AM, Glen Pike g...@engineeredarts.co.uk wrote: So you are adding the myThumb and Tweening it somewhere? You might want to make myThumb do the Tween again from other frames in your movie? Maybe define a function in your class that is not depending on the ENTER_FRAME event? public function doTween():void { addChild(myThumb): TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut,/onComplete/:onFinishTween}); } That looks like the idea I need. However, I changed this line: addChild(myThumb): to this: addChild(myThumb); (colon to semicolon) I still get errors with this line: TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut,/onComplete/:onFinishTween}); 1084: Syntax error: Expecting identifier before /onComplete/ 1084: Syntax error: Expecting colon before rightbrace 1084: Syntax error: Expecting identifier before rightbrace Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Tue, Feb 2, 2010 at 9:24 AM, Glen Pike g...@engineeredarts.co.uk wrote: Hi, Colon was a typo, sorry. Also, I think the /onComplete/ bit is a pasting problem... It should say onComplete - no slashes: TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut,onComplete:onFinishTween}); Wonderful! That worked! Thanks! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Tue, Feb 2, 2010 at 9:31 AM, Cor c...@chello.nl wrote: When not using the timeline, you don’t have current frames! You have to pick another trigger! Thanks for your help on this! Glen Pike solved it, however. Thanks again! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
OOPS! I spoke too soon!! Here's the revised code: package { import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; public class Main2 extends MovieClip { //Import Library Assests public var myThumb:CloseThumb; public function Main2() { init(); } public function init():void { theThumb(); } public function doTween():void { addChild(myThumb); TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut,onComplete:onFinishTween}); } //If you want to get rid of the thumb after the tween has finished, then add the onComplete handler above to point here... public function onFinishTween():void { removeChild(myThumb); } //Then in your theThumb function: public function theThumb():void { myThumb = new CloseThumb(); myThumb.x = 365; myThumb.y = 355; myThumb.addEventListener(Event.ENTER_FRAME, checkFrame); } public function checkFrame(e:Event):void { if (e.target.currentFrame == 10) { doTween(); } } } } I still need to target the frame I want to use. Again, when I change the value to anything other than 1, it fails. Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Tue, Feb 2, 2010 at 9:48 AM, Cor c...@chello.nl wrote: Notice this: public function checkFrame(e:Event):void { if (e.target.currentFrame== 10) { trace( checkFrame + e.target.currentFrame) doTween(); } } The trace only show the text because myThumb has no frames Has 1 frame. Right. There's the problem. Now the rest of the movie, of course, does have frames. Is there any way to work around this? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Tue, Feb 2, 2010 at 10:14 AM, Glen Pike g...@engineeredarts.co.ukwrote: Are you trying to see if the current frame of myThumb is 10, or the current frame of the Main clip? If you are looking at the current frame of the Main clip, then e.target.currentFrame should be changed to this.currentFrame. If these don't have 10 or more frames, then your code won't work. If you need to have a check based on the number of times something is called, e.g. the enterframe handler, then use a counter to increment until it gets to your magic number then do something: //class variable called counter. private var counter:int = 0; public function checkFrame(e:Event):void { if (counter == 10) { doTween(); counter = 0; } else { counter++; } } I tried this: package { import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; // import CloseThumb; public class Main2 extends MovieClip { public var myThumb:CloseThumb; private var counter:int = 0; public function Main2() { init(); } public function init():void { //CloseThumb(); theThumb(); } public function checkFrame(e:Event):void { if (counter == 10) { doTween(); counter = 0; } else { counter++; trace(counter); } } public function doTween():void { addChild(myThumb); TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut,onComplete:onFinishTween}); } //If you want to get rid of the thumb after the tween has finished, then add the onComplete handler above to point here... public function onFinishTween():void { removeChild(myThumb); } //Then in your theThumb function: public function theThumb():void { myThumb = new CloseThumb(); myThumb.x = 365; myThumb.y = 355; myThumb.addEventListener(Event.ENTER_FRAME, checkFrame); } // public function checkFrame(e:Event):void { // if (e.target.currentFrame == 2) { // doTween(); // } // } } } It didn't trace the counter. I tried it in the real program (we're working with a stripped-down version) but it didn't print, nor throw errors. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Tue, Feb 2, 2010 at 11:12 AM, Glen Pike g...@engineeredarts.co.ukwrote: Try adding the ENTER_FRAME listener to Main instead of myThumb... //myThumb.addEventListener(Event.ENTER_FRAME, checkFrame); addEventListener(Event.ENTER_FRAME, checkFrame); The following code: package { import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; // import CloseThumb; public class Main2 extends MovieClip { //private var myThumb:CloseThumb = new CloseThumb(); public var myThumb:CloseThumb; private var counter:int = 0; public function Main2() { init(); addEventListener(Event.ENTER_FRAME, checkFrame); } public function init():void { //CloseThumb(); theThumb(); } public function checkFrame(e:Event):void { if (counter == 10) { doTween(); counter = 0; } else { counter++; trace(counter); } } public function doTween():void { addChild(myThumb); TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut,onComplete:onFinishTween}); } //If you want to get rid of the thumb after the tween has finished, then add the onComplete handler above to point here... public function onFinishTween():void { removeChild(myThumb); } //Then in your theThumb function: public function theThumb():void { myThumb = new CloseThumb(); myThumb.x = 365; myThumb.y = 355; myThumb.addEventListener(Event.ENTER_FRAME, checkFrame); } public function checkFrame(e:Event):void { if (e.target.currentFrame == 2) { doTween(); } } } } traces this: at Main2/theThumb() at Main2/init() at Main2() Nothing prints in the swf. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
On Tue, Feb 2, 2010 at 11:42 AM, Paul Andrews p...@ipauland.com wrote: Beno is the most expensive developer on the planet. I can't stop laughing! I'm sorry it's too true! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] I Must Be Asking This Question Wrong...
to ignore this thread for the remainder of the day and look at it again tomorrow. Don't rush. And thank you very kindly for all your gracious help. Sincerely, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] MC Problem
Hi; I have asked this in the newbies d'list, Adobe's d'list and of the two listers here kind enough to offer off-list help and all to no avail, so with your permission I'm now asking it here. Hi; I have this code: package { import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; public class Main2 extends MovieClip { //Import Library Assests public var myThumb:CloseThumb; public function Main2() { init(); } public function init():void { theThumb(); } public function theThumb():void { myThumb = new CloseThumb(); myThumb.x = 365; myThumb.y = 355; myThumb.addEventListener(Event.ENTER_FRAME, checkFrame); } public function checkFrame(e:Event):void { if (e.target.currentFrame == 1) { e.target.removeEventListener(Event.ENTER_FRAME, checkFrame); trace('check'); addChild(myThumb); TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut}); } } } } It works fine. The problem is that if I change currentFrame from == 1 to any other value, it breaks. The reason apparently is because the mc in the fla is only 1 frame long. Now, I need to be able to call it from various frames. I've been told to extend it to, for example, 2 frames, but that does nothing. My main timeline also has but one frame calling the actionscript. Apparently it's useless to have a listener checkframe on an mc that has 1 frame. Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: [Flashnewbie] Two Classes, One Package
On Mon, Feb 1, 2010 at 11:53 AM, beno - flashmeb...@gmail.com wrote: On Mon, Feb 1, 2010 at 11:24 AM, Nathan Mynarcik nat...@mynarcik.comwrote: It seems as though you might have more than one issue here. Without seeing the folder structure and the AS and fla files, there is not much I can do. This problem is now solved, but for the benefit of anyone who googles this, here's the solution: I have the following import statement: import Explosion; in which I have the following line: class explode extends DisplayObject3D I get this error: 5008: The name of definition explode does not reflect the location of this file. The reason for this error is because the class must be named by the same name as the *.as file. So I changed it to: class Explosion extends DisplayObject3D and all is well...at least with that error! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash and MySQL
Hi; It dawned on me that in my study thus far of this very sophisticated AS3 language, there is no support for MySQL (or presumably for any database engine). A quick preliminary search confirms that. Why? Will there be? beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash and MySQL
On Fri, Jan 29, 2010 at 10:51 AM, Glen Pike g...@engineeredarts.co.ukwrote: The disadvantage of having your SQL engine in Flash is that someone can decompile your Flash code and pretty much know all your stuff about your databases by reading the SQL. Plus, if you have your database username and password in the Flash application, you are fairly f***ed and most system administrators would be laughing you off the park. Gotcha. So that's the practical necessity of having python (or...ugh...php) between Flash and the server. Thanks, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash and MySQL
On Fri, Jan 29, 2010 at 11:05 AM, Matt S. mattsp...@gmail.com wrote: I think beno needs a theme song to intro and outro his posts. I'm actually a singer/songwriter. Don't go there, Matt LOL! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash and MySQL
On Fri, Jan 29, 2010 at 2:13 PM, Micky Hulse mickyhulse.li...@gmail.comwrote: On Fri, Jan 29, 2010 at 5:48 AM, Glen Pike g...@engineeredarts.co.uk wrote: I doubt this would really catch on because FlashPlayer is client side and MySQL is server side - you would normally talk to your webserver with Flash and get server side code to do the MySQL work. What Glen says makes a lot of sense to me. :) Original poster: Check out PHP or Python frameworks, such as: * CodeIgniter: http://codeigniter.com/ * Django http://docs.djangoproject.com Once you learn the basics, both make it really easy to connect to your db and such. I've already written my shopping cart in python, so I'll stick with that. I was just thinking it would be cool to write the TTW pages in AS3, but obviously not for the security risk. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 9:07 PM, Karl DeSaulniers k...@designdrumm.comwrote: I second that. If you need to make money off of Flash to eat. Keep it SIMPLE! Don't make it harder for you to finish. Try any animations as a timeline animation before you go into classes on how to tween bezer paths and such. Less of a headache and you don't have to be an expert to create nice timeline animations. Oh and did I mention you will probably finish faster.. ;) No. I'll do it the best I can. Actually, my first project is coming very well and I think I'll have it done within a week. I don't believe in shortcuts. The shortest distance between two points is a straight line. That's why I took 4 months to build that fully automated python shopping cart, not knowing how I'd eat through that period. I ate ;) I'll eat through this period, or not, but I *will* build my Flash projects the way I see them in my head, PERIOD. Stubborn, aren't I? As far as getting the switch to flip on in my head, like I said, for whatever reason this stuff doesn't come as quickly for me as it does for the rest of you. But it *does* come...eventually. It did with Python. It will with Flash. Thanks for sending your email address. I've sent off a problem to Gustavo...see if he can help me with it. Regarding the book, I had my client buy me ActionScript 3.0 Essentials by Colin Moock. If you think I absolutely have to have another, well another would be welcomed and read. If not, thank you for the thought and effort ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Ideas, Please
Hi; I have two graphics. I want to explode one and then immediately thereafter reverse explode the other. I can do the reverse with TweenLite or Max, that should be easy. But what about the explosion itself? Can y'all just point me in the right direction, tutorials, what to search? Searching explosions per se was futile. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 9:07 PM, Karl DeSaulniers k...@designdrumm.comwrote: I second that. If you need to make money off of Flash to eat. Keep it SIMPLE! Don't make it harder for you to finish. Try any animations as a timeline animation before you go into classes on how to tween bezer paths and such. Less of a headache and you don't have to be an expert to create nice timeline animations. Oh and did I mention you will probably finish faster.. ;) BTW, I should mention the difference between good and great rarely exceeds 10% additional effort. And even when it does, it's worth it ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Wed, Jan 27, 2010 at 11:17 AM, Karl DeSaulniers k...@designdrumm.comwrote: That is the book I was going to get you. You should be good with that one. One last thing, no one is saying not to do what is in your head or to stray from your ideas. Its just that everyone can see that your not qualified to do the projects your seeking out except you. Yeah, that's what they told me when I set out to build what became my 12,000 line fully automated python shopping cart. In fact, they told me the same darn thing when I built my first web site with a relational database. They've always told me that. And they were all wrong and I was right. I'm right this time, too. You'll see. Damn the torpedos, full speed ahead! One of my great passions in life is ancient scripture. One of my favorite quotes is from Confucius (Kung-fu-tze): When the foundation is laid, the Way is born. Pay dear, close attention to the foundation. Short-cuts are never shorter ;) Don't worry. I might not be good at Flash yet, but I know exactly what I'm doing. And again, this first project is coming along quite well now...in no small measure due to all your help :) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 11:28 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: It would be cool to do this with copyPixels and drawing those as materials of many planes in Papervision3D - you could explode (animate) each plane in 3D space however you like, and easily animate them back. Hmm I might have to try that this weekend... thanks for the idea :) Well if you do, how 'bout sharing? What I see is this: my stage has a magician doing stuff. I'm going to explode him out, then reverse explode in my client's logo :) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 11:29 AM, Matt S. mattsp...@gmail.com wrote: Google as3 explosion http://www.google.com/search?hl=ensource=hpq=as3+explosionaq=faql=aqi=g2oq= first result: http://active.tutsplus.com/tutorials/effects/create-your-own-pixel-explosion-effect/ Includes explosion and implosion (reversal) The problem is they all look like crap :( beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 11:29 AM, Nathan Mynarcik nat...@mynarcik.comwrote: http://tinyurl.com/yexsdsd You and your little tinyurl thingies LOL. Yeah, I went through 2 pages of that google too, and the same thing, they all stink. I googled this a couple months back and was disappointed with the dismal returns, that's why I asked the list for help. No, the best one I've seen thus far is the two examples Gerry sent me. But thanks ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 11:15 AM, Gerry noentour...@gmail.com wrote: You should be looking for Bitmap copyPixels or setPixel32 (andre michelle example link below) I made something similar to what you want but want to make a newer version with images. http://blog.thespikeranch.com/2008/12/22/as3-bitmap-manipulation/ Andre Michelle does some cool stuff along the lines of what you want to do... http://lab.andre-michelle.com/bitmap-particles These are cool. I'm just waiting to see if something better comes along. Thanks! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 11:36 AM, Piers Cowburn m...@pierscowburn.com wrote: Hi Jason, I did that on my site, you can see it here: http://www.pierscowburn.com/(click on the thumbnails on the right when it loads). You can have the code if you like :) That site's nuts! I love it! Yeah, I'm sure I can make my sample size tiny as opposed to your relatively large triangles. Please send me your code. Thanks! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Wed, Jan 27, 2010 at 11:49 AM, Dave Watts dwa...@figleaf.com wrote: Hi! I'm the list admin (again). Yeah, that's what they told me when I set out to build what became my 12,000 line fully automated python shopping cart ... I'm not trying to be a dick here, but discussing your Python programming, your constant struggles against whatever, etc, is all very off-topic for Flashcoders. I'd really like to keep a higher signal-to-noise ratio if possible. If you ask questions on any mailing list, you're going to get some answers you agree with and some you don't. You don't need to explain why you don't like the answers you don't like. You can simply return them for your money back. So, please, more Flash coding, and less life of beno. Thanks in advance for your cooperation. Done. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 12:05 PM, Nathan Mynarcik nat...@mynarcik.comwrote: I'm just waiting to see if something better comes along. Yeah we know. Just wait and let us send you stuff for you to approve. Low blow. No. What would you do? Exactly what I'm doing, no? beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 12:08 PM, Gerry noentour...@gmail.com wrote: See that's where you come in. YOU take that code and make it work for your use then you can turn around and post it here to say Hey thanks for leading me to the water, I drank it and for helping me out here is my code Or something along those lines. I taught myself everything to this point with the help of this list and reading books. Get what I'm hinting at? THAT is understood! Obviously! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 12:41 PM, gamera gam...@detuner.org wrote: try filming a real explosion with a videocamera. KISS! if even excellent coders work doesn't fit your needs, how can you think to be able to code something better on your own? and don't think that integrating complex code in your project is matter of a copy-paste. using complex code requires the deep understanding of almost every line of code to be able to use it at your needs. That too is understood! Obvious! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 1:01 PM, Boerner, Brian J brian.j.boer...@lmco.comwrote: Funny. 12,000 lines of code isn't necessarily a good thing. If you can't deliver your concept then maybe it's a really bad concept! Know your limitations. This is OT and the list manager has already jumped on me for such. I won't respond, except to say that you, too, might want to keep away from this OT stuff. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Ideas, Please
On Wed, Jan 27, 2010 at 12:04 PM, Piers Cowburn m...@pierscowburn.com wrote: Hi Beno, It's on the way over to the list, but I've just posted the part that does the actual explosion, it assumes you've got your plane set up in PV3D already, so I'd get that bit done first if you want to try integrating my code with it. I'd give more than just the explosion part, but it's all quite heavily integrated with the rest of my site, and I don't have time right now to just pull out the relevant parts and put it into a separate project. This code hasn't arrived yet. Would you mind sending it here instead? benoismyn...@gmail.com Thanks, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Mon, Jan 25, 2010 at 4:08 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: You sure you're not just some long time list guru messing with us? In my dreams! If not, I do feel bad for your situation, but you need to be realistic. Eating is realistic. I have to eat. God only knows how I've managed to survive 6 months as I have...I haven't even tried to sign up business for at least 5 months. Why? Because I discovered, much to my shock and dismay, that the entire world of computing had changed in the 5 years I was busy farming the side of a mountain by hand with a machete in the backwoods of the Dominican Republic and cleansing my soul. I expected the technology to have changed. What I didn't expect was (1) server farms' equipment had degraded so badly that the hardware itself broke code and of course they didn't tell you that was the problem, you had to figure it out for yourself; and (2) the outsourcing world had changed entirely. To make a long story short, I suddenly found myself committed to project I thought I'd be outsourcing only to discover I'd have to do them myself. They included (1) building a shopping cart, and; (2) designing Flash sites. Being the kind of person I am, I believe in doing things right the first time no matter what the personal cost, so I spent 4 months developing a fully automated shopping cart in Python (about 12000 lines of code). Now I need to pump out a couple of Flash sites at least to the point where I can go back and talk to all those clients I was ready to sign up 6 months ago. I really don't know how I've been eating all this time. I have $117 on me and I imagine I'm about a month away from being able to pick up new clients. I don't know how that's going to last me nor where any other money is coming from. Nor am I worried about it. If I starve, I starve. I'm moving on as quickly as I can. I'm too principled to ask the clients I took money from for Flash sites to help me eat. Besides, their next payments have to go to buying $7K worth of photographic equipment, since I promised video. But by then I can sign up other clients. I'll need to do that to afford the equipment. But it won't be a problem. I'm one hell of a salesman, and there's tons of money in the Virgin Islands. I really didn't want to go into this level of detail. The only way I was able to afford the one book that's coming is by (intelligently) hitting up one of my Flash clients, explaining to him that it was in his best interest to buy me the book with his CC and I'd pay for it from what he'll owe me. (I wish I'd thought of that a month ago instead of this past Saturday.) I apologize for being a slow learner. I'm actually an artist, so I think out of my right hemisphere. It takes me a while to catch on. I find myself reading the books you read 3 times to understand it as well as you do on the first read. So, I apologize for not getting things like traces the first time around. My brain literally isn't wired like you scientists. But I'm motivated. Wouldn't you be in my position? I copied a bunch of code from flashandmath.com. The above is my own addition. It doesn't do anything. What I'd like it to do is, when the movie enters frame 10, activate the code I copied from flashandmath. If I pull out and replace my above-quoted line of code in the init with the same, everything works. But I'd like to delay this action for so many frames. That's a perfect example where, you're trying to copy work others have done, without understanding the underlying principles. Really, you need some more basic help understanding how Flash works first. No. Wrong. This is how I learn. It's a valid way to learn. You should recognize that. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Mon, Jan 25, 2010 at 9:06 PM, jared stanley jared.stan...@gmail.comwrote: Beno, there's a list on here called 'flash newbies' or something - despite the name there are great resources. The level of questions you're asking are definitely pointed more to that list, please start posting there I think you and everyone else will have a better experience. It took forever to find this list. If you can help me find a newbie list that is __active__, fine, I'll be more than happy to do that. I still ask some questions of the Adobe list, but I've learned which ones they'll answer and which they'll ignore. Tricky business, this. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 9:17 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: i'd also recommend http://gotoandlearn.com Last thread in AS3 on that list posted in July :-} I'll try and keep newbie questions on the Adobe list as_long_as_they_get_answered. The very reason I sought out this list was because they weren't answering my questions. Perhaps I didn't ask them very well in the beginning. They seem to be helping now. I will still be here asking questions that seem more appropriate here. And if they don't help there, I'll be back here. I subscribed to the chattyfig newbie list and I'll try that too. Thanks, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 9:17 AM, Geografiek geograf...@geografiek.nlwrote: Hi Beno, This might help: http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie On second thought, forget flashnewbie. 3 posts so far this year. Hardly an active list. Other suggestions? beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 10:14 AM, tom rhodes tom.rho...@gmail.com wrote: hey beno, shape tweens and animation aren't AS3 per se. look at traditional animation techniques if you want to get the most out of animation on the timeline... Thanks. Actually, this question is already answered. But, as we can all see, the thread took on a life of it's own :/ beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 10:36 AM, Nathan Mynarcik nat...@mynarcik.comwrote: I don't want to change this to a Dr. Phil lesson on life with Beno, but _realistic_ is also promising work you are fully capable of doing. Yet, you promise projects that you have no clue how to do and even if you did make some money to live, you can't feed yourself because you are applying that to video equipment. Your priorities are pretty messed up dude. Even if the Virgin Islands have money, you're gonna drown yourself with stuff you can not fully accomplish. We have visited this same issue with you before. You're way, way, way off course here. Before I left, I had employees all over the world, including a Flash developer, and he turned out some very sophisticated stuff. I came back assuming I could find another Flash developer offshore just as easily as I did it back then. I was surprised to discover such was not the case. That's why I had to take on this work myself. Don't counsel me on how to live my life. I do a darn good job, thank you very much. But I make mistakes, like you do too, assuming you're as human as I am. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 10:28 AM, Brian Mays bm...@newsok.com wrote: Have you tried the tutorials at kirupa.com? http://www.flashkit.com/ has some tutorials, downloads and forums as well. Bookmarked. Thank you :) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 11:04 AM, Greg Ligierko gre...@l-d5.com wrote: Another resource about teewning and Flash animation basics: http://animation.about.com/od/flashbasicstweening/Flash_Basics_Tweening.htm Bookmarked. Thank you :) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 11:17 AM, Matt S. mattsp...@gmail.com wrote: On Tue, Jan 26, 2010 at 7:10 AM, beno - flashmeb...@gmail.com wrote: personal cost, so I spent 4 months developing a fully automated shopping cart in Python (about 12000 lines of code). 12,000 lines of code and not a single trace function needed? impressive, or masochistic, I'm not sure which. Try to accept that I'm simply doing the best I can with what God gave me...which works really great in the arts, and not so hot in science ;) I'm learning ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 11:32 AM, Dave Watts dwa...@figleaf.com wrote: Hi! I'm the list manager. On second thought, forget flashnewbie. 3 posts so far this year. Hardly an active list. Other suggestions? I suggest you make it an active list. Fair enough. Just because other people aren't posting questions doesn't mean you can't, and it doesn't mean you won't get responses. It appears to me that you run the risk of wearing out your welcome here by asking questions that aren't really suitable to the focus of the list. Also fair enough. As I stated earlier, I'll post here when (a) it seems appropriate, and (b) when I exhaust other possibilities, including these new lists. I want to play by the rules, not degrade the list, etc. But I also need answers. If it appears, on down the road, that I've gotten off track, please put me back in line ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 11:53 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: If it appears, on down the road, that I've gotten off track, please put me back in line ;) I think that's what we've been trying to do. :) Continue to do so. It's what all of us want ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Tue, Jan 26, 2010 at 1:02 PM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Beno, I can help you out, this is my email, gusdue...@gmail.com email me the questions you need and If I don't know I can google it for you and point you to the right Direction. I know is hard to be newbie, anchio i'll sono pittore, I'm an artist too, and I know how hard is to digest the code when you are just thinking miles per hour in pure images. happens to me too. When it comes to you that way, my advice is to cool it down, write or draw it on paper and then start designing and writing the code, that is the way I read on many books, (i've saved you introduction or chapter one in many flash books) Thanks man. Copied your email. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Wild Idea. Possible?
On Sat, Jan 23, 2010 at 7:28 PM, David Hunter davehunte...@hotmail.comwrote: maybe look at Processing.org its a great language based on java that i imagine can do what you're after. there are lots of libraries written for it like blob detection (which might be useful for detecting you on a stage) or QR code recognition that might be helpful. Noted. Thanks ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Wild Idea. Possible?
On Sun, Jan 24, 2010 at 6:31 AM, Soeren.Meyer-Eppler soeren.meyer-epp...@buschnick.net wrote: Check out the art installations of Zachary Booth Simpson. Totally awesome ideas IMHO, he's been doing this for years and it requires lots of the same techniques you'll need. http://www.mine-control.com/ Very cool! Thanks! Also, there are some papers available for masking the speaker from the projected image. This is useful for presentations if you walk around in front of the projected image and don't want the image projected onto yourself. Any links? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] A Simple Problem
On Sat, Jan 23, 2010 at 3:11 PM, Henrik Andersson he...@henke37.cjb.netwrote: beno - wrote: What did I do wrong? Colon instead of semicolon at the end of one of the lines. The python has bitten me ;) Thanks, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Butt-Ugly
Hi; Please look at this: http://angrynates.com/cart/main.swf It's by no means complete. I'd just like you to look at the hand that tweens infinitely. What I did was simply take one position of the hand and move a few nodes that had been created with the pen (and tweak a few of the balancing bars, or whatever they're called). I didn't add or delete points. But the tween looks ugly because of the black color interfering. Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Butt-Ugly
On Mon, Jan 25, 2010 at 10:31 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: if you're doing shape tweens you need to start playing with shape hints. These give you a point which you snap to a point at the start of the tween and then there's a matching one where you'd like that point to finish at the end of the tween. k I warn you now - you should do a step and if you like the results duplicate the timeline to keep a backup and keep on working like that because shape tweens get really out of hand, really quickly k. I'll try to remember! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Butt-Ugly
On Mon, Jan 25, 2010 at 10:31 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: I warn you now - you should do a step and if you like the results duplicate the timeline How do I do that? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Butt-Ugly
On Mon, Jan 25, 2010 at 10:59 AM, David Hunter davehunte...@hotmail.comwrote: i second this. shape tweens rarely do what you want but shape hints can help. you might need to chop it up into lots of layers. sometimes i wonder if after all the effort it wouldn't have been simpler to do it by hand- frame by frame. hope it works out ok. Thanks. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Wild Idea. Possible?
On Mon, Jan 25, 2010 at 12:09 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: This could be done nicely with free WiiFlash server, a bluetooth dongle, Papervision3d, and a Nintendo Wiimote (which you would have on you somewhere) to act as the infared camera. Cool. Logged it. Thanks! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Butt-Ugly
I've played with the 9-scale, moved everything to a new relationship with the registration point and shape hints to no avail. It all looks the same :( It's like it compresses the entire hand as the thumb comes down. I just want the thumb to come down, not to compress the whole hand: http://angrynates.com/cart/main.swf Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AddEventListener
Hi; I have the following line of code in the init: picLoader.addEventListener(Event.ENTER_FRAME, checkFrame3); and this code further on: public function checkFrame3(e:Event):void { if (e.target.currentFrame == 10) { e.target.removeEventListener(Event.ENTER_FRAME, checkFrame); picLoader.addEventListener(PictureLoader.ALL_PICS_LOADED, createParticles); picLoader.loadPics(picURLString); } } I copied a bunch of code from flashandmath.com. The above is my own addition. It doesn't do anything. What I'd like it to do is, when the movie enters frame 10, activate the code I copied from flashandmath. If I pull out and replace my above-quoted line of code in the init with the same, everything works. But I'd like to delay this action for so many frames. Please advise. All code follows. TIA, beno package { import flash.text.TextField; import flash.text.TextFormat; import flash.text.TextFieldAutoSize; import flash.utils.getTimer; import com.dangries.loaders.*; import com.dangries.bitmapUtilities.PictureAtomizer; import com.dangries.objects.Particle3D; import com.dangries.geom3D.*; import com.dangries.display.*; import flash.filters.BlurFilter; import flash.geom.ColorTransform; import flash.geom.Rectangle; import flash.geom.Point; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; public class Main extends MovieClip { //Import Library Assests public var picURLString:Array; public var picLoader:PictureLoader; public var pic:Array; public var atomizer:PictureAtomizer; public var particles:Array; public var blur:BlurFilter; public var darken:ColorTransform; public var board:RotatingParticleBoard; public var boardRect:Rectangle; public var filterPoint:Point; public var p:Particle3D; public var param:Number; public var head:HatAndFace; public var leftEye:Eyeball; public var rightEye:Eyeball; public var leftHand:Hand; public var rightHand:Hand; public var myPic:picture; public var myThumb:CloseThumb; public function Main() { init(); } public function init():void { hatAndFace(); eyeball1(); eyeball2(); myRightHand(); myLeftHand(); thePic(); theThumb(); picURLString= [beno.jpg]; picLoader = new PictureLoader(); board = new RotatingParticleBoard(420,340,true, 0x, 160); board.setDepthDarken(-10,-80, 1.5); board.makeFrame(2,0x44,1); board.holder.x = stage.stageWidth/2 - board.width/2; board.holder.y = stage.stageHeight/2 - board.height/2; //set the initial rotation: board.currentQ = new Quaternion(Math.cos(Math.PI/12), Math.sin(Math.PI/12)/Math.sqrt(2),0,-Math.sin(Math.PI/12)/Math.sqrt(2)); //set the automatic rotation to use while mouse is not dragging: board.autoQuaternion = new Quaternion(Math.cos(Math.PI/300),0,Math.sin(Math.PI/300),0); blur = new BlurFilter(3,3); darken = new ColorTransform(1,1,1,0.8); boardRect = new Rectangle(0,0,board.width,board.height); filterPoint = new Point(0,0); //add following code to see arcball silhouette: /* var ballOutline:Shape = new Shape(); ballOutline.graphics.lineStyle(1,0x88); ballOutline.graphics.drawCircle(0,0,board.arcballRad); ballOutline.x = board.width/2; ballOutline.y = board.height/2; board.holder.addChild(ballOutline); */ picLoader.addEventListener(Event.ENTER_FRAME, checkFrame3); } //Place Head and Hat on stage and fade in public function hatAndFace():void { head = new HatAndFace(); head.x = stage.stageWidth/2; head.y = stage.stageHeight/4; head.alpha = 0; addChild(head); TweenLite.to(head, 2, {autoAlpha:1}); } //Place left eye on stage and fade in public function eyeball1():void { leftEye = new Eyeball(); leftEye.x = head.x - 30; leftEye.y = head.y + 15; leftEye.alpha = 0; addChild(leftEye); TweenLite.to(leftEye, 2, {autoAlpha:1}); } //Place right eye on stage and fade in public function eyeball2():void { rightEye = new Eyeball(); rightEye.x = head.x + 30; rightEye.y = head.y + 15; rightEye.alpha = 0; addChild(rightEye); TweenLite.to(rightEye, 2, {autoAlpha:1}); } //Place right hand on stage and fade in public function myRightHand():void { rightHand = new Hand(); rightHand.x = head.x + 480; rightHand.y = head.y + 50; addChild(rightHand); rightHand.addEventListener(Event.ENTER_FRAME, checkFrame); } //Place left hand on stage and fade in public function myLeftHand():void { leftHand = new Hand(); leftHand.x = head.x - 30; leftHand.y = head.y + 50; addChild(leftHand); // leftHand.addEventListener(Event.ENTER_FRAME, checkFrame); // TweenMax.fromTo(leftHand, leftHand.totalFrames - 1, {frame:leftHand.totalFrames}, {frame:1}); TweenMax.fromTo(leftHand, leftHand.totalFrames - 1, {frame:leftHand.totalFrames
Re: [Flashcoders] Butt-Ugly
On Mon, Jan 25, 2010 at 12:58 PM, Karl DeSaulniers k...@designdrumm.comwrote: You may have to break your thumb and hand into two separate things to tween. Might be easier. Yeah, good point. Thanks, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AddEventListener
On Mon, Jan 25, 2010 at 1:12 PM, Nathan Mynarcik nat...@mynarcik.comwrote: Have you tried tracing to see if that function you added is firing? Thank you. I added one at the top of that function and it didn't fire. So that tells us the problem must be in calling the function: picLoader.addEventListener(Event.ENTER_FRAME, checkFrame3); The only things I changed here when I copied and pasted this function call were changing from checkFrame to checkFrame3, and editing the variable calling the function; namely picLoader. Therefore I presume it must be the latter that is causing the problem. Why? After all, I but replaced an addEventListener (which I then put in checkFrame3): picLoader.addEventListener(PictureLoader.ALL_PICS_LOADED, createParticles); Please advise. TIA, beno -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of beno - Sent: Monday, January 25, 2010 10:57 AM To: Flash Coders List Subject: [Flashcoders] AddEventListener Hi; I have the following line of code in the init: picLoader.addEventListener(Event.ENTER_FRAME, checkFrame3); and this code further on: public function checkFrame3(e:Event):void { if (e.target.currentFrame == 10) { e.target.removeEventListener(Event.ENTER_FRAME, checkFrame); picLoader.addEventListener(PictureLoader.ALL_PICS_LOADED, createParticles); picLoader.loadPics(picURLString); } } I copied a bunch of code from flashandmath.com. The above is my own addition. It doesn't do anything. What I'd like it to do is, when the movie enters frame 10, activate the code I copied from flashandmath. If I pull out and replace my above-quoted line of code in the init with the same, everything works. But I'd like to delay this action for so many frames. Please advise. All code follows. TIA, beno package { import flash.text.TextField; import flash.text.TextFormat; import flash.text.TextFieldAutoSize; import flash.utils.getTimer; import com.dangries.loaders.*; import com.dangries.bitmapUtilities.PictureAtomizer; import com.dangries.objects.Particle3D; import com.dangries.geom3D.*; import com.dangries.display.*; import flash.filters.BlurFilter; import flash.geom.ColorTransform; import flash.geom.Rectangle; import flash.geom.Point; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; public class Main extends MovieClip { //Import Library Assests public var picURLString:Array; public var picLoader:PictureLoader; public var pic:Array; public var atomizer:PictureAtomizer; public var particles:Array; public var blur:BlurFilter; public var darken:ColorTransform; public var board:RotatingParticleBoard; public var boardRect:Rectangle; public var filterPoint:Point; public var p:Particle3D; public var param:Number; public var head:HatAndFace; public var leftEye:Eyeball; public var rightEye:Eyeball; public var leftHand:Hand; public var rightHand:Hand; public var myPic:picture; public var myThumb:CloseThumb; public function Main() { init(); } public function init():void { hatAndFace(); eyeball1(); eyeball2(); myRightHand(); myLeftHand(); thePic(); theThumb(); picURLString= [beno.jpg]; picLoader = new PictureLoader(); board = new RotatingParticleBoard(420,340,true, 0x, 160); board.setDepthDarken(-10,-80, 1.5); board.makeFrame(2,0x44,1); board.holder.x = stage.stageWidth/2 - board.width/2; board.holder.y = stage.stageHeight/2 - board.height/2; //set the initial rotation: board.currentQ = new Quaternion(Math.cos(Math.PI/12), Math.sin(Math.PI/12)/Math.sqrt(2),0,-Math.sin(Math.PI/12)/Math.sqrt(2)); //set the automatic rotation to use while mouse is not dragging: board.autoQuaternion = new Quaternion(Math.cos(Math.PI/300),0,Math.sin(Math.PI/300),0); blur = new BlurFilter(3,3); darken = new ColorTransform(1,1,1,0.8); boardRect = new Rectangle(0,0,board.width,board.height); filterPoint = new Point(0,0); //add following code to see arcball silhouette: /* var ballOutline:Shape = new Shape(); ballOutline.graphics.lineStyle(1,0x88); ballOutline.graphics.drawCircle(0,0,board.arcballRad); ballOutline.x = board.width/2; ballOutline.y = board.height/2; board.holder.addChild(ballOutline); */ picLoader.addEventListener(Event.ENTER_FRAME, checkFrame3); } //Place Head and Hat on stage and fade in public function hatAndFace():void { head = new HatAndFace(); head.x = stage.stageWidth/2; head.y = stage.stageHeight/4; head.alpha = 0; addChild(head); TweenLite.to(head, 2, {autoAlpha:1}); } //Place left eye on stage and fade in public function eyeball1():void
[Flashcoders] Rotation
Hi; Can someone please give me the general parameters for doing the following: 1) Rotate a hand on its axis; 2) Attach another graphic so that it rotates with the hand as if it were held by the same. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Mon, Jan 25, 2010 at 2:44 PM, Karl DeSaulniers k...@designdrumm.comwrote: Look at that fla I sent you. Where did you send this? Can you re-send it, please? Thanks, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Mon, Jan 25, 2010 at 3:27 PM, Muzak p.ginnebe...@telenet.be wrote: I suggest you buy a few books and start learning - basic - stuff rather than shooting emails to the list every 5 minutes. My first book is on its way. I'll still be asking questions, sorry. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Mon, Jan 25, 2010 at 3:42 PM, Henrik Andersson he...@henke37.cjb.netwrote: beno - wrote: My first book is on its way. I'll still be asking questions, sorry. Second book, you always have the manual. Right. My problem is limited time in front of my computer. Long story, but finally actually bought a computer (went broke in the Dominican Republic, etc.). But it's at a friend's office (I live on a boat and haven't been able to afford a wind generator yet). So I maximize my time online when I have the chance. Can't very well print out the manual. But a book I can take and read. I'll be out of this hole as soon as I develop two Flash sites, then I can cook with gas. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Mon, Jan 25, 2010 at 3:36 PM, Karl DeSaulniers k...@designdrumm.comwrote: It was a file so I sent it to your email. Off list Got it. Thanks :) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Rotation
On Mon, Jan 25, 2010 at 3:54 PM, Karl DeSaulniers k...@designdrumm.comwrote: By and large if you have something that has movable parts, put the parts in their own MC and then all of them together in one and control separately. As far as I know. Makes sense. Stick 'em together like Legos. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Shape Tween
Hi; Back. Finally finished that python shopping cart. 1) Select and copy shape tween 2) Create new layer (to be safe) 3) Create mc instance 4) I am now in the new mc and there is one layer and one frame. 5) I paste here? I only end up with the one frame and no tween. Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Shape Tween
Same problem. And how will it tween if it's a graphics symbol? Do graphic symbols tween? At any rate, it didn't work. Please be explicit and so kind as to edit my steps: 1) Select and copy shape tween 2) Create new layer (to be safe) 3) Create mc instance 4) I am now in the new mc and there is one layer and one frame. 5) I paste here? I only end up with the one frame and no tween. TIA, beno On Sat, Jan 23, 2010 at 9:28 AM, Henrik Andersson he...@henke37.cjb.netwrote: Put the tween in a graphics symbol. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Shape Tween
On Sat, Jan 23, 2010 at 10:22 AM, David Hunter davehunte...@hotmail.comwrote: make sure you are copying the frames and not just the content in the frame. NOT: edit copy ; DO: edit timeline copy frames ; (at least thats how i do it in Flash CS3 but maybe its different in other versions). That works better, but still no cigar. When I go to the new frame, click the first frame in the only layer of the new timeline (after creating my symbol instance, either movie or graphic), then cmd+v to paste and nada. Please advise. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Wild Idea. Possible?
Hi; To make a long story short, ever since I changed my diet to raw foods and cleared out my mask/sinuses I discovered I have my mom's voice (an internationally famous singer in her day) and now I'm hell-bent on performing. I have a vision of creating dreamscapes on a movie screen behind me (with Flash, AfterEffects, video, etc.). Imagine if I could somehow program the image to warp depending on where I was on stage. Possible? How? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Shape Tween
On Sat, Jan 23, 2010 at 10:44 AM, Henrik Andersson he...@henke37.cjb.netwrote: beno - wrote: Same problem. And how will it tween if it's a graphics symbol? Do graphic symbols tween? Graphic symbols has frames and as such can have shapetweens. But you apparently still need to use the special cut and paste menu. Use both solutions. Not sure I follow. I use special copy method (aka timeline) but there is no timeline paste method available, and regular paste doesn't work. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Shape Tween
On Sat, Jan 23, 2010 at 10:59 AM, Matt S. mattsp...@gmail.com wrote: Google: flash copy paste frames Have you tried this yourself? There's only one result with quotes and the question was not answered (in a similar forum). The results without quotes are all over the place and I haven't found one that is similar. Again, here is my process. It seems very straight-forward...but doesn't work: 1) Select and copy shape tween using timeline copy method 2) Create new layer (to be safe) 3) Create mc instance 4) I am now in the new mc and there is one layer and one frame. 5) I paste here? I only end up with the one frame and no tween. Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Wild Idea. Possible?
On Sat, Jan 23, 2010 at 11:06 AM, Matt S. mattsp...@gmail.com wrote: Best. Troll. Evar. Huh? Could you translate that into English? beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Shape Tween
On Sat, Jan 23, 2010 at 11:11 AM, David Hunter davehunte...@hotmail.comwrote: edit timeline paste frames Why it works now and didn't before baffles me. I could have sworn I tried that exact process. Well, thanks because it worked ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Wild Idea. Possible?
On Sat, Jan 23, 2010 at 11:34 AM, Henrik Andersson he...@henke37.cjb.netwrote: beno - wrote: On Sat, Jan 23, 2010 at 11:06 AM, Matt S.mattsp...@gmail.com wrote: Best. Troll. Evar. Huh? Could you translate that into English? You are new to the Internet aren't you? Yes. Started in 1995. Still new. Troll (subst): Someone who trolls. Troll (verb): To post in order to cause drama. Typical troll posts include controversial topics, things that everyone have agreed to be incorrect and so on. As you can see, the original post was accused of being trolling. I do not think that it was that at all and that the accusation was invalid. Obviously. Thanks. Dead-serious question. I will obviously need some kind of feedback hardware device that tells Flash where I am physically on stage so that it could triangulate my position and adjust itself accordingly. But is it even possible? There are swf files that move things around on screen depending on where the mouse is. The concept is similar: I would be the mouse! I presume, therefore, that I could create such a mouse instance of myself, couldn't I? What's evar? TIA beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Wild Idea. Possible?
On Sat, Jan 23, 2010 at 11:57 AM, Henrik Andersson he...@henke37.cjb.netwrote: beno - wrote: But is it even possible? It is, you can talk to a flash movie from the embedding application. Forwarding the current position is far from difficult. Just look up ExternalInterface in the manual. It's getting it to begin with that will be the real issue for you. You will need c/c++ api to work with whatever device API the hardware uses. Good. Thank you. This isn't a project for today ;) I'm just planning now ;) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Wild Idea. Possible?
On Sat, Jan 23, 2010 at 12:07 PM, Andrei Thomaz andreitho...@gmail.comwrote: if the moving background is a projection, it is easy to isolate the performer image. All you need is to use infrared camera. Infrared cameras don't see projected images (because that kind of light is cold'). I'm sure there are several ways to do it. Bluetooth would probably be my choice. But I'll cross that bridge later. As long as I can do it, I just want to start playing with ideas :)) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] A Simple Problem
Hi; I have this code: public class Main extends MovieClip { //Import Library Assests public var myThumb:CloseThumb; public function Main() { init(); } public function init():void { theThumb(); } public function theThumb():void { myThumb = new CloseThumb(): myThumb.x = 300; myThumb.y = 350; addChild(myThumb); } } } It throws this error: 1078: Label must be a simple identifier. I've added mcCloseThumb into the library of the fla. I've edited the Preferences for the same to export for AS and labeled the class CloseThumb. What did I do wrong? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Lost My checkFrame
I have the following code: public function myLeftHand():void { leftHand = new Hand(); leftHand.x = head.x - 20; leftHand.y = head.y + 50; addChild(leftHand); leftHand.addEventListener(Event.ENTER_FRAME, checkFrame); TweenMax.from(leftHand, 2, {x:420}); } //check the hands and stop when they reach the 40 frame public function checkFrame(e:Event):void { if (e.target.currentFrame == 40) { e.target.stop(); trace(hand is done tweening); e.target.removeEventListener(Event.ENTER_FRAME, checkFrame); } if (e.target.currentFrame == 40) { //TweenMax.from(leftHand, 2, {x:200}); var myTween:TweenMax = new TweenMax(leftHand, 2, {x:400}); myTween.totalProgress = 1; myTween.reverse(); } } Now, sometime before I entered the second if statement (which I have removed for testing to no avail), this code was executing flawlessly. Now, however, it doesn't trigger the ENTER_FRAME event. Now, this code isn't substantially different than what Nathan Mynarcik so kindly sent me, but now it doesn't trace. Below is the entire code. I have taken out the startLoad(), which does trace, but it still doesn't work. Where should I look? TIA, beno package { import flash.net.URLRequest; import flash.display.Loader; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.Event; import flash.events.MouseEvent; import flash.display.MovieClip; import com.greensock.*; import com.greensock.easing.*; public class Main extends MovieClip { //Import Library Assests public var head:HatAndFace; public var leftEye:Eyeball; public var rightEye:Eyeball; public var leftHand:Hand; public var rightHand:Hand; public var myPic:pic; public function Main() { init(); } public function init():void { hatAndFace(); eyeball1(); eyeball2(); myRightHand(); myLeftHand(); thePic(); startLoad(); } //Place Head and Hat on stage and fade in public function hatAndFace():void { head = new HatAndFace(); head.x = stage.stageWidth/2; head.y = stage.stageHeight/4; head.alpha = 0; addChild(head); TweenLite.to(head, 2, {autoAlpha:1}); } //Place left eye on stage and fade in public function eyeball1():void { leftEye = new Eyeball(); leftEye.x = head.x - 30; leftEye.y = head.y + 15; leftEye.alpha = 0; addChild(leftEye); TweenLite.to(leftEye, 2, {autoAlpha:1}); } //Place right eye on stage and fade in public function eyeball2():void { rightEye = new Eyeball(); rightEye.x = head.x + 30; rightEye.y = head.y + 15; rightEye.alpha = 0; addChild(rightEye); TweenLite.to(rightEye, 2, {autoAlpha:1}); } //Place right hand on stage and fade in public function myRightHand():void { rightHand = new Hand(); rightHand.x = head.x + 420; rightHand.y = head.y + 50; addChild(rightHand); rightHand.addEventListener(Event.ENTER_FRAME, checkFrame); } //Place left hand on stage and fade in public function myLeftHand():void { leftHand = new Hand(); leftHand.x = head.x - 20; leftHand.y = head.y + 50; addChild(leftHand); leftHand.addEventListener(Event.ENTER_FRAME, checkFrame); TweenMax.from(leftHand, 2, {x:420}); } //check the hands and stop when they reach the 40 frame public function checkFrame(e:Event):void { if (e.target.currentFrame == 40) { e.target.stop(); trace(hand is done tweening); e.target.removeEventListener(Event.ENTER_FRAME, checkFrame); } if (e.target.currentFrame == 40) { //TweenMax.from(leftHand, 2, {x:200}); var myTween:TweenMax = new TweenMax(leftHand, 2, {x:400}); myTween.totalProgress = 1; myTween.reverse(); } } public function thePic():void { myPic = new pic(); myPic.x = 300; myPic.y = 350; addChild(myPic); TweenMax.to(myPic, 1, {shortRotation:{rotation:60}, x:100, y:200
Re: [Flashcoders] Lost My checkFrame
On Fri, Dec 11, 2009 at 3:49 PM, Dave Watts dwa...@figleaf.com wrote: I have the following code: ... //check the hands and stop when they reach the 40 frame public function checkFrame(e:Event):void { if (e.target.currentFrame == 40) { ... } if (e.target.currentFrame == 40) { ... } } This may not have anything to do with your problem, but why do you have two identical conditional tests, one right after the other? Good point. I'll put everything in the first. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Lost My checkFrame
On Fri, Dec 11, 2009 at 4:02 PM, Nathan Mynarcik nat...@mynarcik.comwrote: That was a change after I gave him the Main.as file. You only need one conditional test beno. Each hand was being passed to that checkFrame function. When a frame reached frame 40, you can enter anything you want to happen after that. public function checkFrame(e:Event):void { if (e.target.currentFrame == 40) { //Enter code that needs to execute when frame 40 is reached } } I just edited to this: if (e.target.currentFrame == 40) { e.target.stop(); trace(hand is done tweening); e.target.removeEventListener(Event.ENTER_FRAME, checkFrame); //TweenMax.from(leftHand, 2, {x:200}); var myTween:TweenMax = new TweenMax(leftHand, 2, {x:400}); myTween.totalProgress = 1; myTween.reverse(); } but it still didn't work. Also, I took out everything after the line commented out previously with no good results. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Tue, Dec 8, 2009 at 5:50 PM, Greg Ligierko gre...@l-d5.com wrote: I think Beno does not see difference between local variables (google: local variables tutorial) and class properties (google: class properties tutorial). You are correct. I don't fully understand classes, although I doubt I'm far from it. I will google what you have suggested. Thank you! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Tue, Dec 8, 2009 at 5:07 PM, Karl DeSaulniers k...@designdrumm.comwrote: Well I know why this code was not working. if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2, {x:200, startAt:{totalProgress:1}}).reverse(); } Because it should read. if (e.target.currentFrame == 40) { TweenMax.to(mcHandInstance2, 2, {x:200, startAt:{totalProgress:1}}).reverse(); } You missed the first { Don know if that fixes everything or just this line. Just that line. It's commented out for now. But thank you very much! beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Wed, Dec 9, 2009 at 11:27 AM, Matt S. mattsp...@gmail.com wrote: On Wed, Dec 9, 2009 at 10:20 AM, beno - flashmeb...@gmail.com wrote: You are correct. I don't fully understand classes, although I doubt I'm far from it. I will google what you have suggested. Thank you! Didnt you say: I have many years working with python? Were you able to do that without touching oop or classes, beno? I'm ashamed to admit it, yes. I might very well be working in classes and what I'm doing in python could very well be oop, but I've never studied it as such and I obviously need to. I write all sorts of things like: def whatever(var, var2): stuff here and call that from other functions. If that's classes and oop, then I've been all over that for years. I dunno :-} We're OT again caution beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Mon, Dec 7, 2009 at 5:38 PM, Karl DeSaulniers k...@designdrumm.comwrote: My suggetion to you bueno is to rewrite your code using the suggestions provided by this list. Keep all variables different. If your attaching multiple instances , use the for loop to assign their names. Trace trace trace. Thank you. Sometimes rewriting your code line by line (while gruling it can be) will expose it's faults to you. Somtimes our eyes wash over the same thing time and time again. Don't they, though LOL! Oh and never ask someone to help you for free and get mad that they don't. Just bite your tongue and move forward on your own. Letting the list know how you had distain for it, just works against you in your search for an answer. I didn't ask him! He volunteered! If I had asked him, you would be right! Since he volunteered, I am! Oh and one other thing. I would google they type of project you making and see if it's already done. You may get farther adopting Somone elses code and morphing it into your project, and at the same time, see how it really works. Try this. Google a sentance of what your end goal of this project is. IE: flash and python based shopping page It's far more complex than that, as you no doubt know. Define shopping cart. Here, let me give you my definition: * Automate everything, so you don't have to rewrite it for every new client * That includes making it so it can accommodate the vastly different needs of, say, a jeweler and a pharmacy, the former being able to accommodate, say, daily price fluctuations in the spot gold market and the latter requiring login to access and order their personal prescriptions. Nah, I'll roll my own. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Tue, Dec 8, 2009 at 4:11 AM, Cedric Muller flashco...@benga.li wrote: Again ??!? Beno, you promised you would buy these books and study. And you promised to build bricks first before trying to build a skyscraper. I promised I would buy the books around the end of the year. I never promised anything about bricks or skyscrapers. I did, however, promise three clients I would build their sites in Flash. What is your point? That I am not honest? I am. Why don't we just get back to Flash? beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Mon, Dec 7, 2009 at 2:50 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: In my twisted mind, I'm actually kinda enjoying watching this thread self-destruct under its own weight. Twisted mind indeed. Do unto others as you would have others do unto you. If you treat me badly, it will come back to you (karma). Treat others with respect. Be nice. As for me, I just keep turning the other cheek. Do to me what you will, you cannot disturb my equanimity. I am always your friend, no matter what. And I will point out your errors to help you see the stumbling-blocks you place in your own path. Only the best of friends would do that for people who try to hurt them. You are hurting only yourself (yourselves). You have not hurt me. You cannot hurt me. It isn't even possible. Peace to you. My peace I leave with you. Draw your tight circles to close me out. I draw my infinitely wide circle to bring you in. Love conquers all. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Mon, Dec 7, 2009 at 7:33 PM, Karl DeSaulniers k...@designdrumm.comwrote: Beno, New or used? Take your pick. Hell what's your address I'll buy you one for Christmas if it means this thread can end. Pay it forward I always say.. :) http://www.amazon.com/gp/offer-listing/0596526946/ref=rdr_ext_uan Why would I care? If you're serious, send it here: c/o Best Furniture 4200 United Shopping Plaza Christiansted, VI 00820 (still too poor to even afford a POB LOL) beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Mon, Dec 7, 2009 at 7:14 PM, Steven Sacks flash...@stevensacks.netwrote: Dale Carnegie wrote the manifesto on this subject in 1934. Human nature being what it is, what he wrote then is still true today. I recommend that you include Dale Carnegie's book when you purchase Colin Moock's Essential Actionscript 3 book. Before Dale Carnegie wrote, for the Illuminati I might add, his politically correct books, the great Ch'an (Zen) masters of China compiled the Blue Cliff Records, a book, unlike the one you have cited, that has stood the test of time (centuries of it). Here are a few chapter titles. Take a look and see if some of the titles apply to your situation and approach. Begin in a friendly way. Call attention to other people's mistakes indirectly. The Ch'an masters weren't so subtle. They were famous for beating people senseless with their staffs and shouting them out the door. You, and almost everyone else, would demand from them they remove your cancerous tumor but set down their scalpels! It doesn't work that way. Even Jesus called the Pharisees you brood of vipers. You see, it's impossible to penetrate the ego by being nice to _the_ego_. The ego is the problem! As Edgar Cayce so often said, self stands in the way. Even Muhammad (peace and blessings be upon him) stated the greatest of all idols is the self (ego). Show respect for the other person's opinions. Never tell someone they are wrong. Read above. Ask questions instead of directly giving orders. I didn't give an order (?!) Don't criticize. LOL. Read above. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Tue, Dec 8, 2009 at 6:35 AM, Mark Winterhalder mar...@gmail.com wrote: On Tue, Dec 8, 2009 at 10:52 AM, beno - flashmeb...@gmail.com wrote: I promised I would buy the books around the end of the year. In case you're interested, Safari Books has a free 10 day trial. I haven't tried it myself, but I hear it's good. One of my greatest challenges right now is online time. I still haven't even bought a computer, and am borrowing the same. Thanks, though. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
On Tue, Dec 8, 2009 at 6:42 AM, Karl DeSaulniers k...@designdrumm.comwrote: Did you mean: Best Furnature 4200 United Shopping Plaza Christiansted, St. Croix U.S. Virgin Islands 00820 beno C/o Best Furniture etc. ? and yes I was serious. Cool! Thank you. BTW, you should probably buy a new one, since Amazon will ship it through the USPS directly, whereas the used books I always have to have shipped to my brother in the states and re-shipped down here. Thanks again! Please keep me posted. I only go to Best Furniture on weekends, usually. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders