Load image and video dynamically...

Hello. Can I make a "Browse..." button in a "Settings" slide (at the beginning of the presentation), to point my presentation to a certain photo (one photo) and video (one video) files from a HDD? I want to use those files in one of next slides... Thank You!

I was able to create a file with 2 buttons that will upload image and video separatly and it works fine.
But what I want is there is a 3rd button for submitting the selected files, right now the files are uploaded as soon they are selected and the browse window is closed..
How do I get to upload the selected files only when the SUBMIT button is clicked. Please help.
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
// Assign the document types filter
var videoTypes:FileFilter = new FileFilter("Flash Movies (*.avi, *.flv, *.mov, *.swf)", "*.swf");
// Add both filter types to an array
var imgTypes:Array = new Array(imageTypes);
var vdoTypes:Array = new Array(videoTypes);
upload_image.addEventListener(MouseEvent.CLICK, browseImage);
upload_vdo.addEventListener(MouseEvent.CLICK, browseVdo);
var fileRefList:FileReferenceList = new FileReferenceList();
function browseImage(event:MouseEvent):void {
    fileRefList.browse(imgTypes);
    fileRefList.addEventListener(Event.SELECT, selectHandler);
function browseVdo(event:MouseEvent):void {
    fileRefList.browse(vdoTypes);
    fileRefList.addEventListener(Event.SELECT, selectHandler);
function selectHandler(event:Event):void
    var request:URLRequest = new URLRequest("fileUploadScript.php");
    var file:FileReference;
    var files:FileReferenceList = FileReferenceList(event.target);
    var selectedFileArray:Array = files.fileList;
    for (var i:uint = 0; i < selectedFileArray.length; i++)
        file = FileReference(selectedFileArray[i]);
        file.addEventListener(Event.COMPLETE, completeHandler);
        try
            file.upload(request);
        catch (error:Error)
            trace("Unable to upload files.");
function completeHandler(event:Event):void
    trace("uploaded");

Similar Messages

  • Load external images and video in edge

    Hi.
    I am looking into edge instead of flash.
    My question is how do you load external images and videos from an external server?
    To clarify, I need to insert a link from where the images can load into the stage, so they don´t take up any of the final weight.
    Thanks in advance.
    Best,
    Stig.

    The above solution I provided works if you already have the images in your composition and than if you want form load images from another server rather than the relative location to your html file.
    Now if you want to load images dynamically into a rectagle containter you will have to code it.
    below is a sample for that
    Create a 'rectangle' with name 'Rectagle'.
    Add the snippet in the compositon ready or on other user actiosn based on your requirement
    var myImagetag = '<img src="http://wwwimages.adobe.com/include/style/default/SiteHeader/logo-2x.png">'
    sym.$("Rectangle").append(myImagetag);

  • Images and video not loading after bridge

    Hi guys. I followed this guide to put the NVG589 into bridge/passthough mode so I can use my Netgear N600 WNDR3700v2 router. Everything seems to be working fine, except with Facebook, Youtube and a few other sites. Images and video take forever to load (if at all). Everything I have read online suggests either changing to the Google DNS or turning IPv6 off. I am already using Google DNS and I already had IPv6 turned off on the Netgear. I have now turned IPv6 off in the NVG589 as well, yet the problem persists. As we have 30 days to test run AT&T interent, I still have my cable interent active (Suddenlink), so I can plug in the cable modem (SB6121), and everthing loads quickly on Facebook and Youtube. I plug in the NVG589, still not loading...so it's defintley something to do with the settings in the NVG589. Any idea? Thanks in advance.

    Hi ,
    I am sorry about the issues you are having with your U-verse service loading certain sites, but I will be glad to help. Are you having issues when it is not in bridge mode? Try resetting the U-verse gateway, and just connecting your Netgear to see if you are having the same problem. If so, try doing a direct connection to the gateway without the Netgear to see if the problem still persists.
    Let us know how it goes.
    -David T

  • I have installed Flash Player 12 on MAC OS 10.9 using Safari, images and video don't load.

    I have installed Flash Player 12 on a MAC OS 10.9 using Safari. The system will not load images or video. I have used the website help documents to verify that the Flash Player files are installed and the Safari security settings are correct. Help please?
    matmaxx1

    The old Plug-in files are still around
    Download the offline imstaller: Flash Player 12.0.0.44 (Mac OS X)
    Then do a "clean install": How to perform a "clean install" of Flash Player in Mac OS X
    That'll get the old junk out and you'll have a new Player plug-in.

  • How to store images and video clips in Oracle

    All,
    Can anyone guide me how to store the images and video clips in oracle through pl/sql and also the way to retirve it.
    Edited by: sikander on Sep 7, 2010 3:27 AM

    Some sample code
    connect sys schema  --if scott has no privs to create directory
    --where physical file store in the same machine where database load
    CREATE DIRECTORY IMAGES AS 'D:\images';
    GRANT READ ON DIRECTORY IMAGES TO SCOTT;
    connect scott/tiger
    create table my_book_diagrams (Image BLOB);
    DECLARE
      v_file_loc BFILE;
      v_diagram_loc BLOB;
      v_diagram_size INTEGER;
    BEGIN
      v_file_loc := BFILENAME('IMAGES','Layout.bmp');
      DBMS_LOB.FILEOPEN(v_file_loc );
      v_diagram_size := DBMS_LOB.GETLENGTH(v_file_loc);
      INSERT INTO my_book_diagrams (Image) VALUES (EMPTY_BLOB())
      RETURNING image INTO v_diagram_loc;
      DBMS_LOB.LOADFROMFILE(v_diagram_loc, v_file_loc, v_diagram_size);
    END;
    commit;

  • Premiere Pro CS6 Quits unexpectedly when loading Images or Video into viewer.

    I have been using CS6 since May of 2013.  I currently operate on a Mac. I have never had any issues. I used it one day last week, then all of a sudden a few days ago is when the issues started. Premiere Pro will start normally (New or Exsisting Project), I can even import media. But I am not able to load Images or Videos into the viewer, nor am I able to just drag and drop on the timeline. Audio seems to drag onto the timeline just fine.
    I have tried many things to trouble shoot the issue such as:
    1. Starting a new Project. (Thought maybe something in the existing project was corrupt.)
    2. Opening an older project that I knew worked fine in the past. (Thinking new projects were also corrupt.)
    3. Transcoding the video Files. (Thinking the media was corrupt.)
    4. Restarting the computer.
    5. Holding "Shift" while starting Premiere Pro.
    I am not getting any error codes, just a Dialog box that says, "Sorry, a serious error has occurred that requires Adobe Premiere Pro to shut down. We will attempt to save your current project."
    Thanks for your help.

    Hi Luther,
    Welcome to Adobe Forums.
    Which version of Mac OS are you using?
    Try to repair the preferences by opening the finder window click on go and
    choose go to folder and type ~/library and press enter. Then go to Preferences>Adobe
    and rename the 6.0 folder to 6.0.old. If you are using Mavericks ( OS 10.9) try to give permissions to the
    Adobe folder as well.
    Please reply in case the issue persists.
    Thanks

  • Set browser to NOT load images or videos to reduce data usage

    On the Bold 9900 I could tell the browser to NOT load images or videos. This helps dramtically reduce data usage when all Im interested in is the text of articles.
    The Reader mode is not the same since the page with all its content has already been loaded.
    I also find the Reader mode often results in a message that this page cannot load in Reader mode.

    Sorry I misunderstood, although I do understand what you're saying. I received a notification saying that I was being charged by my service provider due to overlimiting my data usage. I then telephoned telus and I was told it is simply the type of phone that is now able for a 4g network and so on. This being said, the phone store also checked my phone to see if I had any apps still open that I was unaware of. I not use facebook on phone but was told that that is a big hog of data. Anyways, it was also suggested that I use wi-fi wherever possible. I found al this to be unknown to me as on my other BlackBerry phones, I had never gone over my little bit of 750mb ever. Now with this phone, 4 days before cycle ends, it's suggested to buy 3 g just "to be on the safe side". All said, I may or may not be able to reduce to 1.5 g. This classic phone requires extra data just to simply be connected to a network is what the telus provider and the store clerk both tell me. sorry I could not provide definite answer for you.

  • How do i blend image and video on premier?

    Hello Everyone
    I'm trying to add a video onto an image on Premier. I want the image to be still and the video to play in the background. How do I make an image and video blend together in Premier?
    Any tips/effects to make this look more interesting? for my project I'm trying to add a disturbing footage from the news onto a landscape photograph.
    I'm using pro 5 on an Imac
    Thanks in advance

    Video on track one.  Image on track two.  Use the motion property to locate and size the image.

  • Just bought a 2tb external hard drive with the intention of moving my iPhoto data files on it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app? Do I need to point iPhoto to this new location?

    Just bought a 2tb external hard drive with the intention of moving my iPhoto data files to it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app?
    Do I need to point iPhoto to this new location?
    Thanks!

    Are you running a Managed or a Referenced Library?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. (You unchecked the option to copy files into the Library on import) The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.
    Assuming a Managed Library:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • HT5148 i am using final cut pro x. i have imported some images and video in my timeline. when i play back my video it looks fuzzy. but, when i pause it, it looks clear. how do i get my video to play clear.

    i am using final cut pro x. i have imported some images and video in my timeline. when i play back my video it looks fuzzy. but, when i pause it, it looks clear again. how do i get my video to play clear and not fuzzy?

    Same reply.

  • Images and video do not appear when project is published

    Can anyone tell me what is happening when I have inserted video and images into my project, but when I go to publish it, the slide freezes or the images and video do not display.

    Hi,
    You give very few information: could you please give some more details, such like which version of CP, what kind of images/video, how do you publish and how do you deploy, is all well in Preview mode (also Preview in Browser), how big is the CP (number of slides)... In order to have some idea of possible causes, please provide some details.
    Lilybiri

  • How to add a 'Download' feature in image and video gallery?

    Hello,
    I have created an image gallery on one screen and placed few videos on another screen.
    Now, I want to add a download feature in photos & footages both.
    Does anyone know how so I do that?
    Prompt response will be highly appreciated.
    Thanks in advance.
    Jay

    Hi,
    Could you please provide additional information on what you mean by Download feature ? Where do you want to download these images and video from ?
    Olivier

  • How to set restriction on shared folder to copy or move images and videos

    Hi,
    I am using windows server 2008 for file sharing, it's simple folder sharing and there is no additional roles added and not promoted as file server.
    Users have permissions to access folder and they can put data on shared folder but I want to restrict user that they can not copy any images and video on it.
    Need urgent help to stop copying images and videos on shared folder.

    If you need to restrict only certain types of files, then file screening is what you need. Windows Server 2012 R2 comes with a powershell module for FSRM, so you can script configuration of file screening.
    The code will look like the following (this is only an example):
    New-FsrmFileGroup -Name "Images and Videos" –IncludePattern @("*.jpg", "*.mpg", "*.avi", "*.tif", "*.mp4", "*.mov")
    $Notification = New-FsrmAction -Type Email -MailTo "[Admin Email];[File Owner]" -Subject “Warning: attempted to create a video or image file” -Body “You attempted to create a video or image file on a share that does not allow storage of this type of files.” -RunLimitInterval 120
    New-FsrmFileScreen -Path "C:\Shares\FileShare1" –IncludeGroup "Images and Videos" -Notification $Notification -Active
    Gleb.

  • E5 memory card images and videos are not visible i...

    am using nokia e5,it was working all well but few days before i tranferred files from laptop to my cell(images) using Mass Storage option by data cable.soon after that images and videos saved in memory card is not visible on phone.test mesgs and music files are visible but phone isnt showing my images and video files which ive recievd through bluetooth and saved in memory card.why is this so???plzzz help me am in mess cant help it

    Hi saaraaz,
    Welcome to the forum! I tried to transfer pictures via bluetooth and they were saved to gallery like they should. Please try the following actions and between them test if it works.
    Firstly please make a back up with Nokia Suite. Then type in *#7780# = soft reset, no data lost.
    If it's still the same, type in *#7370# = hard reset, the phone memory will be wiped. Restore back up. You can also try to make the back up without settings and then format and restore.
    Reinstall the software. The process is the same when updating, but at the end select "reinstall". 
    Hope you get the device working again, please let me know if this is not the case.
    Jampe
    If the answer solves your issue, please click the ACCEPT AS SOLUTION button so other users can benefit from it as well. Giving a kudos (the white star) if my answer has helped will be appreciated.

  • How to include zoom option for images and video in adobe captivate5?

    I am developing an elearning software with captivate 5 which has images and video.
    I want to include an option to be able to zoom the images and video if clicked on the particular area.
    It should zoom any part of the image when clicked on it during run time and go back to original size when clicked again.
    How can I do this?

    1. I try with two images: The thumbnail y the Big Image Zoom image Detail.
    2. I Use Dinamic Images
    3. check this tip

Maybe you are looking for