Need a button to switch to a video

Hey, I'm very basic Flash, but to the extent where I created a small portfolio page with a video background as a cover page. I would like to add a button to the background which will turn video power when the key is pressed again it will play the first video again and play another video. but have no idea how to start. any help would be great...

You can see my current page at www.kimtraeger.com

Here's my like for the videobackground:

Import VideoBg;

videos of the var: Array = new Array('videos/bird_short.f4v');

var num:uint = 1;

var vid:VideoBg = new VideoBg (videos [Math.floor (Math.random () * videos.length)]);

addChild (vid);

setChildIndex(vid,0);

stage.scaleMode = StageScaleMode.NO_SCALE;

internship. Align = StageAlign.TOP_LEFT;

stage.addEventListener (Event.RESIZE, position);

stage.addEventListener (MouseEvent.CLICK, startIgen);

position (null);

function position(Event=null):void {}

var SH = stage.stageHeight;

var SW = stage.stageWidth;

}

enterBtn.addEventListener (MouseEvent.CLICK, MinFunktion);

function MinFunktion(e:Event):void {}

e.stopImmediatePropagation ();

vid.ns.pause ();

enterBtn.visible = false;

popUp ('start2.swf', 'swf', null, 900, 700, 0);

}

function startIgen (Event): void {}

enterBtn.visible = true;

vid.ns.resume ();

}

function popUp(con,typ,tit=null,wid=550,hei=400,alp=0.7):void {}

ExternalInterface.call("saveglobalscore",score) ("Shadowbox.open", {content: con, player: type, title: chickadee, width: wid, height: hei, options: {overlayOpacity:alp}});}})

}

var vid:VideoBg = new VideoBg (index);

must be:

var vid:VideoBg = new VideoBg (videos [index]);

Tags: Adobe Animate

Similar Questions

  • Need help buttons toggle, nested set of video clips!

    Problem # 1

    I have a clip I want to trigger it with a toggle button, inside this clip I have various video clips in different layers that should play at the same time.

    The problem here is that when I press on enter and watch the clip on the stage, each layer plays but when I do the film do not play a few layers. How can I make all play?

    Problem # 2

    I did a toggle button on a clip, now I need to be able to do things more:

    1. the inactive button after which is clicked

    2 - Added feature to it so that it plays a nested video, how do I code? I have to add an event listener or a mouse event?

    3-make it stay flipped until another button is clicked:

    When a button is activated, it will remain pressed until another button is clicked then it releases automatically. (is it even possible?)

    Thank you!!!

    Problem #1

    If you have some movieclips in layers, order them to play

    Problem #2

    1. remove the event listener

    2. you must add code to say what a nested video should play

    3 keep the identity of the toggled button and have a function that resets using this variable

  • Need help! Interlocked switches or buttons

    Hello

    I have an application of prison access & control running at lookout 6.1. My client asked me to add 2 buttons on the screen or switches to 2 groups of exit doors in case they have an emergency situation. They want me to add a button on the client to wait to release the first group, called Group-A. This would release the first group of doors giving the prisoners to leave the cell and enter a secure area of the postern. Then, they want a second button to free the second group of Gates called Group B. This would allow the prisoners to leave the building. They don't want to group B of the second button to be able to be used or button when Group A is already on. I need to lock the switches or push buttons (I use one or the other) I don't see any way to achieve lookout? I might even just disable the switch until the switch group-one was on but disable it only works when the switch is in mode DDE. I really need to find a solution to all of this help, anyone can give me would be greatly appreciated!

    Thank you

    Rob

    Hello

    Albert and Mike thanks for your post! I played a bit with the datamember visible but I don't like the fact that the switch is not always visible to the user. I tried your example Mike, and I think it will be the best work around my problem. Thanks again guys and if I go with an ActiveX conrtrol switch I can disable I will post the information here.

    Rob

  • My browser doesn't look like video tutorials. Some parts have built-in, but there are buttons that show in the videos that aren't in my browser.

    My browser window does not resemble the one in the video tutorials. Some of the buttons show you in the videos are missing in my version. When I click on "about", he said: I'm under 4.0.1 i want cool buttons like everyone else!

    The new interface is the default on Windows Vista and Windows 7 only. To get it under Windows XP, you must hide the menu bar. Do, in the view menu, select Toolbars, then click on the entrance to the "Menu bar".

    If you need to access the menus, you can press Alt or F10 to display temporarily.

    If you want to change the position of the tab bar, you can right click on a toolbar and click the entry "Tabs at the top".

  • When I click with the right button of the mouse on videos from facebook it shows no options for me to copy the link and etc.

    When I click with the right button of the mouse on videos from facebook it shows no options for me to copy the link and etc. It only shows the parameters for the flash player. How can I fix?

    You can find the URL of the thumbnail by following these steps:
    In the context menu, choose {inspect element}.
    Now, you can see the URL in the source down (perhaps you click the small arrow to the left of the line of seledted firstly to show).

  • iMac 7.1 displayport switch audio and video?

    Hi all

    My family would like to connect his iMac 7.1 2.4 Ghz Core2Duo until his TV downstairs, and I was wondering if the displayport located on these iMacs can transmit video and audio through, if we were to get a displayport HDMI adapter. Thank you

    The computer is about 10 years old, this vintage iMacs didn't have the ability to cross the Mini DVI audio & video port. The computer would need to discreet cables for audio and video.

  • KVM access - needed to configure the switch upstream?

    I'm short on time, and I'll put up a UCS solution tomorrow for the first time. I have a feeling I'll have problems of access to the console KVM IP subnet.

    Do I need to configure the switch upstream so that the KVM access to the work of the management of VLANS? The subnet KVM stands by the management subnet. I could also set to the same subnet. What is practice here?

    KVM IP subnet must be in the same subnet as the management IP addresses you assign to each fabric interconnect. This is due to the KVM using the versus network ports the FEX upstream to FI ports.

    Hope this helped...

    Richard Pugh

  • BlackBerry smartphones, I need my blackberry 9630 to read web video and download video

    I need my blackberry 9630 to read web video and download video. Right now I can't do it right. Can anyone suggest some plug-ins etc. ?

    Hi and welcome to the forums!

    Video game web depends on the type of video file. See the link attached for supported file types.

    Can you post an example of the video link, you can not play, I'll help you test.

    Thank you

    Bifocals

    Reference guide for Media Types supported on BlackBerry Smartphones.

  • I need a button to activate the audio and trigger an object, is it possible?

    I need a button to activate the audio and trigger an object, is it possible?

    I guess it depends on exactly what you mean when you say "trigger an object. If you mean to show a hidden object, with advanced actions, it is easy. Just create an action that would first start playing the audio then reveal the object.

    If "trigger an object" means something other than to show it, please post back with what it means for you.

    See you soon... Rick

  • Hello, I need help, I can't play the video using Facebook. Works very well in Youtube. I use Safari. Tried different solutions such as changing preferences, reinstalling Flash.

    Hello, I need help, I can't play the video using Facebook. Works very well in Youtube. I use Safari. Tried different solutions such as changing preferences, reinstalling Flash.

    Hello

    Please try following the steps and see if it helps

    1. Please work through this guide.

    https://helpx.Adobe.com/Flash-Player/KB/video-playback-issues.html

    Follow the instructions in the guide on the provision of the dxdiag report and additional information on what you tested and observed.

    2 turn off hardware acceleration in the settings. Steps are mentioned in the link below

    How to disable or enable hardware acceleration?

    Thank you

  • Help, please... I need to know how to crop my video segments?  I also need to know how to make several clips to run at the same time by dividing the screens?  How to fade a clip?

    Help, please... I need to know how to crop my video segments?  I also need to know how to make several clips to run at the same time by dividing the screens?  How to fade a clip?

    I watched the video tutorials.  I need to know also how to add additional video tracks to my screen.  Any help please?

  • With benchmark button to restart an imported video

    I have imported a second f4v video 6 (instance named "recess") and have implemented a cue point named 'start' on the video at 00:00:00. The f4v video play when the film hits this frame in the main timeline. I use a button that simply must restart the video if you press. What it actually does is to return the timeline of the video at 00:00:00 but no start/play the video. What Miss me?

    The current code for this frame is:

    import flash.events.MouseEvent;

    Button which should restart the video

    videoPageBtn.addEventListener (MouseEvent.CLICK, backtoCue1);

    function backtoCue1(Event:MouseEvent)

    {

    var myvidStart:Object = breakTime.findCuePoint ("start");

    breakTime.seek (myvidStart.time);

    }

    Try adding just a play in there.

    breakTime.play ();

  • HELP ~ need a button to add a clip of library

    I have 2 clips in the library that contains the text box.

    Description 1
    Description 2

    I need two buttons 1. load Description 1 movieClip loads the other movieClip 2 description of the library.

    Finally worked it out.

    loadVariablesNum ("description1.txt", 0);

    loadVariablesNum ("description2.txt", 0);

  • Need of spent opening for LR 6, video capture, date digitized metadata as 01/01/1904 - date change

    Make the switch now to find problems.  419 MV4 videos have the wrong dates from 01/01/1904.

    For example.  Video taken: 02/12/12.  In Lightroom, after the opening of LR plugin running, he lands in the folder '2012-02-12.  So I don't KNOW, he got the data.

    IPTC Metadata EXIF pane and say:

    File: 2012-02-12

    Metadata date: 19/04/2016 (when I ran the plugin)

    Date time Original: 01/01/1904

    Date time digitized: 01/01/1904

    Date time: 19/04/2016 (when I ran the plugin)

    Capture date: January 1, 1904 (on the default component)

    If I pulls a file in the finder it has created and updated the last dates open as 12/02/12 15:59 (original file plugin for LR before).  If I pull up on Windows after that I did the plugin, changed release date 12/02/12 03:59. If the data is there!

    The modified date is also close to correct I can say - how to do it is one of the many fields of date: Date time Original, Date time digitized, Date of Capture.

    The other 600 +. MOV files came with varying degrees of accuracy - just not 01/01/1904 but somewhere in the right month/year.  However, the record of landing is always correct which I assume is changed/created date.

    No problem on the images - videos.  It allows to find almost impossible.

    Advice?

    Thanks in advance.

    Well, I tested/tried a few things and write what she here wishes to clarify and maybe help some other poor soul:

    • My problem is that I can't see my videos in the order they were taken. It is not a matter of incorrect metadata. It's LR is not using the right metadata AND sorting in the collections of library view/chip uses not all useful dates (looking at enter you times).
    • Even if you have the correct capture date, you still cannot sort on one within a smart collection of videos.
    • Concerning imports of landing in the folder the appropriate:
      You gave me a tip with him «probably could have the info of plugin import opening...» "So I tried to import directly from the card of the camera.  She landed in the folder that is appropriate in this case also, the capture date is set correctly from the metadata of the top menu - change the capture date.  However, we see that in one of the metadata views.
    • In the display of the grid, I used the 'folder' among the 'cell more' expanded to help.  I can see the folder which tells me that the date was taken.  But they are not in order.  Sort by file might solve the problem.  A bit like fun, most of the cells in the grid have the path of the full record (AAAA-MM-JJ), but some have just MM.  Totally random and totally not useful.
    • Got the video plugin Asset Management work.  I'm on LR 6, which has video thumbnails is not not according to needs. He should be running the plugin against any imported video, this tagging along with a keyword to display in a smart collection, then run a plug-in to launch a video individually.  He will do the work, but man, if Adobe is billing as a replacement of the opening, he must be able to manage simple and logical.  Simply using the modified date of the metadata and sorting by it.

    Then I'll try the trial of CC of the bridge, but since I paid fully for LR I don't know isn't going to throw $ 10 per month for something that should already work.

    Thanks for listening.

  • How can I create buttons of switch trigger MC in swf loaded

    Hello

    I am a newbie in ActionScript 3 and I am currently working on a project that has a (zoom) swf that zoom/pan a swf loaded a map (carte_web.swf). Everything was going well until I got more requests.  There are now two cards, same background, one with images and one with only one road. I try to add code to two buttons on a toolbar that is generated by the zoom.swf, to switch between the two cards, without losing its zoom/pan my cards are the two Flash-oriented object programming.  I spent 27 hours, trying to find a way, and I'm definitely at the end of my mind!

    I have a suggestion "to charge both your SWF in a sprite separately.» Then switching between sovereign wealth funds by removing and adding them to their parent sprite. The parent sprite is what you zoom. "I've tried everything!

    Any suggestions?

    If you want to keep the current state of each 'card', you will need to load each of these sovereign wealth funds in different sprites. In this way, you can just addChild and removeChild and save the State without having to reload the SWF file. Another way, you could actually do, would be to just reload in a sprite, and before you unload the SWF file, save all data of zoom/pan in an array or variable or something of that sort and just restore data to the card when it is reloaded. Don't know if I make sense here, but without details of your exact problem, it is difficult to say.

Maybe you are looking for