How to load series of images?
I am trying to load a sereies of pictures moving accross the top from right to left. How do I load all of these photos in such a way that they seem to be stitched together like a piece of film strip at certain rate going accross?
you could also do something like this - I used this for doing something very similar to what you explained:
public var menuImageArrayURL:Array = ["images/mainMenu/01.jpg", "images/mainMenu/02.jpg", "images/mainMenu/03.jpg",
"images/mainMenu/04.jpg", "images/mainMenu/05.jpg", "images/mainMenu/06.jpg",
"images/mainMenu/07.jpg", "images/mainMenu/08.jpg", "images/mainMenu/09.jpg",
"images/mainMenu/10.jpg", "images/mainMenu/11.jpg"];
var b1:Sprite = new Sprite();
var b2:Sprite = new Sprite();
var b3:Sprite = new Sprite();
var b4:Sprite = new Sprite();
var b5:Sprite = new Sprite();
var b6:Sprite = new Sprite();
var b7:Sprite = new Sprite();
var b8:Sprite = new Sprite();
var b9:Sprite = new Sprite();
var b10:Sprite = new Sprite();
var b11:Sprite = new Sprite();
public var arrayLoaders:Array;
public var imageLoader:Loader;
public var imageHolder:Sprite;
public function placePictures():void {
var ba:Array = new Array();
ba.push(b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11);
for(var i:uint=0;i<ba.length;i++) {
trace(name + ba[i]);
ba[i].name = i;
imageLoader = new Loader();
imageLoader.load(new URLRequest(menuImageArrayURL.shift()));
imageLoader.x-= imageLoader.width/2;
imageLoader.y-= imageLoader.height/2;
imageHolder = new Sprite();
imageHolder.addChild(imageLoader);
imageHolder.x = 0;
imageHolder.y = 0;
ba[i].x = 0 + i * 150;
ba[i].y = 0;
ba[i].addChild(imageHolder);
addChild(ba[i]);
thats just for the loading of the pictures. if you understand that or need some help in understanding I can see what I can do to help you. then after that I can tell you how I would make them move across the stage.
Similar Messages
-
How to load a boot image to cisco aironet 1140 series after missing boot image
Hi all,
I need a solution for this. When i switch my cisco aironet 1140 , it s blinking with red light .and gives a message "no boot image to load".
When i tried next time, by pressing escape it shows this message that i have mentioned below.
ap:
ap:
using eeprom values
WRDTR,CLKTR: 0x83000800 0x40000000
RQDC ,RFDC : 0x80000035 0x00000208
using ÿÿÿÿ ddr static values from serial eeprom
ddr init done
Running Normal Memtest...
Passed.
IOS Bootloader - Starting system.
FLASH CHIP: Numonyx P33
Checking for Over Erased blocks
Xmodem file system is available.
DDR values used from system serial eeprom.
WRDTR,CLKTR: 0x83000800, 0x40000000
RQDC, RFDC : 0x80000035, 0x00000208
PCIE0: link is up.
PCIE0: VC0 is active
PCIE1: link is NOT up.
PCIE1 port 1 not initialized
PCIEx: initialization done
flashfs[0]: 1 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32385024
flashfs[0]: Bytes used: 1536
flashfs[0]: Bytes available: 32383488
flashfs[0]: flashfs fsck took 16 seconds.
Reading cookie from system serial eeprom...Done
Base Ethernet MAC address: 28:94:0f:d6:c8:62
Ethernet speed is 100 Mb - FULL duplex
The system is unable to boot automatically because there
are no bootable files.
C1140 Boot Loader (C1140-BOOT-M) Version 12.4(23c)JA3, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Compiled Tue 18-Oct-11 14:51 by prod_rel_team
ap:
So , now my question is how to load the boot image ? From where will we get this ? OR
I m also having another Cisco aironet 1140 , Can i get bootimage from that . Kindly let me know the solution from genius ?Take a look at this link as it should have the info you need
https://supportforums.cisco.com/docs/DOC-14636
Sent from Cisco Technical Support iPhone App -
How to load a tif image in flex
Hi All,
Is it possible to load a tif image in flex. If it's possible
anyone guide me or send me some code snippets regarding how to
display a tif image in flex.
Regards,
Dharma"flexdharma" <[email protected]> wrote in
message
news:ga2d96$p8h$[email protected]..
>
Hi All,
> Is it possible to load a tif image in flex. If it's
possible anyone guide
> me or send me some code snippets regarding how to
display a tif image in
> flex.
Convert it to the much more web-friendly png format. -
How to load the Employee Images through Script
Dear All,
How to load Employee Images into HRMS module through script, Pls provide scripts any body having..
Thank in advance,
Hanimi
Edited by: Hanimi on Jun 7, 2011 10:12 AMHi Hussain,
Following ctl file is working fine for loading images, But problem is at a time it is loading only 64 rows, pls let me know what i have change in my ctl file for loading all data at a time..
load data
infile '/usr/tmp/Images_Data.dat'
INTO TABLE PER_IMAGES
append
FIELDS TERMINATED BY ','
TRAILING NULLCOLS(
parent_id,
table_name constant "PER_PEOPLE_F",
ext_fname FILLER CHAR(80),
"IMAGE" LOBFILE(ext_fname) TERMINATED BY EOF,i
mage_id "PER_IMAGES_S.nextval"
Thanks,
Hanimi.. -
How to load use an image library in the portal pages
Hi,
How to load an image library in the portal ? Do I need to load images in an Apache directory and access them via URLs, or do I need to upload images to a specific portal page, and access these images via specific URL ?
Thanks for your help,
Jean-ChristopheAnother easy method is to create a dedicated page in Portal and use it for the storage of images, flash objects.
Load the images as item type FILE and use the 'direct access' method (HOST:PORT/pls/<DAD>/docs/PAGE/<PG NAME>/<PAGE_NAME>/IMAGE.GIF)to access the file from a URL command.
This way all your images are protected in the database, easy to add and find (via search or by adding descriptions, categories etc) via role based security and in theory should be quicker to access (via the URL) due to the indexing capabilities of the database.
Place the images in a location that is not going to cause a page navigation issue such as in its own Page Group or as sibling page to your top level parent page etc.
Hope this helps.
John -
How to load a background Image on a JDialog object
Hi All, Actually i am new to java programing and i am stuck in this problem. I am developing a java application which is dialog based (using JDialog objects) and i want to load a background image on my dialog. I hope this could be done and i really appreciate your help because i must deliver this project and this is a user interface requirement.
Try something along the lines of this: Create a new class called BackgroundImagePanel and have it extend JPanel.
Have an attribute in the class for your image, and a method to set it.
Override isOpaque() to return true.
Override the paintComponenet method as such:
public void paintComponent (Graphics g) {
super.paintComponent(g);
if( image == null ) return;
Icon icon = new ImageIcon(image);
icon.paintIcon(this, g, x, y);
Add this panel to your JDialog and then add other component to this panel.
You might have to tweak this a bit, but it should get you close...
Bill -
How to load a PNG image from a location in CF card
Hi,
I am using WTK 2.5.2. I wanted to load a PNG image to Image object. The image is loaded when I have it in the classes folder. But I want to select different image from a different location. If I try to open an Image to createImage(String) from a different location, I get IOException.
Please help me.
Thanks
Deekshit MI got the answer, I should be using Image.createImage(InputStream) API. It works fine.
Thanks
DM -
How to load svg (vector) image dinamicaly.
Hallo!
I tryed to load dinamicaly an image svg (.ai) into flash but I can't.
At my level:
1) I know that flash can't import .svg file but it is possible convert svg in Adobe ilustrator .ai file;
2) I can import .ai file in flash with no problem;
3) I can load dinamicaly external .jpg file with no problem;
If I try to load dinamicaly .ai file in the same way that I use to load .jpg file I get this message:
Error #2044: Unhandled ioError:. text=Error #2124: Loaded file is an unknown type. URL: file: .....
Is there any way to solve this problem?
Can someone help me?
Thank you.you can use the urlloader class to load the svg but it won't display an image until you parse the xml, Using SVG as a level design format - Zeh Fernando
-
How to load a large image for display on the Palm PDA
Hello:
I have a large image I would like to display on LV for Palm PDA. The documentation states there should be a 64K chunk limitation for VIs to compile on the Palm. Therefore, I decided to break this image up into 2D arrays of less than 64K per subVI. My 3.2 Meg image therefore has about 224 2D array subVIs. My motivation is to somehow use the build array function (with concatenate inputs) to reconstruct the image at runtime. I can compile each 2D array subVI as a test, but my attempt to reassemble and compile is futile. When I try to use the build array with only 8 of these subVIs in a top level VI the compiler complains its still too big of a VI. Using get info, memory for this top level states total ~2
3K of memory usage.
So can someone help me with this problem. Is there another way to load this size of an image into memory so I can display it on a picture control?
BTW, this can build on LV for PocketPC.
Thank you
RobertHi Robert,
You are correct in that one of the limitations of the Palm OS is that files cannot be larger than 64 KB in size (as stated on page 5-3 of the LabVIEW PDA Module User Manual). The suggested workaround is indeed to have a top-level PDA VI that calls subVIs, and this top-level VI can then have a total file size larger than 64 KB.
My suspicion is that with the picture control on the Palm OS, even if you are breaking up the image into smaller subVIs, the process of building the array to reassemble the picture is still forcing the Palm to allocate memory for each of those 2D array subVIs to place on the top-level VI's picture control
and thus causing the Palm to complain about not having enough memory. The LabVIEW PDA User Manual also states that "There is a total limit of 64 KB on all front panel array data". Thus, when you are trying to use the build array on the top-level VI, the 64 KB limit on front panel array data is still being exceeded -- even with only 8 of these subVIs.
The following KnowledgeBase article KB 38EJRHFQ: How Do I Put a Picture or Image on My LabVIEW PDA for Palm Front Panel? states that as a workaround, you can shrink the size of your image by using 4-bit or 1-bit data instead of the standard 8-bit pixmap representation.
This is really just a limitation of the Palm OS and the fact that there is simply no way of displaying that much front panel information for your picture. Either way, you would need to build up the array of pixels for your bitmap, and for a 3.2 MB image, I don
't believe there is any way for the Palm OS PDA to display the image in its entire at once.
Sorry about that...
Kileen C.
National Instruments -
How to load a .bmp image
I'm using jdk1.4 and full-screen mode and I want to load an image but I don't manage to do it. how can I do it?
Check out this category:
http://www.esus.com/javaindex/j2se/jdk1.2/javaawt/awtgraphics/2dgraphics/images/javaimagetypes/javabmp/javabmp.html -
How to load lots of images synchronously
HI all,
I want to cache lots of images locally with URLLoader and need to know those fails. I can add listener to event IOErrorEvent.IO_ERROR.
A variable can be used to save the file name I want to load last time. Then in the error handler I can know which file is not loaded correctly.
However, since images are loaded asynchronously, which is how URLLoader works, the firstly loaded image may not the firstly completed. That means the variable may contain incorrect file name.
Is there a better way to approach? I just want to log the error loadings.
Regards,
FelixYou can load Image one by one so when one finishes or load successfully you can trigger the load on the next one. How are you loading multiple images anyway you using a bulk loader class or multiple url loaders?
C -
How to load the latest image to the UIimageview?
i can only "hardcode" the image for the UIimageview, however, is it possible for me to load the latest (sort by date/time) image to it?
Shall I use array or ...
I am new to the development and thank you very much if you can help....http://www.iphonedevsdk.com/forum/iphone-sdk-development/14181-how-sort-nsmutabl edictionary-nsmutablearray.html
In this case, you can keep it simple by just iterating over the list of image files and then keeping a reference to the file with the latest modification date.
NSDictionary *attr = [fileManager fileAttributesAtPath:curFile traverseLink:NO];
NSDate *moddate = [attr objectForKey:NSFileModificationDate];
if ( NSOrderedAscending == [date compare:moddate] ) file = curFile;
UIImageView *imageView = [[UIImageView alloc]
initWithImage:[UIImage imageWithContentsOfFile:file];
[window addSubview:imageView];
[imageView release];
[window makeKeyAndVisible];
[NSTimer scheduledTimerWithTimeInterval:5
target:self
selector:@selector( buildView )
userInfo:nil repeats:NO];
Just implement the rest of your display logic in the buildView method or equivalent. -
How to load compressed tiff image formats with JIMI
this method
Image image=image = Jimi.getImage(imgResource);returns incorrect Image width & height (-1) for TIFF compressed formats.
is there any jimi example showing how to properly load the tiff compressed image ?
thanks.Wild guess: how old is JIMI technology? Has it been
kept uptodate, or has
it been abandoned? And is LZW compression in TIFF
format a more recent feature?yes i checked jimi docs and here is what they say :
TIFF
* Bi-level / Greyscale / Palette / True Color images
* Uncompressed images
* CCITT compressed Bi-level images with CCITT RLE, CCITT Group 3 1D Fax, CCITT Group 3 2D Fax, CCITT Group 4 Fax, CCITT Class F Fax
* Packbits compressed images
* LZW Compressed images
* Tiled TIFF files
* Handles all values of Orientation
* TIFF / JPG compression variant
* any color space except RGB
* True Color images not of Red/Green/Blue format -
How to load a jpeg image in to a database from a flex2 app
Hi,
how ouwld I browse the local fie system, select a jpeg image
and then save
it to a database using flex2?
Anybody know of some sample code that I can look at?
ThamlsHi Thamis,
Take a look at the flash.net.FileReference class here:
http://livedocs.macromedia.com/flex/2/langref/index.html
This is the built in Flash support for file upload. You'd
handle the upload with a servlet/jsp/etc. server-side component to
save it to disk or as binary data in a database.
Best,
Seth -
How to load/place an Image in Window UI (ID CS4)
Hi,
Can anybody help me on how to place an Image in User interface window.
Thanks,
Gopalvar dialog = new Window("dialog", "Test");
dialog.add ("image" , undefined, "~/Desktop/Picture.png");
var btnGroup = dialog.add("group");
btnGroup.orientation = "row";
btnGroup.alignment = "center";
var okBtn = btnGroup.add("button", undefined, "Ok");
var cancelBtn = btnGroup.add("button", undefined, "Cancel");
var showDialog = dialog.show();
Maybe you are looking for
-
I transferred everything over with an ethernet cable. All my apps are working... Photoshop... Illustrator... InDesign won't though.
-
Saving raw in jpeg not enough memory (in Camera raw)
Hello I am using Camera raw with following config: AMD Athlon II x2 245 processor 2.90 GHz RAM:4,00 Go 32 bits I know that it is not enough especially in Ram but I am not alone in this case. So very often I have to close Camera raw because I have got
-
After using jexegen from microsoft to make EXE. I receive this error when i execute the my EXE : java.lang.NoSuchMethodError: java/util/Vector method revove... Any body know why? If i execute from JBuilder i have no problem!
-
Getting total pages incorect in SAPSCRIPT FORM with SAPSCRIPT-FORMPAGES
Hi, In scriptform I have total 3 pages, one is envelope_page, second is page_first, and third page_next. I want total no pages excluding envelop page, I have given HOLD for envelop page, START for first page, and INC for next page. Now when I run, I
-
Oracle.exe has stopped working
I am trying to run the orion load manually on Win2k8 machine.I have installed Orion 10.2. When given the command manually i get the error as: Oracle.exe has stopped working. Can anybody help me with resolving this?