bn1.addEventListener(MouseEvent.MOUSE_OVER,funcOver);
bn1.addEventListener(MouseEvent.MOUSE_OUT,funcOut);
function funcOver(e:MouseEvent) {
trace(e.target.name);
bn1.addEventListener(Event.ENTER_FRAME,func,false,0,true);
}
function funcOut(e:MouseEvent) {
trace(e.target.name);
Hello :)
you can try MouseEvent.MOUSE_MOVE or you can use Event.ENTER_FRAME, you run
the enterFrame in the mouseOver event and you stop it with the mouseOut.
EKA+ :)
2010/4/23 Lehr, Theodore ted_l...@federal.dell.com
How can I have a function called as long as MOUSE_OVER
I am trynig:
Thanks!
From: flashcoders-boun...@chattyfig.figleaf.com
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ekameleon
[ekamel...@gmail.com]
Sent: Friday, April 23, 2010 1:41 PM
To: Flash Coders List
Subject: Re: [Flashcoders] addEventListener
Subject: Re: [Flashcoders] addEventListener - repeat function call
Hello :)
you can try MouseEvent.MOUSE_MOVE or you can use Event.ENTER_FRAME, you run the
enterFrame in the mouseOver event and you stop it with the mouseOut.
EKA+ :)
2010/4/23 Lehr, Theodore ted_l...@federal.dell.com
How can I have
Although its not as accurate as is sometimes believed:
Programming with Timers: Don’t be fooled.
http://www.bit-101.com/blog/?p=910
On Fri, Apr 23, 2010 at 2:21 PM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
I would recommend using the Timer class instead of the EnterFrame event.
] On Behalf Of Matt S.
Sent: Friday, April 23, 2010 2:53 PM
To: Flash Coders List
Subject: Re: [Flashcoders] addEventListener - repeat function call
Although its not as accurate as is sometimes believed:
Programming with Timers: Don't be fooled.
http://www.bit-101.com/blog/?p=910
On Fri, Apr 23, 2010
Merrill, Jason wrote:
Yes, although he says in that post, So I'm not saying it's a bad thing [to use the
Timer class], just realize that timers are susceptible to being slowed down by intensive
code and slow CPUs, just like enterFrame is.
There is also the fact that no matter how accurate
2010/3/1 Beatrix Krümmer-Frau birik...@hotmail.de
Did you check the spelling?
Thank you all. Yes, yesterday's lesson was brought to me by the letter 'N'
lol.
Today's lesson is different. Here's my code:
function DisplayPicLoaded(evt:Event):void
{
var container:Sprite = new Sprite();
var
Hi Susan,
In DisplayPicLoaded you add displayObject as a child of container.
So in navToURL you can reference it as e.currentTarget.displayObject
HTH
Willem van den Goorbergh
On 2-mrt-2010, at 13:59, Susan Day wrote:
2010/3/1 Beatrix Krümmer-Frau birik...@hotmail.de
Did you check the
On Tue, Mar 2, 2010 at 9:15 AM, Geografiek geograf...@geografiek.nl wrote:
Hi Susan,
In DisplayPicLoaded you add displayObject as a child of container.
So in navToURL you can reference it as e.currentTarget.displayObject
Half-way there. I now have this code:
function
Hi Susan,
Didn't you attach that url in DisplayPicLoaded in the line
displayObject.url = myURLs[countRounds];?
Error 1119 has to do with referring to a non-existent property. Do
you know which?
Tracing is your friend here I would say.
To be honest I don't know if the Navigate.to line is
On Tue, Mar 2, 2010 at 9:47 AM, Geografiek geograf...@geografiek.nl wrote:
Hi Susan,
Didn't you attach that url in DisplayPicLoaded in the line
displayObject.url = myURLs[countRounds];?
No. I attached jpgs.
Error 1119 has to do with referring to a non-existent property. Do you know
On Tue, Mar 2, 2010 at 9:58 AM, Susan Day suzieprogram...@gmail.com wrote:
On Tue, Mar 2, 2010 at 9:47 AM, Geografiek geograf...@geografiek.nlwrote:
Hi Susan,
Didn't you attach that url in DisplayPicLoaded in the line
displayObject.url = myURLs[countRounds];?
No. I attached jpgs.
1120: Access to undefined property NavToURL
Today's show was brought to you by the capital letter N vs. the
lower-case letter n.
Jason Merrill
Bank of America Global Learning
Learning Performance Solutions
Join the Bank of America Flash Platform Community and visit our
Instructional
You made a typo:
container.addEventListener(MouseEvent.CLICK, NavToURL);
must be:
container.addEventListener(MouseEvent.CLICK, navToURL);
//lowercase nav
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf
Flash is case-sensitive. Looks like your NavToURL in your addEventListener
call should really be navToURL
--T
On Mon, Mar 1, 2010 at 10:50 AM, Susan Day suzieprogram...@gmail.comwrote:
Hi;
I have the following code:
function DisplayPicLoaded(evt:Event):void
{
var container:Sprite = new
Did you check the spelling?
1120: Access to undefined property NavToURL - navToURL()
Susan Day schrieb:
Hi;
I have the following code:
function DisplayPicLoaded(evt:Event):void
{
var container:Sprite = new Sprite();
var myXArray:Array = new Array(10,176,342,508,674,840);
var
Change your function to this:
function navToURL(e:Event):void
{
trace(e.currentTarget);
trace('hi');
}
--Original Message--
From: Susan Day
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] addEventListener Problem
Have you tried tracing to see if that function you added is firing?
-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:
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:
You are correct, that is the part that I was overlooking. For some odd
reason I was feeling like I couldn't dispatch that information from within
the component.
Thanks...
On 1/31/08, Steven Sacks [EMAIL PROTECTED] wrote:
Now that I look at it, it's more an architecture issue than a custom
Interesting approach.. Thanks Jer
On 1/31/08, Jer Brand [EMAIL PROTECTED] wrote:
There are probably a hundred other ways to do this, but an easy one
(off the top of my head) would be to make your holder variable a
custom element that extends sprite, but has it's own variables, like:
class
There are probably a hundred other ways to do this, but an easy one
(off the top of my head) would be to make your holder variable a
custom element that extends sprite, but has it's own variables, like:
class HolderClass extends Sprite
{
private var _myParam:String
public function
You make a custom event class that extends Event, and you pass the
params that Event is expecting first.
http://3lbmonkeybrain.blogspot.com/2008/01/how-to-extend-event-once-and-for-all.html
___
Flashcoders mailing list
Thanks, I know how to extend the Event class to create your custom events,
what I am having an issue with was capturing an event that hasnt been
declared yet :)
On 1/31/08, Steven Sacks [EMAIL PROTECTED] wrote:
You make a custom event class that extends Event, and you pass the
params that
Now that I look at it, it's more an architecture issue than a custom
event issue.
Your drop down component should listen to the items inside it for when
they are selected, and your drop down component should fire a change
event when it changes.
item.addEventListener(SELECT, onItemSelect);
Try this:
var dcb:Function = Delegate.create(controller,
controller.correctButton_OnRelease);
correctButton.addEventListener(onRelease, dcb);
...
correctButton.removeEventListener(onRelease, dcb);
[EMAIL PROTECTED] escribió:
The problem is this :
...
This delegate implementation sends a reference to the receiver.
http://dynamicflash.com/2005/02/delegate-class-refined/
Maybe you could store references to all your delegations somewhere.
Something like a DelegateLocator . ;) Just a thought...
Regards,
Michael
On 2/23/06, Miguel Angel Sánchez
Thanks for the tips Moses! I'm gonna download and check out
CallbackDispatcher 2.0 now...
Where are you from? I'm living in NJ, working in Manhattan.
-steve
On 2/12/06, Moses Gunesch [EMAIL PROTECTED] wrote:
Steve -
Yes there are 2 things available for this. MM added that
functionality
Steve -
Yes there are 2 things available for this. MM added that
functionality in some event classes that are pretty much undocumented
and a little tough to learn - UIEventDispatcher and LowLevelEvents.
Secondly, I wrote a class called CallbackDispatcher that makes it
really easy to use
Thats not how EventDispatcher works.
Firstly, you need a movieclip whose class has EventDispatcher tied into it
(like the v2 components do). Once that's working, the correct syntax is:
mc.addEventListener(click, this);
function click() {
// do stuff
}
On 1/19/06, Steve Warren [EMAIL
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lanny McNie
Sent: Friday, 20 January 2006 9:40 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] addEventListener - MovieClip wants to pass event
tocontaining class
Thats not how EventDispatcher works.
Firstly, you need
32 matches
Mail list logo