Saving and loading of specific properties of an Image

Hey everybody. I am currently developing a game that allows you to customize the color (hue) of your character through a cursor. What I want to happen is: when you click on accept or play, it will record the current hue of the image, return to this page will take care of this standard that has been saved previously (dyed), as well as at the start of the game, it will replace the graphic with the recorded image previously.

Here is the code I have in this moment that relates to the image with a base not working correctly save and load this code:

import flash.events.KeyboardEvent;


// open a local shared object called "myStuff", if there is no such object - create a new one
var savedstuff:SharedObject = SharedObject.getLocal("myStuff");


Accept.addEventListener(MouseEvent.CLICK, SaveData);
PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);


function SaveData(MouseEvent){
           savedstuff.data.username = Sliders.Dino.MovieClip // changes var username in sharedobject
           savedstuff.flush(); // saves data on hard drive
}


function LoadData(event: MouseEvent) 
{
           if(savedstuff.size>0){ // checks if there is something saved
           Sliders.Dino.MovieClip = savedstuff.data.username} // change field text to username variable
}


// if something was saved before, show it on start
if(savedstuff.size>0){
Sliders.Dino.MovieClip = savedstuff.data.username}


What I have above is only to save the actual image, which is inside a movie clip names cursors.

This is the class that I use and which associates the cursor that changes the color of "Dino".

package 
{
          import flash.display.Sprite;
          import fl.motion.AdjustColor;
          import flash.filters.ColorMatrixFilter;
          import fl.events.SliderEvent;
  
          public class Main extends Sprite
          {
                    private var color:AdjustColor = new AdjustColor();
                    private var filter:ColorMatrixFilter;
  
                    public function Main():void
                    {
                              /* Required to create initial Matrix */
  
                              color.brightness = 0;
                              color.contrast = 0;
                              color.hue = 0;
                              color.saturation = 0;
  
                              /* Add Listeners function */
  
                              addListeners();
                    }
  
                    private final function addListeners():void
                    {
                              colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
                    }
  
                    private final function adjustHue(e:SliderEvent):void
                    {
                              color.hue = e.target.value;
                              update();
                    }
  
                    private final function update():void
                    {
                              filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
                              Dino.filters = [filter];
                    }
          }
}

Overall, what I'm asking is: how to save the current hue of an image by clicking on a button, then having this recorded image be previously loaded on reloading or clicking a button? To me, it doesn't seem it should be too hard, but for some reason that I can't grasp it.

Thanks in advance for reading this and for any assistance, you have to offer!

It is not possible to trigger this error message for the line of code that you mentioned and the line above to not trigger an error.

in any case, use:

so. Data.Hue = e.target.value;

Tags: Adobe Animate

Similar Questions

  • Saving and loading of specific orders of façade

    Hello

    I found this example to save the values of front panel control. He used a node invoke with 'Ctrl Val.Get All (not recommended). With a little research, I found that I had to adapt, using the "Ctrl Val.Get All" and by replacing the variant data type. Works of savings (at least, something is saved), but when you try to load the file, nothing works (strangely enough, she has worked with the (outdated) version of the invoke node). So, obviously, I must have done something wrong, but I can't know exactly how I would change the data types. The version that I came with is attached.

    But the main question is this: How do I back up only certain controls? That invoke node records the value of each control, so I think I'll need to use the node 'Get the value', but I don't know how to use it, either. Maybe the problem lies in my first question and I just need to send a string containing all values of control I want, but it's so that you can see where I am going.

    Thank you and have a nice day.

    There is an example that shows the whole process - https://decibel.ni.com/content/docs/DOC-15349

  • Data are skewed between saving and loading

    Hello

    I'll have a problem saving and loading the data in my VI. My software allows the user collect data from an acquisition of data which is then displayed on a graph for them to see. They can save the data, then load it back later to compare with the current data. Here is the basic methodology:

    1. the data are read in the program via a data acquisition

    2. data are saved in a file in spreadsheet to a table with the VI 'save in the spreadsheet file.

    3. the data is loaded to the program with the VI "read the spreadsheet file.

    4. the data are transferred in the same graph is was originally shown on

    However, when I save the data and reload, my chart is slightly distorted. I noticed a few things:

    1. the values of X are a little more for the loaded data vs the same data front to save/load (DECIMAL NUMBERS)

    2. the values of are are not affected. (WHOLE NUMBERS)

    3. the loaded data are more straight lines, which means that the same data point is used for row X or Y values

    attached is a screenshot of the graph - red data is from this session, Green data is loaded.

    export excel to this same graph is attached.

    No one noticed an interesting trend in this anomaly, or have any ideas on what I can check? My code does not change the values, but only manipulates them. Please let me know if you need more information, I've tried including as much as I could without a useless book.

    Thank you

    Joe

    To solve this kind of problem, replace the random number generators with a simple signal that you can easily identify as a linear ramp, the number of iterations or a low frequency sine wave. By selecting a signal that is suitable for your application, you should be able to tell if the data are all be recorded and in the right order.

    The use of nodes property to move data around sounds like a disaster in the making.  Examine the queues, user events, or functional global variables.

    Lynn

  • Saving and loading of a meter

    Hey everyone, I am currently faced with data backup, I have a counter, then loading what was saved. Right now, I'm just a jump every time cash counter as you jump.

    Right now I have:

    var JumpCounter: int = 0;

    Then, when you jump:

    JumpCounter ++;

    Output in the text box called JumpBox with:

    JumpBox.text = JumpCounter.toString ();

    And I want to load and save by using this line of code:

    var so: SharedObject = SharedObject.getLocal("myStuff","/");

    I don't know how to incorporate that into my code.

    Currently, the meter is incremented by jumping and everything, I'm just not sure what the record using so.flush (); and it's not. I have other objects in the backup set and loading fine, I just haven't yet done with a variable. It seems that if a variable would be easier, but I can't put my finger on. If anyone has any ideas, please let me know.

    Thanks in advance!

    use:

    var JumpCounter: int = 0;

    var so: SharedObject = SharedObject.getLocal("myStuff","/");

    {if (SO. Data.JumpCounter)}

    JumpCounter = so.data.JumpCounter;

    }

    Then, when you jump:

    JumpCounter ++;

    so.data.JumpCounter = JumpCounter;

    so. Flush();

    Output in the text box called JumpBox with:

    JumpBox.text = JumpCounter.toString ();

  • Saving and loading data to the Local computer

    I'm new to Flash/ActionScript, and I'm having a lot of fun to create a project in Flash.

    I'm working on a tracker of character (yes I am totally geeking) an I was wondering how to save the data, I walked into the draft (hit points etc...) and load it back the next time I opened it. The data would be stored on my local computer. How can I get Flash/ActionScript for this?

    Thank you.

    Sorry, I copied your code.

    getLocal(), should be getLocal()

  • Saving and loading of values on a 3rd party ownership of arbitrary data to the plugin?

    Here I am again, asking weird questions.

    I am trying to find a way that I can save and restore values/keyframes on a 3rd party property of the plugin.

    It's easy to do with standard property types as I can just get/set values, but with arbitrary data, I don't see a clear way to do this.

    I can make a preset effect which will restore the correct arbitrary values when applied and use ExecuteScript() to apply the preset.

    But, I prefer a method that does not need to apply a preset, because this solution would require the installation of a special it somethere preset in path predefined AE.

    It is the risk that the user could delete the preset, and then the plugin is broken.


    I thought that maybe I could trick the plugin from 3rd party to give me a copy of the flattened data of arbitrary property by sending PF_Cmd_ARBITRARY_CALLBACK, passes along a custom made PF_ArbParamsExtra with the which_function the PF_Arbitrary_COPY_FUNCvalue.  Now, I have a copy of arbitrary data.  I can use the same trick to get the flat size of data (PF_Arbitrary_FLAT_SIZE_FUNC), flatten the dataset (PF_Arbitrary_FLATTEN_FUNC), and then save the data flattened on the disk in a binary file.

    If it works, I would basically do the opposite to restore data from the disk and apply arbitrary to a new/different instance of will assume it.


    Typing all this, it sounds pretty crazy, and I barely understand the arbitrary data how works.  I'm not even sure I can do the above without things get messy.

    Any ideas on that?  I'm far from base? This is another technique that can do this with techniques less hacky?

    Thank you!

    -Andy

    your assumptions are correct.

    You cannot change add an effect to a layer while your effect is

    ground of appeal.

    It doesn't have the o effect with javascript. It's just, as you say,

    change the scene while working on it.

    How to work around this problem:

    have two plug-ins effect and a CEAP.

    result call the CEAP via a special series (see "order" and)

    samples of "honey" to see how it works) and set some data there.

    do not have the CEAP run changes immediately! store these data only!

    Let the effect finish its execution and return.

    now.

    during the call to idle_hook, the CEAP checks all messages left by the effect.

    new data is present? God. run now that the effect is not in call mi.

    TADA!

    with regard to the getPlatformData,.

    platform commands specific for data such as the path to self

    .dll, but you can just have the effect the data desired in the CEAP

    When it sends the message.

  • Problem saving and loading multiple images in the same file

    Hello

    I am having a problem, I have a thah program creates a fileOutputSteam and a gzipOutputSteam and finally an imageIO wrote several images, then I do the reverse process, a
    FileInputsteam and an inputsteam of gzip, imageIO.read read only image of frist, not the rest.

    Can someone help me?
    PS: Sorry for my bad English, I'm Spanish

    Code:
    class Lector {
    
        // Atributos
        private String ruta;
        private static Collection<Imagen> imagenes;
    
        /**
         * Clase que carga un fichero .zip lleno de imagenes
         * @param ruta: ruta donde se halla el fichero .zip a cargar
         */
        public Lector(String ruta) {
        }
        /**
         * Constructor sin parametros
         */
        public Lector() {
        }
        /**
         * Metodo que setea el archivo que queremos cargar
         * @param ruta: Ruta del fichero a cargar
         */
        public void setArchivo(String ruta) {
            this.ruta = ruta;
            imagenes = new ArrayList<Imagen>();
        }
    
        /**
         *
         * @param output: Lugar donde sera representada la salida de la carga de imagenes
         * @return retorna 1 si la carga fue bien y 0 si fue mal
         * @throws FileNotFoundException : excepcion por  no haber encontrado el fichero
         * @throws IOException: excepcion por no poder leer el fichero
         */
        public int cargarImagenes(JTextArea output) throws FileNotFoundException, IOException {
            ZipEntry entrada;
            int contador = 0;
            String archTemp = "temp.jpg";
            FileInputStream fis = new FileInputStream(ruta);
            ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
            BufferedOutputStream dest = null;
            byte[] data = new byte[9000];
    
            // Leemos secuencialmente el archivo zip
            while ((entrada = zis.getNextEntry()) != null) {
                File bufferTemporal = new File(archTemp);
                System.out.println("Archivo " + entrada.getName() + " cargado!");
                output.append("Archivo " + entrada.getName() + " cargado!\n");
                if (!entrada.isDirectory()) {
                    FileOutputStream fos = new FileOutputStream(bufferTemporal);
                    dest = new BufferedOutputStream(fos, 9000);
    
                    while ((contador = zis.read(data, 0, 9000)) != -1) {
                        dest.write(data, 0, contador);
                    }
                       //Cerramos los buffers
                    dest.flush();
                    dest.close();
                    fos.flush();
                    fos.close();
    
                    FileInputStream fin = new FileInputStream(bufferTemporal);
                    BufferedImage bi = ImageIO.read(fin);
                    //Guardamos el fichero
                    imagenes.add(new Imagen(bi, entrada.getName()));
                }
               bufferTemporal.delete();
            }
     
            // Cerramos los bufferes
    
            fis.close();
            zis.close();
    
           
    
            saveAsGzip("dato.gz");
            loadAsGzip("dato.gz");
            return 1;
        }
        /**
         * Funcion que carga la simagenes de dentro del .zip y las guarda en el objeto Imagen
         * @return retorna 1 si la carga fue exitosa
         * @throws FileNotFoundException: Excepcion por no encontrar el archivo
         * @throws IOException: Excepcion por no poder leer el archivo
         */
        public int cargarImagenes() throws FileNotFoundException, IOException {
            ZipEntry entrada;
            int contador = 0;
            String archTemp = "temp.jpg";
            FileInputStream fis = new FileInputStream(ruta);
            ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
            BufferedOutputStream dest = null;
            byte[] data = new byte[9000];
    
            // Leemos secuencialmente el archivo zip
            while ((entrada = zis.getNextEntry()) != null) {
                File bufferTemporal = new File(archTemp);
                System.out.println("Archivo " + entrada.getName() + " cargado!");
    
                if (!entrada.isDirectory()) {
                    FileOutputStream fos = new FileOutputStream(bufferTemporal);
                    dest = new BufferedOutputStream(fos, 9000);
    
                    while ((contador = zis.read(data, 0, 9000)) != -1) {
                        dest.write(data, 0, contador);
                    }
    
                    dest.flush();
                    dest.close();
                    fos.flush();
                    fos.close();
                    java.io.FileInputStream fin = new FileInputStream(bufferTemporal);
                    BufferedImage bi = ImageIO.read(fin);
    
                    imagenes.add(new Imagen(bi, entrada.getName()));
                }
               
            }
    
            // Cerramos los bufferes
            fis.close();
            zis.close();
    
            dest.flush();
            dest.close();
    
            
            return 1;
        }
        /**
         * Funcion que retorna el array de peliculas
         * @return retorna el array de peliculas
         */
        public Collection<Imagen> getImagenes() {
            return imagenes;
        }
        public int saveAsGzip(String pathFichero) throws FileNotFoundException, IOException{
    
            FileOutputStream fos = new FileOutputStream(new File(pathFichero));
         //GZIPOutputStream gzip = new GZIPOutputStream(fos);
            BufferedImage temp2;
            Imagen img;
    
            Iterator ite = imagenes.iterator();
            while(ite.hasNext()){
                img = (Imagen) ite.next();
                temp2=img.getBufferedImagen();
                
                boolean i= ImageIO.write(temp2, "JPEG", fos);
                System.out.println(i);
    
            }
            System.out.println();
    
            //gzip.finish();
            fos.flush();
             
            fos.close();
           
            //gzip.close();
    
            return 1;
        }
        public int loadAsGzip(String pathFichero) throws FileNotFoundException, IOException{
    
            imagenes.clear();
            
            FileInputStream fos = new FileInputStream(new File(pathFichero));
         //GZIPInputStream gzip = new GZIPInputStream(fos);
            BufferedImage img;
    
    
                for(int i=0;i<=100; i++){
                    
    
                 
                    img=ImageIO.read(fos);
    
                    
                    if (img != null){System.out.println(img);
                    imagenes.add(new Imagen(img, String.valueOf(i)));}
                       
                    
    
    
            
                }
    
    
    
    
           // gzip.close();
            fos.close();
    
            return 1;
        }
    }
    Published by: sabre150 on October 28, 2010 01:43

    Moderator action: added
     tags to source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    805814 wrote:
    Oh, sorry again, Ii have commented on all of the code not clear in my best English and posted the image of class:

    (sigh) OK, it's an improvement, but it is not yet an NBS! I think it would take me less time to write code that is a NBS that try to explain more (perhaps an example is better here?). In all cases, your code still seems to be mixing the two Zip and GZip. I've never dealt with GZip and could not be disturbed from now just for this problem, so I focused on using the Zip classes.

    Try this code:

    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.imageio.*;
    import java.util.*;
    import java.util.zip.*;
    import java.io.*;
    
    /** SSCCE that demonstrates how to:
    1) Create some random images.
    2) Store them to a Zip File.
    3) Restore them from a Zip File
    Please study the code carefully, and note how in a single Java source of less
    than 100 lines of code, it manages to achieve the entire demo.!
    @author Andrew Thompson */
    class StoreImagesAsZip {
    
        static Random random;
        static int size = 60;
    
        public static BufferedImage getRandomImage() {
            BufferedImage bi = new BufferedImage(size,size,BufferedImage.TYPE_INT_RGB);
    
            Graphics2D g = bi.createGraphics();
            GradientPaint gp = new GradientPaint(
                (float)random.nextInt(size),
                (float)random.nextInt(size),
                new Color(random.nextInt(255),random.nextInt(255),random.nextInt(255) ),
                (float)random.nextInt(size),
                (float)random.nextInt(size),
                new Color(random.nextInt(255),random.nextInt(255),random.nextInt(255) )
                );
            g.setPaint(gp);
            g.fillRect(0,0,size,size);
    
            return bi;
        }
    
        static public void writeImagesToZip(File file, BufferedImage[] images) throws Exception {
            OutputStream os = new FileOutputStream(file);
            ZipOutputStream zos = new ZipOutputStream(os);
            // Zip does nothing for otherwise compressed media formats such as JPEG and PNG
            zos.setLevel( ZipOutputStream.STORED );
    
            for (int ii=0; ii< images.length; ii++) {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                ImageIO.write(images[ii], "png", baos);
    
                ZipEntry ze = new ZipEntry( ii + ".png" );
                zos.putNextEntry( ze );
                zos.write( baos.toByteArray() );
                zos.closeEntry();
            }
            zos.flush();
            zos.close();
        }
    
        static public BufferedImage[] readImagesFromZip(File file) throws Exception {
            ArrayList images = new ArrayList();
    
            ZipFile zipFile = new ZipFile(file);
            Enumeration en = zipFile.entries();
            while (en.hasMoreElements()) {
                ZipEntry ze = (ZipEntry)en.nextElement();
                InputStream is = zipFile.getInputStream(ze);
                BufferedImage bi = ImageIO.read(is);
                images.add(bi);
            }
    
            BufferedImage[] imageArray = new BufferedImage[images.size()];
            for (int ii=0; ii
    

    Also note that I now invested a lot of time trying to help you. If you like what I've done, the best way to show that is on the occasion of my responses as "Helpful" or "correct". If the problem is "answered", make sure that mark also.

  • Reloading a saved screen loads everything except my stretched background

    Greetings and salutations fellow developers, get here is some details before entering the main question.  I use the BlackberryJDE 5.0 in Eclipse and have made an app for Storm2 9550 and all models four torch.  The storm2 display size is 480 x 360, the 9810 torch is 480 x 640 and the torch 9850 is 800 x 480.

    Thanks to the documentation of the api on the bitmaps, I use a simple method that reach my bitmaps to the need here

              static Bitmap torch9850 = new Bitmap (480,800);
          static Bitmap torch9810 = new Bitmap (480,640);
    
          public static Bitmap stretch9810(Bitmap bm)
          {
              bm.scaleInto(torch9810, Bitmap.FILTER_BILINEAR);
              return torch9810;
          }
          public static Bitmap stretch9850(Bitmap bm)
          {
              bm.scaleInto(torch9850, Bitmap.FILTER_BILINEAR);
              return torch9850;
          }
    

    While you play the game, I want you to be able to keep the level of progress, making this call from time to time

            Utility.lvl1Screen = UiApplication.getUiApplication().getActiveScreen();
    

    This next part works perfect for any screen 360 x 480 pixels.  This if statement load saved screen if it was played.

    if (!Utility.oneTrue)
    {
        Utility.pushScreen(new LevelOneScreen());
        UiApplication.getUiApplication().popScreen(this);
     }
     else
    {
        UiApplication.getUiApplication().pushScreen(Utility.lvl1Screen);
        UiApplication.getUiApplication().popScreen(this);
    }
    

    But if the game is played on a phone with a bigger screen it shows only the bitmaps on top of the background that is not stretched and not the background itself.  By registering the active screen we saved all progress all current display bitmaps except the tense situation. It seems that it cannot reproduce streched screens.

    Is there anyone familiar with this specific problem that could shed some light on me?

    I believe that the problem may be my code to paint here.

    public void paint(Graphics g)
    {
         Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_PORTRAIT);
         if (Utility.SCREEN_HEIGHT > 600 && Utility.SCREEN_HEIGHT < 700 && stretch)
        {
            bg = Utility.stretch9810(bg);
            stretch = false;
        }
        else if (Utility.SCREEN_HEIGHT > 750 && Utility.SCREEN_HEIGHT < 850 && stretch)
        {
            bg = Utility.stretch9850(bg);
            stretch = false;
        }
    g.drawBitmap(0, 0, Utility.SCREEN_WIDTH, Utility.SCREEN_HEIGHT, bg, 0, 0);
        g.drawBitmap(bm1h, bm1v, bm1.getWidth(), bm1.getHeight(), bm1, 0, 0);
    .
    .     //Omitted code
    .
    }
    

    Thanks in advance.

    Before looking at your problem, I have some suggestions, and I suspect that if you follow them, your problem may disappear.

    First of all, you can't really do that in paint:

    Ui.getUiEngineInstance () .setAcceptableDirections (Display.DIRECTION_PORTRAIT);

    If you want to force this, do it once when your Application starts and before you press all the screens.

    Secondly, you should not really resize Bitmaps in paint (I know you're only once, but even so).  On the contrary I would do this in the layout or sublayout, because when you do that, you know the orientation and size.  So create your Bitmap image across sublayout and drawBitmap() then just object.

    Thirdly, this seems to be a bit of waste:

    public static torch9850 Bitmap = new Bitmap (480 800);
    public static torch9810 Bitmap = new Bitmap (480 640);

    I could be wrong, but I understand that this will affect RAM for Bitmap, 3 or 4 bytes per pixel which is a reasonable amount of unused space.

    As stated above, I would create a Bitmap bg, in sublayout, the size, I wanted and object just painting which,.

    Finally on your problem.  I suspect that it is just that you save the State of stretching, but save the original Bitmap and one not resized.  Instead of using stretch to detect if you need to scale, you could use the height and width of the screen and compare them to the height and the width of the bitmap in the scale.  If they do not match, then you need to scale.  Stops with a flag that you want to synchronize.

    I hope this helps.

  • I want to buy a Apple Watch in the Canada and use it and load it in Ireland. Is this possible?

    I want to buy a Apple Watch in the Canada and use it and load it in Ireland. Is this possible?

    Hello

    If you buy a Apple Watch the Canada, it will be completely compatible with your iPhone in Ireland.

    There are no regional differences in the hardware specifications for the watch, which can be configured to use your preferred language and format of the region.

    The included USB adapter pins will be located at the Canada. However, for charging your watch via the food in Ireland, you can use the charge cable provided on the magnetic head with a real 5W Apple (iPhone) or 12W (iPad) USB power adapter. You can also buy an extra Apple USB power adapter for your watch the Apple Store online for the Ireland:

    http://www.Apple.com/IE/shop/product/MD812B/C/Apple-USB-power-adapter?FNODE=83

    Service of the material to the title of the one year limited warranty is also always available in Ireland.

  • Browsers don't load not specific websites - MacBook

    I have Safari, Chrome and Firefox installed on my MacBook Pro El Capitan 10.11.3 running. I can access websites like Google, facebook, wikipedia, twitter, all very well. But for many smaller Web sites and Web sites of news, pages not be loading not on any browser. Even this forum had trouble loading.

    If I log in as a Safari comments only, I can access all Web sites very well.

    Things I've tried:

    1. Flush DNS
    2. Browser specific stuff like clear the cache of the browser, plugins, etc.
    3. SystemConfiguration folder deleted
    4. Opendns and google DNS change
    5. Creates a new user
    6. Turned off firewall and antivirus
    7. Tried another network - same issue going on at work, home and cafeteria
    8. IPv6 disabled
    9. created the new network location (for some reason strange right when I do this pages will load sometimes, but then immediately the question back to the top)

    None of this solves the problem.

    I read on other posts that this issue is caused by antivirus software. Other ESET I can't find any which other antivirus I have installed. I run ESET antivirus and I installed it for more than a year. I have turned it off with no luck.

    One strange thing I noticed is if I open the web Inspector in chrome and watch the network, all of the image files tab (jpg, PNG, etc.) are not loaded from the server. They are all hanging left on sites where I encounter this problem. I tried this on a dozen different sites.

    I'll just do a complete reinstall but I wanted to come here first to see if anyone has more ideas.

    Help, please!

    I'll try to uninstall Eset.

  • I bought Photoshop CS2 in 2005. I recently changed my PC and load the software on the new PC.  I load the CD and proceed through the steps.  When it's time to serial number software tells me the serial number on the CD case is not valid

    I bought Photoshop CS2 in 2005. I recently changed my PC and load the software on the new PC.  I load the CD and proceed through the steps.  When it's time to serial number software tells me the serial number on the CD case is invalid.  It is the same serial number, I used previously.  How do I remedy this situation so that I can use the software on my new pc?

    First, use the serial number to the right of the download for Windows.

    Do not place information in the field of the Organization after you enter the number. Which causes problems.

    If you have windows 8, you may need to change the directory to progra ~ 2 on some 64-bit windows systems:

    The reason for the use of progra ~ 2 on a 64-bit system when installing a 32-bit application is the 8 character limit imposed by Windows. PROGRA ~ 2 totals up to 8 characters, program ~ 2 is 9

    You have 2 options:

    1. in the installation, change your path to C:\progra~2\... and install it. It should work.

    2 copy Setup on your local drive. The right click on Setup.exe, properties > Compatibility tab > run in compatibility mode. The choice of XP SP2. Click OK. Run Setup.exe

    Either we have to work.

  • Possibility to save script palette menus and load curves?

    Is it possible to Photoshop CS4 script palette menus? Specifically, the "save curves preset...". ' and 'load curves Preset"... the range of settings.

    I have 600 photos, some of which have layer > new adjustment layer > curves applied.

    I want to save the curves using the name of the image. Later, I want to be able to load the appropriate curve.

    For example, for image001.tif, the curve would be image001.acv

    (I already have a loop set up to browse files and get the file names.)



    I can't help with Applescript (or even know if it is possible to do it with only Applescript). And to my knowledge you can't have things script in dialog boxes like load or save the curve directly. But here's the javascript code which will load and save settings.

    First of all the easy part, defining an adjustment of the layer of a file.

    function loadCurves( file ) {
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID( "AdjL" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
            var desc1 = new ActionDescriptor();
            desc1.putPath( charIDToTypeID( "Usng" ), new File( file ) );
        desc.putObject( charIDToTypeID( "T   " ), charIDToTypeID( "Crvs" ), desc1 );
        executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
    };
    

    The code to write that file .acv an adjustment layer is a bit more involved and does not work with all color modes

    // Works with RGB or CMYK images.
    // Does not work at all with greyscale, or indexColor
    // Does not work correctly with Lab
    File.prototype.writeByte = function(b) {
      this.write(String.fromCharCode(b));
    };
    File.prototype.writeShort = function(ET,s) {
      var self = this;
    if(ET == "BE"){
      self.writeByte(s & 0xFF);
      self.writeByte((s >> 8) & 0xFF);
    }else{
      self.writeByte((s >> 8) & 0xFF);
      self.writeByte(s & 0xFF);
    }
      return self;
    };
    function convertBCD( num ){
        var res = new Array;
        if(num > 16 ){
            res.unshift(1);
            num = num - 16;
        }else{
            res.unshift(0);
        }
        if(num > 8 ){
            res.unshift(1);
            num = num - 8;
        }else{
            res.unshift(0);
        }
        if(num > 4 ){
            res.unshift(1);
            num = num - 4;
        }else{
            res.unshift(0);
        }
        if(num > 2 ){
            res.unshift(1);
            num = num - 2;
        }else{
            res.unshift(0);
        }
        if(num == 1 ){
            res.unshift(1);
        }else{
            res.unshift(0);
        }
        return res;
    };
    function getCurve( numberOfPoints ){
        this.getPoints = function(){
            this.tempArray = new Array;
            this.tempArray.push( rawDesc.charCodeAt( pointer ) );
            pointer = pointer + 2;// set pointer to next point
            this.tempArray.push( rawDesc.charCodeAt( pointer ) );
            return this.tempArray;
        }
    
        this.pointsArray = new Array;
        for( var i = 0; i < numberOfPoints; i++ ){
            pointer = pointer + 2;// next point
            this.pointsArray.push( this.getPoints() );
        }
        pointer = pointer + 2;// next curve
        return this.pointsArray;
    };
    
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID( 'Lyr ' ), charIDToTypeID( 'Ordn' ), charIDToTypeID( 'Trgt' ) );
    var rawDesc = executeActionGet( ref ).getList( stringIDToTypeID( 'adjustment' ) ).getObjectValue( 0 ).getData( stringIDToTypeID( 'legacyContentData' ) );
    
    var pointer = 2;// used to read rawData similar to reading a file
    var flag = rawDesc.charCodeAt( pointer );// char at offset 2 always == 1 so use to validate data
    if( flag != 1 ) forceError;// unknown problem with rawData
        pointer = 6;// update pointer to BCD byte
        var bcd = rawDesc.charCodeAt( pointer );
        if( bcd < 0 || bcd > 31 ) forceError;// check for valid value
        if( bcd == 0 ) forceError;// an empty adjustment - no curves to process
        var bcdArray = convertBCD( bcd );
        var numberOfCurves = bcdArray.toString().match(/(1)/g).length;
        var curvesArray = new Array;
        pointer = 8;// set pointer to start of curve data
        for(var i = 0; i < numberOfCurves; i++ ){
            var numberOfPoints = rawDesc.charCodeAt( pointer );
            curvesArray.push( getCurve( numberOfPoints ) );
        }
    // now need to map rawData curves in curvesArray to known channel curves
    var acvArray = new Array;
    if( bcdArray[0] == 1 ) {
        acvArray.push( curvesArray.shift() );
    } else {
        acvArray.push( [ [0,0],[255,255] ] );
    }
    if( bcdArray[1] == 1 ) {
        acvArray.push( curvesArray.shift() );
    } else {
        acvArray.push( [ [0,0],[255,255] ] );
    }
    if( bcdArray[2] == 1 ) {
        acvArray.push( curvesArray.shift() );
    } else {
        acvArray.push( [ [0,0],[255,255] ] );
    }
    if( bcdArray[3] == 1 ) {
        acvArray.push( curvesArray.shift() );
    } else {
        acvArray.push( [ [0,0],[255,255] ] );
    }
    if( bcdArray[4] == 1 ) {
        acvArray.push( curvesArray.shift() );
    } else {
        acvArray.push( [ [0,0],[255,255] ] );
    }
    var myACV = new File('~/desktop/myCurve.acv');
    myACV.open('w');
    myACV.writeShort( 'LE','4' );// acv header
    myACV.writeShort( 'LE','5' );// acv header
    for( var i = 0; i< 5; i++ ) {
        var numberOfPoints = acvArray[i].length;
        myACV.writeShort( 'LE', numberOfPoints.toString() );
        for( var p = 0; p < numberOfPoints; p++ ){
            myACV.writeShort( 'LE', acvArray[i][p][0].toString() );
            myACV.writeShort( 'LE', acvArray[i][p][1].toString() );
        }
    }
    myACV.close();
    

    I wrote this earlier. It may be possible to simply write the header of acv, then add the raw data from the descriptor to work with other modes of.

    Also, neither verifies that the selected layer is a curves adjustment layer and will fail if it is not.

  • Save and load curves

    I work with PS CS4 and can't figure out how to record and curves of load, which was in the curves dialog box.  The online Help menu indicates that I need to go to the «...» Option Save preset in the Panel menu. »

    For the life of me, I can't find an option "Save Preset" in the Panel menu.

    I hesitated to post this question, because the answer is bound to be easy stupifying, but I have been struggling with this for a while and just can not understand.

    Any help would be appreciated!

    Select the icon of curves (3rd from the top left side of the Panel settings) and use the Panel (top-right bar) menu to save and load. Your saved curves will also be second in the top of the list. Simply scroll to the top where the direction of the arrow and you will see.

  • Auto SMS sent from my iPhone 5 to this number SMS int ' l 447903553650 and loaded for free! No history of sms sent in my message box! How can I solve it?

    Auto SMS sent from my iPhone 5 to this number SMS int ' l 447903553650 and loaded for free! No history of sms sent in my message box! How can I solve it?

    Tap settings > Messages and then turn OFF send as SMS .

  • Satellite M40X-286: energy saving and the E - key utility does not work on Vista

    First of all, sorry for my bad English.

    I managed to install Windows Vista Ultimate 32-bit on my Satellite M40X-286. Everything works, except for the energy saving and the E - key utility. I tried the added value of packages of other TOSHIBA models, but they all give an error message during the installation. Is there a solution for this problem?

    Now I can't change the speed of the processor and the brightness of my screen, and I can't even adjust these settings in a power mode. The only way to change the brightness is manually using the FN + F6 and F7 keys.

    Kind regards
    Stijn.

    Please don t be crazy about me, but there is no problem at all. The situation is quite clear.

    First: tools and utilities are similar, but in most cases have to be adapted for each laptop model. It may happen that some tools work on the different model of laptop, but this does not mean that he has to work on each model.

    Second important fact is that Toshiba does not Satellite M40X support for Vista operating system and I guess you won't be able to use this tool. In my opinion, it is not so important, because all the energy-saving settings you can find in Vista power options.

    For utility E - key, I don't see a solution. If you use OS not supported, you must live with it.

Maybe you are looking for