Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

flash as2 reference

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WOMP - 01 Jul 2008 15:13 GMT
I downloaded the as2 langueage reference pdf and I'm completely baffled.  I
look in the index under video and it lists nothing that has to do with
playing, stopping or pausing a video, the current time, the duration, etc.

I looked up "playHeadTime" in the index and that didn't exist although it
can be used in as2.  I'm completely frustrated with this whole process of
learning Flash.  What am I missing?

Craig
David Stiller - 01 Jul 2008 15:43 GMT
Craig,

> I downloaded the as2 langueage reference pdf and I'm completely
> baffled.

   It can be baffling at first.  For me, the breakthrough came when I
realized that -- for the most part -- the Language Reference is organized
around something called classes.  Classes define objects, and generally
(though not always) have three categories:  properties (characteristics of
the object), methods (things the object can do), and events (things the
object can react to).

   So if you're looking up movie clips, consult the MovieClip class entry.
If you're looking up text fields, consult the TextField class, and so on.
In the case of video, you have a few choices.  You might be using the
FLAPlayback component, in which case you'll have to consult the FLVPlayback
class.  If that's your ticket, you'll find that class -- as with all
component classes -- in the ActionScript 2.0 Components Language Reference.
Same goes for the Media components, if by chance you're using those.

   On the other hand, if you're dealing with an actual video object, you'll
want to consult the Video class entry of the ActionScript 2.0 Language
Reference (it's not a component).  The Video class is a bit different from
most of the classes you'll find, because video objects work in cahoots with
two other objects:  one instance apiece of the NetConnection and NetStream
classes.  There's a hint -- admittedly not an easy one to spot -- in the
listing for the Video.attachVideo() method.  Click on that, and you'll see
that a video instance can be attached to a NetStream instance, a Camera
instance (for webcams), or null.

   It sounds like you're after pre-recorded video, so your next stop will
be the NetStream class, which features a number of properties, methods, and
events you're after (play(), pause(), etc.).

> I looked up "playHeadTime" in the index and that didn't exist although
> it can be used in as2.

   The FLVPlayback class features a playheadTime property.  Remember,
though, the FLVPlayback class is listed in the Components Language
Reference, which might be why you didn't immediately find it.

> I'm completely frustrated with this whole process of learning Flash.
> What am I missing?

   It may be that all you're missing a leg up.  It's tough if you don't
know how to get started.  For what it's worth, I wrote an article on
tackling the AS2 Language Reference (free article) at CommunityMX.com.
Maybe it can help you get your bearings.

   http://www.communitymx.com/abstract.cfm?cid=01B54

   It was written for Flash 8, but the principles still apply.

David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design."
womp - 01 Jul 2008 17:52 GMT
Thanks David, that's a great start.

Certainly, the search engine seems to be of no help in unravelling what you
have unravelled here...or, I suppose, until I learn how to use it based on
what you've mentioned.

Craig

> Craig,
>
[quoted text clipped - 54 lines]
> http://tinyurl.com/2k29mj
> "Luck is the residue of good design."
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.