Using Buttons To Launch Flvs As Defined In An Array?

Jun 3, 2009

a lot of the details and actionscript for my project were dealt with in another thread[URL].. what I would like to do is use buttons to jump between videos that are being fed to flvplayback, I have the actionscript skills of a rural victorian coal miner, fortunately I have the drive and bloody mindedness of a rural victorian coal miner so hopefully these things should balance out.
 
the action scrip I have scrawled for my button so far is as follows...
 
function introductionHandler(evt:MouseEvent):void{  // load given movie  videoIndex = 0;}introduction_btn.addEventListener(MouseEvent.CLICK,introductionHandler );

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Getting Buttons To Launch An Animation?

Feb 11, 2009

Let's say the Flash doc is set up in the form of a webpage. Then I have 5 buttons on the left. Now, I have another Flash banner at the top of the page.I'd like each button to launch a different animation within that top container upon clicking.I'm having trouble getting the script to work. Someone told me to put the script on the timeline of the actual main webpage - not attach to the buttons (which I find odd) I haven't used ActionScript in years!Oh, and I placed a stop action in the first frame of each animation movie clip so that they won't auto-play when the page gets uploaded to the web.

View 5 Replies

ActionScript 2.0 :: Thumbs In Rows Defined By Array?

Jul 10, 2006

I am quite new to the more advanced coding so here's an easy one for you: I have three images (thumb1, thumb2, thumb3) that I want to load onto the first row. then I want the second row to contain bar1 and bar2.

Obviously this code doesn't work...but I was able to get it to do just the first row (the easy part). How do i get the second set to load in below them? I just left the code off where I left off in my head.I would love it if you could just comment or complete my code rather than pointing me to a tutorial.

[Code]...

View 4 Replies

ActionScript 2.0 :: Get Global Variables That Are Defined Inside XML Array

Aug 22, 2007

I've been trying to get these variables that are defined inside this XML Array, outside of the XML array using _global, so that i can use them else where in the animation, but i'm not getting any purchase.

[Code]....

View 2 Replies

ActionScript 2.0 :: Combining Logical Operator With Variables Defined By Radio Buttons

Aug 7, 2008

I have completely hit a wall. Here's what I'm after. I have two sets of radio buttons, each of which controls what loaded swf appears on stage. Then, depending on which button is clicked in group one and which button is clicked in group two, a third swf appears. I can access the value of each radio button, and I'm passing it into a variable (I think - the trace command works) but when I drop it all together into an if/else statement, no data is passed.

Here's the code:
//printArea is a movie clip on stage, which has dynamic mc's attached via code
var thisFront;
//function for what happens when fronts radio buttons clicked
frontListener = new Object();
frontListener.click = function(evt) {
[Code] .....

View 3 Replies

Flex :: 1020 Undefined Property Right After Associative Array Defined Via Var?

Dec 29, 2009

While developing with Adobe Flex, I'm working on my first application - and use pretty much actionscript.

In my mxml application, I include as3 file via <mx:Script source="as/myas3file.as></mx:Script>.

In myas3file.as, I include (thru include "variables.as";) file variables.as, which contains following code:

var timer:Object = new Object();
timer.t = 60;
or (in other test case)
var timer:Object = {t:60, j:"80"};
timer.t = 80;

Neither case works! Even if I rewrite example code from official documentation, it throws an 1020 error.

View 1 Replies

ActionScript 2.0 :: Losing Scope On Array Defined As Private In Class

Aug 5, 2004

Why I am losing scope on an array that i define as a private member in a class? I am able to access it from a couple of different functions but in one place inparticular it keeps coming up "undefined". What causes scope to be lost in a function for an array that is defined as a private class member?

View 4 Replies

ActionScript 3.0 :: 1061 Error (not Defined) When Call A Method Of A Self Defined Class

Feb 9, 2010

I am using flex builder 3.2, Action Script 3 and develop for Flash Player 10 and am quite new to it. when I call a method of a self defined class, I get the 1061 error (not defined). But the class and the method exist and are public, so what the hell am I doing wrong? Flash Builder is even offering me this method in the auto-completion, so at least the builder knows it... I have already tried cleaning the project (as this is the common source of strange errors when working with java/eclipse),

edit: solved... The problem was that a package had the same name as the variable I used for the class. Very strange error message, thumbs down for this .

View 0 Replies

ActionScript 2.0 :: [Flash 8] XML/Flash Gallery - Making <launch></launch> Has The Ability To Link To An URL?

Jan 15, 2006

So I read through Kirupa's XML/Flash thumbnail gallery tutorial and have since modified some of its actionscripting to display my online design portfolio. How do I make it so that 'LAUNCH PROJECT' is a link? Here is the modified Actionscripting (I have one of each for the 3 sections):

Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;[code]....

As you can see at the bottom of the actionscript, I added a gotoURL action, hoping that simply by making <launch> read <launch action="gotoURL" variables="http:url...> that it would become a link. I, however, have had no such luck. Perhaps I have to add something more. How do I make it so that <launch></launch> has the ability to link to an URL?

View 2 Replies

ActionScript 3.0 :: Put All The Buttons In An Array And Then Use The Array Identifier To Add The Even Listeners?

Feb 1, 2009

im learning as3 and am trying to understand arrays so could an array be used in this situation i have 5 buttons which all need a ROLL_OVER, ROLL_OUT and CLICK mouse event is it easier to put all the buttons in an array and then use the array identifier to add the even listeners? or is there another way to do this? p.s if anyone can give me a few basic usages of arrays that you use in your experience. where to use arrays too

View 5 Replies

ActionScript 3.0 :: 2 Buttons In An Array Using The Same Array Info?

Oct 23, 2011

I am trying to use two buttons in an array that use the same information in that array, so I'm trying to lump them together so I don't have to write them separately. This is what I've come up with, which doesn't work. One of the buttons works, but the other one doesn't:
 
var arrNavigation:Array = [{button:(n1_mcButton, n2_mcButton), page:bucktown, popup:popUp1, imgNumber:9},

n1_McButton and n2_McButton are two different buttons, but all the other information is the same.Is it possible to write this more efficiently than listing the buttons out separately?]

View 4 Replies

CS3 : Too Many FLVs Loading?

Jan 22, 2010

I have one .swf that references several FLVs in a separate folder. That .swf is embedded several times on one webpage and each one references a different video.My only problem is that they all load when the page loads. I would like the first video to load automatically (not play automatically, just load) and the rest to only load when they are clicked.I have been trying to control the buffering with JavaScript where the .swf are embedded but have been unsuccessful.I have also fooled around with the buffer time parameter of the FLVPlayback component and still no luck.

View 3 Replies

ActionScript 1/2 :: FLVs Will Not Play From CD On XP

May 7, 2010

I have a Flash CS3/AS2 project containing swfs with FLVs. When I Publish the "START.fla" which pulls all the files together, I tell Flash to create a "Projector" for Mac and an "EXE" for Windows. On my (OS X) desktop this Projector thing works perfectly...swfs open from a menu in my GUI, the swfs reference flvs and the flvs play. The swfs are in the same folder as their flvs.

If I put this whole folder full of files over to the WinXP box (via shared folder), double click on the EXE - no flvs will appear. Everything "leading up to" an flv works - but where there should be a video there is none. Moving on I burn the project onto a CD. When I open the CD on the Mac and find the Projector - I double click and it still works great. Everything flawless.

I put that same CD into the WinXP (SP3) box, find the EXE and double click. As I expected - no improvement, the GUI opens,the swfs can be launched from the menu, but no flvs appear. I get the swf that references the flv - but no flv. I even waited extra time thinking it would eventually happen. No. Why it should work on Mac and not on XP? Where should I look for the glitch?

View 1 Replies

IDE :: CuePoints Work In Some FLVs, Not Others?

Mar 12, 2009

I am having an issue with setting CuePoints in a FLV that is not natively FLV. My code works on files that were exported directly from AfterEffects to .FLV. However, some of the video files I am working with are originally .MOV files. When I pass them through either Adobe or Flash Media Encoder, the CuePoints are not recognized. It seems very strange.

Here is the code, although the code works perfectly with native FLVs, so I don't think that is the problem. I'll put it on here just in case.

Code:
myFLVPlayBack.onRollOver = function () {
playHover.gotoAndPlay(2);
}

[Code].....

View 1 Replies

ActionScript 2.0 :: Flash 8 - How To Play FLVs One After Another

Apr 3, 2009

How to play flv's from Action Script2 one after another? Let's say I have 3 clips .flv. And I want to play them one after another.
In case I'm writing this:
myFLVPlybk.contentPath = "1.flv";
myFLVPlybk.contentPath = "2.flv";
myFLVPlybk.contentPath = "3.flv";
Only the last clip is playing actually. How can I implement "one after another"?

View 1 Replies

ActionScript 3.0 :: Play Two FLVs Continuously One After The Other?

Apr 23, 2009

i need to play two FLVs continuously one after the other - you might think it's an easy task, but every time i try to do that there is this annoying gap between the videos that flickers, and it's have to be seamless.the ON_COMPLETE event worked poorly, so im sampling the playheadTime of the first FLV and test it for it's end, minus a certain offset value.. but the lag is still there.i ever rewrote the FLVPlayback component to my own NetStream object extending, hoping it will take less run-time memory consuming but noting...and the thing is,the lag sometimes happens, and sometimes don't..when trying to sample the gap it brings me different values every time, but there is no way to correct it,because changing the playheadTime causing a random, few milliseconds lag itself, and we are back to square one..

View 3 Replies

Implement Closed Captioning Into FLVs?

Feb 29, 2008

implement closed captioning into my FLVs. I have successfully set up the FLVplayback component, and the FLVplaybackCaptioning component to work. That's not the issue. The issue is, once I have my swf, flv, and xml files (needed to successfully use CC in a FLV), I need to insert that .swf into my captivate project.

It appears to insert/import OK, but once I publish the project, the swf does not appear, and in fact the FLV icon sits on the slide rapidly blinking. Neither the video plays, nor can I even see the playback component/closed caption component (swf) that holds the FLV.

All paths are relative, so the only things I can think of that may be causing the issue are:

a)Captivate doesn't support CS3 FLVPlayback or
FLVPlaybackCaptioning components

b)Since Captivate allows importing of FLV files directly, running the FLV through the component's swf is a problem

c)The hierarchy of files needed for the Closed Captioning FLV (xml, flv, swf), interfere with compiling the new Captivate .swf
upon publishing I've also been told that the FLV captioning component only works in Actionscript 3.0 which runs on Adobe Virtual Machine 2.Captivate publishes .swf files using Actionscript 2.0 which runs on Adobe Virtual Machine 1. Therefore, what I need to do will not work.

View 4 Replies

ActionScript 3.0 :: Get First Of Several External FLVs To Play?

Dec 14, 2009

I have five videos that play on command when you click one of five buttons.  I want to make two enhancements to this script and I need an expert's help (because clearly I'm clueless!).

#1 - Even though I have the vidPlayer (aka flvPlayback component) setting set to "true" for autoplay, the area where the videos are set to play remains blank until clicking on one of the buttons. How can I get the first video to truly "autoplay"?

#2 - I would like to have the videos play in sequential order when the last video is finished, then stop after the last (fifth) video has played.  How can I get them to play back-to-back?[code]...

View 5 Replies

ActionScript 3.0 :: Play FLVs In Sequence Without A Gap Between?

Jul 22, 2010

I have single FLV file which is quite big. I want to encrypt it and decrypt but it takes too long. My best idea was to split video into smaller videos using third party software and apply my encrypting and decrypting functions to each one separately. Unfortunately I have a problem with gaps between loaded FLV files. Video has to be smooth without any pauses.

View 0 Replies

ActionScript 3.0 :: Volume Levels Between Flvs Are Very Different

Jan 31, 2011

I made a video player that plays through flv videos one after another for an in-store display. My problem is that volume levels between flvs are very different, one flv volume levels would be louder than other flvs vice versa.So I'm thinking if I could equalize the volume levels using sound channel but have no idea where to start. Can anyone point me in the right direction on how to properly adjust/equalize volume levels so they all sound the same?

View 4 Replies

ActionScript 2.0 :: Getting Flvs To Play Incrementally?

Jan 2, 2007

I am having trouble getting my flvs to play incrementally. I can only get it to play the last flv in my array.

Code:
_root.stop();
//
vidList = new Array("item_overview_ae476x264768K.flv",

[Code]....

View 4 Replies

ActionScript 2.0 :: How To Load Multiple Flvs

Dec 20, 2007

I have 3 videos to load into a single flv component. I want to be able to load these movies randomly. How would I go about doing that? I have no idea how to start

View 1 Replies

ActionScript 2.0 :: Resize Flvs In Flash?

Apr 23, 2008

I'm adding a "view large" capability to my video player, however I have noticed that if I straightforward code

on press. got twice as big,

the color, tone , sharpness is greater than if I..

I'm using flash tween I don't know if there is a better tweener out there?

View 7 Replies

ActionScript 2.0 :: Loadin Up A Bunch Of FLVs

May 2, 2008

I'm tasked with creating a site that runs full-screen video in the background at all time. I have it set up in XML in "batches" of 10-second clips that correspond to navigation sections. Currently the video just selects a random clip out of that batch once the current video has stopped playing, so it gets a random chain of videos.Of course, when it gets onto the crappy server, my framerate plummets (first disappointment) and i get a little pause in between clips (second disappointment). What I'd like to do is start loading the videos once you get to the site and hope that they're cached by the time they come up. My first thought is to put those batches into shuffled arrays rather than pulling them randomly at load, so I can at least have a predictable order.

View 4 Replies

ActionScript 3.0 :: Play FLVs Simultaneously Within Swf?

Mar 14, 2012

I am creating a flash "video jockey" station. I have 9 videos that are different parts of a song. Each video is loaded upon the loading of the swf with a volume of 0 . When the buttons given are pressed, they unmute and expose the video. I have it set to a 36 second loop. I have coded in a rewind for each video. When I export it for html, the rewind and play no longer matches up. I feel like there may be a simpler way to code what I am doing, and a way to say that all videos should match up based on their location within their 36 second play time. I have included the actionscript3 I have written for two of the videos. Imagine this with 9 total videos and background music all having the same rewind function.

stop();
import fl.video.*;
var pb:FLVPlayback = new FLVPlayback();
pb.source="videoOne_2.flv";

[Code]....

View 6 Replies

ActionScript 3.0 :: Pre-Caching Multiple FLVs At Once Possible?

Mar 11, 2009

Any input on precaching multiple flv's at once to make sure they all play properly at once? Fairly small filesizes/resolutions/compression all around. I'm open to ideas. I plan on using a preloader to go from 0 to 100 as the videos precache.

View 1 Replies

ActionScript 3.0 :: Can't Play FLVs In Full Screen?

Dec 8, 2008

I have a presentation that runs fine when its being playednormally, but when I try to get it to go into full screen mode witha button click it goes black and won't load the videos.Somehow in the past I was able to see the errors, but now Ican't get the same error to pop up.

View 1 Replies

Actionscript :: Adding Cue Points To A List Of Flvs?

Jun 4, 2009

I have a list of flvs that are selectable with buttons and I would like to add cue points to the individual videos to trigger other events and I'm afraid my skills are lacking here.How do I target an flv in a list to add cue points and how do I target these cue points to trigger movie clips?

View 3 Replies

ActionScript 3.0 :: BytesLoaded Preloader Not Accurate For FLVs

Nov 8, 2009

After wrestling this flash flv slideshow for the last few days, I finally have it running smoothly locally. The problem is that on a server it has serious issues. I see a blank screen where the flv should be... I assume it's still loading or buffering. That's a problem as is, but when it's in this state, nothing else works on the site (flash site-one swf). If you wait for sometimes 10 minutes the flv finally shows and the site works great. All of this obviously depends on the connection.

So I understand that this could be caused by the size of the 10 flvs. I'm using the FLVplayback component by the way. So that's fine for now, but I just want a preloader at the beginning to only go to frame 2 after the intro flv has been loaded. I thought this would be simple using bytesTotal and bytesLoaded. I was wrong. Below is the code I'm using. When you view the page the preloader seems to work, but after it runs - you are directed to the second frame... showing the "skip intro" button (which doesn't exist on the 1st frame)... but the flv doesn't show. It's actually still loading... 5-10 minutes later it shows up and the site works fine. My preloader isn't showing the progress of the flv load.

You can see what I'm talking about by viewing my project... if you're on a connection like mine you won't be seeing much: [URL]

Does anyone know of a preloader specifically for FLVs... maybe one that reads the buffer progress?

[Code].....

View 5 Replies

ActionScript 3.0 :: Play Multiple FLVs At The Same Time?

Apr 19, 2010

play a number of FLV files at the same time on one SWF? Basically I have a brief to create a video banner with a number of FLVs of people playing at the same time but starting at different points in the videos. My concerns are with loading times, memory consumption and the starting of each FLV at a different point and looping it.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved