Xml images alignment in flash..
hi frndz....
i want to align the thumb images bottom to top. but not top to bottom.
my problem is that when i upload a small thmub image, it start from top to bottom,,, but i want this start form bottom to top.
function minithumbs()
_root.createEmptyMovieClip("wall",_root.getNextHighestDepth());
wall._x = _root.gallery_x;
wall._y = _root.gallery_y;
wall.addEventListener(MouseEvent.CLICK);
var clipLoader = new MovieClipLoader();
var preloader = new Object();
clipLoader.addListener(preloader);
for (i =0; i <10; i++)
thumbURL = myImages[i].attributes.thumb_url;
myThumb_mc = wall.createEmptyMovieClip(i, wall.getNextHighestDepth());
myThumb_mc._x = _root.thumb_height * i;
myThumb_mc._x = _root.thumb_position = -3100;
clipLoader.loadClip("shop/" + thumbURL,myThumb_mc);
its not align the image,, i want that when i upload a small images (200 X 300) , its start from top to bottm, but my requir is its start from bottom to top.,,,
its also not working,,
_root.myThumb_mc._y = Stage.height/2 - _root.myThumb_mc._height/2;
Similar Messages
-
Hey Everyone
Question. I have one FLA file and inside that file I have a
Request to an XML file. The XML file is located in a folder named
data. My images are located in a file called images. I know all my
ActionScript is correct because everything runs smoothly, and is
visible when I test the file in FLASH. Everything is correct when I
view my local files, But as soon as I load my files on to my server
everything is visible except my xml images. They just dont appear.
I have tried everything to get this to work but I cant figure it
out. if anyone has any suggestions please let me know.
Thanks
RyanMacBook Pro may come up the first time with Mirrored Display. That means the resolution chosen is a compromise between what the built-in screen wants and what the second screen or projector wants, and will probably not be optimum for either. Sometimes you do not even get a picture on the second screen.
System Preferences > Displays > ( Arrange ) ...
... and drag the overlapped symbols for the two displays apart, to cancel Mirroring and use "Extended Desktop". The two displays then act as two parts of an Extended Desktop, which should be arranged in space in the same way that they are arranged on your bench. The "Main" display is indicated by the representation of a tiny Menubar, which can be dragged to either display.
N.B.: Once you have stablished Extended Desktop, you may need to reset the resolutions on your displays;
Moving the mouse across their shared edge will cause the mouse to appear on the "other" screen. Dragging a window (such as the presentation program window) to the "other" screen, then resizing it to take up most of the screen is the way to proceed.
If using Lion 10.7, do not turn on "Full Screen". That is an iPhone feature, only useful if your [single] screen is no bigger than an iPhone's tiny screen. -
HELP! - XML Image gallery, simple problem
I've posted this problem before and gotten no response. Very
simple I'm sure, I just don't know much Flash. Basically I've
created an image gallery that should look like this:
http://www.flashcomponents.net/upload/samples/1448/index.html.
The problem is that the thumbnails are not being accessed properly
(from what I can tell), making it look like this:
http://shortydesigns.com/index.html.
The images are all in the same folder and since one thumbnail is
loading, I can't see why the others aren't. The Actionscript in the
Flash file is as follows (it was created with Flash 10):
First Piece of Code
stop();
// specify the url where folder is located below (if
applicable)
toadd = "";
t = 0;
l = 0;
theside = 1;
galxml = new XML();
galxml.load(toadd+"flash/fashion/easy-xml-gallery-2.xml");
galxml.ignoreWhite = true;
galxml.onLoad = function(success) {
if (success) {
maxnum = galxml.firstChild.childNodes.length;
for (n=0; n<maxnum; n++) {
specs = galxml.firstChild.childNodes[n];
// TEXT FOR SIDE NAV
duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
thumbclip = eval("side.thumbs.thumbs"+n);
thumbclip._x = n*100;
thumbclip.thetitle = specs.attributes.name;
thumbclip.theurl = specs.attributes.theurl;
thumbclip.thecaption = specs.attributes.caption;
thumbclip.thenum = n+1;
thumbclip._alpha = 100;
loadMovie(toadd+"flash/fashion/images/"+(n+1)+"b.jpg",
thumbclip.thumbload.thumbload2);
play();
side.thumbs.thumbsb._visible = false;
mainperc.onEnterFrame = function() {
if (mainperc.perc<98) {
mainperc._alpha += 5;
mainperc.perc = Math.round(l/t*100);
mainperc.perctext = mainperc.perc+"%";
mainperc.ltext = "OF THUMBNAILS LOADED
("+Math.round(t/1024)+"kb)";
if (mainperc.perc>98) {
// mainperc._alpha -= 5;
if (mainperc._alpha<-50) {
delete mainperc.onEnterFrame;
Later in the timeline:
stop();
pic.info.thenum = side.thumbs.thumbs0.thenum;
pic.info.thecaption = side.thumbs.thumbs0.thecaption;
pic.info.thetitle = side.thumbs.thumbs0.thetitle;
pic.info.theurl = side.thumbs.thumbs0.theurl;
loadMovie(_root.toadd+"flash/fashion/images/1.jpg",
pic.pic2.pic3);
onEnterFrame = function () { side.gotoa = 110;if
(side._alpha>99) {side._alpha = 100;delete
onEnterFrame;}side.lefta = side.gotoa-side._alpha;side._alpha +=
side.lefta/5;pic._alpha = side._alpha;};I noticed two thing:
1. I guess the error occurs when currentImage variable is out
of range of sortedXML array. You, perhaps need to trace this var
and see at what point the error happens.
2. Unless I missed someting, It seems that you always load
images. At some point you load images that are already loaded. It
is inefficient. You, perhaps, better off reusing already loaded
images. -
SWIM Jobs show failed but all images are in flash
I performed a software distribution on two different 3750 switch stacks using LMS 4.2.3 over a WAN link.
The Job Report shows this:
Copying c3750-ipbaselmk9-tar.122-55.SE4.tar from Software Repository to tftp-specific directory.
Copied successfully to C:/CSCOpx/tftpboot/rep_sw_3381422663941666305
Loading image file to flash device : rep_sw_3381422663941666305 --> flash1:c3750-ipbaselmk9-tar.122-55.SE4.tar using TFTP
Error loading image to Flash. See C:\CSCOpx\files\rme\jobs\swim\5373\3750Stack_telnet.log for the output from the device on which the image transfer failed.
Image Copy Operation Failed
Device is unlocked.
Device Upgrade Result : Failed
However, when I look at the flash on both stacks, the IOS image with the correct filesize, folders, etc. all looks right. The show boot shows it will boot to the correct image. The telnet.log file shows all the files being copied and just ends after the last file (the .bin image).
Does anyone know why this might report as failed even though the files are in flash?
I have not yet reloaded either switch as they are in production.
Thanks.OK I reloaded one of the stacks and it came up fine.
Could this error be due to the fact that the upgrade was done over a WAN link and I did not put exec-timeout 0 0 on the line vty? -
Image Align Not Working in Browser
Ok, so i have text and i put some images in there and i set my image align to either left or right or however i need it and it looks fine in dreamweaver, but when i preview it in a browser it isn't right. Does anyone know why this could be? I'm prolly being dumb and just have a slight minor detail wrong so......feel free to slap me if needed....
In code view, you have this at the top of your page:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
Which should be this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
Remove the JavaScript tag.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
Error in creating XML photo gallery with Flash CS4 and AS 3.0
Hello, all. I've been creating an XML photo gallery with Flash CS4 and AS 3.0 following a tutorial. I followed the instructions step-by-step but at the end I got the following error message instead:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
Could anyone in the community assist me as to how to solve the problem? The script has no errors and last time I checked all the applicable files (the .xml file, the .jpg files, the .swf and the .fla file) are in my Documents folder on the Mac.
Looking forward to your suggestions!Check the folder structure
Flash is not able to get some file thats why the IO Error.
trace the url path just before u load the file and u will be abel to find whether that file is in specified folder or not.
http://www.darshanrane.com -
Image files in flash and fullsceen
hi @all ..
i'm sperimenting with a function to turn my flash site to fullscreen and i know that the best way to design such a site is to draw everything in flash using vector graphics ..
BUT
i have a site (wedding photographer) with lot of pictures and my logo and they are all jpg - png files ..
obviously when i toggle to fullscreen every image that is not a vector graphic is "zoomed" and you can see the actual pixels in the image and on the cornes ..
i wondered if there is a possibility to insert in the flash file the big images (like photos in full resolution of the monitor) that will be resized to small images when the site is not on fullscreen and that are displayed in their full size when in fullscreen ..
now if i put only the big images in my flash file and resize them in the flash they get unsharp because they are bigger than they are displayed (lets say they are 1280x1024 and in the flash they are displayed in 1024x768 --> they are unsharp and you see pixels.. same thing if you have 1024x768 images that are displayed in 1280x1024)
is it possible to have both resolution of the images and that they swap from one to other according to resolution of the flash file?
i think it's not possible but if it is it would be apreciatedYeah, this forum is entirely appropriate for your question.
The problem is an old one with Flash. The reason you see the
'ghosted'
background in the alpha channel of your PNG is that you have
your colour
depth set to 16 bits. If you crank it up to 32 bits, the
anomaly will
disappear. Unfortunately there's not a great deal you can do
about it,
except to break apart the image and actually delete the parts
you don;t want
to be visible.
Remove '_spamkiller_' to mail -
Display an image instead of Flash?
I'm a little green when when it comes to this stuff.
I have a site that has a couple of Flash elements that show
fine. Due to the network security on my work computer, it means
they don't show when viewed from there.
Is there a way to display an image if the Flash element
cannot be displayed?
Thanks in advance of any help.Have you tested it with IE online or only locally? Locally IE will usually prohibit displaying Flash content.
-
Showing image instead of flash for mobiles?
I am just wondering if it is possible to show an image instead of flash content for mobiles?
I want to allow the adobe sniffer to do its thing when it is people using pc and mac browsers and direct them to the plug in page to download the flash player if they need it, but is there a way to sniff for a mobile / smart phone browser and if they cant view flash it will show an image instead?
Any help appreciated.You can use Javascript to detect the browser and platform for any given user. You can then parse that information to push the content that you want to use for the result. You can find a good write-up with example code here: http://www.quirksmode.org/js/detect.html
-
Maximum Image file size flash can handle?
Does anyone knows the max image file size flash can load
using MovieClipLoader?
I tried 10.5 MB PNG file and Flash thinks it is loaded but,
the actual image never shows up.
Thanks,Well it is good for that client. But it still won't work in
Flash. Sorry. You will need to slice the picture into different
chunks at 2880 x 2880 max and reassemble the tiles in Flash.
You may also run into an issue that things sometimes get lost
if there is more that 16,000 (or thereabouts) pixels difference in
their coordinates. -
Having a image alignment problem using clearbox
Hi,
I'm having an image alignment problem. I cannot figure it out. I'm using the clearbox - lightbox dreamweaver widget. Using Dreamweaver CS6.
Actual page located here. Any help would be appreciated.
http://dirtysouthink.com/gallery/dustin2.htmlThis has very little to do with Dreamweaver. DW is merely a tool to assist you in building a web site. It is purely a matter of styling (CSS).
When I look at the structure, I see
BODY-CONTENT (width: 490px)
GALLERY (width: 452px)
CONTAINER (width: 500px)
ITEM (width: 150px)
From this I can deduce that:
GALLERY will fit inside BODY-CONTENT
CONTAINER will NOT fit inside GALLERY or BODY-CONTENT
ITEM will fit three times into CONTAINER
To start with, I would reduce the size of the CONTAINER so that it fits inside of its parent. Then I would adjust the width of the ITEM so that only two of them fit inside of the CONTAINER. -
Hi Everyone,
I've seen a really cool XML image gallery on the followng page: http://www.webbers.co.uk/property/view/id/6407
Does anyone know of a tutorial which may help me create something similar?
Regards.http://www.flashxml.net/cover-flow.html
-
JEditorPane HTMLEditorkit Image align left
Hi,
I am developing a HTML Editor with JEditorPane and HTMLEditorKit. Apart from the many other difficulties, the HTMLEditorKit doesn't show a text next to an image correctly. I set an Image alignment to left and hopped, the text would be displayed text to it beginninge at the top. But it doesn't. Can anyone help.
ChristianHi,
I'm sorry, but this doesn't help me at all. To be more precisely, I want a text placed next to an image. A normal Browser does is when you say something like <img align="left" ...> and just place your text behind this tag. It looks like this:
%%%%%%%%%% My Text My Text My Text My Text My Text My Text
%%%%%%%%%% My Text My Text My Text My Text My Text My Text
%%%IMAGE%%%% My Text My Text My Text My Text My Text My Text
%%%%%%%%%% My Text My Text My Text My Text My Text My Text
%%%%%%%%%% My Text My Text My Text My Text My Text My Text
The Problem with the JEditorpane and the HTMLEditorKit is, that it shows up like this:
%%%IMAGE%%%%
%%%%%%%%%% My Text My Text My Text My Text My Text My Text
My Text My Text My Text My Text My Text My Text
My Text My Text My Text My Text My Text My Text
My Text My Text My Text My Text My Text My Text
My Text My Text My Text My Text My Text My Text
If I put the alignment to top or something else, I can let it look like this:
%%%%%%%%%% My Text My Text My Text My Text My Text My Text
%%%IMAGE%%%%
My Text My Text My Text My Text My Text My Text
My Text My Text My Text My Text My Text My Text
My Text My Text My Text My Text My Text My Text
My Text My Text My Text My Text My Text My Text
But annoyingly I let it show up like in any normal Internet Browser.
Hope my problem is more clearly now and somebody can help me.
Yours sincerely,
Christian -
Why do images brought into flash from a psd appear differently when publish
I am creating a flash banner using a layered psd. The account team is happy with the look of the psd. BUT, when I bring the images into flash and publish the file, the colors look different. I import them into flash at the highest quality yet they don't look the same. Any advice?
The answer relates to color spaces (profiles) and color management in Flash.
In the other creative suite applications you work with a color space to define the colors your using—i.e., if you have #ff0000 full red this will be a different color in sRGB (an RGB color space) than Adobe 1998 (a different RGB color space). You need to have a color space (profile) to make sense of the color values.
Flash doesn't honor profiles currently, which means it ignores these profiles. By default in Flash Player 10, and the only option in all players before 10, it gives these color numbers to the operating system without a color space, so the operating system is in charge of making sense of these numbers. In Windows it will assume these numbers are in the sRGB color space, on Mac it will assume that these numbers are in the monitor's color space (on my macbook this is Color LCD, which I believe is the color space for all macbooks by default).
The way to get the colors to look the best in Flash is to make sure that the document is sRGB before you bring it into Flash. In Photoshop you can convert the colors into the sRGB color space, which will change these color values into the sRGB color space, by going to Edit -> Convert to Profile, and find sRGB in the RGB dropdown. Another way to do it if you are saving just a flat image is to use File -> Save For Web & Devices and check the Convert to sRGB checkbox on the right. Now when you bring the image in to Flash and publish it it should look right on Windows, and probably better on Mac.
Flash Player 10 adds a feature where you can say that all the images are in the sRGB color space and it will hand the color values to the operating system as sRGB numbers. This makes it work better on Mac, if the swf file is viewed in an environment that honors profiles (Mac and Windows honor profiles but most browsers still ignore profiles, but that's getting better). You can turn this feature on by putting this code into your Flash file: stage.colorCorrection = ColorCorrection.ON;. Read more on that at this link: http://blogs.adobe.com/jnack/2008/10/get_better_color_through_fp10.html. I also gave a presentation on color management and blogged about it, which you can read about and watch here: http://blog.elliselkins.com/2009/02/flying-through-color-space-uflash.html.
Feel free to ask me anything. Hope this helps. -
Need to know how to disconnect the camera Nikon Ds3 (USB cable) properly after uploading images through bridge…do not want to lose images on compact flash card.
Give #navbar a width that is wide enough to hold all of the buttons within it.
#navbar {
width:####px;
Replace #### with a pixel number large enough to hold the nav buttons.
Maybe you are looking for
-
PO approval workflow customization
we want to send email notification to supplier upon approval of PO approval. Is there any default functionality available or we have to customize a PO approval workflow.
-
Hi! I have a HP Pavilion Dv6. i recently had a few updates after which i was instructed to restart the laptop. On clicking restart the laptop would get stuck after reaching the Blue Screen which says "Shuting Down" and also the blue cirlce(next to sh
-
Along with others (refer this thread: http://discussions.apple.com/thread.jspa?messageID=7147587&tstart=0) I find that activity monitor stops updating. The quoted thread is showing that the problem is answered but it is not. Removing the activity mon
-
How can i change the color of pen tool in photoshop cs6?
I want to change the color vector of pen tool in photoshop cs6?
-
I recently received an iPhone 4S from a friend and after Going through the factory rest stages, my iPhone was unlocked but when I put it down after a minute it locked by itself. Although, it came up with please enter passcode when I thought There wou