Disappearing Images
I am sitting here editing through a project. I have done a once-over and marked my general selects with one star and rejects with an X. I have created a Smart Album set as "rating is greater than or equal to 1 star". That seems to work fine. However, when I go back to view all of my images, many of those marked with one star do not appear. What's the deal? I have tried quitting and restarting the app and no luck. Obviously the images are still there because they show up in my Smart Album.
The Query HUD is set to "Showing All" so that is not the problem. I have already discovered and corrected a problem with this. It seems the default for the Query HUD is "rating is greater than or equal to unrated" ("Unrated or Better"). This causes images marked with an X to disappear, which has caused other problems. I have not found a way to change this default and it seems to be set to this for each project.
Along these lines, I have another question. Why does the Query HUD default to "Unrated or Better" each time a new Smart Album is created? This happens even if the settings in the Smart Album is "Rating is X" (for those times when I want to find my rejects), which results in these two settings cancelling each other out and showing no images. This doesn't seem to make much sense. It seems like the default for the Query HUD should be "Showing All" when a Smart Album is created.
"It makes no difference if the stacks are open or closed. However, in order to show up, the rated/rejected images HAVE to be at the TOP of the stack ie. the first image on the left of the stack. All others do not show up. Just check this."
This is not true. If this was true, only one image per stack would show up no matter what.
I think what you might be referring to is the option, when creating a Smart Album, of checking the box that says "Ignore stack groupings". I have done this in my Smart Albums and it seems to work. However, my problem is not with the Smart Albums, it is when I just want to view the entire contents of my project. The way to filter the entire project is done with the Query HUD. I have the Query HUD set to "Showing All". In other words, there are no settings selected. The Query HUD does not even have this optional check box to "Ignore stack groupings" (which has been suggested is needed in other threads in this forum). However, it is irrelevant here since I have no settings selected in the Query HUD and I am just trying to view all of my images.
Similar Messages
-
Flash MX2004 - Disappearing Images
I am having a problem with images disappearing from the
library (and therefore from the stage/movie). Hopefully someone can
help me.
Here's what is happening: I imported several (~20) jpgs to
the library (bitmap properties: allow smoothing, jpeg compression,
use imported jpeg data) - then convert to symbol (graphic). I use
the symbol (graphic) in the movie, not the bitmap. Everything seems
to work ok and I save and close my file (.fla). Then, when I open
the file again, images randomly disappear from the library (both
the bitmap and the symbol). The places in the movie where I had
instances of the image, are now blank with the circle in the middle
of where the image was and the crosshair in the upper left of where
the image was supposed.
My naming convention - All bitmaps begin with bmp_. All
graphics begin with gfx_. There are no spaces in the image name...
I use the underscore _ when I need to separate words in the image
name.
I've used motion tweening on all of the graphics - the ones
that disappeared and also on the ones that are still there.
I've checked the properties of the disappeared images - and
the alpha is not changed to 0... I did not lock the W/H/X/Y.
The images that disappeared are not all on the same scene.
I don't know what is causing this... and I'm about to pull my
hair out trying to figure it out!! Any ideas?
Thanks for helping.bai1ey;
Never seen such a thing, butcheck to be certain that the
images are
"flash import compatable" (non-progressive, rgb--simple flat
jpegs).
Alternatively you might try importing pngs and do the jpeg
compression in
flash. -Tom Unger -
I had the same problem with images disappearing when they
were scrolled, etc. but solved it with the help of the post
describing this method:
quote:
<mx:source>
<display:Bitmap
bitmapData="{xxxx.source.bitmapData}"/>
</mx:source>
(Thanks!!)
But now the problem is that the image doesn't seem to behave
well with layouts - it doesn't scale or participate in general
(i.e. in a VBox the next item down would register at the top as
thought the image wasn't there, or was very small). Has anyone come
across this and found a solution? Maybe a different solution
entirely to the disappearing image problem?
Here's the necessary bit of my code (the images I'm loading
are generally bigger than the canvas, I want them to scale down to
fit the fluid layout):
quote:
<mx:Canvas id="uiImgCanvas" width="100%" height="100%">
<mx:Image id="uiImageDisplay" scaleContent="true"
height="{uiImgCanvas.height}" width="{uiImgCanvas.width}">
<mx:filters>
<mx:DropShadowFilter alpha=".5" blurX="15" blurY="15"
distance="10.0"/>
</mx:filters>
<mx:source>
<display:Bitmap
bitmapData="{uiDotStrip.curSelection.imgFullsize.source.bitmapData}"/>
</mx:source>
</mx:Image>
</mx:Canvas>
Thanks for the help."EricGM" <[email protected]> wrote in
message
news:gonfol$23o$[email protected]..
>I had the same problem with images disappearing when they
were scrolled,
>etc.
> but solved it with the help of the post describing this
method:
>
quote:
<mx:source>
> <display:Bitmap
bitmapData="{xxxx.source.bitmapData}"/>
> </mx:source>
(Thanks!!)
>
> But now the problem is that the image doesn't seem to
behave well with
> layouts
> - it doesn't scale or participate in general (i.e. in a
VBox the next item
> down
> would register at the top as thought the image wasn't
there, or was very
> small). Has anyone come across this and found a
solution? Maybe a
> different
> solution entirely to the disappearing image problem?
>
> Here's the necessary bit of my code (the images I'm
loading are generally
> bigger than the canvas, I want them to scale down to fit
the fluid
> layout):
>
quote:
<mx:Canvas id="uiImgCanvas" width="100%" height="100%">
> <mx:Image id="uiImageDisplay" scaleContent="true"
> height="{uiImgCanvas.height}"
width="{uiImgCanvas.width}">
> <mx:filters>
> <mx:DropShadowFilter alpha=".5" blurX="15" blurY="15"
distance="10.0"/>
> </mx:filters>
> <mx:source>
> <display:Bitmap
>
bitmapData="{uiDotStrip.curSelection.imgFullsize.source.bitmapData}"/>
> </mx:source>
> </mx:Image>
> </mx:Canvas>
>
Try wrapping it in UIComponent. -
Trouble with disappearing image in table --
This is totally weird and I can't figure out why it's
happening.
I'm new to DW8, although I have used a much older version of
DW a lot.
No matter how I create the header for
http://www.amafca.org/convertedindex.htm,
the very top banner image is getting stripped when I put the page
online for testing.
Currently, I'm using a table, where the img src is correctly
listed as table data for that cell. Test perfectly locally. Then I
use ACE FTP 3 to upload the page to the website for testing. All
the graphics are where they are supposed to be. BUT...the top
portion of the banner isn't showing up! Looking at the source code,
the "img src" link for that cell is totally empty -- the code has
been stripped from the page!!!!!
How is that possible? Is ACE FTP doing it? How and why? (I've
never even heard of an ftp program stripping out code!!!)
I suppose I need to just go ahead and wade through getting
the DW ftp set up so I can use it for this test page, and see if
the info is still being stripped. But has anyone heard of this sort
of thing happening before?
Thanks
Pam at amafcaThe only way the code could disappear is if your antivirus
strips it out.
When I browse to your link, I think I see all of the images.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"patinven" <[email protected]> wrote in
message
news:ecct1l$3dt$[email protected]..
>I have the same problem over here. Images in a table will
not display
>anymore
> from my PC. On other PC's (tested 1) the images display
correctly. When I
> look
> at the source code (from within IE) of the uploaded file
>
http://www.copacabanapromotie.com/nl_lin.htm
) the <img src> definitions
> have
> all disappeared. The file displays OK in local view, and
the <img src>
> definitions are there.
> However in my case the image files do not have "strange"
names, I do not
> run
> Norton, and turning off my virus checker and/or firewall
does not help
> either.
> Any ideas?
> -
Randomly appearing/disappearing images
I have two images on a page that will randomly appear and
disappear when the page is refreshed. Sometimes both appear at the
same time, but with subsequent refreshing of the page one of them
will disappear, then it might reappear while the other one
disappears, then both will come back, etc. As far as I can tell it
truly is random.
I've gone over the code very methodically looking for any
anomalies, and there's nothing obvious to me. It occurs in both IE
and FF. This is the first web page I've built using Dreamweaver's
layout mode to create tables, so that may or may not be a factor.
But it's time to ask for help, because I really am stumped at this
point.
I would be more grateful than I can express for any tips
anyone can offer. You can view the code here:
http://stressfreewebsites.com/temp2/ex-a/temp2-a.html
The two rogue images are the header bars in the main text.
I have to laugh myself at the irony of the website's theme:
building 'stress-free' websites for small businesses. Stress-free
for the end user perhaps, but only because all the stress is on my
end, lol.> This is the first
> web page I've built using Dreamweaver's layout mode to
create tables
We are all hoping it's the last, too.
In my opinion, there are three serious problems with Layout
Mode -
1. Perhaps most importantly, it sits between you and *real*
HTML tables,
and fools you into believing that concepts like "layout cell"
and
"autostretch" really mean something. They do not. As long as
you use
Layout Mode, you'll never learn one of the most important
things for new web
developers - how to build solid and reliable tables.
2. Actually, #1 wouldn't be *so* bad, except that the code
that is written
by Layout Mode is really poor code. For example, a layout
table contains
MANY empty rows of cells. This can contribute to a table's
instability.
In addition, if your initial positioning of the table's cells
is a bit
complex,
Layout Mode will throw in col- and rowspans aplenty as it
merges and splits
cells willy-nillly to achieve the pixel-perfect layout you
have specified.
Again,
this is an extremely poor method for building stable tables,
because it
allows
changes in one tiny cell's shape (i.e, dimensions) to ripple
through the
rest
of the table, usually with unexpected and sometimes
disastrous consequences.
This is one of the primary reasons for the final result's
fragility - read
this -
http://apptools.com/rants/spans.php
3. The UI for Layout Mode is beyond confusing - many options
that you might
want to use are inaccessible, e.g., inserting another table,
or layer onto
the page.
I can understand the new user's desire to use this tool to
make their life
easier,
but the cost is just too heavy in my opinion.
To make good tables, keep it simple. Put a table on the page,
and begin to
load your content. If you would want a different table
layout, instead of
merging or splitting cells, consider stacking tables or
nesting simple
tables instead, respectively.
And above all, do not try to build the whole page with a
single table!
Luckily, Adobe understands the problems created for the
unsuspecting user
who falls into this trap, and has elected to remove this
feature altogether
from the next version of DW. The time is right for you to
begin working
with tables properly!
To read more about this approach, visit the DW FAQ link in my
sig, and run
through the table tutorials.
I was not able to duplicate your image behavior after many
refreshes in both
IE7 and FF2x.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"deejazz" <[email protected]> wrote in
message
news:[email protected]...
>I have two images on a page that will randomly appear and
disappear when
>the
> page is refreshed. Sometimes both appear at the same
time, but with
> subsequent
> refreshing of the page one of them will disappear, then
it might reappear
> while
> the other one disappears, then both will come back, etc.
As far as I can
> tell
> it truly is random.
>
> I've gone over the code very methodically looking for
any anomalies, and
> there's nothing obvious to me. It occurs in both IE and
FF. This is the
> first
> web page I've built using Dreamweaver's layout mode to
create tables, so
> that
> may or may not be a factor. But it's time to ask for
help, because I
> really am
> stumped at this point.
>
> I would be more grateful than I can express for any tips
anyone can offer.
> You
> can view the code here:
>
http://stressfreewebsites.com/temp2/ex-a/temp2-a.html
> The two rogue images are the header bars in the main
text.
>
> I have to laugh myself at the irony of the website's
theme: building
> 'stress-free' websites for small businesses. Stress-free
for the end user
> perhaps, but only because all the stress is on my end,
lol.
>
> -
*Light Table & Disappearing Images*
I created a light table, moved images in, cropped them, arranged them and printed. Everything worked as advertised except one of the images was rather stubborn about the correct crop size, had to reset a few times.
Came back the next day and all the images have the yellow triangle. A search for the images results in them not being found. They have disappeared from my drive.
I have been using Aperture since V1.1 and am continually managing referenced files.You use the 'Aperture menu > Aperture Feedback' item to load the page.
You then select the type of feedback (in this case a 'Bug Report') from one of the drop-downs and type in your issue (I usually link to a thread when possible).
There are a number of technical drop-down lists for machine, OS, version, etc. and then submit.
Although I don't work for Apple, I know that typically; the reports are viewed by the software team and prioritized by quantity of received reports for the same and they usually try to reproduce the issue.
If they can reproduce the issue easily and consistently, it should go on the list for fixes in the next update (if possible).
Note - I agree that this may be isolated to just us, but I do not run anything modified (pretty much vanilla settings with all software) so I reported it to at least get it looked at. -
Disappearing images when inserting header/footer
Can anyone tell me why this is happening? I can't see any differences or simularities in the images that explain such behavior.
These are documents created in Word and then saved as Adobe PDF.I've tried. It seems like the excact same job (similar icon). The content in header/footer is converted, but the images are still disappearing both by inserting pagenumber and updating.
I've tried using both "adding to existing" and "replacing existing". Either way the images disappear.
I've also tried changing the placement-preferences of the image in word, and saved as PDF again, but still the same error occurs.
-Merete -
Disappearing images due to URL slash - CS3
Does anybody know why this happens?
When I type in the URL: http://www.aspirationsresume.com/Samples/Admin/AdminProfessional.html all the images are there.
When a slash appears at the end of the URL, such as http://www.aspirationsresume.com/Samples/Admin/AdminProfessional.html/ the images disappear.
And ever since I started developing web pages in Dreamwearver CS3, Google randomly indexes URLs with or without the end slash. All my other pages developed by Homestead Sitebuilder are naturally indexed by Google without the end slashes.
Any help anyone could give would be GREATLY appreciated.Here's a link to one of your images -
<img alt="" src="../../Images/DreamsMatter/00_eval.gif
That link delivers to the browser the following message:
* from the current location, go up two folders, look for a folder called "Images", in it find a folder called "DreamsMatter" and in it find the image. Now, when your url has the slash at the end, the browser thinks that it's at this folder location -
http://www.aspirationsresume.com/Samples/Admin/AdminProfessional.html/
and going up two folders would take it to this location -
http://www.aspirationsresume.com/Samples/
where it's going to look for the folder called "Images". But that's wrong, because that folder is actually one level higher. The desired image is here -
http://www.aspirationsresume.com/Images/DreamsMatter/00_eval.gif
That's why your images disappear. The slash at the end messes up the browser's ability to correctly locate the images with a document relative link. Now, if that link were a ROOT relative link, or an absolute link then it wouldn't matter. So if the image tag shown above looked like this -
<img alt="" src="/Images/DreamsMatter/00_eval.gif
then it wouldn't matter if the slash were added to the end of the url link or not, the proper image would be found by the browser. The real question is - how did the slash get at the end of the url anyhow? As Al points out, it's syntactically (and logically) inappropriate for it to be there. -
Disappearing Images within Dreamweaver
I had this problem with MX 2004 and I thought Dreamweaver 8
would fix it but apparently not. After working in Dreamweaver for a
little while all the images within the program disappear. This
includes the icons in the insert window and all other icons within
the program. The images that are displayed in design view while I
am working also disappear. The only way to get the images back is
to restart dreamweaver. Sometimes I have to quit Dreamweaver and
restart as much as every 5 minutes. I don't think it's a memory
issue because I have a dual processor G5 with 2 GB of ram.
Any ideas?Oh, I forgot to mention--I have installed all the updates for
Dreamweaver 8.. -
Image preview has disappeared from Finder and the Open dialog boxes in my apps. Show Icon preview is checked in the View Options menu. I've re-installed the system (10.3.5) but no change to the situation.
You're Welcome floydtw!
I'm happy that I could be helpful, and solve your issue!
Also, I notice that you have marked your question as answered, but have not utilized the Helpful or Solved options. That may be intentional, but, if you are not aware of the benefits, of using that function, here is some information.
When you mark the appropriate posts as Helpful (5 pts) 2 available, or Solved (10 pts) 1 available, you are Thanking the contributors, by awarding them points.
In threads with multiple replies, it also alerts other readers, to which answers may have been helpful, or solved the issue.
This info, and more, can be viewed by clicking on
? Help & Terms of Use, located under your login name, on all "Discussions" pages.
Specifically What are question answers?.
EDIT: I see you have now applied a Solved. Thank You Very Much!
ali b -
Photoshop Elements Organizer disappearing image puzzle
In Organizer, created a couple of folders and added some images to them, one with 3 images and one that started off with seven (but is now down to six, for which see below).
Being new to Elements, I tested Auto Smart Fix, Auto Color and Auto Levels with one of the images, with the result that that image has now disapperaed from its folder, but worse still, I am unable to get it back via File | "Get Photos and Videos" | "From Files and Folder" being told, "Nothing was imported. The file(s) or folder(s) selected to import did not contain any supported file types, or the files are already in this catalogue."
The assertion that the image is not a supported file tile is proven to be wrong, when I change the name of the image by just one letter and am then able to import the image. Now this does not really help, as I can't obviously have images disappear.
My question now is, where did the first image go to, and why am I being told that it is already in this catalogue? Many thanks in advance.Once you import more images to Organizer only the most recently imported files are shown on the Photo Well. Click on the Show All button to see all the files in the catalog.
Also, when you delete any files from the catalog please ensure that the option for "Also delete selected item(s) from the hard disk" is unchecked otherwise your images will be deleted from your hard disk as well -
Disappearing Images on JButtons using JDK 1.4.0
Here is the Java Swing Button example from java.sun.com:
import java.awt.*;
import java.awt.event.*;
import javax.swing.AbstractButton;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.ImageIcon;
public class ButtonDemo extends JPanel
implements ActionListener {
protected JButton b1, b2, b3;
public ButtonDemo() {
ImageIcon leftButtonIcon = new ImageIcon("images/right.gif");
ImageIcon middleButtonIcon = new ImageIcon("images/middle.gif");
ImageIcon rightButtonIcon = new ImageIcon("images/left.gif");
b1 = new JButton("Disable middle button", leftButtonIcon);
b1.setVerticalTextPosition(AbstractButton.CENTER);
b1.setHorizontalTextPosition(AbstractButton.LEFT);
b1.setMnemonic(KeyEvent.VK_D);
b1.setActionCommand("disable");
b2 = new JButton("Middle button", middleButtonIcon);
b2.setVerticalTextPosition(AbstractButton.BOTTOM);
b2.setHorizontalTextPosition(AbstractButton.CENTER);
b2.setMnemonic(KeyEvent.VK_M);
b3 = new JButton("Enable middle button", rightButtonIcon);
//Use the default text position of CENTER, RIGHT.
b3.setMnemonic(KeyEvent.VK_E);
b3.setActionCommand("enable");
b3.setEnabled(false);
//Listen for actions on buttons 1 and 3.
b1.addActionListener(this);
b3.addActionListener(this);
b1.setToolTipText("Click this button to disable the middle button.");
b2.setToolTipText("This middle button does nothing when you click it.");
b3.setToolTipText("Click this button to enable the middle button.");
//Add Components to this container, using the default FlowLayout.
add(b1);
add(b2);
add(b3);
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals("disable")) {
b2.setEnabled(false);
b1.setEnabled(false);
b3.setEnabled(true);
} else {
b2.setEnabled(true);
b1.setEnabled(true);
b3.setEnabled(false);
public static void main(String[] args) {
JFrame frame = new JFrame("ButtonDemo");
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
frame.getContentPane().add(new ButtonDemo(), BorderLayout.CENTER);
frame.pack();
frame.setVisible(true);
Do the following:
1. Compile and run this example using JDK 1.4.0.
2. While the frame is up hit the Control + Alt + Delete key sequence.
3. Now hit the Escape Key.
4. You will notice that atleast one of the buttons on the Java Swing Example will not have the image painted.
Now if you force a repaint then the image(s) gets painted correctly.
Any ideas?i've got exactely the same problem in a gui application running on windows nt 4, service pack 6. the problem of the disappearing icons occurs also after returning from the screen lock.
if you got a solution in the mean time please let me know, thanks a lot
matthiaszimmermann at yahoo.com -
Unfortunatly, I have a large problem I am baffled with. I'm trying to create a Galaxian clone, and am having problem with the animation. I need the little ships to move left & right, and when they reach the screen bounds (0.0, or screenSize.width()), to move down one and move the opposite direction.
The problem is that after about 5 slow cycles, the images disappear. Completely! I don't know what in the world the problem, but any help at all would be more than appreciated.
Also, suggestions on how to speed things up would help too.
public void update(Graphics g) {
Graphics2D offgc;
Image offscreen = null;
Dimension d = getSize();
// create the offscreen buffer and associated Graphics
offscreen = createImage(d.width, d.height);
offgc = (Graphics2D) offscreen.getGraphics();
// clear the exposed area
offgc.setColor(getBackground());
offgc.fillRect(0, 0, d.width, d.height);
offgc.setColor(getForeground());
// do normal redraw
//Graphics2D g2 = (Graphics2D)g;
offgc.drawImage(player.ship, new Double(player.pos.x).intValue(), new Double(player.pos.y).intValue(), null);
int i;
for (i = 0; i < enemies.length; i++) {
if (enemies[i] != null) {
offgc.drawImage(enemies.ship, new Double(enemies[i].pos.x - (enemies[i].width/2)).intValue(), new Double(enemies[i].pos.y - (enemies[i].height/2)).intValue(), null);
i = 0;
//Draw Shots
offgc.setColor(Color.black);
while ((playerShots[i] != null) && (i < 10)) {
Point2D.Double temp = new Point2D.Double(playerShots[i].x, playerShots[i].y - 5);
//Point2D.Double temp = new Point2D.Double(playerShots[i].x, 0.0);
Line2D shot = new Line2D.Double(playerShots[i], temp);
offgc.draw(shot);
//g.drawLine(playerShots[i].x, playerShots[i].y - 5, playerShots[i].x, playerShots[i].y + 5);
i++;
paint(offgc);
// transfer offscreen to window
g.drawImage(offscreen, 0, 0, null);Rather than plough through you code, take a look at this - you can copy and paste it, then plough through mine instead!
From what I can gather from your code, I think its largely similar - a moving object and a shooter, yes? Any way copy, paste, compile and see. It draws an oval alien rather than uses an image, but it definitely doesn't go out of bounds, its also not completely finished I sort of got it working and as a result got bored once the heavy duty stuff was done - have fun!import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
** class Alien also builds with Backdrop class
** Description: shooting game with 3 levels of difficulty
** -author: S. Scott
** -version: jdk1.3.1
** -date: May 2003
public class Alien extends JFrame{
Backdrop drop = new Backdrop();
int hit, change, ship, i, score=0, x=50, y=50, a=32, b=20;
boolean win,lose,restart;
Color []colour = {Color.magenta,Color.yellow,Color.orange,Color.cyan,Color.pink};
public Alien() {
setBounds(3,10,500,350);
setContentPane(drop);
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
setVisible(true);
javax.swing.Timer t1 = new javax.swing.Timer(40, new ActionListener(){
public void actionPerformed(ActionEvent e){
drop.moveAstro();
t1.start();
public class Backdrop extends JPanel implements MouseListener{
Point astro = new Point(60,60);
public Backdrop(){
addMouseListener(this);
addMouseMotionListener(new MouseMotionAdapter() {
public void mouseMoved(MouseEvent mm) {
if(mm.getY()>300)ship = mm.getX();
repaint();
public void paintComponent(Graphics g){
super.paintComponent(g);
Rectangle r = g.getClipBounds();
Graphics2D g2 = (Graphics2D)g;
g2.setFont(new Font("", Font.BOLD, 16));
g2.setColor(Color.black);
g2.fill(r);
if((win)||(lose)){
g2.setColor(Color.white);
String str="";
if(win) str="Game "+(i+1)+" over, "+(4-i)+" to go";
if(lose)str="The Alien got away!";
if((i==4)&&(win))str="GAME OVER, YOU WIN!";
g2.drawString(str,155,120);
if(i!=4)g2.drawString("( click to restart )", 170, 150);
g2.drawString("score: "+score,380,20);
if((i!=4)||(lose))restart=true;
else{
g2.setColor(colour);
g2.fillOval(astro.x,astro.y,a,b);
g2.setColor(Color.green);
g2.fillRect(ship-10,318,20,7);
g2.fillOval(ship-10,314,20,8);
g2.drawString("||",ship-4,322);
g2.setColor(Color.black);
g2.drawString("...",ship-6,319);
if(change%2==0)g2.drawString("..",astro.x+2,astro.y+5);
else g2.drawString("..",astro.x+6,astro.y+5);
g2.setColor(Color.white);
g2.drawString("__",ship-9,319);
g2.drawLine(3,290,495,290);
if(score<0)score=0;
g2.drawString("score: "+score,380,20);
public void moveAstro(){
repaint(astro.x,astro.y,a,b);
if(change%3==0)astro.x-=3;
else if(change%4==0)astro.x+=3;
else if(change%7==0)astro.x+=6;
else if(change%5==0)astro.x-=5;
else astro.x+=2;
if((hit>astro.x)&&(hit<astro.x+a)){
if((hit>astro.x+a-b)&&(hit<astro.x+a)){
score +=(i+1)*5;
astro.y+=20;
else{
score +=i+1;
astro.y+=5;
if(hit>250)astro.x-=20;
else astro.x+=20;
change=(int)(Math.random()*8)+1;
if((hit<astro.x-a)||(hit>astro.x+(a*2) )){
astro.y-=10;
score -=(i+1);
if((astro.x<5)||(astro.x>480)) {
astro.x=240;
astro.y-=20;
score -=(i+1)*2;
if(astro.y<10) lose= true;
if(astro.y>280)win = true;
if(hit>astro.x) { change=3;hit=astro.x+a+1; }
else { change=4;hit=astro.x-1; }
repaint(astro.x,astro.y,a,b);
public void shoot(int xs){
Graphics2D g2 = (Graphics2D)getGraphics();
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
g2.setColor(Color.red);
for(int ys=300-astro.y; ys>10; ys-=3)g2.drawLine(xs,330,xs,ys);
repaint();
public void mouseReleased(MouseEvent m){}
public void mouseEntered (MouseEvent m){}
public void mouseExited (MouseEvent m){}
public void mouseClicked (MouseEvent m){}
public void mousePressed (MouseEvent m){
if((!win) || (!lose)) {
if(m.getY()>300){
shoot(m.getX() );
hit=m.getX();
change=m.getX();
moveAstro();
if(restart){
astro.x=80;
astro.y=80;
if(win) { score +=(i+1)*6; i++; a-=5; b-=3; }
if(lose){ score -=(i+1)*6; i--; a+=5; b+=3; }
if(i<=0){ i=0; a=30; b=18; }
restart=win=lose=false;
if(i>4){ i=-1; win=true; }
public static void main (String[] args) {
new Alien(); -
Disappearing images on storage disks
I am using in my dig camera a 2GB storage mini disk (SanDisk). I am at a loss as to why after I have viewed the contents ("jpg" images) once on my 2.4 GHz iMac Core 2 Duo, I can not find again the pictures on that same disk (nor on my computer). Using Disk Utility I can verify that there are still a number of "items" on that disk, but finder does not display these files again.
Please help, what am I missing?? This has worked for years!
Message was edited by: Rudolfmiraculously, this has not happen anymore (after several 'updates' to Max OS X v.10.5.5). I have no clue which version did the trick.
-
The Disappearing Image(s)
Apple Mail Version 5.2 (1278)
Howdy, I wonder if anybody has come across this Mail problem. When I send HTML e-mail it puts a copy in the Sent Box. The HTML only displays some of the images. (see JPG) Yet when I click down on the left red box on any it displays fine? The images are part of a table created in Dreamweaver CS5.5. all the images have full HTML adrdess to my site and display find. I then hit Cmd i in Safari and e-mail the contents. I have reset Mail started for scratch and thats not sloved the problem. I wonder if its a iCloud issue? Yet the HTML imges display fine when acesssing iCloud from a Safari? Everything displays ok on my iPhone 4? Pain but life as end user! Any thoughts would be very much apreicated Cheers DHAfter much time messing around with this I figured out the issue. It is the way WinDoze (Outlook) formats the HTML E-Mail signature!
I tried publishing an HTML through many ways and it always lost the pictures and sometimes even the formatting. I knew I needed to get it into an Apple compatible format but could not figure out how, copying it just copies the text and leaves out the pictures so here is what I did!
1. Copy the entire signature from an existing E-Mail. (or create your own)
2. Paste it into TextEdit.
3. Save it as a RichText document.
4. Open the document and select the entire signature.
5. Open Mail and paste the signature into a new E-Mail.
6. Send it to yourself.
7. Open that Email on your iPhone. (or iPad) {I have not tried it on an iPad but I assume it will work the same}
8. Click on your signature and "Select All".
9. Go into Settings>Mail, Contacts, Calenders>Signature.
10. Click on the account you want to use or use all accounts.
11. Paste the text into the box.
12. Shake your iPhone and click on "Undo Change Attributes". <--VERY important! (It updates the formatting when pasting)
13. Send an E-Mail and check out your awesome new signature!
Maybe you are looking for
-
NTLM Authentication : why is it not possible to create more than one NTLM realm ?
Hello, I'm wondering why it is not possible to create more than one NTLM realm on a wsa. Can you explain exactly what is the blocking point ? Thanks in advance Regards
-
Hi, I kill a session with the commands: select username, sid, serial#, status from v$session where username like 'RION%' alter system kill session 'sid, serial#' and if I give again the first select command at the status column appears KILLED. I want
-
Please help ! "Oracle Reports Server CGI - Reports Server name is not specified."
Hello Gurus, I have an html form that allows putting in a parameter. Upon submit the form, it'll pass a string URL with the parameter to a new browser. My url: http://localhost/servlet/oracle.reports.rwcgi.RWServlet? diary&14252 I also used keymap lo
-
Req. Siebel License Keys Information.
Hi, I want small information about Siebel License Keys if i want to active license key for a particular siebel Product (For example call center or sales or Loyalty) which are i select in oracle site they provide no.of products list (like 1. Siebel CR
-
Toplink generate the SQL statement correctly but it does not return any row
Hi I faced an strange problem when using Toplink as JPA provider. Following snippet shows how I create and execute a query using Toplink JPA: q = em.createQuery("SELECT B FROM Branch B WHERE B.street LIKE :street"); q.setParameter("street", "'%a%'");