CF form/image graphics and https

Is there a way to get the graphics generated by cfinput datefield and cfimage to source from https instead of http? I'm trying to get rid of a mixed content warning on a secure form.
I'm on a hosted CF service, so I don't have access to the admin panel.
Thx in advance for your ideas.

cross post
http://forums.java.sun.com/thread.jsp?forum=4&thread=284543

Similar Messages

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • Is there a way for a form user to load graphics and text in same field?

    I am aware that you can load text into a text field and graphics into an image field.  However, I would like to load a document containing text and graphics (e.g., MS Word or RTF) into a single field on a PDF form.  Is there any way to do this?

    Paul,
    I believe that the example of attaching a file that you have provided will solve the problem.  I am using LiveCycle Designer, so using the code that is in your example should be no problem.  The end-user will use Adobe Reader, so as you mentioned, I will use Acrobat to extend the features so that the form can be used by Reader.
    Thanks so much for your help,
    Daniel
    From: pguerett <[email protected]>
    To: Daniel Beinart <[email protected]>
    Sent: Monday, April 25, 2011 3:03 PM
    Subject: Re: Is there a way for a form user to load graphics and text in same field?
    It is part of the PDF AcroForm side of things .....Are you using Reader or Acrobat to fill the form. If Reader then you will have to Reader Extend to make this work ....if Acrobat then you simply need to add some code. I have attached a sample that shows you how to do it if you want it.
    Paul

  • How to add an image/graphic to a form webpage?

    Dear All,
    When we execute our Oracle Forms application, it opens in a webpage with a white background. This looks too bland.
    Is there a way we can add an image/graphic to the webpage to improve its look and feel? Please suggest.
    Thanks,
    Amit

    Hello,
    You have two tags in the /forms/server/formsweb.cfg file to put images in the background:
    splashScreen=no
    background=noreplace the NO value by a .GIF or JPG existing file name on the server.
    You can also hide the blank page (when separate frame=yes) as soon as it dosplays with the following in your concerned section:
    HTMLbodyAttrs=onLoad='javascript:self.moveTo(2000,2000)'Francois

  • Graphics and Images in Pages Templates

    Does anyone know if and where to find the graphics and images used in the Pages templates? I have noticed several "backgrounds" and other .jpgs that I would like to use when creating a new document but instead of copying and pasting all the time it would be nice to just know where the files are located on the computer. Can anyone inform me if i'm just missing them completely or if this is an impossible task?

    It is different for different versions of Pages. Which version do you have?

  • Graphics and images look wrong in Safari 4.0.3

    Hello
    Since upgrading to Safari 4.0.3 graphics and images in websites look low quality. As if they are being rendered with 256 colours or they are heavily compressed. The strange thing is that about a week ago the problem disappeared and everything looked sharp and great, I ran the new version of Cocktail last night and now the problem is back! Could be a coincidence but either way I can't fix it.
    Any advice would be appreciated
    Andy

    Greetings,
    Caches cannot be emptied automatically, nor can Web Page Previews, which is used for the Top Sites and Cover Flow features in Safari. You can empty those folders, but Web Page Previews will simply be refreshed with new images as you browse.
    If you don't want to use the Top Sites or Cover Flow features in Safari 4.0.3, you can disable it completely, and then you could empty those folders (com.apple.Safari and Web Page Previews) and then Lock the folders so any cache files from browsing would be deleted when you quit Safari.

  • The best way to migrate image library and Lightroom settings form PC to Mac?

    I want to migrate my image library and Lightroom Catalogs and settings over to my new Mac Pro. My images are currently on a separate external drive, whilst my Lightroom Catalogs and settings are on my old PC.
    My intention is to situate my entire image library on it's own dedicated drive, which is one of the four separate drives on the Mac (in this instance, drive 4). I have also installed Lightroom 3 onto drive 1 (the same drive as the OS and all other applications, including CS5). I bought this as an upgrade to LR2, which is on my PC.
    My questions are:
    (a) How do I transfer my LR2 Catalogs and settings housed on my PC, over to LR3 on the Mac?
    (b) Once the library has been moved, what do I need to do to get Lightroom to find them?

    (a) How do I transfer my LR2 Catalogs and settings housed on my PC, over to LR3 on the Mac?
    Simply copy them. When you launch the LR2 catalog in LR3 you will be prompted to convert it to a version 3 catalog. This will create a duplicate. Once you are satisfied all is well you can delete the version 2 catalog.
    (b) Once the library has been moved, what do I need to do to get Lightroom to find them?
    Control click on the topmost folder and direct lightroom to the current location of the folder on the external drive. All images in subfolders should sync nicely.

  • Loss 3D graphics and can't connect to external display with NVIDIA card

    I note this morning that the graphics in 3D mode of iWork (version 4.1 with system 10.6.8) no longer appears in all software suite. The 2D graphics are displayed perfectly. I also notice I can't connect an external display when I am on NVIDIA card but work well with Intel card.
    The 3D graphics are printed but not displayed on the screen (it also appear inthe thumbnail). It seems to be a worry to display.
    I posted two screen images showing the problem of 3D in Pages.
    Link :
    http://www.flickr.com/photos/94407289@N00/6105793305/
    and
    http://www.flickr.com/photos/94407289@N00/6106332902/
    What's going on? and can someone help me because I have a report?

    Hello lolthisnameisnttaken,
    Based on your post it seems you're having an issue with an external display. The following article may help you find a solution:
    Apple computers: Troubleshooting issues with video on internal or external displays - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • Windows 7 64-bit: Switchable graphics and Ricoh card reader problem

    Hi guys,
    Two problems with my laptop. I'm using a T400, previously installed with Windows Vista Business 32-bit.
    Switchable graphics worked well until I formatted and installed Windows 7 Pro 64-bit (I got the RTM through MSDNAA). Now, Windows can only detect either the discrete graphics or integrated graphics at one time. When the BIOS was set to switchable graphics and enabling the detection of switchable graphics on Windows, it could only detect the Intel integrated graphics. When I try to switch to High Performance graphics through the Lenovo power manager, the screen flashes once, and the ATi graphics card appears on the device manager with the code 10 error (cannot start device). Also, compared to this image, my power manager window that opens with left-click does not have battery stretch and switchable graphics options. I have to right-click to switch my graphics.
    After some tinkering, I managed to activate the graphics card through the BIOS by switching it to discrete graphics only and disabling switchable graphics detection by Windows. Now the device manager shows the ATi card only, the Intel integrated graphics is gone. I understand that it should show both display adapters in the device driver when the ATi card is active: http://www-307.ibm.com/pc/support/site.wss/MIGR-70495.html#g4
    The second problem is with the Ricoh card reader. I managed to install the drivers properly, but the device shows up with a code 12 error (This device cannot find enough free resources that it can use) in the device manager. That error appears on 6 items in the device manager:
    Ricoh Memory Stick controller
    Ricoh SD/MMC Host controller
    Ricoh xD-Picture card controller
    Ricoh 1394 OHCI Compliant host controller
    Ricoh R/RL/5C476(II) or Compatible CardBus controller
    SDA Standard Compliant SD host controller
    Additionally, 6 error messages appear during every boot up, which I think is related to these 6 devices:
    ERROR
    Resource Conflict - PCI in slot 07
    Bus:15, Device:00, Function: 00 (it ranges from function 00  to 05)
    AND disabling the device through device manager results in a BSOD.
    I've seen some people post about the Ricoh problem, but didn't have any resolution (at least for those who had the boot up error message too). The switchable graphics problem seems quite common too but in my case it seems like it is working fine EXCEPT for the fact that only one graphics adapter can appear on the device manager at one time and I can't do switching at all. Anyone know if I can somehow solve this? Sorry for the wall of text and two-problems-in-one. I put them together because I don't know if one problem is affecting the other as both problems appeared at around the same time.

    As far as the graphics goes it's well accpeted the only way at present to switch is though the bios manually. There is currently no drivers that enable users to switch from within Win7. Know it's a pain but will just have to wait.

  • How do I find the image name and media_link for an ubuntu image in the Gallery?

    I am trying to create VM using Python API.  
    I have a custom Linux image:
    image_name = 'cloudN-Azure-20150205-os-2015-02-05'
    media_link = 'https://portalvhds10ssz63zgvb9g.blob.core.windows.net/vhds/cloudN-Azure-20150205-os-2015-02-05.vhd'
    When I used this image to create VM, it failed.
    I would like to use the ubuntu 1204 image in the Gallery.
    How do I specify the image_name and media_link in my Python code?  Basically, where and how do I find the image name and media_link for an image in the Azure image Gallery?
    Thanks in advance...

    hi sir,
    Did you try to use "List OS Image"? we can get the property form the results:
    result = sms.list_os_images()
    for image in result:
    print('Name: ' + image.name)
    print('Label: ' + image.label)
    print('OS: ' + image.os)
    print('Category: ' + image.category)
    print('Description: ' + image.description)
    print('Location: ' + image.location)
    print('Affinity group: ' + image.affinity_group)
    print('Media link: ' + image.media_link)
    print('')
    Please try it. Any questions or it doesn't work, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem in dreamweaver - image file and swf file.

    Hi friends.....nice to be here.
    Ahnm, lets start from the beginning! J I am new here and my english isnt so good, but i´ll try to explain what was happening with my webpage using Dreamweaver CS3 and a swf file…..Im sure that for most of you it’s a basic problem with a basic solution, but I didn’t find one…..and I´m new to CS3 too ! J
    I´m creating a simply webpage using 2 frames: Top frame and main frame, but my problem was in top frame.
    I created an image (like a banner) to fill this frame, not background, an image with name company, phone number etc…..My intention was to put some buttons (using flash) in this image……..but NOT in all image…, so I split the image in two….half jpeg file, half a swf file…….joining this images on dreamweaver later…..
    So, on dreamweaver works great……there everthing works perfect…..but on I.E, an BORDER appears, separating the two images
    Well…..better than words, here is the images:
    On dreamweaver
    http://img204.imageshack.us/img204/2867/tela1.jpg
    http://img543.imageshack.us/img543/2083/tela2.jpg
    On I.E. (my problem)
    http://img717.imageshack.us/img717/585/tela3u.jpg
    Guys, I´m sure that was an easy solution………. I hope someone can help me…
    Sorry for my english J
    Hugs
    Vinicius
     

    1) You don't need frames.  Why Frames are bad for you and your site visitors.
    http://apptools.com/rants/framesevil.php
    2) Don't use Flash for navigation.  Many people can't use Flash.  What will they do?
    3) Learn HTML and CSS code first.  This will make DW much easier to learn.
    Start here:
    HTML & CSS Tutorials - http://w3schools.com/
    Then work through this 3-part tutorial:
    Taking  a Fireworks (or Photoshop) comp to a CSS based layout in DW
    Part 1 --
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    Part 2 --
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt2.html
    Part 3 --
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt3.html
    For best results, post a URL to your web page.  You'll get faster replies and much better answers that way. 
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Slow execution, flickering graphics, and too many threads, oh my!

    i wrote a little game called Aim, Fire! just to screw around.
    its immense complexity involves shooting little targets that fly across the screen.
    you can see it at http://www.brianmaissy.com/applets/aimfire
    i made a class representing a target that paints itself and is its own thread.
    its kinda nifty in a OOP sort of way: all i have to do is instantiate a target; and it takes care of the rest, notifying the driver program of anything important (like it getting shot)
    the problem, however, is the speed changes significantly depending on how many targets are active, and the graphics are very flickery.
    i think the problem may be that having multiple threads is slow.
    i also tried buffering my graphics but it didnt work very well.
    however that may just be because i did it wrong.
    in fact i probably did a lot of things wrong - please notify me of anything you see that i did badly
    so tell me what you think about the design of the program, and any suggestions you have to restructure it. would i do better just to stick everything in one thread, or even all in one class?
    thanks very much!
    here is the code: (also found at http://www.brianmaissy.com/applets/aimfire/aimFire/AimFire.java and http://www.brianmaissy.com/applets/aimfire/aimFire/Target.java)
    package aimFire;
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Event;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Point;
    import java.util.ArrayList;
    import java.util.Random;
    public class AimFire extends Applet{
         public static final int SPEED_CONSTANT = 500;
         public static final int MIN_X = 0;
         public static final int MIN_Y = 21;
         public static final int MAX_X = 399;
         public static final int MAX_Y = 399;
         Image ammoImage;
         private Random rand;
         private static final int CLIP = 10;
         private static final int TOTAL_TARGETS = 20;
         private int toBeAdded;
         private ArrayList<Target> targets;
         private int targetsKilled;
         private int ammo;
         private int score;
         private boolean gameActive;
         public void init(){
              setSize(400, 400);
              setBackground(Color.black);
            setCursor(getToolkit().createCustomCursor(getImage(this.getClass().getResource("crosshair.gif")), new Point(16, 16), "crosshair"));
            ammoImage = getImage(this.getClass().getResource("ammo.gif"));
            rand = new Random();
            ammo = CLIP;
            score = 0;
            gameActive = true;
            targetsKilled = 0;
            toBeAdded = TOTAL_TARGETS;
            targets = new ArrayList<Target>();
            sendRandom();
            sendRandom();
         public boolean mouseDown(Event e, int x, int y){
              if(gameActive && ammo > 0){
                   ammo--;
                   for(int count = 0; count < targets.size(); count++){
                        score += targets.get(count).hit(x, y);
                   repaint();
              return true;
         public boolean keyDown(Event e, int key){
              if((char)key == ' ' && gameActive){
                   ammo = CLIP;
                   repaint();
              return true;
         private void sendRandom(){
            toBeAdded--;
              Target t = new Target(this, getGraphics(), rand);
              targets.add(t);
            new Thread(t).start();
            repaint();
         public void notifyOfDeath(Target t){
              targetsKilled++;
              targets.remove(t);
              if(toBeAdded > 0){
                   sendRandom();
              if(targets.size()==0){
                   gameActive = false;
              repaint();
         public void paint(Graphics g){
              g.setColor(Color.gray);
            g.drawLine(0, 20, 399, 20);
              for(int count = 0; count < ammo; count++){
                   g.drawImage(ammoImage, count*10 + 3, 3, this);
              if(ammo == 0){
                   g.drawString("press space to reload", 3, 13);
            g.drawString("Targets: " + targetsKilled + "/" + TOTAL_TARGETS, 230, 13);
            g.drawString("Score: " + score, 340, 13);
              if(!gameActive){
                   g.setColor(Color.gray);
                   g.drawString("Game Over", 170, 200);
                   g.drawString("Score: " + score, 170, 230);
    package aimFire;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.util.Random;
    public class Target implements Runnable{
         private AimFire a;
         private Graphics g;
         private int radius;
         private int xLocation;
         private int yLocation;
         private int xDirection;
         private int yDirection;
         private int xSpeed;
         private int ySpeed;
         public Target(AimFire driver, Graphics graphics, Random rand){
              this(driver, graphics, 3*(rand.nextInt(9)+ 2), rand.nextInt(1 + AimFire.MAX_X - 60) + 30 + AimFire.MIN_X, rand.nextInt(1 + AimFire.MAX_Y - 60 - AimFire.MIN_Y) + 30 + AimFire.MIN_Y, rand.nextInt(3)-1, rand.nextInt(3)-1, rand.nextInt(5)+1, rand.nextInt(5)+1);
              if(xDirection == 0 && yDirection == 0){
                   if(rand.nextInt(2)==0){
                        if(rand.nextInt(2)==0){
                             xDirection = 1;
                        }else{
                             xDirection = -1;
                   }else{
                        if(rand.nextInt(2)==0){
                             yDirection = 1;
                        }else{
                             yDirection = -1;
         public Target(AimFire driver, Graphics graphics, int r, int x, int y, int xDir, int yDir, int xSp, int ySp){
              a = driver;
              g = graphics;
              radius = r;
              xLocation = x;
              yLocation = y;
              xDirection = xDir;
              yDirection = yDir;
              xSpeed = xSp;
              ySpeed = ySp;
         public void run() {
              if(g!=null){
                   paint();
                   int count = 1;
                   while(xLocation >= AimFire.MIN_X && xLocation <= AimFire.MAX_X && yLocation >= AimFire.MIN_Y && yLocation <= AimFire.MAX_Y){
                        unpaint();
                        if(count % (AimFire.SPEED_CONSTANT/xSpeed) == 0){
                             xLocation += xDirection;
                        if(count % (AimFire.SPEED_CONSTANT/ySpeed) == 0){
                             yLocation += yDirection;
                        paint();
                        count++;
                   unpaint();
                   a.notifyOfDeath(this);
         public int hit(int x, int y){
              if(Math.abs(x - xLocation) < radius/3 && Math.abs(y - yLocation) < radius/3){
                   xLocation = -99;
                   return 3;
              }else if(Math.abs(x - xLocation) < 2*radius/3 && Math.abs(y - yLocation) < 2*radius/3){
                   xLocation = -99;
                   return 2;
              }else if(Math.abs(x - xLocation) < radius && Math.abs(y - yLocation) < radius){
                   xLocation = -99;
                   return 1;
              }else{
                   return 0;
         private void paint(){
              g.setColor(Color.red);
              g.fillOval(xLocation-radius, yLocation-radius, 2*radius, 2*radius);
              g.setColor(Color.white);
              g.fillOval(xLocation-2*radius/3, yLocation-2*radius/3, 4*radius/3, 4*radius/3);
              g.setColor(Color.red);
              g.fillOval(xLocation-radius/3, yLocation-radius/3, 2*radius/3, 2*radius/3);
         private void unpaint(){
              g.setColor(Color.black);
              g.fillOval(xLocation-radius, yLocation-radius, 2*radius, 2*radius);
    }

    i wrote a little game called Aim, Fire! just to screw around.
    its immense complexity involves shooting little targets that fly across the screen.
    you can see it at http://www.brianmaissy.com/applets/aimfire
    i made a class representing a target that paints itself and is its own thread.
    its kinda nifty in a OOP sort of way: all i have to do is instantiate a target; and it takes care of the rest, notifying the driver program of anything important (like it getting shot)
    the problem, however, is the speed changes significantly depending on how many targets are active, and the graphics are very flickery.
    i think the problem may be that having multiple threads is slow.
    i also tried buffering my graphics but it didnt work very well.
    however that may just be because i did it wrong.
    in fact i probably did a lot of things wrong - please notify me of anything you see that i did badly
    so tell me what you think about the design of the program, and any suggestions you have to restructure it. would i do better just to stick everything in one thread, or even all in one class?
    thanks very much!
    here is the code: (also found at http://www.brianmaissy.com/applets/aimfire/aimFire/AimFire.java and http://www.brianmaissy.com/applets/aimfire/aimFire/Target.java)
    package aimFire;
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Event;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Point;
    import java.util.ArrayList;
    import java.util.Random;
    public class AimFire extends Applet{
         public static final int SPEED_CONSTANT = 500;
         public static final int MIN_X = 0;
         public static final int MIN_Y = 21;
         public static final int MAX_X = 399;
         public static final int MAX_Y = 399;
         Image ammoImage;
         private Random rand;
         private static final int CLIP = 10;
         private static final int TOTAL_TARGETS = 20;
         private int toBeAdded;
         private ArrayList<Target> targets;
         private int targetsKilled;
         private int ammo;
         private int score;
         private boolean gameActive;
         public void init(){
              setSize(400, 400);
              setBackground(Color.black);
            setCursor(getToolkit().createCustomCursor(getImage(this.getClass().getResource("crosshair.gif")), new Point(16, 16), "crosshair"));
            ammoImage = getImage(this.getClass().getResource("ammo.gif"));
            rand = new Random();
            ammo = CLIP;
            score = 0;
            gameActive = true;
            targetsKilled = 0;
            toBeAdded = TOTAL_TARGETS;
            targets = new ArrayList<Target>();
            sendRandom();
            sendRandom();
         public boolean mouseDown(Event e, int x, int y){
              if(gameActive && ammo > 0){
                   ammo--;
                   for(int count = 0; count < targets.size(); count++){
                        score += targets.get(count).hit(x, y);
                   repaint();
              return true;
         public boolean keyDown(Event e, int key){
              if((char)key == ' ' && gameActive){
                   ammo = CLIP;
                   repaint();
              return true;
         private void sendRandom(){
            toBeAdded--;
              Target t = new Target(this, getGraphics(), rand);
              targets.add(t);
            new Thread(t).start();
            repaint();
         public void notifyOfDeath(Target t){
              targetsKilled++;
              targets.remove(t);
              if(toBeAdded > 0){
                   sendRandom();
              if(targets.size()==0){
                   gameActive = false;
              repaint();
         public void paint(Graphics g){
              g.setColor(Color.gray);
            g.drawLine(0, 20, 399, 20);
              for(int count = 0; count < ammo; count++){
                   g.drawImage(ammoImage, count*10 + 3, 3, this);
              if(ammo == 0){
                   g.drawString("press space to reload", 3, 13);
            g.drawString("Targets: " + targetsKilled + "/" + TOTAL_TARGETS, 230, 13);
            g.drawString("Score: " + score, 340, 13);
              if(!gameActive){
                   g.setColor(Color.gray);
                   g.drawString("Game Over", 170, 200);
                   g.drawString("Score: " + score, 170, 230);
    package aimFire;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.util.Random;
    public class Target implements Runnable{
         private AimFire a;
         private Graphics g;
         private int radius;
         private int xLocation;
         private int yLocation;
         private int xDirection;
         private int yDirection;
         private int xSpeed;
         private int ySpeed;
         public Target(AimFire driver, Graphics graphics, Random rand){
              this(driver, graphics, 3*(rand.nextInt(9)+ 2), rand.nextInt(1 + AimFire.MAX_X - 60) + 30 + AimFire.MIN_X, rand.nextInt(1 + AimFire.MAX_Y - 60 - AimFire.MIN_Y) + 30 + AimFire.MIN_Y, rand.nextInt(3)-1, rand.nextInt(3)-1, rand.nextInt(5)+1, rand.nextInt(5)+1);
              if(xDirection == 0 && yDirection == 0){
                   if(rand.nextInt(2)==0){
                        if(rand.nextInt(2)==0){
                             xDirection = 1;
                        }else{
                             xDirection = -1;
                   }else{
                        if(rand.nextInt(2)==0){
                             yDirection = 1;
                        }else{
                             yDirection = -1;
         public Target(AimFire driver, Graphics graphics, int r, int x, int y, int xDir, int yDir, int xSp, int ySp){
              a = driver;
              g = graphics;
              radius = r;
              xLocation = x;
              yLocation = y;
              xDirection = xDir;
              yDirection = yDir;
              xSpeed = xSp;
              ySpeed = ySp;
         public void run() {
              if(g!=null){
                   paint();
                   int count = 1;
                   while(xLocation >= AimFire.MIN_X && xLocation <= AimFire.MAX_X && yLocation >= AimFire.MIN_Y && yLocation <= AimFire.MAX_Y){
                        unpaint();
                        if(count % (AimFire.SPEED_CONSTANT/xSpeed) == 0){
                             xLocation += xDirection;
                        if(count % (AimFire.SPEED_CONSTANT/ySpeed) == 0){
                             yLocation += yDirection;
                        paint();
                        count++;
                   unpaint();
                   a.notifyOfDeath(this);
         public int hit(int x, int y){
              if(Math.abs(x - xLocation) < radius/3 && Math.abs(y - yLocation) < radius/3){
                   xLocation = -99;
                   return 3;
              }else if(Math.abs(x - xLocation) < 2*radius/3 && Math.abs(y - yLocation) < 2*radius/3){
                   xLocation = -99;
                   return 2;
              }else if(Math.abs(x - xLocation) < radius && Math.abs(y - yLocation) < radius){
                   xLocation = -99;
                   return 1;
              }else{
                   return 0;
         private void paint(){
              g.setColor(Color.red);
              g.fillOval(xLocation-radius, yLocation-radius, 2*radius, 2*radius);
              g.setColor(Color.white);
              g.fillOval(xLocation-2*radius/3, yLocation-2*radius/3, 4*radius/3, 4*radius/3);
              g.setColor(Color.red);
              g.fillOval(xLocation-radius/3, yLocation-radius/3, 2*radius/3, 2*radius/3);
         private void unpaint(){
              g.setColor(Color.black);
              g.fillOval(xLocation-radius, yLocation-radius, 2*radius, 2*radius);
    }

  • Adobe form image display

    How to upload an image on Adobe form and add some condition for image display?

    hello,
    you need to use Image field, not only and image to display the picture chosen in backend. For a simple image you need only image field. Check there is a checkbox "embed image data" and set it to true.
    You  need to pass the picture as a XSTRING from backend if I remember it well. Please check How to integrate Adobe form
    on WD ABAP. Link: http://www.docstoc.com/docs/2540673/How-To-Integrate-ADOBE-form-on-WebdynPro-for-ABAP-and-Deploy-it-
    this will show you the fast working example of working with pictures in adobe forms. Regards Otto

  • Image swap and restore

    The image swap and restore won't work. I want to have one
    image switch to another when clicked and then get restored to the
    original image when clicked again. It lets me click once, but it
    won't restore the image on another click. I found that when i
    change the behavior (to say, double click) it works. Is there any
    way to have the two images toggle back and forth when i have a
    single click?
    Here is my code:
    <script type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a
    .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers
    .document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    </head>
    <body>
    <table width="287" height="1200" align="left">
    <tr>
    <td width="279" height="1200" align="left"
    valign="top">
    <p><img src="SearchingClose.jpg" alt="Searching"
    name="SearchingClose"
    onclick="MM_swapImgRestore();MM_swapImage('SearchingClose','','SearchingOpen.jpg',1)"
    /></p>

    On Thu, 3 Aug 2006 12:25:09 +0000 (UTC), "nst_21710"
    <[email protected]> wrote:
    >please help!!!
    With what ? - very many of use use newsreaders to access this
    forum,
    so cannot easily see what the original questions was - so
    many people
    will just go to the next message.
    I suggest you repeat the text of your original question -
    together
    with a link to your website.
    Malcolm
    Malcolm
    webmaster
    http://www.nb-president.org.uk/
    The coal fired steam narrow boat.
    Kildare is now back in the water

  • Restoring bitmap (image) dimensions and PPI

    Here's something I haven't found a quick solution to after several years of use.
    The scenario is the following:
    1. You receive a document that has the images embedded and no access to original links.
    2. The images are scaled and proportions have changed. For example, PPI: 85.372 x 71.954 and Image Scale (H, V): 84.337%, 100.065%.
    Is there a quick way to change image scale to 100%, 100% or PPI to 72 x 72??
    I always have to do this by calculating the percentage the image has to be restored by horizontally and vertically to get the original ratio.
    Cheers.

    Mario Arizmendi wrote:
    Ok, Suppsosing you are on a Mac, see bellow the code, copy and paste exactly as it is in whatever TexEditor, and save it naming it UnScale.js (remove manually whatever other extension like .txt or .rtf..ect).
    Then place that file into your script directory and access it form the Illustrator CS3 application File/Scripts/OtherScripts... you must selec first the photo before aplly the script.
    so here is the code
    //    UnScale.js
    //    http://www.pictrix.jp/   Umezawa
    if ( documents.length > 0 ){
        SelObj = activeDocument.selection;
        for ( i = 0; i < SelObj.length; i++ ){
            gp( SelObj[ i ] );
    function gp( xObj )
        if( xObj.typename == "GroupItem" ){
            var gnObj = xObj.groupItems;
            if ( gnObj.length > 0 ){
                for ( var g = 0; g < gnObj.length; g++ ) gp( gnObj[ g ] );
            gObj = xObj.placedItems;
            for ( j = 0; j < gObj.length; j++ ){
                type = check( gObj[ j ] );
                if ( type != 0 ) reset( gObj[ j ], type );           
            gObj = xObj.rasterItems;
            for ( j = 0; j < gObj.length; j++ ){
                type = check( gObj[ j ] );
                if ( type != 0 ) reset( gObj[ j ], type );           
        else{
            type = check( xObj );
            if ( type != 0 ) reset( xObj, type );
    function check( pi )
        type = 0;
        if ( pi.typename == "PlacedItem" ){
            if ( pi.file.name.indexOf('.eps') != -1 ) {
                type = 1;
            else type = 2;
        if ( pi.typename == "RasterItem" ) type = 3;
        return ( type );
    function reset( pi,  type )
        pos = pi.position;
        mx = pi.matrix;
        mx.mValueA =  ( type == 2 )? -1.0 : 1.0;
        mx.mValueB = 0.0;
        mx.mValueC = 0.0;
        mx.mValueD = 1.0;
        pi.matrix = mx;
        pi.left    = pos[ 0 ];
        pi.top    = pos[ 1 ];
        if ( type == 2 ) pi.rotate( 180.0 );
    Thanks!

Maybe you are looking for

  • Warranty void due to upgrade from WIndow 7 Home Prem to Window 7 Pro

    Did somebody every heard of such a thing??? or had it been done to them? I just called about a Hard Drive going out and the tech state that i voided my warranty by ugrading to Windows 7  Professions from Windows 7 Home Premien that came as a surprise

  • How do I turn on the Web cam on my HP Pavilion DV4T-1400 CTO Entertainment PC?

     »HP Pavilion dv4t-1400 CTO Entertainment Notebook PC  Serial Number:  (Personal information removed by Moderator) Product Number:   NS270AV  Please help me! thanks

  • Lost ability to right click multiple files and choose 'open with'

    In XP I can select a bunch of mp3 files, for example, right click and choose 'open with...' whatever application I want. In windows 7 I only get 'open with' in the context menu on single files. How do I enable 'open with' for a selection of files? Pl

  • Report 9i like PDF  instead of CSV

    Hi, i'm launching my report (on ORACLE 9iAS) on the web and even if i had set up in the form DESFORMAT = DELIMITED and even if i had set up in the report DEFORMAT = DELIMITED when i call my report from the web i obtain a PDF file.... but when i try t

  • Encore turning my 16:9 into 4:3

    Encore is creating a 4:3 Monitor window, Preview, and DVD from my 16:9 Premiere sequence so that there ends up being black borders on the sides.  I'm using CS6.  Any solutions?