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 +
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
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...
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
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]
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
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
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
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
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:
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,
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
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
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]
And ofcourse addChild(mc); if it is to be visible
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
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]
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
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
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]
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
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
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
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
23 matches
Mail list logo