-
Need to use a cue point in FLV to goToAndPlay(3)
I am using F8 and the Flash video component
I have successfully created a mock of the FLVPlayback component on frame1 with a button that advances to frame 2 where the FLV actually starts playing. This allows me to use still image MCs and copy that prevents an FLV that is not on autoplay from looking like a blank black screen and to add copy that entices users to watch the video.
http://www.cincinnati.com/sponsors/n...eatureFLV.html
I would also like to have messaging at the end of the video encouraging actions such as attending an event or calling or clicking to go to a web site. Often this would include still images and or a logo. I have the FLV playing on frame2 of the scene1 timeline. On frame 3 I have the ending art and action copy. But no matter what I try I see nothing but a stopped video at the end of my Flash movie. I realize that after the FLV plays it has no way to get back to frame3 on the scene1 timeline. I have put a cue point (navigation) at the end of the video and called it end. I have given it no parameters or value.
Should I put goToAndPlay(3) under value in the cuepoint parameters dialog to get it to go to frame3 when it hits the end or do I need AS?
TIA
-
I just found this:
var myCuePointListener = new Object();
myCuePointListener.cuePoint = function(eventObject){
//trace("heard " + eventObject.type + ", " + eventObject.target);
if (eventObject.cuePointName == "point1"){
gotoAndStop("Frame_2");
}
}
myMedia.addEventListener("cuePoint", myCuePointListener);
stop();
In my example above I suppose I rename "point1" end
and replace
gotoAndStop("Frame_2");
with
gotoAndStop("parent.(3)");
-
Senior Member
were you able to get it working?
-
I haven't tried it yet as I am probably wrong on the ("parent.(3)") part as I am essentailly an AS newb that copies and pastes AS and asks our JS programmer when I try to modify AS. That of course has limited utility because he doesn't do Flash.
-
Senior Member
You don't need cuepoints, since this is the end of the video. Name the frame to go frame3. I assume it's all on the main timeline. my_FLVPlybk is the name of the video component.
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.complete = function():Void {
_root.gotoAndStop("frame3");
};
my_FLVPlybk.addEventListener("complete", listenerObject);
- The right of the People to create Flash movies shall not be infringed. -
-
I feel like it is close to working, but the end of the FLV does not go to frame 3 that has the label frame3
http://kids-voting.org/fla/willisFea...V3_300x250.fla
Movie Explorer:
Scene 1
AS
Frame 1
Actions for Frame 1
stop();
Frame 2, (frame2)
Actions for Frame 2
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.complete = function():Void {
_root.gotoAndPlay("frame3");
};
my_FLVPlybk.addEventListener("complete", listenerObject);
Frame 3, (frame3)
Actions for Frame 3
stop();
skin
Frame 1
Frame 3
skinHack
btn
Frame 1
btnStart
Actions for btnStart
on (release) {
//Movieclip GotoAndStop Behavior
this.gotoAndStop("frame2");
//End Behavior
}
breakingThrough3
Frame 1
Frame 3
grBreakingThrough
Drop Shadow 1
Frame 1
Frame 3
Drop Shadow 1
gradient
Frame 1
Frame 3
opening
Frame 1
mcVideo, <video>
video
Frame 1
FLVPlayback
Symbol Definition(s)
btnStart
Layer 1
Up
grBreakingThrough
Layer 1
Frame 1
breakingThrough
Drop Shadow 1
Layer 1
Frame 1
effectSymbol
Layer 1 Copy
Frame 1
effectSymbol
mcVideo
AS
Frame 1
Frame 40
Actions for Frame 40
stop();
skinHack
Frame 1
skinHack
Layer 3
Frame 1
Drop Shadow 1
Frame 1
Frame 35
Drop Shadow 1
reintegration
Frame 1
Frame 35
THE REINTEGRATION OF FOOTBALL, (Tw Cen MT Condensed Extra Bold, 22 pts)
breakingThroughTop
Frame 1
grBreakingThrough
Frame 23
grBreakingThrough
breakingThrough
Frame 1
grBreakingThroughBlack
Frame 23
grBreakingThroughBlack
still
Frame 1
grWillis
Frame 40
grWillis
effectSymbol
Layer 1
Frame 1
grCopy
grBreakingThroughBlack
Layer 1
Frame 1
breakingThrough
grWillis
Layer 1
Frame 1
willisStill2
grCopy
Layer 1
Frame 1
THE REINTEGRATION OF FOOTBALL, (Tw Cen MT Condensed Extra Bold, 22 pts)
Last edited by somnamblst; 10-30-2006 at 11:17 PM.
-
Senior Member
Your movie had a number of problems. You need to change the video name. Check out the changes I made.
http://flashscript.biz/test/videopre...V3_300x250.zip
- The right of the People to create Flash movies shall not be infringed. -
-
Thanks.
OK to recap I see you got rid of the on release goToAndStop I had on the btn on frame 1 that advances to frame 2 and replaced it with this AS:
stop ();
mc.onPress = function ()
{
_root.gotoAndStop ("frame2");
};
Trying to understand. Is this what fixed the movie?
the AS on frame2 is:
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.complete = function():Void {
_root.gotoAndPlay("frame3");
trace(this);
};
my_FLVPlybk.addEventListener("complete", listenerObject);
You may have wondered about the 300x250 movie size. I am trying to use the FLVPlayback in a standard 300 x250 ad size. I have discovered that a 93% scale does result in a video and player that is almost 300x250. But it does seem like the play button in particular reacts in a slightly off manner.
All my 300x250 video ads use a video player FLA I found with a tutorial that has the video on the Flash timeline and they look like this:
http://www.cincinnati.com/sponsors/n...a_300x250.html
If a video ad goes longer than 30 seconds would using the FLVPLayback and calling the video rather than embedding it on the timeline be better from a usability standpoint?
-
Senior Member
Before you had this.gotoAndStop
"this" refers to the button but not the main timeline. Also it is a bad habbit to have scripts associated with buttons or mcs.
Your big button was hiding the component. I could not start the video, button is smaller.
You did not give any name to the component. So the complete event could not be triggered.
- The right of the People to create Flash movies shall not be infringed. -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|