[Flashcoders] stageListeners in as2.0
hi to all, I have a main.swf movie LT 100% 100% settings for the main.swf file etc i added a another movie called as loadMovieNum("slide1.swf",2 ) but the slide1.swf doesn't stay centered when the browser is resized.. i used the code given below loadMovieNum("slide1.swf",2 ) import gs.TweenMax; import gs.easing.*; var main1_mc= this; var aaa:Number = Stage.width/100; var bbb:Number = Stage.height/100; TweenMax.to(_level2, 1.5, {_x: aaa * 3, _y:bbb *-4, ease:Expo.easeOut}); var stageListeners1:Object = new Object(); stageListeners1.onResize = function():Void { var aaa:Number =Stage.width/100; var bbb:Number =Stage.height/100; TweenMax.to(_level2, 1.5, {_x: aaa * 3, _y:bbb *-4, ease:Expo.easeOut}); }; Stage.addListener(stageListeners1); Any additional code would be greatfull!! Thanks amol ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] load one swf movie after another
Hi all, Can anyone advise me the best way to load one swf movie after another into main movie. I have 12-15 seperate swf files in action script 2.0 What I want to happen is have the first swf load in, start, play fully, and then move on to the next one when it is finished. Ideally i want one movie to the next to be seemless. Can I have the others swf`s loading in the background while the first one is playing I am using as2.0 Thanks Regards amol ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] 360 degree rotation
Thanx a lot - Original Message - From: "Paul Andrews" To: Sent: Monday, April 25, 2011 8:00 PM Subject: Re: [Flashcoders] 360 degree rotation On 25/04/2011 12:56, Paul Andrews wrote: On 25/04/2011 12:51, Paul Andrews wrote: On 25/04/2011 08:47, a...@yonearth.com wrote: thanx Cor But i need like this http://www.somersetdesign.co.uk/3drotator.php regards amol It's not that complicated. 1) put object on turntable. 1b Err.. take PHOTO here! LOL 2) rotate turntable X degrees Oops, TAKE PHOTO! 3) If object is not fully rotated, goto 1 Flash loads all images in a stack - one on top of another. Make all images invisible. Make the first visible. To rotate just move the visibility flag through the stack ( probably best to keep image references in an array). ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] 360 degree rotation
thanx Cor But i need like this http://www.somersetdesign.co.uk/3drotator.php regards amol - Original Message - From: "Cor" To: "'Flash Coders List'" Sent: Monday, April 25, 2011 12:26 PM Subject: RE: [Flashcoders] 360 degree rotation Oops, forgot to put it on stage: var obj:Sprite = new Sprite(); obj.graphics.beginFill(0xff); obj.graphics.drawRect(0,0,20,20); obj.graphics.endFill(); obj.x = 50; obj.y = 50; addChild(obj); function init():void{ addEventListener(Event.ENTER_FRAME, rotate, false,0,true); } function rotate(e:Event):void{ obj.rotation +=5; } //start the show init(); regards Cor ___ 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] 360 degree rotation
Hi all, any one have an idea how to create a 360 degree(spin,rotation) views of a object. in as3.0 . thanks, a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Multiple catagory search with combobox
Hi All, Is there any referance for multiple category search in action script 2.0, Thanks a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Text area focus
Hi, use set fouse for text , sample_txt.onSetFocus = sample1_txt.onSetFocus = function () { this.border = true; this.borderColor = 13683368; this.background = true; this.backgroundColor = 13683368; }; sample_txt.onKillFocus = sample1_txt.onKillFocus = function () { this.border = true; this.borderColor = 0; this.background = true; this.backgroundColor = 0; }; Regards amol - Original Message - From: "Karl DeSaulniers" To: "Flash List" Sent: Tuesday, June 15, 2010 9:51 AM Subject: [Flashcoders] Text area focus Hello, I have a text box or area on a form that I would like to know when a user has put the cursor in it or not. Wither it has focus or not. I am working in AS2. Please don't grit your teeth too much :-) For some reason I am not able to get the focus of my text area. Anyone have this code in their scrap files?.. lol TIA Karl DeSaulniers Design Drumm http://designdrumm.com ___ 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] swf compressing
hi, you can optimize .swf file with flash optimizer like ( eltima flash optimizer) amol - Original Message - From: "Latcho" To: "Flashcoders mailing list" Sent: Friday, June 11, 2010 1:18 AM Subject: [Flashcoders] swf compressing Hi friends, I have a bunch of AS2 / flash 8 swf files that are on a cdrom. The swf's were never intended for web use, but now the client wants a web version. The swf's contain gazzilions of uncompressed images. Is there a hacky shortcut / way to compress the images within the swf's without reopening / altering the fla projects ? I know I can google, but I love to here or the tools you used succesfull. I'm on windows. Cheers, Latcho ___ 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] ForceSmoothing a movie clip in ActionScript 2
Hi all, Is there any script for ForceSmoothing a movie clip in ActionScript 2 I am using given below script for smothing a movie clip but it is not working properly import flash.display.BitmapData; function smooth(bt_mc:MovieClip) { var bitmap:BitmapData = new BitmapData(bt_mc._width, bt_mc._height, true, 0x00); bt_mc.attachBitmap(bitmap, 80, "auto", true); bitmap.draw(bt_mc); } smooth(bt_mc); bt_mc.forceSmoothing = true; Regards amol ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] changing url without reloading page/swf in as2.0
Thanx - Original Message - From: "Mattheis, Erik (MIN - WSW)" To: "Flash Coders List" Sent: Thursday, April 08, 2010 11:24 AM Subject: RE: [Flashcoders] changing url without reloading page/swf in as2.0 http://www.asual.com/swfaddress/ From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Amol [a...@yonearth.com] Sent: Thursday, April 08, 2010 12:33 AM To: Flash Coders List Subject: [Flashcoders] changing url without reloading page/swf in as2.0 Hi list I've seen a site a while back that as you went through it, it would change the url without reloading the page/swf. I want to know how do i build a Flash navigation as the movie plays or if click on buttons have it change the url and the html text but leave the swf playing? I am using flash action script 2.0 thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] changing url without reloading page/swf in as2.0
Hi list I've seen a site a while back that as you went through it, it would change the url without reloading the page/swf. I want to know how do i build a Flash navigation as the movie plays or if click on buttons have it change the url and the html text but leave the swf playing? I am using flash action script 2.0 thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] click tracking code for flash banner adds
Hi to all I need a as 2.0 script for banner adds click tacking, I am using given below code which is not working properly System.security.allowDomain(""); System.security.allowInsecureDomain(""); System.security.allowDomain(""); System.security.allowInsecureDomain(""); System.security.allowDomain(_parent); System.security.allowInsecureDomain(_parent); loadVariables("http://www.test/test.aspx?Key=59&Action=1&RND="; + Math.random(), this); Regards ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] banner click tracking code problem
Hi list, I have a problem with banner tracking code I am using flash banner with player 6.0 and as 1.0 and the code is System.security.allowDomain("test.com"); System.security.allowInsecureDomain("test.com"); System.security.allowDomain("test.com"); System.security.allowInsecureDomain("test.com"); System.security.allowDomain(_parent); System.security.allowInsecureDomain(_parent); loadVariables("http://www.test.com/testing.aspx?Key=62&Action=1&RND="; + Math.random(), this); but cant track the click , is there any code in as 2.0 Thanx ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] external interface
It is because of your js just chang this lightbox++.js and check - Original Message - From: "Gustavo Duenas" To: "Flash Coders List" Sent: Saturday, January 16, 2010 5:09 AM Subject: Re: [Flashcoders] external interface solved I did as you mentioned and also I put a folder named images without seems not to work. But now I have a problem, when I click and the lightbox is launched, the flash movie disappear and when I click close on the lightbox img, the movie appears again, is that normal? Gustavo On Jan 15, 2010, at 3:54 PM, Bob Wohl wrote: Also, just took a quick peep at your code, I'm pretty certain your call should look like: ExternalInterface.call("LightboxDelegate","images/ cocoabutter.png" , "Cocoa Butter by COFINA SA'"); first param is the function name, second 2 would be the params you are passing. I would probably clean this up a little on the JS side and have a function that accepts the call from flash and handle the call to the lightbox script from there. But that's just my opinion. :) hth On Fri, Jan 15, 2010 at 1:47 PM, Bob Wohl wrote: Are you able to get a simple alert to show from a button call? Also, what browser are you using? On Fri, Jan 15, 2010 at 11:13 AM, Gustavo Duenas < gdue...@leftandrightsolutions.com> wrote: Thanks for your reply, I have the allow script access like this: var flashvars = {}; var params = {}; params.allowscriptaccess = "always"; var attributes={id:"menuCofina"}; swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%", "10.0.0",false,flashvars,params, attributes); I'm testing it over the internet, on my test site. but it is still not working, I don't get it...there is something wrong with my as3? I don't know I didn't realize this matter should be so difficult Gustavo On Jan 15, 2010, at 12:57 PM, Bob Wohl wrote: If you are testing localy you may need to go here and change your privacy settings to allow the directory you are testing from to communicate with JS: < http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html Also, you need to make sure your embed script is properly set up. Look at allowScriptAccess. B. On Fri, Jan 15, 2010 at 10:43 AM, Gustavo Duenas < gdue...@leftandrightsolutions.com> wrote: Hi, Coders, I've been trying to use External interface to activate a lightbox code I have on my web page, here is the html http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> /> Untitled Document var attributes={id:"menuCofina"}; swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%", "10.0.0",null,null,null, attributes); function LightboxDelegate(url,caption) { var objLink = document.createElement('a'); objLink.setAttribute('href',url); objLink.setAttribute('rel','lightbox'); objLink.setAttribute('title',caption); Lightbox.prototype.start(objLink); } and here is my as3 code. for the buttons. buttinButter.addEventListener(MouseEvent.CLICK, butterImage); function butterImage(evt:MouseEvent):void{ if(ExternalInterface.available){ ExternalInterface.call("LightboxDelegate('images/ cocoabutter.png' , 'Cocoa Butter by COFINA SA')"); trace("vamos bien"); }else{trace("problemas");} } buttonLiquor.addEventListener(MouseEvent.CLICK, liquorImage); function liquorImage(evt:MouseEvent):void{ if(ExternalInterface.available){ ExternalInterface.call("LightboxDelegate('images/ cocoaliquor.png' , 'Cocoa liquor by COFINA SA')"); trace("vamos-rebien");} } buttonPowder.addEventListener(MouseEvent.CLICK, powderImage); function powderImage(evt:MouseEvent):void{ if(ExternalInterface.available){ ExternalInterface.call("LightboxDelegate('images/ cocoapowder.png' , 'Cocoa Powder by COFINA SA')"); trace("rebien Vamos!!");} } Am I doing anything wrong, probably this is some estupid mistake, but I don't see it, I'm doing anything by the book, let me know, please I need this fixed asap. Regards, Gustavo ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders