ActionScript 2.0 :: Picture Viewer - Dynamic Image Loading
Feb 1, 2009
I'm creating a picture viewer that dynamically loads the images from my site, and I'd like to be able to have flash determine how many images are in the folder when it runs. I know I could do this with an xml file, but I have a hunch that there's an easier way to script it.
View 1 Replies
Similar Posts:
Oct 17, 2009
Everything is working properly except when i try to link a picture, and have set the imagelinkTarget value to _blank the link always navigates away from my site and does not open in a new window. I have tried all the values for the imageLinkTarget and nothing works.. Here is my code
[Code]...
View 5 Replies
Nov 13, 2009
I am trying to load this little image viewer via xml into my as3 shopping cart. [URL] I have resized it larger but that shouldn't matter. I have another swf that I created quickly and load it the same way via xml and it opens perfectly in the center of the cart movie, the other one is way left and high for some reason.
Here is the code for it:
stage.scaleMode = StageScaleMode.NO_SCALE;
// import tween
import fl.transitions.Tween;
import fl.transitions.easing.*;
[Code] .....
View 3 Replies
Mar 3, 2005
I want to make an image viewer using flash.....I should select a source folder and the preview of the images in that particular folder should be viewed in one portion of the image viewer... and if I select the preview of any particular image, it will be shown in the right side in some predefined size..is it possible to make such an image viewer using Flash?
View 3 Replies
Mar 3, 2005
I want to make an image viewer using flash.....I should select a source folder and the preview of the images in that particular folder should be viewed in one portion of the image viewer... and if I select the preview of any particular image, it will be shown in the right side in some predefined size... is it possible to make such an image viewer using Flash?
View 3 Replies
Sep 4, 2010
I have an image viewer which has both next and prev buttons and a thumbnail menu at the bottom. They are both loading images from the same array, I need to get them to talk to one another. For example: if I click one of the thumbs to take me to array4, then click the next button it will recognize array4 and go to array5. Right now the thumbnails don't send that information to the rest of the script.
Here's my script:
stop();
import mx.transitions.Tween
import mx.transitions.easing.*
var photos_arr:Array = new Array(
[Code] .....
View 9 Replies
Aug 12, 2009
im working on an image viewer and im loading an image to a loader and then add the loader to the stage.I want the user to be able to drag and drop the image but since it's a loader i dont know how to do it.
I tried
imageLoader.startDrag = true;
imageLoader.content.startDrag = true;
but im getting an error on both.
View 2 Replies
Jun 4, 2006
I've loaded data from an XML file and put it in an array that contains everything. I'm trying to get the drawing API to draw some shapes dynamically on the stage using this information. They drew fine before when I was using hard-coded test values, but now that it's dynamic it doesn't work, and I think that's because the shapes are trying to draw before they get their values to draw with. Is there any kind of like "on(something)" I can use to ensure everything's fully loaded before I begin drawing? (The XML file's already in an "onLoad" function.)
Secondly, I'm trying to adapt the dynamic XML image gallery Kirupa tutorial found HERE to work when a button is pressed, and have the images load into a container created with the drawing API. Does anybody have any tips on how this could be accomplished? For reference, here's the code I'm using to create the boxes to house the images (each box consists of a nested preloader bar, and the actual container for holding the loaded image):
Code:
//main box
_root.createEmptyMovieClip("pictureBox_mc", tempClip_mc.getNextHighestDepth() + 5);
[code]....
View 14 Replies
Feb 25, 2010
I need to create a photo viewer like this one: [URL] You can see that if you zoom in a picture it will start download from a server for a better quality one.
View 1 Replies
Jan 5, 2005
I have just been to a really nice website that has some really nice use of Flash on it.... I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.
View 3 Replies
Jan 5, 2005
I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.It must be some sort of actionscripting but how is it done?
View 3 Replies
Feb 20, 2004
The situation is this; I'd like to be able to use some raw 3d coordinates from a text file and display them, joined sequentially in a wireframe model. Then be able to rotate, scale etc the resulting model.The coordinates aren't from a 3d drawing package but rather measured - therefore each point is literally assigned three numbers, in a tab delimited file. With a large number of points (i.e. over 100) is there a way to load in the file and then generate the resulting model?
View 2 Replies
May 5, 2009
Can someone help me work out how to do this in flash? I don't know how to do the coding for this and am getting quite stuck. Its on the news/press section of this website.[URL].. I just need to know the piece of coding to do this or how you would start to go about this.
View 1 Replies
Mar 26, 2004
I'm trying to convert an image viewer into an nav bar. The images are blurred and as the mask rolls over, the sharper image then becomes visible in its place. All the pics are in one MC. I want to add AS to make each image at on release go to a separate url.
View 3 Replies
Apr 30, 2009
[url]...
Currently, it opens to the first image in the set. I think it would be better if it opened to the first page of the thumbnail browser instead, to let people that are clicking on it know that there are more images in the set than just the one. Otherwise, they would have to know to click on the little "additional guides" icon in the lower right corner.
View 1 Replies
Mar 12, 2010
I just need some help on quite a basic topic. Essentially I want a very simple image viewer. There are small thumbnails on the right, when one of them is clicked, a enlarged version of that image shows up next to all the thumbnails. When another thumbnail is clicked, the new image replaces the previous. I have searched google however all I find are more complex image viewers which you download and link to a gallery...
View 3 Replies
Jan 10, 2008
I have taken a shot at creating a viewer like what can be found at [URL]in Flash, but mine is not working right. I am on Flash MX Pro 2004, so I'm not sure what version this lines up with? I can also send you the file I've been working on if that would help. I found some code online that I have tweaked, but it was for a different viewer, and I'm sure that's where my problems are coming from.
View 0 Replies
Oct 17, 2003
I have 10 pictures (using arrays) appearing ramdomly and I need to center them (what should i use? _x, _y...). Also, I have to create one back button and one next button. what script should I apply to these buttons? Please see my script below
this.onLoad = function(){
mypictures = ["tibet.jpg", "tibet2.jpg", "camel.jpg", "forest.jpg", "einstein.jpg", "bear.jpg", "dragon.jpg", "af1.jpg", "ceppu.jpg"]
[code].....
View 1 Replies
Mar 26, 2004
I'm trying to convert an image viewer into an nav bar. The images are blurred and as the mask rolls over, the sharper image then becomes visible in its place. All the pics are in one MC. I want to add AS to make each image at on release go to a separate url.
View 3 Replies
Dec 1, 2009
I am recently making a website in flash cs3 using flash actionscript 2. I have currently put a zoom&pan image viewer into one of the website pages to use as a map viewer. However once pasted into a empty movie clip it seems to be displaying a whole lot of white space once fully zoomed out and the image being only around a 1/4 of the assigned area. I am thinking its something to do with the alignment. I have also attached the swf file, for quick view. The image can be found if you enter corporate in the first window then venue in the side menu.
Link > [URL]
The movieclip is labelled "map".
View 1 Replies
Dec 8, 2011
I'm currently making a polaroid image viewer working off of this tutorial: [URL] It's my first time working in Flash, so I'm kind-of on the verge of a mental breakdown. Anyways, to my own surprise I've actually gotten it to work and look great. My issue? I'm making the overall project larger and with more images (800 x 600 with seven images). Anyways, when I publish preview the flash document it shows up 800 x 600 but all of the polaroids are squished together as though it's still 600 x 600. Is there a way that I can space them out a bit? Or, even better, is there a way that I can have each of the polaroids sit in a specific spot on the flash document?
View 3 Replies
Aug 30, 2010
I create a web template in Dreamweaver 8; in this template I added a slide show (Image Viewer). This template is working fine in browsers and slide show also playing, but when I create the new web page from this template, and then the slide show not playing, there is an error message display.
"A script in this movie is causing Adobe Flash Player 10 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script? Yes or No"
I keep getting this message again and again. When I say no, it asks me again and again, when I say yes then I can't see whats playing. I also Restart the computer, but don't work.
View 1 Replies
Sep 4, 2009
I downloaded a simple xml image gallery online and would like to put it in my .fla. It seems like the best way of doing this would be to load it in as an swf. It seems like a simple task, but what action script would i put on a button to have the image gallery load up upon clicking that button?
View 1 Replies
Feb 9, 2010
Basically I am trying to make a VERY simple image viewer using a slider bar to navigate through the movie clip frames. I have been searching for hours for a nice simple tutorial or fla file but I cant find one. The movie clip currently has 8 frames each one an image, but it may have more or less.
I don't want to create movie clips inside movie clips; rather I have created a button which is fixed to slide along a 400px line. I would like to know what on earth I write to link the movement of the slider button to the frames in the movie clip... for example the first image would be displayed when the slider button is between 0 and 50 pixels of the line upon which it slides.
View 4 Replies
Feb 24, 2010
I am building a dynamic RSS viewer in actionscript 3. I wrote a flex application to create the xml code, now I load the xml into my flash application. Now the user of my flex app can pick a color for a thread. I import this hex value into flash to assign a background color of a movieclip. The problem is that the movieclip also has dynamic text in it. With my function changeColor() I seem to be changing this font color as well. I have tried to solve it by using a TextFormat but no luck.
Code:
for each(var channel:XML in rssInfo.channels.channel){
var menuItem:MenuItem = new MenuItem();
changeColor(menuItem,channel.color);
menuItem.x = 512 + i*120;
menuItem.y = 718;
[Code] .....
View 2 Replies
Jul 16, 2010
I am using Flex to create a sort of photo viewer that loops through an array of photos when users click on arrow buttons. However, I wanted to make it so if an image is broken then it would be skipped, but I can't seem to find a way of checking if the image is broken.
View 3 Replies
May 26, 2010
i am downloading tiff images from WAMP server using our Flex AIR client. Using the following code for that.
public static function requestDownload(id:int, defaultName:String):void {
//POST params
var urlVars:URLVariables = new URLVariables();
[Code].....
No issues with the download. It automatically prompts for a Save dialog. Works well. But i want to open the image being downloaded in a viewer(flash viewer or any) instead of the save dialog.
View 1 Replies
Oct 20, 2009
I'm trying to create an image viewer, with a next and previous button. The buttons work, but the problem is that when the button is clicked before the image runs its full course, it messes up the position of the image. eg. if the image is set to move 400px and the next button is clicked when the image is at 300px, it moves from the 300px mark and not the 400px mark causing part of the second image to show under the mask.
I need to somehow disable the button after it is clicked and then enable it once the image has moved the full course. Here is a snippet of my code
[Code].....
View 2 Replies
Apr 7, 2009
I've been working on Todd's Image grid viewer that can be seen here viewtopic.php?f=9&t=16158&p=82039
I wanted to add some category buttons so far its going well with the new xml.
Only I can't figure out the switch between the category button.
When i click on cat 1 Btn everything loads fine then when i click on cat btn 2 instead of reloading and "throwing" cat1 content away cat 2 content loads behind cat1 content...I hope that made sense.....
I have added the files, it's basically the same just a different XML and some tweaking on the XML load function. I didn't add the images since the file was to big, you can get the images from Todd's post. viewtopic.php?f=9&t=16158&p=82039
View 2 Replies
Mar 27, 2004
There are panorama viewers available in flash that basically just scroll a flat image from side to side like this: [URL]. I was wondering about the possibilities of a flash viewer that would also warp an image so that you could view a 360 image and then be able to look straight up and down also since the image is mapped to the inside of sphere. Here is an example in a java viewer that warps the image: [URL]. I can create a shockwave 3d pano using director but I would like to have a flash viewer. It must be hard or impossible since I have not seen one available yet in flash.
View 2 Replies