Image-to-Image Fade Using External Files

Hi all,
I'm trying to create a fairly basic random image-to-image fader.  I've got a LOT of images that need to rotate through and they've all been optimized, however the swf file just becomes too big w/all of them.
So what I was hoping I could do was use AS3 to load up a random jpg from an XML file, apply the fade effect, preload the next one it's planning on grabbing while the current one is being displayed, and repeat the process indefinitely.  By doing this I'm hoping to keep the footprint of the application extremely small.
Is such a thing possible (I'm using a trial of CS5 at the moment) and if so, can someone point me in the right direction?  I'm pretty new to AS3 so any amount of help would be greatly appreciated!

Yes, it is possible to do.  You can probably search Google using terms like "AS3 XML slideshow tutorial" to get the whole thing in one package.  Though what you might want to do is take it in steps so that you can come to understand how each aspect works.
The basic elements would involve loading an XML formatted bit of data into an array and using the Loader class to load the images, using a COMPLETE event listener so that you know when an image is loaded and ready to be processed into an object within the show.
Then you would want to look into using some actionscript tweening to get the alpha fading effect working for you.  Flash has its own Tween class, and there are thrid party tween classes as well. I'd say use the Flash version first just to eliminate one level of complication for now (installing and using an external class). Many people recommend the thrid party tweening classes over Flash's.
You might also want to incorporate some form of Timer (the Timer class) to help manage when things change and/or when they load. If you have optimized your images already, then it would take less time for them to load, which means you probably do not want to use loading status to control the timing, but only as logic to enable timed actions.

Similar Messages

  • Centre aligning images within picture frame using XML file

    Hi
    I am using a flash file that uses an xml file to upload a
    series of images one at a time into a picture holder.
    There are two different widths of the images. The height is
    always the same. Is it possible to set this up so every image that
    the xml file calls is centre aligned within the picture frame.
    At the moment when using the xml file to load the image it
    always left aligns the image when it brings it into the picture
    frame even if you change the alignment to centre align within in
    the align panel.
    Does anyone have a suggestion why this is happening or how to
    fix it?
    Thanks for the help

    You're welcome. Pleased it worked.
    All it does is use the MovieClipLoader class to load the
    images into your holder_mc. Because loading takes time, and because
    you can't check or adjust the size or position of images until they
    have loaded, the MovieClipLoader class gives you a handy option to
    run some code whenever its finished loading something you told it
    to load.
    That's what the addListener instruction does... it says
    whenever myLoader has something new to tell me about the status of
    the load requests I ask it to do... make it run some related code
    in the listener object (which is called loadListener in this
    code... it could equally be called something else). You 'listen'
    for different events or updates of status. All I 'listened' for
    here was the onLoadInit event.
    The onLoadInit is the 'final' status update after loading. It
    occurs when something has loaded and its properties are accessible
    (_x, _width etc). The target_mc that is an argument for the
    loadListener.onLoadInit is a reference to the clip that was loaded
    into.
    The best way to learn about this stuff is probably to read up
    on MovieClipLoader in the livedocs and try google to see if there's
    an online tutorial somewhere. Then give it a try yourself in
    another new fla.
    cheers
    GWD

  • Bug with Image Sequence ( not loading/using all files ) for time lapse creation

    Hello everybody!
    PhotoShop CC 2014
    I am looking to create a time lapse out of 240 still photos that I took with my DSLR, but I am facing what probably is a bug, or a mistake on my part.
    I have all the photos in JPEG format with proper naming & sequential numbers ( DSC001 to DSC240 ).
    I'm creating a new document, selecting Film & Video, then by using the Layer -> Video Layers -> New Video Layer from file... and selecting the first image of the sequence I load the photos.
    Since the output is 1080p, and my photos are captured at 24MP, I convert them to a Smart Object as requested by photoshop when trying to resize them to fit them in the 1080p resolution.
    I then set the time lapse frame rate to 24fps and when I proceed to Render the video, in the Render Video dialogue, the frames to be used in the "Range" section are less than the frames that I've got.
    Instead of 240, it shows 219.
    I have the "Allow Frame Skipping" option unchecked of course
    Your help is really appreciated!

    I've been using this method:
    How to Pan and Zoom Video in Photoshop CS6 | The Complete Picture with Julieanne Kost | Adobe TV
    But, I'm going to give yours a go later on, cheers

  • Using external files in flash

    Helo all and thank you very much for your attention ,realy I
    tried to use two external text file (bill.txt and les.txt) .when I
    click on bill button ,the flash file load bill.txt and when I click
    on les button the flash file load les.txt .for this case I use two
    sepaate action script for each of the buttons:
    action script for bill button:
    on (release) {
    willieLoad = new LoadVars();
    willieLoad.onLoad = function() {
    _root.twoNuts.text = this.bill;
    willieLoad.load("bill.txt");
    action script for les button:
    on (release) {
    leslieLoad = new LoadVars();
    leslieLoad.onLoad = function() {
    _root.twoNuts.text = this.les;
    leslieLoad.load("les.txt");
    It worked but as you see it's kind of duplication of code .I
    decide to catch the instance name of the button name in a global
    varibale ,then I load the text file according to the name of the
    global varaible ,Now please tell me how can I get the name of the
    instance of the button when I click on it and please guide me in th
    is way.
    sincerely yours Mohsena

    are you using movieclip buttons or true buttons?

  • ECATT - How use external file/new variant for input data

    Good day,
    I want to use an eCATT created by someone else for another request. I want to be able to specify my new input data based on the new request WITHOUT generating a new Transport. Same thing as I'm doing for the CATT ... the CATT is transported but only the input data change depending on the request without generating any transport.
    How I build my new input file and how to use it? I tried to download my variant but the only possible format is XML and it's very hard to build a new file based on my request.
    Thanks for your help.
    Simon

    Hi,
    Can you tell me how you are generating the xml file. My guess is you are downloading the Test Script/ Test Configuration. In that case it creates an xml file.
    As mentioned by Ajay, In Test Configurator / Test Data -  you can create the internal variant first, i.e assuming you have already created parameters.. On the top, you have a download button "Download Variant". This creates a .txt file. You can open the file in excell and edit it.
    For the next test, you can select external variant and give the modified file path name.
    Let me know if this helps.
    Regards
    Phanidhar

  • SmartObjects: placing from external files + auto-refresh

    Hello,
    when I place a SmartObject from an external file PSP CS3 seems to store it in the current file; if I change the external file, the placed object does not change automatically (I have to use the replace function to apply changes in the external file).
    Is there any way to use external files as SmartObjects and apply changes in the external files automatically?

    No at the moment everything is embedded within the file, even Illustrator Smart objects are embedded as Illustrator files. Even if you dont own Illustrator, and you get such a PSD, you can't open the smart object. External links are at the moment impossible, and it doesnt look like they are a feature of CS4 either.
    I had a freelance job recently where I was working with a team of 4 other retouchers - I desperately needed the feature of external linking preferably with server access. It would have cut hours off the job just by avoiding people having to repeat each others work. pity its not on the cards.

  • Reference list of Identifiers from external file (ie .txt file)

    Hello All,
    I was hoping someone may be able to help me with a conceptual (and then technical...) line of thought?
    I have a list of roughly 7000 loans to interrogate in an excel spreadheet or text file, is there a way I can get my query to reference this list, regard it as a temporary table and join it to an SQL query?
    The list of loans are unique 8 digit identifiers. I have a very simple SQL query over two core tables that brings back the balance and currency for all loans on our system but I want to get these fields for the 7000 loans in question only.
    I would normally just query all the loans and use a vlookup in Excel but the numbers are too big to make this viable.
    The only method I currently have in place is to loop through the identifers one by one, querying each separately. Running the same query 7000 times seems rather inefficient!!
    Is this a reasonable concept? If so I shall need some help with how to reference the external file, which will be gratefully received!!
    Thank you :)
    Jon

    Hi Peter,
    You're right this is ad-hoc, but this sort of situation arises all the time where I am given a list of identifiers to furnish with data, if I can figure out how to use external files it will be very useful. At least having some knid of work around would help.
    Running
    select *
    from dba_sys_privs
    where grantee = 'REPORTER'
    order by privilegeGives me:
    GRANTEE          PRIVILEGE          ADMIN_OPTION
    REPORTER     ALTER SESSION          NO
    REPORTER     CREATE CLUSTER          NO
    REPORTER     CREATE DATABASE LINK     NO
    REPORTER     CREATE SEQUENCE          NO
    REPORTER     CREATE SESSION          NO
    REPORTER     CREATE SYNONYM          NO
    REPORTER     CREATE TABLE          NO
    REPORTER     CREATE VIEW          NO
    REPORTER     SELECT ANY DICTIONARY     NO
    REPORTER     SELECT ANY TABLE     NO
    REPORTER     UNLIMITED TABLESPACE     NOSo I don't have the rights for the external tables if I understand correctly? Directory creation for example. I do appear to be able to create tables though so perhaps I can greate a TEMP table under my REPORTER login and populate it on an ad-hoc basis as you suggest.
    I'm stil wading through that document! I'm going to try to talk to someone in our IT department as well about the server side.
    Thanks for the advice, will update asap.
    Jon

  • In CS4 Use of File Place Does Not Center Images

    I have been using CS3 for about 1 1/2 years, so of course had to give CS4 a try. I downloaded the trial. I immediately had an issue with File > Place.
    I often use File > Place to add additional items into a document. I believe the expected functionality of File>Place is that the file should then be centered in the document.
    Here is what I have done:
    + Create a 12"x12" document at 200ppi (I have also tried to create a document at 2400x2400 pixels)
    + Use File>Place to add a square 2400x2400 pixel image (JPG file) into the document
    + The added layer is now offset ever so slightly in the new document.
    + Further observation shows that the horizontal reference point is at 1202 (screen shot attached), thus creating an offset from center. I change it to 1200 and sure enough the paper is centered perfectly. I thought maybe changing it once would make it the same next time, but that is not the case.
    + When I used the File>Place command, I was zoomed out (25%), and the entire image was viewable on screen. If I zoom out further, say 8.33%, the offset is 1206.
    I am able to duplicate this on two different computers with the following configurations:
    Computer #1
    + Windows XP Professional Version 2002 SP2
    + AMD Athlon 64 X2 Dual Core Processor 6000+ (3.01GHz)
    + 4GB RAM
    + nVidia GeForce 8600 GT, driver version 6.14.11.5819
    Computer #2
    + HP Pavilion dv9843cl Laptop
    + Windows Vista x64 SP1
    + Intel Core Duo processor T8100 (2.1 GHz)
    + 4GB RAM
    + nVidia GeForce 8600M GS with 512MB DDR dedicated graphics memory, ForceWare version 167.43
    + Video BIOS version: 60.83.4f.00.22
    Operating System: Windows XP Professional
    Browser: Firefox
    Video display card / driver version: nVidia GeForce 8600 GT, driver version 6.14.11.5819
    Screen shot (not sure if this works in these forums):
    [IMG]http://cdn-1-service.phanfare.com/images/external/1466784_1419796_53071200_Full_3/0_0 _41325929f3d5a1780af10559af98d829_1[/IMG]
    Any ideas?????
    ~ Kathleen

    "Place" ..... It is not all the easy to understand how place works without studying its behavior.  Often it will work in a way your not expecting if you do not understand how it works. There is a setting in Photoshop preferences Resize Image during Place. Un Checking this setting does not mean the image will not be resize nor does checking  this setting mean that it will be resize. On top on top of that the seems to be something in Photoshop on My system that keeps changing the setting to the checked state.
    What the heck am I writing am I trying to make this worse.  No I'm not.  To prove that I first tell you it is very easy to center position a placed layer in an action after the Place step add a step select all the two layer>Align layers to selection>Horizontal Center then vertical center. The deselect...
    Place....
    There is a lot going on remember in Photoshop a Layer can be any size  Larger/smaler/same as the canvas and can have any aspect ratio. If the placed image has more pixels them a canvas side size and the preference is checked the placed image will be transformed to fit within the canvas size. If not checked the placed image will transformed to the same dpi resolution so no pixels will be changed.    The only time a place image is not transformed is when the the preference is not checked and the placed image file has the same dpi as the current Photoshop Document.  In this cast the image is placed in at 100% size be it smaller/larger/same as canvas size.

  • On click Image button links to extern. file - but then advances forward a slide....

    I have an image button that On Success links to an extern. file - which is an index/glossary of a the project modules. However, when clicked, the project moves forward a slide. I would like the project to remain on the same slide when the 'Glossary/index' button is clicked, rather than advance forward. Anyone know how to achieve this?
    Thanks in advance,
    Rich

    Hi and thanks very much for the response. I'm sure I'll be around here for a while on the forums as I've just started using Captivate!
    As you say the button when clicked releases the playhead and the timeline advances to the next slide, which then pauses as I have 'next/back slide' buttons on each slide (sorry i didn't mean to imply it immediatley skips to the next slide).
    Although this is normal behaviour for the image button, I need a work-around as the button in this instance is merely meant to open an external 'pop-up' of the index (of all the learning modules) for the learner, rather than effect anything on the actual module being currently used.
    Sounds like you're application of 'Assign rdcmndGotoFrame with rdinfoCurrentFrame' would be perfect - however I am a novice with Captivate so would greatly appreciate any info on how to apply this work-around to my Glossary button (baring in mind the Action On Success property is already used to open the pop-up - but I assume the 'Assign rdcmndGotoFrame with rdinfoCurrentFrame' is applied using another property?)
    Thanks very much for your help,
    R

  • Image XObject using /F file specification

    We are having a problem where instead of the stream data being on the Image XObject itself, we want to use a stream that is an attached file (we are manually writing the pdf file at this point using internal tools).  Inevitably, it keeps trying to get that file from the disk and failing. 
    This same file specification we are using as the /F property on the XObject dictionary is the same one in the as we have as an entry in the EmbeddedFiles name tree, and the file does appear appropriately in the attachments list.  The file spec includes all the correct /F filename and /EF<</F reference>> to the actual data stream. 
    The XObject dictionary still has a zero byte stream associated with it, and the /Length property set to 0.  And we're using raw RGB values, so no filter (/Filter or /FFilter) needs to be specified.
    The error we keep getting is "This file cannot be found" (fileErrFNF).  If we extract the file, then we get a different error of "You do not have access to this file" (fileErrPerm), unless supposedly, you are running Acrobat Pro, in which case it works as you would expect, but that doesn't solve the problem of us wanting to have it embedded as a file and be read internally, not from disk.
    So the file specification should be correct, since we can see the embedded file in the attachments and extract it correctly.  And the XObject dictionary should be set up correctly, since when the file is extracted, we can get it to render if running Pro.  It's just that for some reason, we can't get the XObject to look for the EmbeddedFile instead of an external file.
    We are using Acrobat Reader 9 for viewing and building this against the "PDF Reference, version 1.7" specifications.  This also fails when using AR8 as well.
    Options that we have tried varying are not including the EmbeddedFiles name tree entry (thus making it invisible), including or excluding the UF or DOS/Mac/Unix values on the file specification dictionary and /EF dictionary.  We've tried removing the base /F value entirely, and only had the /EF dictionary.  What else can we try to get this to work?

    Here are the objects as have I described above:
    63 0 obj
    <<
        /Type /Filespec
        /F (pic1.rawrgb)
        /UF (p i c 1 . r a w r g b )
        /Desc (embedded image)
        /EF
        <<
            /F 125 0 R
            /UF 125 0 R
        >>
    >>
    70 0 obj
    <<
        /Names [(pic1.rawrgb) 63 0 R]
    >>
    99 0 obj
    <<
        /BitsPerComponent 8
        /ColorSpace /DeviceRGB
        /Width 200
        /Height 200
        /Subtype /Image
        /Type /XObject
        /F 63 0 R
        /Length 0
    >>
    stream
    endstream
    125 0 obj
    <<
        /Type /EmbeddedFile
        /Length 120000
    >>
    stream
    % 120000 bytes of 8 bits per color RGB for a 200x200 pixel image without any filtering
    endstream

  • Using External Images

    HELP! I have a large presentation the used a lot of images
    and need to externalize them using load image in the time line,
    however, i dont want to use buttons to do so. How can use this
    feature so that the images come in seamlessly without using buttons
    to retrieve the external files?
    In addition, how can I do this with external movies as well?
    With out using buttons to bring in external movies in the
    timeline?

    Just by using the loadMovie() method in your ActionScipt, it
    will be executed when that frame is reached in the timeline during
    playback without the need of the user clicking a button. Here's the
    LiveDocs link for working with loadMovie():
    http://livedocs.macromedia.com/flash/8/main/00001562.html
    Hope that helps!

  • How do I use copyprofile, image manager and create a wim file to Sysprep a reference Windows 8 computer.

    Im trying to deploy a reference machine (configured) to other machines (exact or close image) with different hardware.
    I have successfully used sysprep in out of the box, generalise, shutdown mode although i havent tried to deploy this to another device.  Unfortunately it doesnt copy the profile to default.
    I understand that I have to create an answer file using image manager based on that image, save it to a usb drive and attach this in the sysprep command line when sysprepping it.
    My problem is I dont know how to easily capture an image of windows 8 into a wim file so that i can add this into image manager to create a answer file.  Im also not sure what I have to do in image manager, is it a simple matter of creating and saving
    the answer file or do i have to configure it to copy the profile specifically (theres only one account anyhow).
    I also want to know if i have to attach the drivers or are all the standard drivers put into the sysprep image as standard.  I would like the machine to be an exactly replica, same as doing a clone (but with the drivers for the new machine installed
    so it will boot) same as doing a clone and then repair? If thats possible.
    Any specific instructions on this would be helpful.  I have read the microsft links but they are somewhat confusing.

    I know this is a very late response but I thought I'd post for others who search.
    The easiest way to create the .wim file is via WinPE, this guy's two YouTube videos explain the entire process in detail - 
    Windows 8 ADK Part 1: Capture an OS image - https://www.youtube.com/watch?v=XJ8zKX_8E9w
    Windows 8 ADK Part 2: Windows Image Deployment - https://www.youtube.com/watch?v=HHIvoqSw_FI
    Here's a quick rundown from my notes:
    WINPE
    Create WinPE via imaging tools command prompt
    copype amd64 c:\winpe
    makewinpemedia /iso "c:\winpe" "c:\winpe\winpe64.iso"
    UNATTEND
    Open Windows System Image Manager
    Configure unattend.xml
    Save unattend.xml to sysprep folder
    Create script and save it to sysprep folder to launch sysprep with unattend
    @echo off
    cd C:\Windows\System32\sysprep
    Sysprep /oob /generalize /unattend:C:\Windows\System32\sysprep\unattend.xml
    SYSPREP
    C:\Windows\System32\Sysprep
    Run as administrator
    OOBE/Generalize
    Shutdown
    CONFIGURATION of WINPE
    Set IP - netsh int ip set address "Local Area Connection" static 192.168.1.2 255.255.255.0 192.168.1.1
    Set DNS - netsh int ip set dns name = "Local Area Connection" source = static addr = 192.168.1.4 validate = no
    Map Network Name - net use z:
    \\WindowsADK\reflex\images password /USER:domain.local\username
    DISKPART
    diskpart
    list disk
    select disk zero
    list partition
    select partition 2 (OS partition #)
    Assign letter=S (assigns drive letter to partition)
    Exit
    DISM
    dism /capture-image /imagefile:z:\image.wim /capturedir:s:\ /name:"Windows 8.1 Custom"
    Verify image is saved in the image share (z:)
    http://www.microsoftfanboys.com

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • Using image data read out from a file

    Hi,
    Having used the GetBitmapFromFileEx(), GetBitmapInfoEx() to acquire the necessary image data (most of them is the .png format), then using the FileToArray() to put the image data in my own binary file, e.g., "mypicture.dat". My idea is that whenever need to use the image, I can read out it from mypicture.dat and then display it on a pcture control.  But when loading the image data to the memory, I have no idea to map the image data buffer to an image resource, which can let to acquire a bitmap ID.  Because from the  cvi's image processing function lists, it seems that must through such as  the GetBitmapFromFileEx(), GetBitmapFromFile() to acquire the image data buffer and the bitmap ID, then using SetCtrlBitmap() to diplay it. Is there any way to resolve the problem? Thanks.
    David 

    Well, to read and write raw data file informations from a PNG image you must adhere to this standard. As a source of informations you may take a look to this Wikipedia page and to the links in this page from the PNG Home site.
    So the problem is: does your application worth the effort to study this documentation?
    Edit: FYI part of this job has been already made in CVI by Guillaume Dargaud for his ReadSavePNG instrument driver. It's been a long time since I have used this instrument, as I/O operations on PNG files have been integrated into CVI since release 8 and support for JPEG files in release 7 or so. Nevertheless I saw functions in that instrument for accessing raw data in a PNG file so you may find them useful for your needs.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to upload a file which may contain text as well as image to the server using windows phone 8 application ?

    How to upload a file which may contain text as well as image  to the server using windows phone 8 application ?

    You're going to need to give way more detail about the situation before we can help.

Maybe you are looking for

  • Disappearing Items

    After browsing some photography in a 360 panorama website, my google 'SEARCH BOX' in the address bar disappeared and is now all inclusive.  When researching reasons I came upon the ominbar extension and the how to get rid of it in Application support

  • How to use on/off switch with the cover on?

    Ive only just got my IPAD so it may well be me but why is the on/off switch 'under' the cover.  Surely, I dont have to take the cover off everytime I want to switch it on and off?  Or should I not switch it on and off and just use the cover to put in

  • Generate PDF into New External window

    Hi All, I have developped an application.In that I am getting the data from R/3.In my application first View displays table of data and the table row contain some invoice information when I click that Row that information would be displayed as PDFfor

  • Isight gives black screen.

    MBP 2010, bought in July. Running snow leopard 10.6.8. The built-in isight is not working with Photo booth and Skype, but is working perfectly with the FaceTime app. isight does show up in system profiler under USB high speed Bus. In Photo booth and

  • Contract or Agreement scnario

    A need is being felt to explore the scenario of contract in SAP in such a way that every subsequent PO should get linked to the contract in the following manner. Contract created for the material:- From- Quantity     Rate Per Unit 1