ActionScript 2.0 :: Video Gallery Just Loads First Clicked Video?
Jun 24, 2010
i have an xml gallery where every thumbnail is supposed to load a video on onRelease function. I tryed the easiest way i figured, since i�m not used to work in as2, but it works only a bit: It loads the first video you click ok, but it won�t load another one. This is my code:
Code:
function callFullImage(myNumber) {
myURL = myImages[myNumber].attributes.full_url;
var my_player = new FLVPlayback();
[Code].....
View 5 Replies
Similar Posts:
Jan 19, 2010
I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thichbox is playing too. This leading to ineffective listening. Does anyone know a code that would trigger the video to pause when clicked anywhere on the video screen?
View 2 Replies
Jul 29, 2009
My dilemma is that is that I have an image that when you roll over it with the mouse the words 'click to play' appear. Now when I click I want the image to disappear and the movie behind it to start playing.
I've managed to put together some action script through looking at various tutorials and posts. but when I preview my site and click the image nothing seems to happen.
The code I'm using is as follows:
import fl.video.VideoEvent;
function doPlayVid(e:MouseEvent):void {
tanmov.play();
this.alpha = 0;
[Code].....
View 6 Replies
Oct 25, 2011
I make my base swf in which I load external swf's. In my base swf I have mp3 player. Everything works fine until I need to load external Video gallery or mmedija.swf. In video gallery I have
import flash.media.SoundMixer;
SoundMixer.stopAll();
to stop my mp3 player sounds and play video files.... But then when load some other files I want to stop playing video files and restart mp3 player.
[Code]...
View 0 Replies
Sep 8, 2008
I have a xml gallery at the moment which loads in thumbnails and displays the larger images when clicked. What I am having trouble with is that some of the thumbnails have their own multiple images (more than 1 image for that thumbnail). I want to have a numbered menu 1,2,3,4 and when I click on the thumbnail depending how many sub photos there are for that one thumbnail I want to display an that image. And just to be dificult I also am displaying the larger images in another swf on the same page using local connection.
View 1 Replies
Jun 13, 2007
I am creating a video gallery off of the demo action script 3, video gallery, that is shown on this site. I have updated the XML file that contains the link to the thumbnails and videos to the appropriate url. When I test the project out, I get the following error:
TypeError: Error #1085: The element type "video" must be terminated by the matching end-tag "</video>". at
fvg::FlashVideoGallery/fvg:FlashVideoGallery::onDataHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
View 2 Replies
Jan 24, 2010
I have a flash site that I'm working with that has an xml photo gallery as one of it's menu items. the photo gallery has three pages, all three containing thumbnail images that once clicked, load the larger image. The larger image dissolves in covering the page with the image. Once you click the larger image it dissolves out returning you to the gallery.
What I want to to do is to change the first page of this gallery to a video gallery, or player, leaving the other two galleries as image galleries. I tried simply replacing the images listed in the xml document to flv files and the flv file does not load. I simply want to know what it is I need to do in order to change this one page so that I can embed videos on it.
I've attached the Action script that loads the xml gallery in .txt format
View 6 Replies
Aug 18, 2011
Recently i have visited so many video enriched flash site like this one [URL] Most of them shows video in full size. I downloaded the video using FF plugin. Video framesize is very small compared to the stage size. When i tried to add video and resize the video acoording to the page size , it slows the browser. I tried to embed the flv inside an swf and loaded the swf using normal loader and plyed it.. but the quallity and performance comapred to these site is very low..
View 3 Replies
Mar 29, 2011
I am cutting my teeth with some actionscript.My knowledge of programming and AS is limited but I am getting familiar with the language.In my fla i am using this code as a custom document class:[code]We managed to get it to preserve the aspect ratio when it detects a RESIZE event.Now, the fla file is empty. I want to use the swf this actionscript generates to call several different .flv files.The problem is, I don't know how to add functionality (for instance, a button) that is placed on top of the video. Seems the video is loaded ontop of everything else.
View 6 Replies
Dec 18, 2010
I made a video in After Effect and export it to flash as a FLV video.. and write de code to load it into flash.. but I need it to loop.. Here is the code
[Code]...
View 1 Replies
Jul 5, 2009
I'm using Flash CS4 and have linked to a video that hosted on a web server with one of the preloaded flash video skins (ArcticExternalAll). When the page loads the video plays without any problems, but I would like to make it so the user decides when the video starts rather than it automatically starting when the page loads. Is there any way to do this?
View 3 Replies
Nov 9, 2009
Update: Turns out this is undocumented behaviour of the NetStream class - NetStream loads relative to the swf, as opposed to URLRequest which loads relative to the HTML doc...annoying.I am having a strange issue where loading an FLV file using thefl.video.VideoPlayer class that comes with CS4: Adobe docs hereUsually when loading external content into flashplayer, the path is relative to the HTML page that the swf is embedded in - but when I try and load an FLV using the VideoPlayer class the player looks for a path relative to the swf, not to the HTML (as you would expect).
eg:
My file setup is:index.html (which contains the swf)swf/my-video-player.swfvideo/my-video.flv
[code].....
View 1 Replies
Mar 22, 2011
I am trying to create a video that loads the videos stred in a directory, depenant on the users id etc. To do this, I am using php. However, I cannot then get the php to convert to xml within the actionscript:
[Code]....
View 3 Replies
Sep 23, 2009
I'm a new Flash user, trying to build a fairly intricate website by newbie standards. I have a basic understanding of Actionscript and OOP, enough to build a fairly nice looking full-featured website. Most of my goals for the website have been met, including dynamic XML content, a dynamic navigation menu, dynamic screenshot galleries.My current nemesis is a flash video gallery. I'm using xml lists of video locations (different types of video, including flv, wmv, and avi), and I've tried both the stock CS4 video player component (FLVPlayback) and the ubiquitous ToobPlayer 1.0.
Here's the problem. When I compile the video and view it offline, with either player component, it works beautifully! Loads each video from the XML gallery and performs as requested. When I upload it to an FTP and run the website (in an html file) as an http:// link, the video player component is no longer visible and nothing playsIt's driving me ape! Do I need to include some .as files when I upload or something?
View 7 Replies
Mar 16, 2010
How can I play an embedded flv video automatically in a Flash website every time it loads a page?
For example: When I click on the "About" button, I'll go to the About page. On that page, there's an embedded flv that I want to play automatically every time I go to the "About" page.
View 1 Replies
Oct 13, 2011
Im trying to make a video class so I can put in my src and video dimensions to load up a video .. I am wishing to implement this in the following way
[Code]...
View 2 Replies
Mar 10, 2010
I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thichbox is playing too. know a code that would trigger the video to pause when clicked anywhere on the video screen? Right now the videos being tested at this link -[URL]I don't currently have the video linked up to lightbox, just a link above the video to expand.With FLVPlayback,this is my current code (it's currently coded and set up so the video autoplay starts at 52 seconds)...
import fl.video.MetadataEvent;
import fl.video.VideoProgressEvent;
import fl.video.*;
[code]...
View 2 Replies
Mar 4, 2010
I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thichbox is playing too. This leading to ineffective listening. Does anyone know a code that would trigger the video to pause when clicked anywhere on the video screen?
View 5 Replies
Jan 19, 2010
I've created a video player using the flv component. I have images of cue points. The user should be able to click on an image and the video should skip or start at that cue point
View 9 Replies
Apr 26, 2010
I've set up a function to pause the sound in an mp3 player whenever certain things are clicked on the page, using ExternalInterface, but I'm having a problem in IE.The setup is this: I have a video page that calls up a list of YouTube videos using RSS.he most recent video is displayed on the page in a div called "display". Then all the rest of the videos in the feed are displayed as thumbnails and links...If you click one of them, then the main 'display' video is replaced and it starts playing. All of that works fine.hat I want is for the mp3 player on the page to pause the music whenever a video is started.The ExternalInterface function works properly. Whenever one of the LINKS is clicked, the mp3 player stops and the video starts, etc.
The problem is that I also want it to stop when the MAIN video is clicked. Obviously, since this is an external video loaded from YouTube, I can't access the FLA to add its own ExternalAccess code.I've tried adding an ID to the video object and then using it as the selector in jQuery to call the stopMovie function...no go. I've tried adding a class to it, and then calling the stopMovie function when the class is clicked. I've tried putting the click function on the div that the video loads into...nothing works. If I remove the main video and just have an empty div, then click the div, the mp3 player stops...but if I load the video into the div and click it, nothing happens (in IE...it DOES work in FF).The Actionscript:
import flash.external.ExternalInterface;
ExternalInterface.addCallback("stopMovie", pauseSound);
function pauseSound(str:String):void {
[code].....
View 2 Replies
Jul 28, 2011
A website I've recently encoded has HTML5 video that falls back to a Flash video for IE browsers. The MP4 video is played through a SWF file with an FLVPlayBack component, and works perfectly on my company's staging environment. However, once we moved the files to the client's live site, the video's buffering does not work properly. Instead of showing the video controllers and progress bar as the video loads, nothing is shown until the video file is completely downloaded (about 50MB)Here are the settings used for the SWF file and FLVPlayBack Component:
FLVPlayBack:
autoPlay: off
autoRewind: on
[code].....
View 3 Replies
May 8, 2008
I'm working in a xml videogallery and I'm using a video component... The problem is that when I go fullscreen the video object loads in the top-left corner of the stage (is a 800x600 movie) tough I publish my movie with 100% x 100% dimensions.
[Code]...
As you can see after the first fullscreen the stage remains in the Top Left corner. Is there any way to make the stage return to the center? I need to do it when I return from fullscreen to normal mode... or.. what can I do? I tried to put the gallery inside a MC and center it but still fails cos the video object loads in the registration point of the MC (like in the first example I've provided)...
View 4 Replies
May 31, 2009
I would like to load a video into a video at certain cue points along the main video. Does anyone know how to do that?
View 20 Replies
Mar 28, 2009
Which is better to display a bunch of videos in a gallery swf or f4v?
View 1 Replies
Jun 26, 2009
im creating a portfolio website that primarily uses flv videos for graphics. For example, if you click to go to another section of the website a video plays that actually walks you to that area. What I want to do is be able to load a different video when a button is clicked in the exact same place as the old one. I currently have a working class that plays a video
[Code]...
I want to some how be able to change the variable flvName on the click of a button on my stage and recall the class to change the video. If you can think of an alternate way of doing what i need to do id love to hear it.
View 0 Replies
Sep 27, 2009
We have a short video of a street, which we are looking to pause when it is clicked and then all the hazards turn into drawings and flash. Then when you hover over a hazard it tells you some info about it.I have managed to get the video to stop when clicked, using the below code but can't get the movie clip of the flashing hazards to play at the same time. Is it even possible?
ActionScript Code:
on (rollOver) {
Pause video[code]...
View 3 Replies
Aug 31, 2009
I'm creating a video gallery and i have some issues because i'm new ot action script.I have a gallery.swf which loads into main swf. this gallery has thumbnails that link to the video.So the issu is the following:When i roll over the thumbnails, I would like to show the name and the description of the video and if i click on it, it should load the video.I was wondering if there is a way to do this dynamically with xml instead of working on every thumbnail button ans linking it to its video.
View 2 Replies
May 25, 2010
I have a video gallery that has 24 different videos to choose from. I am trying to find a way that a user can pick from the 24 to create a new customized list of videos to play. The idea is that a sales rep could choose the videos they want to show to a client and only show those videos. Currently the only way I can think of to do it is for me to edit the xml file with only the list of videos that they want. Maybe there is a way to pick the videos from a list, press an export list button that would then save over the xml file with a new xml file that only has the videos that they selected.
View 10 Replies
Apr 25, 2011
i need a tutorial of video player which must be like youtube video player. preview of a site like this i want it to be.[URL]
View 1 Replies
Jul 8, 2011
Basically I need to build a gallery that works like your typical XML image gallery but if the an .flv is inside the targeted file (and in .xml), when you click on the thumbnail for that video, it will play and then stop when you click on different thumbnail.
View 0 Replies