Components vanish when placed on a layer below an imported Symbol

AS2 Components vanish  or get severely corrupted when placed on a layer below an Imported  symbol.
Very easy to reporduce:
Flash CS4 create a new AS2 FLA  called Share.fla
Create an  empty MovieClip symbol in the library and set its properties to export for  runtime sharing URL: "Share.swf".
Build.
Now create another  new AS2 FLA in same folder called TestShare.fla.
Create an empty  MovieClip symbol in the library and set it's properties to "Import for runtime  sharing" URL: "Share.swf".
Drop an instance of  this empty symbol in frame 1 layer 1.
Create a second  layer and drop an instance of any Component from the components  panel for example the Button component.
Build.
The component appears as a blank square block.
If you add a trace statement to the components constructor you'll see it is never called.
Now swap the layers,  drag layer 2 above layer 1 and build again.
Now the component  shows just fine.
You might say so just swap the layers and carry on but this is simplified example to demonstrate the problem, in practice I have many shared libraries containing many component and many apps with many layers and I've been shuffling the layers for what seems like an eternity and found that there is no order that will work for everything. If anyone can explain this behaviour or suggest a permanent work around I would be very grateful.

Thought I would attach the source so just unzip and build TestShare.fla you'll see the Button component, then swap layers 1 and 2 and rebuild and you will see just an empty Button frame. Would love to find an answer to this.

Similar Messages

  • Components vanishing when focus brought back

    Am seeing this behaviour in my swing Application. I have a Jtree component and a JTabbedPane which shows up when I select a JTree node. The panel displays well first time and then I bring over some other running application (say a browser) on top. On regaining the focus on the Swing app, my JTabbedPane vanishes from the view. I have to reselect the tree node to get back the view. Why is this happening?
    Some paint issues I am unaware of?
    Thanks

    Arghhhhh ... my bad ... had stupidly forgotten to properly remove components before adding new ones. Was calling revalidate on the Panel which contained the TabbedPane after removing older components and adding new ones.
    Anyway ... Thanks izrailov for attempting to look up. Ya code would have been helpful ... will make sure to have some snippets in future ...
    Coolios Thanks!

  • I am trying to animate a file in photoshop with vanishing point. And when I "Return 3D layer to photoshop", I'll get a cube with dimensions. It´s not what I can see in tutorials, aperfect 3D space. Using win7.

    I am trying to animate a file in photoshop with vanishing point. And when I "Return 3D layer to photoshop", I'll get a cube with dimensions. It´s not what I can see in tutorials, a perfect 3D space. Using win7.

    An update -
    The libraries appear to all be in tact, now.
    The error I am getting,
    Parms are; 800/S80/5069660
    ERROR -  detected an exception: Unexpected database connector error
    is a connection issue.
    Any ideas??

  • PLACING NEW LAYER BELOW THE ORIGINAL

    How do I open or place a new layer BELOW the ORIGINAL. I have tried dragging and that doesn't work. I have tried control/click when I create a layer and that doesn't work. I have seen it done on a video tutorial but I can't remember how they did it.

    "...
    You wouldn't believe how many places I have asked this question and everyone kept telling me to DRAG the layers but of course the background layer was locked..."
    Ohhhh, YES, I would believe it! :D LOL! I can't tell you the # of times I did something similar and could not, for the life of me, figure out why "photoshop wasn't working"! :P
    Then my eye spotted the lock on the layer... hahahah!!
    GLAD you got this sorted, (and even MORE glad that someone besides me had this 'problem'!) ;)

  • Indesign crashes when placing pdf created in Xinet Fullpress.

    Indesign crashes when placing a pdf from Xinet Fullpress. Xinet thinks the problem is in inDesign.
    What to do?
    The pdf files works fine in acrobat and apple preview.

    Hi Peter, here is the link to the crashreport:
    http://pastebin.com/xzpp717i
    If you need the a test file that crashes, please download it on the attached link below.
    regard Martin
    Xinet pdf crash
    Hi, click on the link to download
    Tue Sep 18 2012, 15:47:53

  • PDFs missing bleed when placed

    I'm having an occasional weird problem in InDesign: I place an advertisement which has bleeds and cropmarks. These bleeds and cropmarks disappear in InDesign even though the frame is plenty large enough to show all of it. This happens occasionally both with ads I receive and with files that I create by exporting to PDF (the bleeds are there but don't show up when I place the PDF in another document). With my own files, I can ultimately print to PDF (instead of exporting) and get it to work, but I don't know what to do with this ad I just received:
    http://www.rotor.com/temp/LifePortAd.pdf
    The cropmarks and bleeds are always missing when placed -- whether it's a new document or an existing one. Are they somehow marked as non-printing in the PDF?
    Any ideas?
    Thanks, Phyllis

    Okay, I didn't notice that you could turn off the fixups (some of the profiles had specifically warned me that they were going to change the document). But most of those I'm not too sure about running anyhow. But the analysis ones look useful. "PDF analysis > List images below 250 ppi" seems like a very good one to run each time. I don't know what else I'd use. Ultimately I have to create a PDF with my printer's joboptions anyhow, but it'd be good to find out obvious problems from the start.
    Thanks!
    Phyllis

  • Sharp Photo When Placed in Indesign, Text becomes Blurry...

    I have a Photo (with Sharp Text) that when Placed in InDesign, the Text Becomes Blurry (as in Unreadable)...
    What's Up with that? And, more Importantly, what can I do to Correct?  Thanks (can attach if needed)

    Is this on screen or in print? Check Display Performance. Right-click on the image to change the display performance of only that image, or use the View menu to change the Display Performance of the document. Higher display quality generally slows the program down, although it can be slight. If the text is a text layer in Photoshop consider saving as Photoshop PDF. This will keep the file fully editable in Photoshop but the text will be vector paths in the PDF, rather then rendered raster art at the image's resolution.

  • How do I get the bookmarks toolbar's width to autofit to its buttons when placed next to tabs?

    FF4: I'd like to be able to put the bookmark toolbar right next to my tabs (not above or below). However, when I do this, the width of the toolbar does not shrink down to fit only the buttons, i.e. the bookmarks toolbar takes up a lot of blank space.
    This happens whether placing it on the right or left, or when placing tabs in the bookmarks toolbar.
    To ask the question in another way, is there any way to autofit the bookmarks toolbar to its contents when placing next to tabs?

    Thanks for the reply.
    That's actually exactly what I intend to do. I've tried this both with and without the extension installed. The attached image includes two screenshots: (top) bookmarks toolbar to the left and (bottom) to the right.
    When placed to the left, the tabs end up way over to the right and not up against the bookmark toolbar's contents, restricting the amount of space for tabs to fill.
    When placed to the right, the bookmark toolbar's contents are not right justified and, again, restricting room for tabs.
    Hopefully this clarifies my question.

  • Bug: Front Panel objects relative position change when placing merge VI onto Block Diagram

    I've posted a bug report on LAVA, here:
    http://forums.lavag.org/Front-Panel-objects-relati​ve-position-change-when-placing-merge-VI-onto-Bloc​...
    If someone at NI can reproduce, can I please get a CAR #?
    Thanks,
    -Jim
    Solved!
    Go to Solution.

    Donovan B wrote:
    Hi Jim,
    After my previous post, I also saw this behavior, so I decided to do another test.  If there are no decorations in the VI set to “Merge VI” (“Place VI Contents” for LabVIEW 8.5 and later) the controls and indicators are still not selected when dropping the VI from the Functions palette.  I checked this behavior back to LabVIEW 7.1 and it is consistent throughout that controls and indicators are not selected.  (Consequently, so is the fact that when decorations are present they don’t maintain the relative position).
    I am not sure if this would be better suited as a CAR or product suggestion since it has been this way that long, but it does not appear to be related to the fact that decorations are present in the Merge VI.  It does seem strange that the decorations are selected though.  Looks like the best way to work around this is to drop the VI from the Controls palette.  Hopefully, it’s not too much of a hassle.
    Hi  Donovan,
    Thanks for checking in.
    >  I checked this behavior back to LabVIEW 7.1 and it
    is consistent throughout that controls and indicators are not
    selected.  (Consequently, so is the fact that when decorations are
    present they don’t maintain the relative position).
    This just means that not many people use this feature.  However, now that VIPM Professional makes it so easy to edit the palettes, I'm sure that others will start complaining that this doesn't work as they expect.
    > I am not sure if this would be better suited as a CAR or product suggestion
    since it has been this way that long, but it does not appear to be
    related to the fact that decorations are present in the Merge VI.
     Just look up the functional specifications for this feature and see if all objects are supposed to be selected.
    But seriously, is there a reason that only the FP decorations are selected?  Surely this would be documented somewhere, if there was a good reason for this current (IMO, buggy) behavior.
    > It
    does seem strange that the decorations are selected though.  Looks like
    the best way to work around this is to drop the VI from the Controls
    palette.  Hopefully, it’s not too much of a hassle.
    That's not a reasonably work-around, IMO.  It doesn't make sense to drop Block Diagram components onto the Front Panel.  For example, this bug affects the JKI State Machine.  It doesn't make sense to drop a State Machine onto the Front Panel.
    So, I'd file it as a CAR/bug, and then wait to see how LV R&D feels about it.  If they can find some valid reason for why Controls and Indicators shouldn't be selected, then that's fine (and hopefully someone will explain it to me).
    Thanks,
    -Jim

  • Illustrator cs6 locks up when placing image (yosemite)

    Just upgraded to yosemite...was running fine for a week or so but now illustrator finder window freezes when placing an image. Thoughts?

    spooky,
    You may try the list.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media, see below. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Wrong image size when placing

    When I try to place a picture in photoshop CS6 either from drag&drop in the application window or from the place command, my image gets automatically resized based on the resolution (pixels per inch) of my document.
    Example:
    I create a new blank document, 1000*1000px @ 300ppi.
    I have another image that I want to place in the document and this image measures 500*500px @ 100ppi.
    I then go to File->Place  and the image that appears is way too big.  In the Info panel, it says that the image is 1500x1500 and the transform settings at the top indicate that the image hasen't been scaled because both width and height are at 100%
    If I cahnge my document resolution (no resample) to 100ppi, the image has the right size when I place it.
    So my question is:  Is this normal?  Because it has never done that with past versions of Photoshop.  If it is normal, is there a way I can change this because placing an image based on it's physical (printed) size makes absolutely no sense.  1 pixel = 1 pixel.
    Thank you for your help

    Once you understand how Photoshop works you can batch some some things you create some actions for.  Size is difficult to deal with in actions and often you will have problems dealing with aspect ratios and image orientation.
    To automate a process well scripting is more powerful then actions for you can use logic to solve problem area involving sizing, orientation, aspect ratios and positioning.  You can size an image to cover an area then mask off any excess to virtually crop the image to the areas aspect ratio.  If you download my Photoshop Photo Collage Toolkit there are script that create composite that can deal with any size image.
    One script PasteImageRoll.jsx can past selected images into a document to be print on roll paper. Images will be tiled into the document some images may be rotated for a better fit for the tiles aspect ratio. Image will be resized to fill the tile area and masked to virtually make a center crop of the images.  Other scripts will place in images file into collage template as smart object layers. Smart object images layers will be scaled to fit the various templates images areas position over the area and masked to the area. Link Documentation and Examples for the toolkit and Link Paste Image Roll Script Information
    Scripting is very powerful you can even open image off the web using its URL even stack all the image on a web page using its url
    OpenImageFromWeb.jsx
    // OpenImageFromWeb.jsx
    // Copyright 2006-2009
    // Written by Jeffrey Tranberry
    // Photoshop for Geeks Version 3.0
    // modified by MLH
    // modified by JJMACK 2010
    <javascriptresource>
    <about>$$$/JavaScripts/OpenImageFromWeb/About=JJMack's OpenImageFromWeb.^r^rCopyright 2010 Mouseprints.^r^rJJMack's Script.^rOpen Image From Web as a Placed smart object layer!</about>
    <category>JJMack's Script</category>
    </javascriptresource>
    Description:
    This sample script shows how to download images from a web server using the
    Socket object.
    // Note: Socket.read() parameter & behavior
    // Socket.read() will read or time out. It may not read all data fromserver. <---------------
    // Socket.read(999999) will read 999999 bytes, or timeout, or socket will be
    // closed by the server.
    // enable double clicking from the
    // Macintosh Finder or the Windows Explorer
    #target photoshop
    // Make Photoshop the frontmost application
    app.bringToFront();
    // SETUP
    var html = "";
    var request = "";
    var url = "";
    var binary = "";
    var requesthtml = "";
    var socket = new Socket;
    var domain = "www.mouseprints.net" // the domain for the file we want
    var sImg = "/old/dpr/JJMack8btiSrgb.png"; // the rest of the url for the file we want
    var port = ":80"; // the port for the file we want
    // MAIN
    var url = prompt("Enter the image's full URL http://domain/full image path",url);   // prompt for domain name
    if (url != null && url != ""){
              if ( (url.indexOf("http://") != -1)  || (url.indexOf("HTTP://") != -1)  ) {
                        domainPathLength = url.length - "http://".length;
                        domainPath = url.substr(7, domainPathLength);
                        pathOffset = domainPath.indexOf("/");
                        domain = domainPath.substr(0, pathOffset);
                        sImg = domainPath.substr(pathOffset, domainPath.length - pathOffset );
                        // Isolate Image name
                        var Name =  sImg
                        var imagePath = "";
                        while (Name.indexOf("/") != -1 ) {                                        // Strip Path
                                  imagePath= imagePath + Name.substr(0, Name.indexOf("/") + 1);
                                  Name = Name.substr(Name.indexOf("/") + 1 ,);
                        //alert("domain = " +  domain + " , Image = " + sImg + " Image File Name = " + Name);
                        if ( domain != "" && sImg != "" && sImg != "/" && Name.indexOf(".") != -1 ) {
                                  var f = File("~/" + Name); // Image file name
                                  f.encoding = "binary"; // set binary mode
                                  f.open("w");
                                  if (socket.open(domain + port, "binary")){
                                            //alert("GET " + sImg +" HTTP/1.0\n\n");
                                            requesthtml ="\n\nDmain:" + domain + " Port" + port + " binary\n"
                                            request ="GET " + sImg +" HTTP/1.0\n\n"
                                            socket.write(request); // get the file
                                            var binary = socket.read(99999999);
                                            binary = removeHeaders(binary);
                                            f.write(binary);
                                            socket.close();
                                  else { alert("Connection to Domain:" + domain + " Port" + port + " Failed   ");}
                                  f.close();
                                  if (binary.length != 0) {
                                            //alert ("file length = " + binary.length );
                                            if(app.documents.length == 0) {
                                                      //app.documents.add([width] [, height] [, resolution] [, name] [, mode] [, initialFill] [,pixelAspectRatio] [, bitsPerChannel] [,colorProfileName])
                                                      app.documents.add(new UnitValue(1600,'px'), new UnitValue(1200,'px'), 72, null, NewDocumentMode.RGB, DocumentFill.WHITE, 1,BitsPerChannelType.EIGHT, "sRGB IEC61966-2.1" );
                                            placeSmartObject( f );
                                  f.remove(); // Remove temporary downloaded files
                        else { alert("Invalid Image URL: " + url ); }
              else { alert("Invalid URL: " + url ); }
    else { if ( url == "" ) alert("No URL Entered"); }
    // FUNCTIONS
    function placeSmartObject(fileRef){
              //create a new smart object  layer using a file
              try {
                        var desc = new ActionDescriptor();
                                  desc.putPath( charIDToTypeID( "null" ), new File( fileRef ) );
                                  desc.putEnumerated( charIDToTypeID( "FTcs" ), charIDToTypeID( "QCSt" ),charIDToTypeID( "Qcsa" ));
                                  desc.putUnitDouble( charIDToTypeID( "Wdth" ),charIDToTypeID( "#Prc" ), 100 );
                                  desc.putUnitDouble( charIDToTypeID( "Hght" ), charIDToTypeID( "#Prc" ), 100 );
                                  desc.putUnitDouble( charIDToTypeID( "Angl" ), charIDToTypeID( "#Ang" ), 0 );
                                  desc.putBoolean( charIDToTypeID( "Lnkd" ), true );
                        executeAction( charIDToTypeID( "Plc " ), desc, DialogModes.NO );
                        activeDocument.activeLayer.resize(100 ,100,AnchorPosition.MIDDLECENTER);
                        activeDocument.revealAll();
              } catch (e) { alert("Placeing file: '" + fileRef + "' failed"); }
    // Remove header lines from HTTP response
    function removeHeaders(binary){
              var bContinue = true ; // flag for finding end of header
              var line = "";
              var httpheader = "";
              var nFirst = 0;
              var count = 0;
              while (bContinue) {
                        line = getLine(binary) ; // each header line
                        httpheader = httpheader + line;
                        bContinue = line.length >= 2 ; // blank header == end of header
                        nFirst = line.length + 1 ;
                        binary = binary.substr(nFirst) ;
              if (httpheader.indexOf("Bad Request") != -1 || httpheader.indexOf("Not Found") != -1) {
                        alert (requesthtml + request + httpheader);
                        var binary = "";
              //alert (requesthtml + request + httpheader + "\nFile length = " + binary.length);
              return binary;
    // Get a response line from the HTML
    function getLine(html){
              var line = "" ;
              for (var i = 0; html.charCodeAt(i) != 10; i++){ // finding line end
                        line += html[i] ;
              return line ;
    StackWebPageImages.jsx
    // Copyright 2007.  Adobe Systems, Incorporated.  All rights reserved.
    // This script demonstrates how to download images from a web server using the Socket object.
    // Adobe's Socket.jsx Photoshop sample javascript
    // modified by JJMACK 2011
    <javascriptresource>
    <about>$$$/JavaScripts/StackWebPageImages/About=JJMack's StackWebPageImages.^r^rCopyright 2011 Mouseprints.^r^rJJMack's Script.^rPlaces Images used in a Web page as smart object layers in stack in a new document!^rOnly images embedded coded with path relative to the domains root will be Placed though.^rImages that fail to be placed may be Placed into the document using your browser right click to copy image URL.^rThen paste that URL into the OpenImageFromWeb script URL input field. </about>
    <category>JJMack's Script</category>
    </javascriptresource>
    // Note: Socket.read() parameter & behavior
    // Socket.read() will read or time out. It may not read all data from server.
    // Socket.read(999999) will read 999999 bytes, or timeout, or socket will be
    // closed by the server.
    // Settings
    #target photoshop
    app.bringToFront(); // bring top
    //if("en_US" == $.locale) { // display only US build
    //          alert("This sample script shows how to download images from a web server using the Socket object.");
    // Remove header lines from HTTP response
    function removeHeaders(binary)
              var bContinue = true ; // flag for finding end of header
              var line = "";
              var nFirst = 0;
              var count  = 0;
              while (bContinue) {
                        line = getLine(binary) ; // each header line
                        bContinue = line.length >= 2 ;  // blank header == end of header
                        nFirst = line.length + 1 ;
                        binary = binary.substr(nFirst) ;
              return binary;
    // Get a response line from the HTML
    function getLine(html)
              var line = "" ;
              for (var i = 0; html.charCodeAt(i) != 10; i++){ // finding line end
                        line += html[i] ;
              return line ;
    var socket = new Socket;
    var port = "80";
    var html = "";
    //if (socket.open("www.adobe.com:80")){
    //          socket.write("GET /index.html HTTP/1.0\n\n");
    //          html = socket.read(9999999);
    //          socket.close();
    var url = "";
    var url = prompt("Enter the Web page full URL the images are in like http://domain/index.html",url);   // prompt web page
    if (url != null && url != ""){
              if ( (url.indexOf("http://") != -1)  || (url.indexOf("HTTP://") != -1)  ) {
                        domainPathLength = url.length - "http://".length;
                        domainPath = url.substr(7, domainPathLength);
                        if ( domainPath.indexOf("/") != -1 ) {
                                  pathOffset = domainPath.indexOf("/");
                                  domain = domainPath.substr(0, pathOffset);
                                  wPage= domainPath.substr(pathOffset, domainPath.length - pathOffset );
                        else {
                                  domain = domainPath;
                                    wPage = "/";
                        // Isolate Page name
                        var pName=  wPage;
                        var pagePath = "";
                        while (pName.indexOf("/") != -1 ) {
                                  pagePath= pagePath + pName.substr(0, pName.indexOf("/") + 1);
                                  pName = pName.substr(pName.indexOf("/") + 1 ,);
                        //if (socket.open("www.adobe.com:80")){
                        if (socket.open(domain +":" + port)){
                                  //alert("GET page = " + wPage + " HTTP/1.0\n\n");
                                  socket.write("GET " + wPage + " HTTP/1.0\n\n");
                                  html = socket.read(9999999);
                                  socket.close();
                                  //var aImg = html.match(/src=\"\/images\/(.*?)\"/g);                    //  src="/images/~~~"
                                  //var aImg = html.match(/img src=\"(.*?)\"/g);                              // img src="~~~"
                                  //var aImg = html.match(/img src=\"(.*?)[\"?]/g);                    // img src=["|?]~~~" 
                                  //var aImg = html.match(/img (.*?)src=\"(.*?)[\"?]/g);                    // img ~~~src="~~~" 
                                  var aImg = html.match(/<img (.*?)src=\"(.*?)\"/g);                    // <img ~~~src="~~~"
                                  //var aImg = html.match(/<img (.*?)src=\"(.*?)[\"?]/g);                    // <img ~~~src=["|?]~~~"
                                  //alert("Image List\n" + aImg);
                                  if (null != aImg) { // parsed image tags
                                            //app.documents.add([width] [, height] [, resolution] [, name] [, mode] [, initialFill] [,pixelAspectRatio] [, bitsPerChannel] [,colorProfileName])
                                            app.documents.add(new UnitValue(1600,'px'), new UnitValue(1200,'px'), 72, null, NewDocumentMode.RGB, DocumentFill.WHITE, 1,BitsPerChannelType.EIGHT, "sRGB IEC61966-2.1" );
                                            for (var i=0; i < aImg.length; i++) {
                                                      var str = aImg[i];
                                                      imageNo=i+1;
                                                      //var sImg = str.substring(5, str.length-1); // remove "src=" & ["]
                                                      //var sImg = str.substring(9, str.length-1); // remove "img src=" & ["]
                                                      var sImg = str.substring(str.indexOf('src="')+5, str.length-1); // remove "<img ... src=" & ["]
                                                      try{
                                                                if (sImg.substring(0,7) == "http://" || sImg.substring(0,7) == "HTTP://")  { placeWebImage(imageNo, sImg); } // redirect image
                                                                else {
                                                                          if (sImg.substring(0,1) != "/" ) { sImg = pagePath + sImg ; }                               // image is relative to web page path
                                                                          //else { sImg = sImg.substr(1, sImg.length - 1) ; sImg = pagePath + sImg; }          // aways include web page path bad idea
                                                                          // Isolate Image name
                                                                          var Name =  sImg;
                                                                          var imagePath = "";
                                                                          while (Name.indexOf("/") != -1 ) {                                        // Strip Path
                                                                                    imagePath= imagePath + Name.substr(0, Name.indexOf("/") + 1);
                                                                                    Name= Name.substr(Name.indexOf("/") + 1 ,);
                                                                          Name= imageNo + " " + Name;
                                                                          //var f = File("~/socket_sample_" + i + sImg.substr(sImg.length-4)); // 4 = .gif or .jpg
                                                                          var f = File("~/" + Name ); // Temp File name
                                                                          f.encoding  = "binary";  // set binary mode
                                                                          f.open("w");
                                                                          //if (socket.open("www.adobe.com:80", "binary")){
                                                                          if (socket.open(domain +":" + port, "binary")){
                                                                                    socket.write("GET " + sImg +" HTTP/1.0\n\n"); // Adobe's site image link starts with "/"
                                                                                    var binary = socket.read(9999999);
                                                                                    binary = removeHeaders(binary);
                                                                                    f.write(binary);
                                                                                    socket.close();
                                                                          else { alert("Socket Open " + domain + ":" + port + ", binary Failed"); }
                                                                          f.close();
                                                                          //app.open(f); // Open files in Photoshop
                                                                          placeSmartObject( f );
                                                                          f.remove();  // Remove temporary downloaded files
                                                      catch(e){
                                            alert("Number of images found in page = " + imageNo );
                                  else { alert("No images found for " + url); }
                        else { alert("Connection to Domain:" + domain + " Port " + port + " Failed   ");}
              else { alert("Invalid URL: " + url ); }
    else { if (url == "") alert("No URL Entered"); }
    // FUNCTIONS
    function placeSmartObject(fileRef){
              //create a new smart object layer using a file
              try {
                        var desc = new ActionDescriptor();
                                  desc.putPath( charIDToTypeID( "null" ), new File( fileRef ) );
                                  desc.putEnumerated( charIDToTypeID( "FTcs" ), charIDToTypeID( "QCSt" ),charIDToTypeID( "Qcsa" ));
                                  desc.putUnitDouble( charIDToTypeID( "Wdth" ),charIDToTypeID( "#Prc" ), 100 );
                                  desc.putUnitDouble( charIDToTypeID( "Hght" ), charIDToTypeID( "#Prc" ), 100 );
                                  desc.putUnitDouble( charIDToTypeID( "Angl" ), charIDToTypeID( "#Ang" ), 0 );
                                  desc.putBoolean( charIDToTypeID( "Lnkd" ), true );
                        executeAction( charIDToTypeID( "Plc " ), desc, DialogModes.NO );
                        activeDocument.activeLayer.resize(100 ,100,AnchorPosition.MIDDLECENTER);
                        activeDocument.revealAll();
              } catch (e) { }
    function placeWebImage(num, url){
              var socket = new Socket;
              domainPathLength = url.length - "http://".length;
              domainPath = url.substr(7, domainPathLength);
              pathOffset = domainPath.indexOf("/");
              domain = domainPath.substr(0, pathOffset);
              sImg = domainPath.substr(pathOffset, domainPath.length - pathOffset );
              // Isolate Image name
              var Name =  sImg
              var imagePath = "";
              while (Name.indexOf("/") != -1 ) {                                        // Strip Path
                        imagePath= imagePath + Name.substr(0, Name.indexOf("/") + 1);
                        Name = Name.substr(Name.indexOf("/") + 1 ,);
              Name= num + "R " + Name;
              //alert("domain = " +  domain + " , Image = " + sImg + " Image File Name = " + Name);
              if ( domain != "" && sImg != "" && sImg != "/" && Name.indexOf(".") != -1 ) {
                        var f = File("~/" + Name); // Image file name
                        f.encoding = "binary"; // set binary mode
                        f.open("w");
                        if (socket.open(domain +":" + port, "binary")){
                                  //alert("socket.write GET " + sImg +" HTTP/1.0\n\n");
                                  //socket.write("GET " + sImg +" HTTP/1.0\n\n");           // did not work
                                  socket.write("GET " + url +" HTTP/1.0\n\n");                    // use url to this server works
                                  var binary = socket.read(9999999);
                                  binary = removeHeaders(binary);
                                  f.write(binary);
                                  socket.close();
                        //else { alert("Connection to Domain:" + domain + " Port" + port + " Failed   ");}
                        f.close();
                        placeSmartObject( f );
                        f.remove(); // Remove temporary downloaded files
              //else { alert("Invalid Image URL: " + url ); }

  • Photoshop elements 12 displays burry images when placing on slideshow for 8.1 windows computer

    Why does my photoshop elements 12 display my pictures blurry when placing them on slideshow for 8.1 windows laptop

    Hello RichardH53,
    Yes you will be able to install Photoshop Elements 12 on your new computer.
    You can refer to below mentioned two articles for any kind of help.
    1. https://helpx.adobe.com/photoshop-elements.html
    2. http://helpx.adobe.com/photoshop-elements/kb/photoshop-element-12-silent-install.html
    Do let me if it work or if you face any issues with that.
    Thanks,
    Ratandeep Arora

  • Strange behavior when duplicating a text layer

    Hello All,
    I was following a tutorial.
    I created a text layer.  typed in the number "2012" in white
    I placed a texture in the comp.
    I used the text layer as an alpha track matte
    Then I duplicated the Text layer, and instead of the layer being named 2012 it automatically changed to 2013.
    When I look at it as Layer Name or Source Name it was the same "2013"
    So I create a new text layer and type in "0" and the layer was appropiately named 0
    But when I duplicated that layer it was named 2014
    When I duplicated any of the text Layers it was named the next sequencially higher number
    This pattern of renaming was only broken by typing in a number where the leading digit was anther value up i.e. 4329
    Then the duplicating of the text layer would start naming the with this value plus 1.
    Same thing happens if you split the text layer
    I think this is a bug or bad programming.  this can lead to unnecessary confusion if you working on a project with number text layers and have to duplicate, many of them or many times.  Or is the answer to pre compose the text layer before duplicating --- NO that has its own shotcomings.
    CS5.5 on a Mac Os 10.6.8

    I found a solution.   Rename the Text layer by adding a space before or after the numerals.  Now the duplicates are named as the written text with a suffix  increased by 1 for each additional duplicated layer.

  • When placing a PDF created with Distiller, I only get Crop and Media as import options -- I need it to crop to the Trim! PLEASE HELP!

    I'm having a MAJOR problem placing PDF files in InDesign CS4...
    When I try to place a PDF that has been created in Distiller, the ONLY import options I can choose are CROP and MEDIA. I need it to crop to the TRIM, but that option is grayed out. The PDFs I'm trying to place were created in-house, and converted from Post Script files to PDFs using Distiller. We use PDF/X-1a equivalent settings when creating our PDFs.
    If I export the file as a PDF and then try to place it into a CS4 file, I am able to select Trim as an option.
    ALSO, if I open the Distiller PDF in Acrobat and then save it (without changing anything), I am able to select Trim as an option. A workaround I have found is to open all of the PDF files in Acrobat, save them to my desktop, and then save over the ones I need to place. Here's the problem with that: I work for a publishing company, and need to place hundreds of ads for each issue of our publications, and it adds a lot of time if I have to go and re-save everything just to be able to place all the ads. 
    Does anyone know how to fix this problem? I need to get this figured out so we can use CS4 for all of our publications again. -- We've gone back to using CS3 until I can get this figured out...
    - Valerie

    Steve,
    Thanks for the reply, but my PDFs all have trim boxes on them. If I try to place the same PDF in InDesign CS3, it gives me Trim as an option. Also, if I open the PDF and save a copy to my desktop, I am able to select Trim as an option when placing the PDF, and I didn't change anything about it.
    I've been trying to see if it's something with the Print Preset settings I'm using, but I can't find anything that seems like it would affect how InDesign would read the Trim area of the PDF.
    I've attached 2 PDF files. One that was created with Distiller, and one that was exported from InDesign CS4. The Distiller one doesn't show Trim as an option in CS4, but the exported one does.... but they started out as the same ad.  Ugh!  Help me please!
    - Valerie

  • My curser keeps on vanishing, when I don't move it for a second (vanishing not flashing)it only seems to happen in Firefox, I've tried pressing f7 to no avail

    My curser/ pointer keeps on vanishing, when I don't move or touch my mouse for a second, it's vanishing not flashing it only seems to happen in Firefox, I've tried pressing f7 but it makes no difference. Please help it's driving me nuts

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • I cant download apps on my ipod

    please help! i cant download apps on my ipod! once ive pressed install, it just goes to the grey loading app icon and it stays like that until i switch my ipod off. i dropped my ipod about 3 monthes ago and a bit of the corner chipped out so im not s

  • Changing a Query do not show Results in the PLD Format

    Hello Experts!! I have a PLD report,  and I changed the query a BIt  let say  the oiginal query is  select 'HELLO' from OINV where DocEntry between 100 and 110 but then I Changed to +select 'HELLO' + World' from OINV where DocEntry between 100 and 11

  • Passing Data to SubVIs: W/O clusters?

    Dear all, I have 40ish measurement (real) values  and 30ish boolean values continuosly coming from a measurement. I need to pass them to various subVIs for processing the data. I intend to bundle this data in order to not have 70 wires an SubVI-Termi

  • How revaluation works? What entries will be posted?

    Hi experts, How revaluation(G/L) works in SAP Business One? E.g. System Currency:SGD Invoice dated on 1st of December 2009, USD 100.00 with rate of 1.40 = SGD 140.00 Company needs to revalue the outstanding invoice at 31st of December 2009 year end r

  • Password display item

    Hi guys, I have an item, where the data displayed in that item field needs to be concealed. The source of the item is retrieved with an sql query and if I set the field to password it just displays an empty field. How can I conceal the data? regards,