Skip to main content
Inspiring
May 18, 2007
Question

tutorials on AS3 outside of Adobe?

  • May 18, 2007
  • 15 replies
  • 1138 views
I'm struggling with the video code in AS 3, and none too happy with tutorials I've found on the Adobe site, unless maybe I've missed the right ones. Is there a resource I don't know about that can get me comfortable with AS3 quickly?
This topic has been closed for replies.

15 replies

Inspiring
June 6, 2007
for some basic building blocks stuff
lynda.com has a few video tutorials
1. cs3 flash
2. as3 https://movielibrary.lynda.com/html/modPage.asp?ID=423
3. as3 in flex
kglad
Community Expert
Community Expert
June 6, 2007
he still does. he's trevor mccauley on this forum.
funonmarsAuthor
Inspiring
June 6, 2007
Hi kglad, thanks for the encouragement. I have gotten back into it. I find I can wade through specific examples and create something off of them, but have yet to find a tutorial on classes that makes me get the big picture. I think senocular used to post on were here back in the days.
kglad
Community Expert
Community Expert
June 4, 2007
don't give up. sometimes it takes 3 or more readings to grasp somethings. and reading different explanations helps more than reading the same thing 3 or more times.

i read senocular's tutorial ( http://www.senocular.com/flash/tutorials/as3withflashcs3/) and his tips ( http://www.kirupa.com/forum/showthread.php?t=223798) and the flash help files (programming actionscript 3.0) and am just now starting to understand many things that escaped me on first and second reading.

i also read every trevor mccauley (=senocular) post that i see in this forum.
kglad
Community Expert
Community Expert
May 28, 2007
(just an aside related to the original thread: senocular.com has lots of useful as3 info.)
funonmarsAuthor
Inspiring
May 24, 2007
I know that the cue points are there because this bit of code traces them, and the pause also works when uncommented.

function onCuePoint(infoObject:Object):void
{
//ns.pause();
var key:String;
for (key in infoObject)
{
trace(key + ": " + infoObject[key]);
}
}
Inspiring
May 21, 2007
funonmars,

> Hi David, A forum that charges a subscription is a long
> disconnect from the old were-here days when folks like
> Keith Peters and Guy Watson, to name only two, freely
> posted and shared code while we were all exploring the
> possibilities of Flash.

Sure, I agree with that, which is why I also recommended kirupa.com. It
may just be that I don't know what-all forums are the popular ones nowadays.
I believe UltraShock.com is still going strong, Flashcoders is still going
strong (though the climate has changed, some would say). There's a
Flexcoders list now. For the true gurus, I would guess it's more about time
than anything else. Take Keith Peters, for example. He's now a recognized
author, with a second edition of ActionScript Animation: Making Things Move!
(great book, btw) and a contributing author, with Joey Lott and Darron
Schall, of the ActionScript 3.0 Cookbook. I've been learning, the hard (but
fun! but hard!) way that book writing takes incredible volumes of energy and
time. A friend of mine invited me to co-author Foundation Flash CS3 for
Designers, back in October
or November, and we're finally done -- been working till midnight or 2AM
since about mid-December. My own contributions to these forums took a
whopping plunge during that time, and it was entirely due to exhaustion.

> I mean I will probably sign up for it, but it's a different pov.
> But we all move along, apparently even Jeckyl... (who he?)

If you do sign up -- no pressure -- I hope you find it worth your while.
I'm not a "pushy salesman" type, so I don't push it. I do earn bit of extra
income from that site, but not a whole lot. The real reason I'm a partner
has more to do with camaraderie -- virtual officemates -- now that I work
from home. But I'm rambling. :-p In any case, I can empathize with your
sense of "What happened to the good old days?" I'd give it a bit more time,
though. Let's see what some of the forthcoming books have to offer. I'm
personally looking forward to Colin Moock's Essential ActionScript 3.0.

> I'm plunging into As 3 and thanks to tips from kglad it's
> not as awful as it first appears,

Good! :)

> And I have yet to see any documents that explain how to use cue
> points set as navigation in video to actually get to the cue point.

I'll help you if I can. How is your video making its way into Flash?
Are you using the FLVPlayback component or a NetStream instance?

> But I can't find any mention of how you use the cue point
> itself except through onCuePoint.

I'm seeing some possibilities with onMetaData; it apparently gives you
the whole list of cuepoints, through which you could loop and look for cue
points by name. Seems like the documentation leans more toward the
FLVPlayback component than a component-less situation, but I'm interested in
this too, now, so holler back if you still have questions.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."


funonmarsAuthor
Inspiring
May 24, 2007
Hi David, Thanks for your thoughtful reply. I would love it if you could clarify the seekToNavCuePoint, and whether it is possible to use it outside of a component.

The following code brings this error output, though the flv plays:
Error #1006: seekToNavCuePoint is not a function.
at candiltest2_fla::MainTimeline/stop1()

with this code:

import fl.video.*;

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);
ns.client = this;
ns.play("candilicious_43.flv");

var vid:Video = new Video();
vid.attachNetStream(ns);
this.addChild(vid);



function stop1(event:MouseEvent):void
{
this.seekToNavCuePoint("squish")

}

play1.addEventListener(MouseEvent.CLICK, stop1);

and two navigation cue points embedded, "squish" and "fruit."
funonmarsAuthor
Inspiring
May 19, 2007
Hi David, A forum that charges a subscription is a long disconnect from the old were-here days when folks like Keith Peters and Guy Watson, to name only two, freely posted and shared code while we were all exploring the possibilities of Flash. I mean I will probably sign up for it, but it's a different pov. But we all move along, apparently even Jeckyl... (who he?)

I'm plunging into As 3 and thanks to tips from kglad it's not as awful as it first appears, but it sure chews up and spits out As 2 code in a hurry. And I have yet to see any documents that explain how to use cue points set as navigation in video to actually get to the cue point.

You can get the time code as you set the cue point, convert it to seconds, and with the appropriate extra code introducing it, do this:

function stop1(event:MouseEvent):void
{
ns.pause();
ns.seek(27);
}

But I can't find any mention of how you use the cue point itself except through onCuePoint. I wanted to go to the cue from a button. just rambling. I think it's a wonderful program, and am very glad for this forum.
kglad
Community Expert
Community Expert
May 18, 2007
i don't know where jeckyl is. i hope he's just so successful and making so much money he has no time for the forums.

Inspiring
May 18, 2007
Where is Jeckyl?