Chapter 11

Please post any questions, suggestions or feedback of any kind in the comments section of this post.

Comments
Hi thanks for the book, I'm finding it very useful.
However I'm having a problem with playing a progressive flv video using AS2.

I would like to use the flv playback component rather that build it from scratch using the netconnection and netstream because I would like to use the buffering capabilities of the playback component.
Problem is that you only show how to use the wizard to make use of this component in your book, how can I dynamically make use of this component using actionscript? I've found code to do it in AS3 but not AS2

Any help would be muh appreciated...

Thanks
# Posted By Lloyd | 12/30/07 5:13 AM
hello Lloyd,
are you looking to dynamically attach the FLVPlayback component to the stage add runtime? Or what is it that you'd like to do via Actionscript? What you're trying to do can definitely be done and all properties which we access from the properties panel can also be addressed via AS (2 or 3).

Regards,

Stefan
# Posted By Stefan Richter | 12/30/07 2:16 PM
Thanks Stefan,

I found the code I was looking for for AS2

import mx.video.*;
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10, {x:88, y:50});
my_FLVPlybk.contentPath = "http://58.7.0.46:5080/iiGym Promos/i gym video master 2-12_002.flv";

However now I discover that unlike AS3 flv playback component, the AS version does not automatically buffer depending on yourconection speed slow on my very slow connection it stops abd starts unless I set my buffer time to somthing rediculous like 60. I'd like to get it to set the buffer tim depending on the speed of my connection speed but does not seem easy at all

Thanks
Lloyd
# Posted By Lloyd | 1/1/08 12:02 AM
AS2 versus AS3 should make no difference here, both versions are capable of querying the server for bandwidth figures but it's news to me that this happens automatically in AS3 and that a buffer is being set accordingly.
If you want to serve up an appropriate video for a certain connection speed then you should investigate encoding your footage in several files (low, medium and high bandwidth) and use a SMIL file to specify which file to serve for what bitrate and which buffer to use. The book has some info on this.

Regards,

Stefan
# Posted By Stefan Richter | 1/1/08 1:43 PM
Thanks for a great and easy to follow book.
Nevertheless, I'm getting stuck on what should be a very basic step.

My problem is a common one since I have seen several postings on the Adobe support site about it. However, while many people (newbies like myself i suppose) are coming across this issue, there was no real solution offered at Adobe.com.

In Chapter 11, Dreamweaver 8 Insert Flash Video Dialogue, page 184, step 5:

When I enter the file location into the URL field, I get an error message that says, "URL cannot contain spaces or special characters..." I can't go any further.

Here is the file location that I am entering: file:///Macintosh HD/Users/osval/Desktop/demo.flv

Thanks for any help you can give me with this.
# Posted By Waddy | 3/29/08 4:53 AM
Hi Waddy,
this sounds like a bug with the Dreamweaver dialogue. Try uploading the file to a web URL and enter that instead (starting with http://...)
To be honest the Dreamweaver approach is a little outdated anyway and it is better to use Flash's publishing system if you can.

Best wishes,

Stefan
# Posted By Stefan Richter | 3/29/08 3:24 PM
Hi,
I am working on your tutorial on page 188 and get the following errors when I test the movie
I am using flash 8.
**Error** Scene=Scene 1, layer=actions, frame=1:Line 12: The class or interface 'string' could not be loaded.
   var videofile:string = "halleyoyo.flv";

**Error** Scene=Scene 1, layer=actions, frame=1:Line 14: The class or interface 'netconnection' could not be loaded.
   var nc:netconnection=new netconnection();

**Error** Scene=Scene 1, layer=actions, frame=1:Line 18: Syntax error.
   var ns.netstream= new netstream( nc );

Any help is appreciated.
# Posted By doc | 4/23/08 4:21 PM
Disregard the previous message. I didn't realize the commands were case
sensitive.
# Posted By doc | 4/23/08 4:26 PM