AS3 stupid question
- Started
- Last post
- 18 Responses
- alicetheblue
event.target.alpha
ok
so what does the "." mean???
- WOPR0
step in the path to the object
- fyoucher10
think of it like a folder structure
Parent/Child/Child
Thing That Happens / Object That It Happens To / Property That Gets Affected
- epikore0
that's how you end a sentence
- i thought you use ;
to end sentencealicetheblue - yes, that is trueepikore
- i thought you use ;
- epikore0
It's a seperator
- WOPR0
hehe... i just read what i wrote... i made zero sense and i apologize as i really did want to help
:)
- alicetheblue0
since you are all here :P
when you usedifference:Number
I think of ":" as "is" ... is that kinda' right?
- sure!
you're simply defining what 'data type' the variable 'difference' IS... it is a Number. :)WOPR
- sure!
- tommyo0
There are no stupid questions ...
- unless they're your q'sWOPR
- yeah i know just stupid peoplealicetheblue
- tommy... it's pony, you big baby... i'm just kiddingWOPR
- actually no... gfy.
(i think that's how the joke goes)WOPR - you didn't mean me?
*wipes tears from eyesalicetheblue - i have carnal knowledge of tommy...
... or maybe it's 'carnie' knowledge - regardless... i was talking to him. :DWOPR - yapping at tommy... and he's ignoring me... so we both lose, alice :(WOPR
- dickhead I hate you!!! :Dtommyo
- i think he's talking to you, aliceWOPR
- what an ass!!WOPR
- yeah what a douche!! Kick his ass Alice!tommyo
- *kick
high heel flies off and hits lurking peep in the eyealicetheblue
- alicetheblue0
thanks all - this helps!!!
I kinda have to understand,
rather then memorize, or cut and paste.
- tommyo0
alice you should pick up some beginners books or something. The Colin Moock one is kind of the industry standard bible but I found that the AS3 Cookbook really helped me wrap my head around a lot of the new syntax. There is an even more basic one I looked at for a friend a while ago, it looked pretty good. Link: http://www.amazon.com/Learning-A…
- alicetheblue0
I was looking at a bunch of books yesterday and couldn't decide.
This helps!
Doing the tuts on Lynda and finding the syntax is a bit confusing as I'm used to AS1 hehe- I never liked those Lynda tutorials. This is a good site for tutorials gotoandlearn.comtommyo
- thanks just looking here, too!alicetheblue
- epikore0
This is a great book to start out http://www.amazon.com/ActionScri…
- WOW just looked inside that book
- great baby talk - perfect for me!!alicetheblue
- WOW just looked inside that book
- ornj0
flag just went up for me, I always made the same mistake.
event.target.alpha
make sure you don't really mean:
event.currentTarget.alphatarget can return objects that are actually inside what you are referring to where as currentTarget will always be the object you placed the listener on.
- WOPR0
hey ornj (not to hijack the thread)... but i'm a newb to 3.0 too...
... if you call a specific listener for an object... can you call that listener again and apply a new function/method to it and expect the old listener to be removed?... or do you have to be specific and remove the old listener first? It seems everything needs to be datatyped or have a listener setup before you can even use it 3.0 (in other words... there's no room for forgiveness!)... therefor, if you wish to re-datatype or apply the listener to your target but w/a diff method/function call... you must always remove the old one first?
- i'm having a problem w/a stage listener...WOPR
- if your listener is assigned to an object on the stage than it has access to stage. Not sure if that's what you meant though.tommyo
- it's just a stage listener that adjusts everything on stage when the stage is resizedWOPR
- Old listener will not be removed, you have to remove them manually even when you remove the object from the display listornj
- display list. Listeners are independent.ornj
- For example if I have buttons and want the same roll over effect, i just write 1 function and use it for multiple listeners.ornj
- tommyo0
- I use a single swf as a preloader for my 'real' 'main.swf'... it's full of listeners that are fighting what i'm loadingWOPR
- but... i think i may have answered my own question...
i played Oscar T.G. in a preschool play, btw!!WOPR - I'll bet you were cute as a buttontommyo
- were?WOPR
- come sit on my laptommyo
- ornj0
^^^
object.addEventListener(Event.EN... someFunction, false, 0, true);
- alicetheblue0
WOW this is awesome...
Can read all those books mentioned – on line – with a trial
through the O'Reilly site:
http://my.safaribooksonline.com/…