On Sat, Mar 13, 2010 at 7:02 PM, David Hunter davehunte...@hotmail.comwrote:
why are you creating more nav's when you mouseover or click an instance of
nav? that seems unnecessary and quite possibly the source of the problem.
It isn't the source of the problem, but perhaps you could help me
On Sat, Mar 13, 2010 at 10:47 PM, Keith Reinfeld
keithreinf...@comcast.netwrote:
This would be the most straight forward means (given the context):
private function onMouseOverHandler(e:MouseEvent):void{
e.currentTarget.getChildAt(0).backgroundColor = 0x97F9EC;
}
private function
Global Agency of the Year
PR News Agency of the Year
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
Sent: Saturday, March 13, 2010 9:03 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Passing
I found this script which shows the mouse event propagation in a movie:
http://www.bigspaceship.com/blog/labs/snaring-mouseenabled/
It has really helped me determine when I think events are going astray.
On Mar 12, 2010, at 8:09 AM, Susan Day wrote:
On Fri, Mar 12, 2010 at 8:48 AM, Susan Day
On Sat, Mar 13, 2010 at 6:20 AM, David Benman d...@dbenman.com wrote:
I found this script which shows the mouse event propagation in a movie:
http://www.bigspaceship.com/blog/labs/snaring-mouseenabled/
It has really helped me determine when I think events are going astray.
I'm studying
On 12/03/2010 19:48, Anthony Pace wrote:
agreed, cause:
MouseEvent.ROLL_OVER, MouseEvent.ROLL_OUT, and mouseChildren set to
false makes it so both target and currentTarget return the object the
listener was applied to.
Unfortunately the OP has a rollover handler but not in response to a
: [Flashcoders] Passing Call To Child
From: suzieprogram...@gmail.com
To: flashcoders@chattyfig.figleaf.com
On Sat, Mar 13, 2010 at 6:20 AM, David Benman d...@dbenman.com wrote:
I found this script which shows the mouse event propagation in a movie:
http://www.bigspaceship.com/blog/labs/snaring
On Sat, Mar 13, 2010 at 10:36 AM, David Hunter davehunte...@hotmail.comwrote:
hi susan. you can paste this directly into a new FLA and it should work. it
works for me: http://pastebin.org/111702
i've passed it two parameters one for the actual url to navigate to and one
without the
down program that can be
pasted straight into an FLA and tested. put it on pastebin.org
thanks,
david
Date: Sat, 13 Mar 2010 11:02:44 -0400
Subject: Re: [Flashcoders] Passing Call To Child
From: suzieprogram...@gmail.com
To: flashcoders@chattyfig.figleaf.com
On Sat, Mar 13, 2010 at 10:36 AM
In the code below--
it looks like in the first function you have MouseEvent.MOUSE_DOWN associated
with the onMouseOverHandler and in the second function you have
Mouse.Event.MOUSE_OVER associated with the same handler.
Odie
On Mar 13, 2010, at 10:02 AM, Susan Day wrote:
On Sat, Mar 13,
On Sat, Mar 13, 2010 at 11:31 AM, David Hunter davehunte...@hotmail.comwrote:
why are you removing the click handler when you roll over surely when you
click it won't work?
I was just testing. It doesn't work with or without that line, so it's a
mute point.
and why are you testing for
On Sat, Mar 13, 2010 at 10:22 AM, Paul Andrews p...@ipauland.com wrote:
On 12/03/2010 19:48, Anthony Pace wrote:
agreed, cause:
MouseEvent.ROLL_OVER, MouseEvent.ROLL_OUT, and mouseChildren set to false
makes it so both target and currentTarget return the object the listener was
applied to.
sprite/movieclip
and loop through its children again with a 'for' loop.
hope i've helped!
david
Date: Sat, 13 Mar 2010 12:14:13 -0400
Subject: Re: [Flashcoders] Passing Call To Child
From: suzieprogram...@gmail.com
To: flashcoders@chattyfig.figleaf.com
On Sat, Mar 13, 2010 at 11:31 AM
, 13 Mar 2010 13:49:58 -0400
Subject: Re: [Flashcoders] Passing Call To Child
From: suzieprogram...@gmail.com
To: flashcoders@chattyfig.figleaf.com
On Sat, Mar 13, 2010 at 10:22 AM, Paul Andrews p...@ipauland.com wrote:
On 12/03/2010 19:48, Anthony Pace wrote:
agreed, cause
I think Susan has gone back to the boat with Victor.
Regards,
Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
now to change the color of the button, you
could redraw the child sprite which has the color, or change the
textformat of some text, or maybe use colortransform, or create
multiple versions of the same thing (like three rectangles each with a
different color) and toggle their visibility, or
On Thu, Mar 11, 2010 at 3:55 PM, Mattheis, Erik (MIN - WSW)
ematth...@webershandwick.com wrote:
The missing .html thing has to be a simple mistake you're not seeing.
I realized you must be right. So I pulled out the pertinent code and have
built a test case. Sure enough, it's working
On Fri, Mar 12, 2010 at 8:48 AM, Susan Day suzieprogram...@gmail.comwrote:
On Thu, Mar 11, 2010 at 3:55 PM, Mattheis, Erik (MIN - WSW)
ematth...@webershandwick.com wrote:
The missing .html thing has to be a simple mistake you're not seeing.
I realized you must be right. So I pulled out
I am wondering if you know when to use currentTarget vs target
e.currentTarget is the object that you applied the eventListener to
e.target is the object that fired the event.
and if you are looking to get the child, then make sure not set
mouseChildren to false.
e.g. try using this to test
On 12/03/2010 19:13, Anthony Pace wrote:
I am wondering if you know when to use currentTarget vs target
There's even more confusion about what a MouseOver is..
e.currentTarget is the object that you applied the eventListener to
e.target is the object that fired the event.
and if you are
agreed, cause:
MouseEvent.ROLL_OVER, MouseEvent.ROLL_OUT, and mouseChildren set to
false makes it so both target and currentTarget return the object the
listener was applied to.
On 3/12/2010 2:32 PM, Paul Andrews wrote:
On 12/03/2010 19:13, Anthony Pace wrote:
I am wondering if you know
I just did a quick search on google for the differences better
explained, and I came up with this:
http://www.wastedpotential.com/?p=10
After a quick glance, it seems like a nice tutorial.
On 3/12/2010 2:32 PM, Paul Andrews wrote:
On 12/03/2010 19:13, Anthony Pace wrote:
I am wondering if
On Wed, Mar 10, 2010 at 7:07 PM, Kenneth Kawamoto kennethkawam...@gmail.com
wrote:
If I understand you correctly you want to trace index.html?
One funky way is...
trace(new XML(a href='index.html'Home/a)@href);
// traces index.html
...therefore if your
On 11/03/2010 11:46, Susan Day wrote:
On Wed, Mar 10, 2010 at 7:07 PM, Kenneth Kawamotokennethkawam...@gmail.com
wrote:
If I understand you correctly you want to trace index.html?
One funky way is...
trace(new XML(a href='index.html'Home/a)@href);
// traces index.html
A bare-bones example of a navigation button you are after:
// NavigationButton class
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
public class NavigationButton extends Sprite {
public var
On Thu, Mar 11, 2010 at 8:01 AM, Paul Andrews p...@ipauland.com wrote:
Susan,
I think your main confusion lies with the concept of attaching code and
your clarification points to the URL being the content of the text field.
The natural place for your code is in the click handler.
The click
On 11/03/2010 12:37, Susan Day wrote:
On Thu, Mar 11, 2010 at 8:01 AM, Paul Andrewsp...@ipauland.com wrote:
Susan,
I think your main confusion lies with the concept of attaching code and
your clarification points to the URL being the content of the text field.
The natural place for your
On Thu, Mar 11, 2010 at 9:25 AM, Paul Andrews p...@ipauland.com wrote:
A simple class solution would be to extend MovieClip (or Sprite) and add a
url string. This would allow you to stop messing about with children.
package {
import flash.display.Sprite;
public class
On Thu, Mar 11, 2010 at 9:25 AM, Paul Andrews p...@ipauland.com wrote:
function onClick(e:Event):void{
trace(navigate to +e.currentTarget.url);
The blasted thing traced the url without .html at the end...again!! What
could possibly be causing this behavior? When I trace Btn.url in the
On 11/03/2010 13:53, Susan Day wrote:
On Thu, Mar 11, 2010 at 9:25 AM, Paul Andrewsp...@ipauland.com wrote:
function onClick(e:Event):void{
trace(navigate to +e.currentTarget.url);
The blasted thing traced the url without .html at the end...again!! What
could possibly be
On Thu, Mar 11, 2010 at 10:17 AM, Paul Andrews p...@ipauland.com wrote:
The trace statement above doesn't have '.html' appended. You have
inconveniently left off the assignment to the url string.
I believe I mentioned in an earlier post that when I print url in the
calling function, it prints
On 11/03/2010 15:41, Susan Day wrote:
On Thu, Mar 11, 2010 at 10:17 AM, Paul Andrewsp...@ipauland.com wrote:
The trace statement above doesn't have '.html' appended. You have
inconveniently left off the assignment to the url string.
I believe I mentioned in an earlier post that
On Thu, Mar 11, 2010 at 12:02 PM, Paul Andrews p...@ipauland.com wrote:
Show us Navigate.to()
Navigate was a script I copied and it works in other apps:
package
{
import flash.net.URLRequest;
import flash.net.navigateToURL;
public class Navigate{
public function
On 11/03/2010 16:20, Susan Day wrote:
On Thu, Mar 11, 2010 at 12:02 PM, Paul Andrewsp...@ipauland.com wrote:
Show us Navigate.to()
Navigate was a script I copied and it works in other apps:
package
{
import flash.net.URLRequest;
import flash.net.navigateToURL;
Please advise.
We are going around in circles.
Smells a bit like beno in here.
Jason Merrill
Bank of America Global Learning
Learning Performance Solutions
Join the Bank of America Flash Platform Community and visit our
Instructional Technology Design Blog
(note: these are for Bank
On Thu, Mar 11, 2010 at 1:23 PM, Paul Andrews p...@ipauland.com wrote:
Well it shows that it has nothing to do with the .html being missing and
nowhere have you shown where you assigned the string with .html added.
I believe I made it clear before that I assign the .html to the url. I
believe
On 11/03/2010 17:57, Susan Day wrote:
On Thu, Mar 11, 2010 at 1:23 PM, Paul Andrewsp...@ipauland.com wrote:
Well it shows that it has nothing to do with the .html being missing and
nowhere have you shown where you assigned the string with .html added.
I believe I made it clear
The missing .html thing has to be a simple mistake you're not seeing. Have
you tried tracing the value at every point where it gets passed around?
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts here.
PRWeek Global Agency
You are holding onto the string reference created after addding the .html and
not the reference to the object that doesn't have the .html, right?
--- On Thu, 3/11/10, Susan Day suzieprogram...@gmail.com wrote:
From: Susan Day suzieprogram...@gmail.com
Subject: Re: [Flashcoders] Passing Call
Hi;
I have this line of code that I need to fix:
myFunction(e.currentTarget[aChild].text);
That is, I need to target not e.currentTarget but the child of the same
(aChild). How do I do that?
TIA.
Susan
___
Flashcoders mailing list
If aChild is a public property of your currentTarget, your code would work.
If not you can use getChildByName()/getChildAt()
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
On 10 March 2010 12:05, Susan Day suzieprogram...@gmail.com wrote:
Hi;
I have this line of code that I need to fix:
On Wed, Mar 10, 2010 at 9:31 AM, kennethkawam...@gmail.com
kennethkawam...@gmail.com wrote:
If aChild is a public property of your currentTarget, your code would
work.
If not you can use getChildByName()/getChildAt()
It isn't, so I tried this code:
On Wed, Mar 10, 2010 at 10:20 AM, Susan Day suzieprogram...@gmail.comwrote:
On Wed, Mar 10, 2010 at 9:31 AM, kennethkawam...@gmail.com
kennethkawam...@gmail.com wrote:
If aChild is a public property of your currentTarget, your code would
work.
If not you can use
Hi Susan,
The error means that 'e.currentTarget.getChildByName(aChild).text'
dies not exist.
I think the syntax should read e.currentTarget.getChildByName
(aChild).text (quotes around aChild as the name of an object is a
string)
HTH
Willem van den Goorbergh
On 10-mrt-2010, at 15:22, Susan
That is, I need to target not e.currentTarget but the child of the
same
(aChild). How do I do that?
Personally, I think this is the wrong approach. Dispatch events with
event bubbling or a design pattern like MVC with events instead. You
should not couple your code so tightly to parent/child
Yes I sent that to the wish list, to make AS4 fairer. ;-)
Did you try the quotes?
Willem
On 10-mrt-2010, at 15:58, Susan Day wrote:
On Wed, Mar 10, 2010 at 10:38 AM, Geografiek
geograf...@geografiek.nlwrote:
Hi Susan,
The error means that 'e.currentTarget.getChildByName(aChild).text'
On Wed, Mar 10, 2010 at 11:23 AM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
That is, I need to target not e.currentTarget but the child of the
same
(aChild). How do I do that?
Personally, I think this is the wrong approach. Dispatch events with
event bubbling or a design
On Wed, Mar 10, 2010 at 12:04 PM, Geografiek geograf...@geografiek.nlwrote:
Yes I sent that to the wish list, to make AS4 fairer. ;-)
Did you try the quotes?
Yes, to no avail :(
Other ideas?
Susan
___
Flashcoders mailing list
If you trace e.currentTarget what do you get?
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
On 10 March 2010 14:58, Susan Day suzieprogram...@gmail.com wrote:
On Wed, Mar 10, 2010 at 10:38 AM, Geografiek geograf...@geografiek.nlwrote:
Hi Susan,
The error means that
On Wed, Mar 10, 2010 at 1:21 PM, kennethkawam...@gmail.com
kennethkawam...@gmail.com wrote:
If you trace e.currentTarget what do you get?
[object Sprite]
1
The 1 is from this line, which follows:
trace(e.currentTarget.numChildren);
So lo and behold, apparently currentTarget does indeed
On Wed, Mar 10, 2010 at 2:20 PM, Susan Day suzieprogram...@gmail.comwrote:
On Wed, Mar 10, 2010 at 1:21 PM, kennethkawam...@gmail.com
kennethkawam...@gmail.com wrote:
If you trace e.currentTarget what do you get?
[object Sprite]
1
The 1 is from this line, which follows:
Coders List
Subject: Re: [Flashcoders] Passing Call To Child
Sent: Mar 10, 2010 12:20 PM
On Wed, Mar 10, 2010 at 1:21 PM, kennethkawam...@gmail.com
kennethkawam...@gmail.com wrote:
If you trace e.currentTarget what do you get?
[object Sprite]
1
The 1 is from this line, which follows:
trace
On Wed, Mar 10, 2010 at 2:32 PM, Nathan Mynarcik nat...@mynarcik.comwrote:
If you are putting the sprite in an MC and then doing mc.name = myName
it should then return the name of the mc. Sprite however does not have the
name property.
The plot thickens. So I changed my Sprite to an MC and
Can u give the text box a variable name and reference that instead of
the .text or .htmlText value?
Karl
Sent from losPhone
On Mar 10, 2010, at 12:47 PM, Susan Day suzieprogram...@gmail.com
wrote:
On Wed, Mar 10, 2010 at 2:32 PM, Nathan Mynarcik
nat...@mynarcik.comwrote:
If you are
If I understand you correctly you want to trace index.html?
One funky way is...
trace(new XML(a href='index.html'Home/a)@href);
// traces index.html
...therefore if your e.currentTarget.getChildAt(0).htmlText is giving
you a href='index.html'Home/a you can do:
trace(new
On 10/03/2010 12:05, Susan Day wrote:
Hi;
I have this line of code that I need to fix:
myFunction(e.currentTarget[aChild].text);
That is, I need to target not e.currentTarget but the child of the same
(aChild). How do I do that?
TIA.
Susan
___
56 matches
Mail list logo