How do I make a loader image similar to those shown at program opening?

I'm looking to build a loader image, that opens up at the start of my script, and automatically closes after a few seconds. I opened up the image processor script to see how Adobe has added images to alerts, but it's an extensive doc, and I couldn't tell where the image was being pulled from, as the variable only shows up twice, and is only called, and not set. Also is there another method other than alert to call a box like this? I would prefer it have no buttons.

I was able to boil your script down, to what I need. Works great in extendscript, but for some reason, only shows a portion of the image in photoshop and illustrator. This was happening even before i boiled it down. Thoughts? The last thing I'm trying to do with it, is figure out if I can set a transparent background for the window. I also tried using backgroundColor, but was unable to set the attribute correctly... there is a lot to learn with Adobe scripting. I also couldn't find reference to what DELTA_H is, I have a bunch of their PDFs, and googled, but couldn't find reference to this. I'm trying to be resourceful so I don't have to ask such remedial questions.
Here's the revised script, and a link to the image I labelled test on my desktop: http://img2.wikia.nocookie.net/__cb20110725041802/logopedia/images/8/89/Logo_rolling_stone s.png
PreviewWindow = function() {
w = 285;
h = 313;
PreviewWindow.DELTA_H = 1;
PreviewWindow.open = function(file, w, h, title, ms) {
  PreviewWindow.openFile(file, w, h, title, ms);
PreviewWindow.openFile = function(file, w, h, title, ms) {
  var type = (ms > 0) ? 'palette' : 'dialog';
  var win = new Window(type, title || "Preview: " + decodeURI(file.name),undefined,{borderless : true});
  win.preview = win.add('image', undefined);
  win.preview.icon = file;
  win.show();
  if (ms > 0) {
    $.sleep(ms);
  delete win;
  $.gc();
  PreviewWindow.open("~/Desktop/test.png", undefined, undefined,
                     "Preview Test", 500);

Similar Messages

  • How do i make a still image (photo) fit the length of the music? I record music and want to put the tracks to a video file with a still image of my business logo in the background. Any help?

    How do I make a still image (photo) fit the length of the music? I record music and want to convert the tracks to a video file with a still image of my business logo in the background. On windows movie maker you could just select "fit to music" but this program isnt as easy to figure out! Any help?

    Double-click on the still image in the project timeline to open the Inspector. In the Inspector, adjust the duration by typing in a new duration to match the length of your music. I think the limit for a still image is 10 minutes. If you need more than this, simply drag the image into the timeline again then adjust its duration. The two images will play seamlessly (no gap will be visible).
    See this iMovie Help topic:
    http://help.apple.com/imovie/#mov3a883915
    You can achieve more precision when entering durations by changing a preference in the menu item iMovie Preferences. Check (tick) the preference for Show Time As HH:MM:SS:frames. This will enable you to enter the duration of stills down to the frame level, rather than full seconds (NTSC is 30 frames per second; PAL is 25 fps). When entering times, type a colon between each time segment, such as 2:50:15, which represents 2 minutes 50 seconds and 15 frames. For 5 seconds 20 frames you would enter 5:20 and so forth.
    Note that the music will only run to the length of the video in the timeline (in your case, the still images). So, after increasing the stills duration you will need to drag the end of the music track as far as required. The stills can be dragged inwards to reduce the duration if necessary.
    John
    Message was edited by: John Cogdell - added Note

  • How do i make a mirror image of a photo to print an iron-on transfer

    how do i make a mirror image of a photo to print an iron-on transfer?  I am using iPhoto 08 ver 7.1.5.
    Thanks

    You can't with iPhoto.
    You can with Preview or any image editor.
    Regards
    TD

  • How can I make Privoxy load faster?

    I'm using vimb and it works well except the only way to block ads is to use privoxy. Privoxy takes about 5-10 minutes to start after my computer boots. This means I can't access the internet when I first start my computer. How can I make it load faster?

    https://wiki.archlinux.org/index.php/Hostsblock
    https://aur.archlinux.org/packages/hostsblock/
    Also e.g. https://aur.archlinux.org/packages/hosts-update/

  • How do I make a panorama image in Elements 11 from 5 separate photos?

    How do I make a panorama image in Elements 11 from 5 seperate photos

    You can browse your files directly from Photomerge dialog box also. Here is the descriptive help link to guide you on how to create your perfect dreamy panorama http://helpx.adobe.com/photoshop-elements/using/stitching-together-panoramas.html

  • How do I make a Disk image and burn an install Disk

    How do I make a Disk image and burn an install Disk, Ive tried it a couple of times, but will not boot up.

    Thanks for getting back to me, Yes it does, it came with the machine.
    Hi pfhannon,
    Does the original Install disk that you are copying,
    boot your computer?
    You may be successfully making a copy of a disk that
    is not suitable for your machine.
    regards roam

  • How to replace wecenter default loading image(ss.gif).

    Hi All ,
    I am working on webcenter customization .
    Can anyone provide me how to replace webcenter default loading image which appears before webcenter content gets loaded .
    Appreciate any prompt response .
    Thanks ,
    Arun.

    If it's the splash screen you speak of, a custom skin defining these selectors may work - af|document::splash-screen, af|document::splash-screen-content, af|document::splash-screen-message and af|document::splash-screen-icon.
    Please note that I have not tried these myself.

  • How do I make a loading screen like this one?

    Okay, so for my loading screen, I want a block to appear for every 10% loaded (so they'red be 10 blocks at the end).  I know how to make a loading bar, but I'm having trouble making this one.  Any help? Thanks.

    There are probably a number of ways to approach it.  One would be to have a movieclip with 10 frames where a new box is manually added in each frame.  You use the percent loaded information to tell that movieclip which frame to go to.

  • How do I make a typography image in illustrator?

    How do I make an image like the one below in illustrator? I want to do this with my logo and small font. I am new to illustrator but i am okay with the basics.  Thank you for your time.

    Allan,
    I am just an old native helping out here (since sometime round the turn of the millennium, in the days of the fair forums before the Mac and Win tribes were merged in this common forum).
    We do have Adobe forum staff friends regularly, mostly on weekdays; they have staff written with their name.
    And no bother at all. This is a friendly place, with time for less serious matters, like this long thread (well, this year it is serious, link is to page 5):
    It is here

  • I have dial-up, and when I delete my browser history, the facebook games refuse to load for MONTHS until magically one day, they decide to open again. How can I make them load right away?

    I am using a gateway laptop, and Windows 7. I use Netzero as my dialup service, using my phone line. I deleted my browser history and cookies, but I left all passwords intact. Whenever I do this, the games on Facebook come up with a LOADING bar, but they hit 100 percent and never actually load. It does this for months, and one day, they magically (Without me changing any settings) decide to load when I click on them. How do I make the games load, and prevent this from happening every time I clear the history?

    I am using a gateway laptop, and Windows 7. I use Netzero as my dialup service, using my phone line. I deleted my browser history and cookies, but I left all passwords intact. Whenever I do this, the games on Facebook come up with a LOADING bar, but they hit 100 percent and never actually load. It does this for months, and one day, they magically (Without me changing any settings) decide to load when I click on them. How do I make the games load, and prevent this from happening every time I clear the history?

  • How can I make the tab image instead of text.

    Hi guys,
    How can I make a tab displayed as image instead of text?
    Best Wishes,
    Fateh

    Thanks Jari,
    I use Apex 4.0.2 and the theme is Builder Blue 2. When I click edit tab, I get "Tab Label" that is required field and a region called "images". As I got from you, I cannot utilize images in my case.
    Regards,
    Fateh

  • How do you size dynamically loaded images?

    Hi,
    I am loading images from mysql into flash using php, I need
    to make thumbnails out of these images, so they need to be resized
    as they are loaded in and then displayed to one set size. Does
    anyone have any ideas?
    thanks
    Gavin

    Jan-Paul K>
    i thought it was _xscale & _yscale?
    thahip>
    if what you need is "one set size", then use _width &
    _height.

  • How do i make a disk image strait out of DVDSP

    So I usually only make one copy of a disc at a time by chosing build and burn. But the other day I made 10 copies of a disc and to make them i just drag and dropped the audio and video ts folders from the folder they were saved in to the disc image of a blank disc. Needless to say none of the discs worked. What is the process to correctly do this. Can i make a disc image from dvdsp3? Cause i know how to burn disc images from disc utility

    In order for a DVD to play back correctly in a set-top player, the discs have to be formatted using the UDF file system. I believe that Disk Utility only creates HFS+ file systems; therefore, you were basically making pure DVD-ROM discs of the Video_TS directory, which wouldn't play back normally in a standard set-top DVD player (but might play back ok in a DVD-ROM software player).
    You can easily burn true DVD discs in a DVD-R burning program like Toast - just select the UDF option and drag the Audio_TS and Video_TS folders into the root directory of the Toast window.
    Technically, you don't even need to bring in the Audio_TS folder, but it doesn't hurt (and some versions of Toast caused the contents of the Video_TS folder to end up in the root without a folder if you tried dragging just the Video_TS folder by itself - the contents NOT being in a folder called Video_TS, won't work in a DVD player either).

  • How to check width of loaded image

    Hi my script loads an image like this:
            image = new Sprite();
            imageLoader = new Loader;
            imageLoader.load(new URLRequest(imageList.image[1].imgURL));
            image.addChildAt(imageLoader, 0);
    how can i check the width of loaded image? trace(image.width) gives 0...

    You need to wait until the image is loaded before you can try to ffind its width.  To do that you need to use the contentLoaderInfo property of the Loader class
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, manageImage);
    The manageImage event handler function is where you can check things since it is triggered after the object is loaded.

  • How do I make a separate image look more natural on a larger image?

    I am still relatively new to photoshop. Recently I got into doing photo comics in the science fiction/ action genre. I want to learn a method by which I can make a foreign image that has been modified via scale (from larger to smaller) to look natural on a larger image. For example in the photo comic I have a city playset but the toys are way larger than the city itself. I want to make them scale appropriately to the city to enhance realism whilst making the image look as natural as possible. What methods are best? Thank you.

    I think (not positive) that some cartoonists will create block shapes and give them a unit size making it easier to scale the actual objects.
    For example a tree which is generally 30-40 foot high you may set to 10 square blocks high and a building that is 13 to 15 feet high you may give it a single square block.
    It may not be all that accurate, but it would get you in the ballpark where you could scale it more later when more objects are in the scene. It always helps to compare two objects when deciding the scale.
    If you wanted to be accurate, you could google the actual size of the object then use a ratio to scale it. Then all objects would be to scale.

Maybe you are looking for

  • Satellite Pro A300D - What is the model number for the keyboard?

    My husband managed to dislodge a keycap on my keyboard, and broke the white scissor clip that holds hit on...(don't ask me how) He spoke to the authorised service centre here in Norway, and they sent us replacement scissor clips (actually they sent a

  • Acrobat 9 Pro shutting down after install

    I just purchased Acrobat 9 Pro upgrade. The install goes smoothly. However, when I go to open up the program, it opens and then shuts down. I have tried reinstalling after unstalling and still have the same problems. Does anyone have any suggestions?

  • How to handle unsaved data in portal through webdynpro ABAP ?

    Hi Experts ,      I  need to handle unsaved data in SAP Enterprise Portal through webdynpro for ABAP . I got a sdn link which explained some code for this.. http://help.sap.com/saphelp_nw70/helpdata/EN/45/b76f4169e25858e10000000a1550b0/frameset.htm I

  • Real easy question about defining objects in java

    hey guys here is my problem. I am trying to implement an insert() method for my binary tree. i have my node class defined to contain public T element() {           return _data; and then my actual tree class has an instance of this declared to be cal

  • Form submitted in frame opens in new tab

    We have a series of pages in a frameset that has worked fine since the Netscape 4 days. The layout is basically a header, left menu, content area, and an option bar at the bottom. The problem occurs when we have a form in the content frame. When the


HashFlare