473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Listener and CuePoint for FLVPlayback

Hi to everybody...I'm new in thescripts forum...



I've a big problem to make a simple Flash animated menù.


I have a FLVPlayback component where I put inside a external FLV.
TO this FLV I've mark 3 step by cuepoint. To every cuepoint I wish load an external .swf file (menù) into a empy MovieClip.
Well the movie start...The listener find the first CP1 (cuepoint1) and the animation stopped (PAUSE), a menu1.swf is loaded into a empty movieclip.

Now When I press a bottun on my menù, I WISH that the FLV go forward until the CP2 where I need to load a menu2.swf into emptyMovieclip, and afther again I want go to CP3...in loop...


//import mx.video.*;
var my_flvPb:mx.video.FLVPlayback;
my_flvPb.contentPath = "fis10.flv";


//make the CuerPoint step
my_flvPb.addASCuePoint(1, "cp1");
my_flvPb.addASCuePoint(2, "cp2");
my_flvPb.addASCuePoint(3, "cp3");


this.createEmptyMovieClip("qui", 9);

//test cuepoint
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject) {
if (rtn_cuePt = my_flvPb.findCuePoint("cp1" , FLVPlayback.EVENT)) {
qui.loadMovie("menu.swf");
trace("the cuepoint is: " + rtn_cuePt.name);
trace(qui);
my_flvPb.pause();
}
if (rtn_cuePt = my_flvPb.findCuePoint("cp2" , FLVPlayback.EVENT)) {
qui.loadMovie("menu2.swf");
trace("Il cue point è: " + rtn_cuePt.name);
trace(qui);
my_flvPb.pause();
}
};

my_flvPb.addEventListener("cuePoint", listenerObject);


this code don't work good...may be I've bad used the if in listener.

I can't explain good my problem and You can find my project here:


http://www.walterfantauzzi.com/forum/flv_menu.zip
Jul 30 '07 #1
0 2430

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Cherrish Vaidiyan | last post by:
sir, I have a small error in Listener configuration.I have two system with a database in each. I am using Red Hat 9 and Oracle 9i. so i shall anme the database and system. system 1 - node2 ...
5
by: Axel Dachtler | last post by:
Hi, I have a listener problem. The listener cannot read SERVICE_NAME in TNS-Descriptor. The service-name I specified in Oracle Net Manager for this database is testdb as well. ...
3
by: Bill | last post by:
When vb6 Winsock.RemoteHost is set to "127.0.0.1", c# socket listener cannot hear connect request (my old vb6 winsock listener could hear it...). Why doesn't this work, and is there a work...
6
by: Steve Teeples | last post by:
I have been perplexed by how to best treat an event that spans different classes. For example, I have a form which a user inputs data. I want to broadcast that data via an event to another...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
1
by: Zack9236 | last post by:
Hello All, I am pulling my hair out over this deal. First off, I'm a Flash newbie and I'm using the Creating a Web Site with Flash CS3 Professional book to help me create my website. Most...
2
by: nyc10011 | last post by:
Hello. Does anyone know if it is possible to load either MC with linkage from library or a .swf from directory into a FLV player, triggered by CuePoint? I'm having a heck of a time trying to figure...
2
rrocket
by: rrocket | last post by:
I cannot seem to get my video to show up when I upload the parts to my website. It looks like when I test it from the Flash IDE, but nothing comes up when I move the files over to the site. Is there...
1
by: michael ngong | last post by:
michael.john@gmx.at (Michael John) wrote in message news:<90cc4edd.0306230900.28075193@posting.google.com>... MIchael I you stated the OS and platform that could make it easier to address your...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.