Look into Event bubbling
http://www.google.com/search?hl=en&q=AS3+event+bubbling&meta=
- Original Message -
From: "Lehr, Ross (N-SGIS)"
To: "Flash Coders List"
Sent: Thursday, February 05, 2009 8:14 PM
Subject: RE: [Flashcoders] Best way to access my main class?
This brings up a qu
I appreciate your input. thank u so much!!
it works great~
On Wed, Feb 4, 2009 at 6:12 PM, ekameleon wrote:
> Hello :)
>
> ?? use the value "false" in the last argument of the constructor ? Read the
> documentation of the class :
>
> http://code.google.com/p/gaforflash/wiki/API
>
> search the G
Thanks, everybody!
Sounds like creating custom events is the way to go (and yes, it's for "Send
an alert of some kind to MyGame" kind of functionality). I don't have a lot
of experience with 'em, so I was probably going through more trouble to
avoid them than would actually be required to just suc
Hi list...
I have a class that extends MovieClip. I made a component definition
for it with two vars, each with same name/type as defined in the class
file. If I instance a new Cat() through code, there are no problems.
But, it doesn't work when I want to instance this component on a
timeline a
Hi, does anyone know what a good approach is to measuring broadband speed
like they do here
http://www.speedtest.net/
Thanks,
MaTT
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Yes - just turn event bubbling on - then any DisplayObject like sprite or movie
clip will pass the event up the display list.
Jason Merrill
Bank of America Instructional Technology & Media · Learning Performance
Solutions L&LD
Interested in Flash Platform technologies? Join the Bank
This brings up a question I had about events. Is there a way to send an event
all the way to the document class, no matter where it's been dispatched from?
For instance, I have a document class that creates a "menu" class, which
creates several "icon button" classes. I want the document class
Look up event bubbling.
Essentially if you dispatch your event with bubble=true (the second
parameter to an Event constructor), then the event will 'bubble' all
the way up the display hierarchy. So your document class will only
have to listen to itself for a given event - if any of its children
di
Additionally, you should take a look at what the code is doing.
Why does Bouncing Ball have to call something in the parent?
Is it some sort of notification? ("I've finished animating/I've hit a
wall!"). In which case an event is definitely the right solution.
Is it to gain information of some s
>>I think I whip up custom events more than almost anything else.
Yup - me too - in fact, in FlashDevelop, I have a nice event template in the
form of a code snippet for a new custom events I use all the time:
package
{
import flash.events.Event;
public class extends Ev
Sid:
Make a class that extends the CellRenderer class and.
..ack its quicker to show you the code. See below. This will do it for you.
package {
import fl.controls.listClasses.CellRenderer;
// make a cell renderer class that allow wrapping of text
public clas
Agreed on Option 3. Custom event inclusive of whatever kind of data you want
to send to the associated listening method. I think I whip up custom events
more than almost anything else.
- Eric
On Thu, Feb 5, 2009 at 1:30 PM, Nate Beck wrote:
> Option 3!
>
> Always opt to use event based architec
My preference is usually option 3, using an event. It means you can use
your ball in other situations, where that "call" back to the root may or may
not be necessary. Regarding cleaning up references in event listeners, you
can use a "weak reference" when you call addEventListener(). Also, I oft
Hi,
It looks better than my deadzone calc's which take up a lot more
code (I have 2 directions and a deadzone area in the middle and around
the outside of the "mouse area" controlling the velocity), but you are
welcome to compare below - I think mine is a bit more verbose, but I was
trying
Option 3!
Always opt to use event based architecture. It promotes loose coupling of
your components. Although it might be a bit more code, you will be able to
use BouncingBall within many games, or other applications.
On Thu, Feb 5, 2009 at 10:02 AM, Merrill, Jason <
jason.merr...@bankofamerica
>>*Option 3:* I create a custom event, dispatch that event, and create a
>>listener in MyGame rather than call a function directly.
>>I'm guessing this is the best way to go theoretically, and will allow me to
>>reuse my BouncingBall object in other applications, but it's a lot of extra
>>code, and
Hey, FlashCoders.
I'm wondering if you can help me out with a general style question that I
keep running into. Let's say I've got a setup like this...
class MyGame extends MovieClip
- It creates a "camera" sprite that I can add children into
- It then creates a "Bouncing Ball" object with t
just the sort of thing i'm looking to do...perfect
thanks
percy
On Thu, Feb 5, 2009 at 12:17 AM, Hans Wichman <
j.c.wich...@objectpainters.com> wrote:
> Hi,
> assuming you are using as2?
> http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html
>
> Besides that make sure that the
you could certainly increase / decrease the scale of a clip/sprite
containing a video playing flv
could you start a new thread in future, please? - i find these hijacked
threads really hard to follow
thanks
On Thu, Feb 5, 2009 at 1:12 PM, Ricardo M. Portilho <
ricardo.monteiro.porti...@gmail.com
you need to embed fonts to change the alpha / rotation of a textfield (even
if it's the containing clip that's being alpha'd / rotated
so the real question is how to embed the fonts in your doc
how have you tried doing it so far?
On Thu, Feb 5, 2009 at 2:09 PM, K-Dawg wrote:
> On Thu, Feb 5, 2
hi guys
I'm working on a carousel and i have a quick question about adding a
non-active area in the middle
at the moment, the carousel will move forward and backward based on the
mouse's position in relation to the center of the carousel but I'd like to
widen that by nDeadzoneRadius
here is the
Hi List,
Is it possible to have a the DataGrid component in Flash CS3 wrap its
text in a cell? So i have one block of text in stead of one long
sentence that falls out of screen?
I saw some references online that with Flex it is possible, by using
the wordWrap property (but im not using Fle
On Thu, Feb 5, 2009 at 3:12 AM, Hans Wichman wrote:
> Definitely do that:).
>
> Are you using as2 or as3? In any case reading through a book such as
> essential actionscript or a similar book, covers all of this stuff and
> saves
> you many headaches.
>
> TO get you started:
>
> http://www.google
Hi,
I was wondering if it is possible to action script a slider to increase and
decrease the size of a video component that plays flv or a for swf video on
a higher level than main movie.
Any ideas?
tanks,
R.
___
Flashcoders mailing list
Flashcode
if you're using flvplayback, set the property
fullScreenTakeOver
to false
On Mon, Feb 2, 2009 at 3:41 PM, Matt S. wrote:
> Are you loading the video player into its own holder mc? If you do
> that, then place that holder on the display list, then set
>
> if (stage.displayState == StageDisplayS
I think my "challence" is bigger. :-)
When a user clicks my close button, the Flash-app writes some data to a LMS.
But this writing action should also happen when the user closes the browser
with its menu, its close-cross or ALT-F4.
Help is much appreciated!!
-Original Message-
From: flas
I don't know Javascript.
And also ExternalInterface is a new one.
Can you give me a hand on this one?
Thanks!
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck
Sent: woensdag 4 februari 2009 18:05
T
Hi,
assuming you are using as2?
http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html
Besides that make sure that the source jpeg is a high quality one of course,
smoothing a crappy jpeg is not going to make it better:)
hth
JC
On Wed, Feb 4, 2009 at 7:18 PM, [p e r c e p t i c
Definitely do that:).
Are you using as2 or as3? In any case reading through a book such as
essential actionscript or a similar book, covers all of this stuff and saves
you many headaches.
TO get you started:
http://www.google.com/search?q=flash+embed+font+example&rls=com.microsoft:en-us:IE-Search
29 matches
Mail list logo