Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Retrieve Metadata CuePoints out of a FLV Flash 9

This is a discussion on Retrieve Metadata CuePoints out of a FLV Flash 9 within the advanced Actionscript 3.0 forums, part of the Flash CS3 eng category; Hi, I need your help since i've been reading a lot of post in this site i know the ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > advanced Actionscript 3.0

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 22-09-07, 13:41
Junior Member
 
Join Date: Sep 2007
Posts: 17
Rep Power: 0
Vudrok is on a distinguished road
Post Retrieve Metadata CuePoints out of a FLV Flash 9

Hi, I need your help since i've been reading a lot of post in this site i know the admin is a guru in flash which means is "un experto", i originally speak spanish, well what i need is how to retrieve the CuePoint values out an FLV exported from Premier CS3, i can see already the values in the Component Inspector, but i can't seem to know how to retrieve this values and use them to trigger events, like... this is something easy, each time it reach a cuePoint i want it to videoPlayer.stop(); i think that's very easy, but seems im not good at cuePoint issues, i will appriciate your help thank you.:)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 22-09-07, 16:43
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Hi,
have a look to this tut:
http://www.flepstudio.org/english/tu...070828118.html

Anyway, i think the best way is to add the cues with actionscript.
I don't know how Adobe Premier works but if you use Adobe Video Encoder you can add the cue points and create the CML file you'll load into Flash and ater that you can manage the cue points with Actionscript.
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 22-09-07, 17:13
Junior Member
 
Join Date: Sep 2007
Posts: 17
Rep Power: 0
Vudrok is on a distinguished road
is there a way this can be done without resetting the whole cuePoints, i got like 40 cuePoints in the documentation of Premier it says those can be accesses throught actionscript using a trigger, but when i try using this code:

my_FLVPlybk.addEventListener(MetadataEvent.CUE_POI NT, cp_listener); function cp_listener(eventObject:MetadataEvent):void { trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime); trace("Cue point name is: " + eventObject.info.name); trace("Cue point type is: " + eventObject.info.type); }

i get an error: 1046 over eventObject:MetadataEvent... this is annoying i really need to figure it out cause i got 2 days with no sleep cause of this, if you could point me i will appriciate it, i know you can acomplish this coding puzzle!! thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 22-09-07, 17:18
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
What are you using to play the video in Flash, FLVPlayBack component ?
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 22-09-07, 17:21
Junior Member
 
Join Date: Sep 2007
Posts: 17
Rep Power: 0
Vudrok is on a distinguished road
I'm using a component I used the import video option, and with no skin, i can play it pause it, stop it, seek it, i can do pretty much with it, but can't retrieve the information within the component of the cuePoint, that information i can see it in the component inspector, otherwise i dunno how to access to it throught coding... this is becoming a big challenge...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #6 (permalink)  
Old 22-09-07, 17:30
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Try this code:
Code:
my_FLVPlybk.addEventListener(MetadataEvent.CUE_POINT,cp_listener);
my_FLVPlybk.play();
function cp_listener(eventObject:MetadataEvent):void
{
	trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime); 
	trace("Cue point name is: " + eventObject.info.name);
	trace("Cue point type is: " + eventObject.info.type);
	my_FLVPlybk.stop();
}
let me know if it traces the cue points
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 22-09-07, 17:47
Junior Member
 
Join Date: Sep 2007
Posts: 17
Rep Power: 0
Vudrok is on a distinguished road
Okay, with the code you copy and pasted i still get an error and there is no trace, the error goes as follows

Description: 1046: Type was not found or was not a compile time constant: MetadataEvent.
Source: function cp_listener(eventObject:MetadataEvent):void ´

okay, seems "MetadataEvent" is not being recognize by the compiler, what can i do to fix this???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 22-09-07, 17:48
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
At the start of the script, write:
import fl.video.MetadataEvent;
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 22-09-07, 17:57
Junior Member
 
Join Date: Sep 2007
Posts: 17
Rep Power: 0
Vudrok is on a distinguished road
I think you rocks, seems it works perfectly, i appriciate so much your help, you are a great flash Guru, thank you very much again.

:D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 22-09-07, 18:09
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
You are welcome :)
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Retrieve data from mySQL with Flash CS3 Flep Tutorials 3 23-11-08 16:42
SWF can not retrieve data in Hosting Servers, security issue?? Vudrok Off Topics 5 14-11-07 21:38
Metadata cuepoint controling with ComboBox Rakesh advanced Actionscript 3.0 17 06-08-07 18:39


All times are GMT. The time now is 22:21.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406