Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-13 Thread Bassam M
Sjm I asked this question before and I got the answer as the following If your item classes are card1, card2, card3 and so on, and your code currently works... AboutButton.addEventListener(MouseEvent.CLICK, gocard); function gocard(e:MouseEvent):void { /// var cardName:String = card+String(1 +

Re: [Flashcoders] Re: loaderURL from child object

2008-07-13 Thread Kenneth Kawamoto
I probably misunderstood your question, but since you are loading MyFileGoesHere.SWF you must know the path to it...? Kenneth Kawamoto http://www.materiaprima.co.uk/ Helmut Granda wrote: hello all, I just wanted to re-write my question in case I didnt make sense. So what I want to know is

Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-13 Thread Bassam M
Sorry I didn't get ur question right I thought from library ! On 7/13/08, Bassam M [EMAIL PROTECTED] wrote: Sjm I asked this question before and I got the answer as the following If your item classes are card1, card2, card3 and so on, and your code currently works...

[Flashcoders] loop or if

2008-07-13 Thread Bassam M
Hi guys I have this simple question I have this script btn.addEventListener(MouseEvent.CLICK, f1); function f1(e:MouseEvent):void { var i:Number = 2 ; if (i 10) { i = i++; trace(i = + i); } } I want to multiple i when I click on btn I m getting i = 2 always i don't understand I need

Re: [Flashcoders] loop or if

2008-07-13 Thread Paul Andrews
i always being 2 doesn't make much sense (in the trace anyway). var i:Number = 2 ; btn.addEventListener(MouseEvent.CLICK, f1); function f1(e:MouseEvent):void { if (i 10) { trace(i = + i); i = i+2; } } Paul - Original Message - From: Bassam M [EMAIL PROTECTED]

RE: [Flashcoders] loop or if

2008-07-13 Thread Cor
Hi Bassam, Try this var i:Number = 0 ; btn.addEventListener(MouseEvent.CLICK, f1); function f1(e:MouseEvent):void { if (i 10) { i += 2; trace(i = + i); } } Regards Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] loop or if

2008-07-13 Thread Hans Wichman
Hi, function f1(e:MouseEvent):void { var i:Number = 2 ; //set i to 2 if (i 10) { //if i10 = true, so this always executes i = i++; //i = now 3 trace(i = + i); //traces 3 not 2? } you probably want to declare i as an instance variable, not a local var

Re: [Flashcoders] 2D and 3D floor plans

2008-07-13 Thread Meinte van't Kruis
Very, very nice, I love how intuitive everything works and how seemingly easy it is to put things together. Everything works fine here, but I just run the flash 9r115 with firefox 2.0015. good job! On Sun, Jul 13, 2008 at 4:16 AM, Charles Parcell [EMAIL PROTECTED] wrote: FF3 FP10b Going to

Re: [Flashcoders] loop or if

2008-07-13 Thread Bassam M
Yes sorry its traces 3 but I want to do something like on click multiple the i var or and variable as I said first click i=2 then second click i = 4 and so untile i =10 On 7/13/08, Hans Wichman [EMAIL PROTECTED] wrote: Hi, function f1(e:MouseEvent):void { var i:Number = 2 ; //set i to 2

Re: [Flashcoders] loop or if

2008-07-13 Thread Bassam M
Cor thank you it's working On 7/13/08, Bassam M [EMAIL PROTECTED] wrote: Yes sorry its traces 3 but I want to do something like on click multiple the i var or and variable as I said first click i=2 then second click i = 4 and so untile i =10 On 7/13/08, Hans Wichman [EMAIL PROTECTED] wrote:

Re: [Flashcoders] loop or if

2008-07-13 Thread Hans Wichman
sorry i misread it, i thought u needed to double i, but it seems you want to up it by 2, that's i+=2. On Sun, Jul 13, 2008 at 1:25 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, function f1(e:MouseEvent):void { var i:Number = 2 ; //set i to 2 if (i 10) { //if i10 = true,

RE: [Flashcoders] loop or if

2008-07-13 Thread Cor
Youre welcome! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bassam M Sent: zondag 13 juli 2008 14:35 To: Flash Coders List Subject: Re: [Flashcoders] loop or if Cor thank you it's working On 7/13/08, Bassam M [EMAIL PROTECTED] wrote: Yes sorry its

[Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread SJM
Hi Guys Im having a weird problem with a rollover, im trying to create a simple mouse_over/mouse out but for some reason the over and out do not work properly! I have 5 MC buttons on the main stage within each of the MCs is 4layers; layer 1 - a empty MC to load an image into, Layer 2 -shape

RE: [Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread Cor
You override your mcName 5 times, so only the last instance remains in focus. I guess, without knowing the rest of your application, in the function addOverOut add these lines as first lines: Var mc:MovieClip = new MovieClip(); mc = mcName; -Original Message- From: [EMAIL PROTECTED]

RE: [Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread Cor
And ofcourse addChild(mc); if it is to be visible ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread SJM
Thanks for your help! Ive uploaded the SWF as i can se the problem isnt easy to explain! http://79.170.40.163/flashdev.com/devgallery/development.swf SJM - Original Message - From: Cor To: 'Flash Coders List' Sent: Sunday, July 13, 2008 5:07 PM Subject: RE: [Flashcoders]

Re: [Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread SJM
basically the box is suppose to expand than contract on mouse out! - Original Message - From: Cor To: 'Flash Coders List' Sent: Sunday, July 13, 2008 5:07 PM Subject: RE: [Flashcoders] Wierd roleover problem! AS3 You override your mcName 5 times, so only the last instance

RE: [Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread Cor
Look at this: www.badmintonclubnetwerk.nl/_Cor/Dave Move over the buttons. Is this what you mean? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SJM Sent: zondag 13 juli 2008 18:27 To: Flash Coders List Subject: Re: [Flashcoders] Wierd roleover

RE: [Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread Cor
It is not to say what is happing viewing the swf. If you can send me the fla and I will look at it for you. Regards Cor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SJM Sent: zondag 13 juli 2008 18:26 To: Flash Coders List Subject: Re: [Flashcoders]

Re: [Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread SJM
No not quite! I want the width of the MC to increase revealing more of the image, so I used a shape mask that is tweened! - Original Message - From: Cor To: 'Flash Coders List' Sent: Sunday, July 13, 2008 5:31 PM Subject: RE: [Flashcoders] Wierd roleover problem! AS3 Look

Re: [Flashcoders] Wierd roleover problem! AS3

2008-07-13 Thread SJM
http://79.170.40.163/flashdev.com/devgallery/devgallery.zip - Original Message - From: Cor To: 'Flash Coders List' Sent: Sunday, July 13, 2008 5:33 PM Subject: RE: [Flashcoders] Wierd roleover problem! AS3 It is not to say what is happing viewing the swf. If you can

[Flashcoders] Web service headache

2008-07-13 Thread daniele tassone
Hi at all - I use AS2 and Web Service in all my projects. I want to use AS3 but i no found any integrated class in order to use WebService :-( So i have try to use NetConnection without success: i can't call any webservices with Netconnection. Any suggest to use Web Service in AS3 ? Any suggest

Re: [Flashcoders] Web service headache

2008-07-13 Thread Juan Pablo Califano
Hi, Check this out: http://www.wellconsidered.be/blog/2007/10/24/webservice-class-for-as3-in-flash-cs3-update/ Cheers Juan Pablo Califano 2008/7/13, daniele tassone [EMAIL PROTECTED]: Hi at all - I use AS2 and Web Service in all my projects. I want to use AS3 but i no found any