Remove video flv with actionScript
Concerning
flv handling : how can I remove the video object called on
the Stage by the following script? :
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play("video1.flv");
I know, as showed in flash help, stream_ns.stop() or
stream_ns.pause or my_video.clear();
but it don't remove the video from the Stage and the flv
stil remain in sight
>>I think obviously there is a difference between FMS
and Flash MX04. The documents I
>>refer to are built into the help menu in Flash 7 and
8 both include the onStatus event
>>and absolutely no onPlayStatus event.
Yeah you're right onPlayStatus isn't in the NetStream class
Flash documentation as this is more about using this class for
progressive download, whereas the documentation i linked to
referred to the NetStream class used in FMS Client-side scripting
for streaming video.
>>I made a mistake. I meant NetStream.Play.Stop –
which was very poorly named. That
>>is what onStatus will return when it reaches the end.
It isn't really "stop" it is "complete."
>>So I tend to read it as such!
NetStream.Play.Stop does seem to be very similar to
NetStream.Play.Complete in progressive downloads. however i know
you can't guarantee that NetStream.Play.Stop occurs at the same
time as NetStream.Play.Complete in a streaming video through FMS,
as a NetStream.Play.Stop can occur for reasons other than
completion.
>>...My guess is that when they took the bits from FMS
into Flash MX04 they didn't do a
>>very good job. They purposefully renamed onPlayStatus
to onStatus...
onStatus does still exist in FMS Client side scripting...
>> – with a limited variety of events returned
(What is Switch?)
switch refers to playlists - only relevant to FMS streams.
Anyway, it appears as though all of this talk of the FMS is
moot regarding the original poster, as I've just had a look at
skauty's posts in the Flash Media Server forums, ironically, and
discovered that skauty is using progressive download and not FMS...
Simple but important distinction...
Similar Messages
-
Pausing a linked .flv with actionscript
Hi all.
Let me preface by saying that I'm fist-and-foremost a
designer... and an actionscript novice.
I have an external .flv and I simply need to be able to pause
it with a frame action and start it back up with another frame
action.
I found some references to "flvStream.play" through google
but I haven't been able to properly implement it.
Any help would be greatly appreciated. Thanks in
advance.Geisen,
> I have an external .flv and I simply need to be able to
> pause it with a frame action and start it back up with
> another frame action.
The most important tip I can share with you is this: think
in terms of
objects. An FLV video, external or not, is a file format that
needs a bit
of help getting displayed. A very popular approach is to use
the
FLVPlayback Component (see the Components panel), which
includes a number of
configurable (and optional) "skins" that allow for pausing,
playing, volume
control, etc. The FLVPlayback Component, in that scenario, is
your object.
Many people use a Video asset from the Library in cahoots
with something
called NetConnection and NetStream, in which case you're
dealing with three
objects (Video, NetConnection, and NetStream) that
collaborate. Going back
further, there are Media Components that provide much of the
functionality
of FLVPlayback, in which case the focus of your object(s)
changes again.
In all cases, objects are defined by something called
classes. Movie
clips are defined by the MovieClip class, text fields by the
TextField
class, FLVPlayback by the FLVPlayback class, and so on.
Classes define
objects in the way a recipe defines a certain kind of cake or
a blueprint
defines a certain kind of structure. In the ActionScript 2.0
Language
Reference, you'll find that most classes list one or more of
the following
three headings: properties (characteristics of the object),
methods (things
the object can do), and events (things the object can react
to). In the
ActionScript 3.0 Langauge Reference (if you have Flash CS3),
you'll find the
same format, with the occasional additional heading. From a
bird's eye
view, however, the layout is the same: objects have certain
properties, and
can do certain things and react in certain ways (to button
clicks, internal
timers, etc.) -- and it's the combination of these qualities
that makes a
given object the type it is (e.g., text fields don't have
timelines, so the
TextField class doesn't mention anything about a text field's
current frame,
yet text fields and movie clips both have width and height,
and both their
classes mention as much).
So ... the way you're going to pause your FLV video depends
on entirely
on the object(s) being used to display that video. If you're
using
FLVPlayback, you'll have to give that Component on the Stage
an instance
name (see the Property inspector while the Component is
selected). Instance
names allow ActionScript to speak directly to individual
instances of an
object -- this particular FLVPlayback in the lower left, for
example, rather
than the other one in the upper right.
Once it has an instance name, you can reference that name
and invoke
FLVPlayback class members on that instance. If you've given
it the instance
name myPlayer, you would invoke FLVPlayback.pause() (the
pause method) as
follows:
// In a keyframe of your scripts layer ...
myPlayer.pause();
And to start it up again, you would invoke
FLVPlayback.play() (the play
method) at a later keyframe like this:
myPlayer.play();
If you're using a combination of a Video element from the
Library and
the NetConnection and NetStream classes, you'll reference
your NetStream
object by its instance name (this will be the variable you
use to
instantiate the object) and invoke NetStream.pause(), and so
on.
Here are a few articles in ActionScript 2.0 on the topic:
http://www.quip.net/blog/2006/flash/how-to-load-external-video
http://www.quip.net/blog/2006/flash/how-to-control-flv-without-component
http://www.quip.net/blog/2007/flash/actionscript-20/how-to-determine-completion-of-flv/
Those should at least get you a bit more comfortable with
the idea of
classes, objects, and their members (properties, methods, and
events). If
you're building a movie in ActionScript 3.0, the syntax may
change ... not
so much for quick method calls, but certainly for event
handling. For what
you're described, even these AS2 examples should be helpful.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
Controlling external flv with ActionScript
I'm using the NetStream Class to control the playback of an
external flv. I've got a Pause/Play button using .pause, and Fast
Forward and Rewind buttons using .seek. What I want to do is once
the video is done playing to automatically reset back to the
beginning of the video, allowing the user to press play to view the
video again without having to reload the page. Right now when the
video finishes, the user has to rewind the video in order to watch
it again. I thought I could use .time to determine when the video
reaches the end to go back to "0" in the video playhead but so far
I have not been able to get this to work. Any ideas would be
appreciated. Currently everything is done in frame one of the swf.
Thanks.>>I think obviously there is a difference between FMS
and Flash MX04. The documents I
>>refer to are built into the help menu in Flash 7 and
8 both include the onStatus event
>>and absolutely no onPlayStatus event.
Yeah you're right onPlayStatus isn't in the NetStream class
Flash documentation as this is more about using this class for
progressive download, whereas the documentation i linked to
referred to the NetStream class used in FMS Client-side scripting
for streaming video.
>>I made a mistake. I meant NetStream.Play.Stop –
which was very poorly named. That
>>is what onStatus will return when it reaches the end.
It isn't really "stop" it is "complete."
>>So I tend to read it as such!
NetStream.Play.Stop does seem to be very similar to
NetStream.Play.Complete in progressive downloads. however i know
you can't guarantee that NetStream.Play.Stop occurs at the same
time as NetStream.Play.Complete in a streaming video through FMS,
as a NetStream.Play.Stop can occur for reasons other than
completion.
>>...My guess is that when they took the bits from FMS
into Flash MX04 they didn't do a
>>very good job. They purposefully renamed onPlayStatus
to onStatus...
onStatus does still exist in FMS Client side scripting...
>> – with a limited variety of events returned
(What is Switch?)
switch refers to playlists - only relevant to FMS streams.
Anyway, it appears as though all of this talk of the FMS is
moot regarding the original poster, as I've just had a look at
skauty's posts in the Flash Media Server forums, ironically, and
discovered that skauty is using progressive download and not FMS...
Simple but important distinction... -
Video in FP10 ActionScript 2 vs. ActionScript 3 on locked-down network
My company has an extremly locked-down network, and I'm having some issues getting Flash video to play when it is encoded with ActionScript 3 that I do not have with video encoded with ActionScript 2. What I am assuming is that there is a required external framework or library my network is blocking with regard to AS3 content, but I can't find any information about where that framework or library "lives". (I had a similar problem in an earlier project with the Text Layout Framework, but documentation on that was easy to find and I implimented a solution.) If someone can point me to that framework/library/other external source location I can get my networking guys to unlock it. (Note that I know the actual videos are encoded correctly, as I can get everything to work outside the corporate environment, and the videos are otherwise exactly the same but for their encoding [AS2 happy - which will play - vs. AS3 required - which won't].) This problem is boggling me...
As a company we use (and I have no power to change):
Windows XP Professional version 5.1.2600 Service Pack 3 Build 2600
IE 7.0.5730.13CO
Flash Player version 10,1,52,14
Thanks!
Chris, from the corporate world of locked-down systems.My company has an extremly locked-down network, and I'm having some issues getting Flash video to play when it is encoded with ActionScript 3 that I do not have with video encoded with ActionScript 2. What I am assuming is that there is a required external framework or library my network is blocking with regard to AS3 content, but I can't find any information about where that framework or library "lives". (I had a similar problem in an earlier project with the Text Layout Framework, but documentation on that was easy to find and I implimented a solution.) If someone can point me to that framework/library/other external source location I can get my networking guys to unlock it. (Note that I know the actual videos are encoded correctly, as I can get everything to work outside the corporate environment, and the videos are otherwise exactly the same but for their encoding [AS2 happy - which will play - vs. AS3 required - which won't].) This problem is boggling me...
As a company we use (and I have no power to change):
Windows XP Professional version 5.1.2600 Service Pack 3 Build 2600
IE 7.0.5730.13CO
Flash Player version 10,1,52,14
Thanks!
Chris, from the corporate world of locked-down systems. -
Can I rotate a playing FLV video with ActionScript?
Hello,
I have some ActionScript 3 already written. It'd be weird to
explain why I'd want to do this, but basically, I'm playing an FLV
file with the FLV Playback ActionScript. I want to rotate the video
itself as it is playing. It needs to rotate 90-degrees over 15
seconds, (6 frames/sec) and stop.
I tried putting the FLV component in a movie clip, and
tweening the rotation on the FLV component. Then my AS3 event
listener calls a "container_mc.play()", but appears to do nothing
to the FLV. I also tweened a basic shape in the same container and
that visibly rotates, so I'm sure the AS3 is correct.
Also, I'm triggering the rotation by events, not button
presses or mouse actions.
Is there a way to do this?Yep better ask in the Premeire Pro forums, but while loading their forum page check the cutter tool (C) it will allow you to cut your footage
-
iPhone 6 will not sync music. This has become a problem since using itunes 12. It also will not sync all my pics and video's with my iPad 4 either. Removed and re-installed iTunes with no improvement. It stops at last step saying waiting for items to copy and just sits there. The iPad finish the sync, but some video's are missing.
iPhone 6 will not sync music. This has become a problem since using itunes 12. It also will not sync all my pics and video's with my iPad 4 either. Removed and re-installed iTunes with no improvement. It stops at last step saying waiting for items to copy and just sits there. The iPad finish the sync, but some video's are missing.
-
Creating a FLV video player with full screen option
> This message is in MIME format. Since your mail reader
does not understand
this format, some or all of this message may not be legible.
--B_3258016930_5977304
Content-type: text/plain;
charset="ISO-8859-1"
Content-transfer-encoding: 8bit
Hi!
I am trying to create a video player that will allow full
screen functions
like what we can see on youtube. I know how to create the
window and the pop
up but the only problem I am having is having the original
video in the
small screen to pause or go silent when the full screen mode
is activated.
How can get it done?
Thank you.
°K.
--B_3258016930_5977304
Content-type: text/html;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Creating a FLV video player with full screen
option</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Arial"><SPAN
STYLE=3D'font-size:12.0px'>Hi!<BR>
<BR>
<BR>
I am trying to create a video player that will allow full
screen functions =
like what we can see on youtube. I know how to create the
window and the pop=
up but the only problem I am having is having the original
video in the sma=
ll screen to pause or go silent when the full screen mode is
activated. How =
can get it done?<BR>
<BR>
Thank you.<BR>
<BR>
<BR>
<B>°K.<BR>
</B> </SPAN></FONT>
</BODY>
</HTML>
--B_3258016930_5977304--Hello,
You should ask in the
Windows Phone forums on the Microsoft Community forums.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Converting swf to flv with flash video encoder
Hi...
I have a couple of questions please... I have managed to put some captions on a video file and would now need to get this video back into flv format to put it online;..I tried with the cs3 video encoder but it wouldn't let me.... So my questions are:
1. Is it actually possible to convert my swf file into flv with cs3 video encoder ...which would be logical as it is a flash file...
2. What is the best option I Have to convert my swf file with captions without losing the captions...
Many thans for any clear help as I am not a code guru....
Regards
FlavHi Vlaf (Flav),
the main thing for converting a flash swf into a flv is to make sure that the timeline is not embeded inside a moveclip (meaning that the timeline of the movie is on the MAIN timeline....and not nested somewhere else.
if this is right, then it should export correctly. If it still fails with the Encoder....try an alterative encoder caller "Super"(its free)...and does a great job!
unless specified by your client or target advert host, always try to use a minimum of 30 frames per second and you should be good to go. -
Is it possible to remove blemishes from video frames with photoshop cc?
Is it possible to remove blemishes from video frames with photoshop cc?
Again, show us reference screenshots and we will advise. Otherwise this could become an endless theoretical discussion. Depending on what you want to do you can import the video directly using Layer --> New Video Layer e.g. when covering up fied spots with a brush blob on a layer on top of the footage, but you may also need to create separate layers for each frame using the Frames to Layers script so you can paint on each of them individually. There's really too much we don't know and the possibilities are potentially infinite...
Mylenium -
With IE I have multiple formats such as MP4 that I can use to D/L you tube music videos but with Mozilla it has me load Adobe Flash which I already had and then I can only D/L utiliaing the FLV format - I want multiple options as I have in IE - help?
And what is the point of all this? CS3 is now 7 years old and Office 2003 just the same. Yes, sometimes software has bugs and compatibility issues. Beyond there is nothing here to discuss on either end, given the circumstances...
Mylenium -
Flv video created with flash 8 video encoder
anyone know why flv files that I've created using the flash 8
video encoder don't seem to have any metadata in them? or maybe
they do but they never kick off the NetStream.onMetadata event so I
can't read it...
Similarly if I use the 'import video' function of Flash Pro 8
I get the same issue - yet FLV video created using Sorenson Squeeze
works fine, so I'm fairly confident that my code is OK.
Even more bizarrely, if I use the FLVPlayback component that
ships with Flash 8, that seems to read in the metadata OK!
argh!
Just to confuse things even more, the flash help for
NetStream.onMetadata says: "The Flash Video Exporter utility
(version
1.1 or greater) embeds a video's duration [...] into the
video file itself."
As far as I can tell I've got version 1.0 of the flash video
encoder/exporter but I'm damned if I can find out where to get an
update from...! Ever since CS3 came out it's been harder and harder
to get hold of stuff about flash 8 on the Adobe site...well that's the thing - the metadata never traces out if the
video was encoded with flash video encoder, but that code would
work fine with video encoded with sorenson squeeze.
think I have worked it out now though: in order to pause the
video at start I am calling NetStream.seek(0) when I receive
"NetStream.play.start".
For some reason when I do this with flvs encoded using flash
video encoder, it stops the onMetaData event from firing - but
works fine with other flvs! weird... shall have to find another way
of pausing the video at the start I guess.
thanks for the reply though -
How to play live Video Stream with Flex?
I'm trying to get Flex Builder 3 to play a live video stream with Flash Media
Server and Flash Live Media Encoder.
I'm able to stream pre-recrorded (vod) flvs in flex from flash media server.
I'm able to stream live video using Flash/FMS/Flas Live Media Encoder, but not
with Flex.
This code streams pre-recorded Video on Demand flvs, but not live streams:
If I change source to "rtmp://localhost/live/livesream.flv, I get nothing.
What am I doing wrong?
<?xml version="1.0"?>
<!-- controls\videodisplay\VideoDisplayFMS.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:HBox>
<mx:Label text="RTMP FMS 2.0"/>
<mx:VideoDisplay
autoBandWidthDetection="false"
source="rtmp://localhost/vod/Legend.flv"/>
</mx:HBox>
</mx:Application>
Oh and sorry for the double post. I didn't know there was a seperate FMS forum.That worked! Thanks *very* much. Stupid of me to forget to set the live attribute to true. Also removed the .flv. BTW: what video component do you prefer?
Here's the working code:
<?xml version="1.0"?>
<!-- controls\videodisplay\VideoDisplayFMS.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:HBox>
<mx:VideoDisplay
live="true"
autoBandWidthDetection="false"
source="rtmp://localhost/live/livestream"/>
</mx:HBox>
</mx:Application> -
Streaming flv with interactible objects
Hi Guys,
I am trying to make a flash based web site. The idea is to
have a flv video streaming which has people moving around and the
people need to be clickable objects.
I tried tracing the video by importing the flv to the flash
time line and creating a button that follows a person in each
frame. I then remove the flv video from the timeline and stream it
using actionscript. This leads to synchronization issues.
Does anyone know if this combination of swf and flv has ever
been implemented? If so could you please refer me to the source or
post a link to an example, it would be much appreciated.Hi sorry for the delay in responding.
I'm not using any client side code as far as I am aware.
I think I should have said: Flash CS3 video Encoder, as I am
running both Production Premium Creative Suite 3, and also CS3 Web
Premium.
All I did was convert some AVI files that went through
Premiere Pro CS3 and After Affects etc, in Flash Video Encoder. I'm
not doing any live streaming.
THe FLVplackcomponent is the one generated in Dreamweaver
CS3, I choose Insert / Flash Video and choose the Streaming
options, I fill out the rtmp details ( I have another thread on an
issue there as a firewall blocks some of the files and I cannot use
rtmpt) and it works!!
If you have a suggestion for a better workflow or precedure I
would appreciate it.
It is just this one FLV file that seems to do this. I have
since chnaged this one file to Progressive and it plays fine.
I hope this helps.
These files are then placed in the applications folder in
Flash Media Server 2.0 directory.
This works fine -
I've got an image on the stage that I wish to replace with an
external video (.flv) clip. At the end of the clip I want the image
to be visible again and the video to clear.
Here is how I've set it up so far:
1) I've placed an instance of dan_mc on the stage which is an
image.
2) I've created a Video symbol in the Library that I've named
videoHolder_video that is actionscript controled.
3) Using the Flv Encoder, I've encoded a short video clip,
I've embeded an Event cuePoint at the end of the video and named it
"end".
4) I've placed two buttons on the stage: play_btn &
remove_btn
5) on the actions frame I've placed the attached code:
Problem I'm having:
Everything works except for the videoHolder_video does not
get cleared at the end. Original image is visible again, and trace
action is executed telling me that the if statement is detecting
the "end" cuePoint. Additionaly I added a function to the
remove_btn to test the videoHolder_video.clear() command and it
works if I use the remove_btn. So I'm at a loss why the
videoHolder_video does not clear when the play_btn is used. Any
input would be helpful. Thank you,
Maximport the .mov into flash and flash will convert it into a
.flv. -
XML Driven Video Gallery with Playlist
Hi,
I have put together a XML Driven Video Player with auto thumbnail detection but there is a problem.The Video plays but, The thumbs will not show. I think my thumbnail function is not reaching the correct node in my XML.Can someone take a look at my Actionscript Please? The Action Script is below. The XML is at the bottom of this post. The top half of the code is the video playing code the bottom is for the thumbs.
Actionscript 2.0
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setNufferTime(30);
ns.onStatus = function(info) {
if (info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
if (info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
if (info.code == "NetStream.Buffer.Stop") {
ns.seek(0);
theVideo.attachVideo(ns);
rewindButton.onRelease = function() {
ns.seek(0);
playButton.onRelease = function() {
ns.pause();
var videoInterval = setInterval(videoStatus, 100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function (obj) {
duration = obj.duration;
function videoStatus() {
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
loader.loadbar._width = amountLoaded*187.4;
loader.scrub._x = ns.time/duration*187.4;
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit, 10);
this.startDrag(false,0,this._y,187.4,this._y);
loader.scrub.onRelease = loader.scrub.onReleaseOutside=function () {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus, 100);
this.stopDrag();
function scrubit() {
ns.seek(Math.floor((loader.scrub._x/187)*duration));
var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;
var i1:ContextMenuItem = new ContextMenuItem(":::::Video Controls:::::", trace);
theMenu.customItems[0] = i1;
var i2:ContextMenuItem = new ContextMenuItem("Play / Pause Video", pauseIt, true);
theMenu.customItems[1] = i2;
var i3:ContextMenuItem = new ContextMenuItem("Replay Video", replayIt);
theMenu.customItems[2] = i3;
var i4:ContextMenuItem = new ContextMenuItem("All Rights Reserved 2009", trace, true);
theMenu.customItems[3] = i4;
var i5:ContextMenuItem = new ContextMenuItem("SamAndOnline.com Video Player", trace);
theMenu.customItems[4] = i5;
function pauseIt() {
ns.pause();
function replayIt() {
ns.seek(0);
//sound controls
_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);
volControl.volcon.slider1.onPress = function() {
this.startDrag(true,volControl.volcon.groove1._x,volControl.volcon.groove1._y,volControl.v olcon.groove1._x,volControl.volcon.groove1._y+100);
slideit = setInterval(volControl.volcon.slider_1Move, 100, this);
volControl.volcon.slider1.onRelease = function() {
this.stopDrag();
clearInterval(slideit);
mute.gotoAndStop("on");
volControl.volcon.slider1.onReleaseOutside = function() {
this.stopDrag();
clearInterval(slideit);
mute.gotoAndStop("on");
mute.onRollOver = function() {
if (so.getVolume() == 100) {
this.gotoAndStop("onOver");
} else {
this.gotoAndStop("muteOver");
mute.onRollOut = function() {
if (so.getVolume() == 100) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("mute");
mute.onRelease = function() {
if (so.getVolume() == 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
} else {
so.setVolume(100);
this.gotoAndStop("onOver");
//listBx
var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for (i=0; i<videos.length; i++) {
videoList.addItem({label:videos[i].attributes.desc,data:videos[i].attributes.url ,image:videos[i].attributes.thumb});
//play 1st video
ns.play(videoList.getItemAt(0).data);
videoList.selectedIndex = 0;
//would like to reference something in the XML File with the thumb attribute
thumbnails_fn(i);
var vidList:Object = new Object();
vidList.change = function() {
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
videoList.addEventListener("change",vidList);
vlist.load("videos.xml");
soundb.onRelease = function() {
if (volControl.switch2=open2) {
volControl.gotoAndPlay("open");
} else {
volControl.play();
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
} else {
delete tscroller.onEnterFrame;
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
target_mc.onRollOut = function() {
this._alpha = 100;
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(image[k], "thumbnail_mc.t"+k);
trace(videoList.getItemAt(0).image+ "k= "+k+" "+videos.length+" pv "+target_mc.pictureValue+" thumbnails");
XML Example
<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
<video url="vid1.flv" desc="Video 1" thumb="1.jpg"/>
<video url="vid2.flv" desc="Video 2" thumb="2.jpg"/>
</videos>I'm trying to load the thumbnails in with this code
image_mcl.loadClip(image[k], "thumbnail_mc.t"+k);
i tried
videoList.getItemAt(k).image
which works in the trace method but gives no response in the actual code it self
So the line of code that should work is
image_mcl.loadClip(videoList.getItemAt(k).image, "thumbnail_mc.t"+k);
and not
image_mcl.loadClip(image[k], "thumbnail_mc.t"+k);
but I gets no response
Maybe you are looking for
-
IPhoto Will not Load even after reinstall
All of a sudden, iphoto will not load....I receive this error: Iphoto cannot be loaded because of a problem. Check with the developer to make sure that iphoto works with this version of Mac OS X. You may need to reinstall the application. Be sure to
-
End date the use of a certain subtemplate and call another in its place
Hi All, How can we refer to multiple subtemplates so as to end date the use of certain subtemplate say on Dec 31 2007 and start referring to another subtemplate in its place from Jan 1 2008?? Any pointers to the same will be extremely helpful. Thanks
-
Hey, Have any changes been made to how IE10 and 11 handles Content-Disposition? I have a problem with an ASP.NET application that is giving IE10's download manager the URL in the hyperlink rather than the filename specified in the Content-Disposition
-
Setting A default view per location per user VSM7.6
Hello Is it possible to define a default view for each location per user with VSM 7.6 ? In other words, I would like for a user X , once logged, when he hits any location name, he gets a default view composed of all or a subset of the cameras with th
-
Routing data from web ovi map TO my mobile device
How can I transfer the route data from web ovi map to my cell phone (E66) an using it for navigation?