ActionScript 3.0 :: Xml Portfolio Multiple Images?

Jun 28, 2009

I kinda got a problem with my xml portfolio image loader. I want to load multiple images and the images have a thumbnail and a big image. loading the thumbnails works, but what do i have to write in the mouse down handler to let it work right? since i really got no idea how to pick the right image :Othis is how my xml file looks like:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<portfolio>

[code]......

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Portfolio - How To Get Images As Buttons And Set TextField

Feb 4, 2009

I'm making a portfolio using XML and AS3. Loading the XML is all fine, I put images in a loader using a for loop. However, I would like these images to be buttons and set a TextField.alpha at 1 when hovering the image. The problem I'm having here, is whenever I hover an image, all the set textfields will show up. How do I change this? I've been trying to put it into an Array with no result.

View 1 Replies

Professional :: Preloader For Portfolio - Stutters On All The Images

Jan 11, 2011

I have created a portfolio with flash using action script 2. But when I click on the button going to the portfolio Scene (containing pictures and tweens) it stutters on all the images when they are first clicked on. As the image increases in size, it is a smooth tween until the one from last frame which it stops then flashes on to the final frame. Is there a way I can preload all the images so that this will not happen? Or anything else I could do?

View 1 Replies

Actionscript 3 :: XML Portfolio Images Stack On Top Of Each Other Instead Of Being Terminated

Feb 13, 2011

i recently started to learn AS3 and i decided to make a portfolio website with it. I am loading the information about the websites i created from an external XML file.Everything its working well but when i load a new picture to the stage the previous picture remains there which in my understanding it shouldn't happen. As i understood from Adobe's AS3 Guide once you create a new instance of a loader, the previous one should be erased.

I've been looking all over the place for a solution but i can't find one that will work. I tried using the .unload class and i tried removeChild as well but it keeps giving me errors.

[Code]...

View 1 Replies

ActionScript 3.0 :: Unloader Visible Online - Portfolio Images Don't Appear

Oct 25, 2009

i'm using uiloader to load my portfolio images... and when i test my movie the images appear, but when i put them online they don't... all my site is ok but my portfolio images just don't appear... i don't know if i'm missing some code... here's what i have in my actions layer:

[CODE]...

View 0 Replies

ActionScript 2.0 :: Portfolio With Externally Loaded Images Fading In And Out

Mar 5, 2010

I'm still an amateur at flash (more precisely, actionscript), how to do a simple gallery with static thumbnails which, when clicked, dynamically load an image into an empty movie clip, fading in and out (using actionscript)? By that I mean, click on a thumbnail, main image fades in, click on another thumbnail, loaded image fades out, image of clicked thumbnail fades in. Is it possible? I have successfully achieved thumbnails that load an image externally using both XML and using the ordinary loadMovie function, opting in the end for the loadMovie function and modifying AnaS' [URL] code (some of his comments are still in there). The reasons being that I'm not particularly concerned if I can't use XML for this, but I do want the images to load externally to save space.

I figure that the thumbnails are small enough in file size for me to afford to put them in, but just in case anyone think that XML is better for the job, I'm also including my XML file. On top of AnaS' code, I have added an if-else statement (lines 13-21) but, as I have said before, I'm an amateur, so I can get my head around the 'if' part of the statement, but haven't figured out the 'else' section (namely, the fade out). From what I have seen (I've been looking for the solution for a long time), most people just settle for fading the image either in or out, but rarely both. If there IS a gallery with both fades, it is usually done professionally and the code is either unavailable or goes over my head.

How to click on a thumbnail and load and unload the image using in and out fades. I have seen something which is almost what I need (both fade in and fade out are present) in the form of Kirupa's XML gallery, but I wanted to make mine just the bare essentials and really simple (i.e., no carousel/sliding effects). I just noticed that there is no tutorial for something like this. Kirupa has two very, very good tutorials (the XML portfolio, which is very simple, and the XML gallery with the slide, which is quite advanced) but not an 'in-between' one, such as the one I'm trying to create. [URL]. I have an empty movie clip ('loader') and three thumbnails ('thumb1', 'thumb2' and 'thumb3') on the stage.

My code:
this.onEnterFrame=function() {
if (loader._alpha <100) {
loader._alpha += 5;
} /*else {
if (loader._alpha > 0) {
loader._alpha -= 5;
[Code] .....

View 2 Replies

ActionScript 3.0 :: Getting Errors! Manage To Create A Loader To Load The Images Of Portfolio?

Apr 8, 2010

I'm new in the flash world. I'm trying to set up my website but I keep on getting errors! I manage to create a loader to load the images of my portfolio, first I couldn't remove the previous image, when I loaded the second one, the first one was still there. Now it seems to disappear when I added the line removeChild(loader1). BUT I still get a message in the output panel:

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/removeChild() at prueba3_fla::MainTimeline/clickF2()

I don't know if this is going to be a problem in the future or not. I don't have any idea of what this message is talking about

[Code]...

View 16 Replies

ActionScript 3.0 :: Online Photography Portfolio - Scalable Full Screen Images

Jun 7, 2010

I am currently building myself an online photography portfolio. I want scalable full screen photos. The only problem here is, photos are different sizes and landscape/portrait. This is what I have so far. [URL]. If you resize the browser to a different ratio to the landscape image, you see black margins top and bottom. I want the image to always bleed.

This is what I have used:
ActionScript Code:
//resize image function setImageSize():void {
// Portrait image
if (imageLoader.height>imageLoader.width) {
imageLoader.height=stage.stageHeight-thumbBase.height;
imageLoader.scaleX=imageLoader.scaleY;
[Code] .....

For a portrait image, I want to show the margins so I am happy how it is for portrait.

View 3 Replies

ActionScript 3.0 :: Loading Multiple Images - Make Sure The Program Will Start Once All Images Have Dispatched A Complete Event?

Jan 26, 2009

im loading multiple images but how do I make sure the program will start once all images have dispatched a complete event. like make a universal loader for all the other "small loaders" if you understand.

View 1 Replies

Load Multiple Images Into A Scene And Then Cycle Through The Images One At A Time?

Nov 20, 2009

I am trying to load multiple images into a scene and then cycle through the images one at a time.So, here are the essentials what I've put together in AS3:First I set up a counter and a Loader

[code]....

Then, after loading a list of images from an XML file, I call a function that I called "createImages". This function then takes the list of images and creates a bunch of loaders:

[code]....

So far, so good! I now have a bunch of loaders each with a different name "img1","img2","img3" etc.

View 4 Replies

ActionScript 2.0 :: Attaching Multiple Images - Load Images One At A Time?

Jun 21, 2007

I have a photo gallery that loads many images using a for loop (image data is from XML file). Simplified code looks like this:

Code:
var photos_xml = new XML();
photos_xml.ignoreWhite = true;

[code].....

View 2 Replies

ActionScript 3.0 :: Flash For Loop Loading Multiple Images Into Multiple Movieclips

Feb 5, 2012

[Code].....

I have a group of 16 images that I would like to load 1 of each into each movieclip. I want image1 to be inside of visual1, image 2 inside of visual2, and so on. the images are named like, 1960s_(1).png where the 1960 (year) part is coming from the rangeNum variable. The above gives me this error: 1061: Call to a possibly undefined method addChild through a reference with static type int.

View 4 Replies

ActionScript 3.0 :: Loading Multiple Images To Multiple Loaders With A Loop?

Sep 2, 2010

i have been building a library that has thumbnails which you click to view the full image. i have built the application it works but i want to change the way the image on the actual thumbnail loads using code instead of manually adding the value to the url loader component.

var myX;var instanceN:String;trace(instanceN);var currentLoad:uint = 0;// current loader and image loadingvar thumbnailURL:String;//Thumbnail URLvar thumbReq:URLRequest;// Thumbnail url requestfor(var k:uint = 0;k < iL_btn.length; k++)[code].....

the loop runs fine without the last line of code which i've commented out.the make up of these thumbnails are a uiLoader component which are each inside there own movieClip.what i wanted this to do was every time the loop runs it currentLoad adds 1 to its value then that value is subbed into instanceN:String and thumbnailURL address that bit works the trace statements read correctly.but my issue is using the instanceN value as the instance name path which then loads the current thumbnailURL value which is the URL address for the thumbnail picture.when i try to load the url address using the commented out code above i got the error .TypeError: Error #1010: A term is undefined and has no properties.the trace statements correct values below

the first value is the currentLoad value.

the second value is the instance name path.

the third is is the URL address for the thumbnail.[code].....

View 3 Replies

ActionScript 3.0 :: Loading Multiple Images On To Multiple Movieclips?

Sep 16, 2009

I have 50 images that need to be on stage, which will be embedded into 50 different movie clips. I named the movie clips image1-image50 and the images are in an external folder named 1-50. Every freaking article or tutorial I have found clearly explains how to upload one image, or just one at a time. I can do that, and spend 2 days renaming all the functions, but I do not want to do that. Is there a better way to just load all 50 images, place them accordingly?

View 3 Replies

Professional :: Drop Multiple Images In Multiple Frames

Aug 22, 2011

I have 260 images that I need to place on different frame. Instead of dragging them one by one the image on the stage, is there a way to drop all of them in one shot but each images is on a different frame?

View 3 Replies

ActionScript 3.0 :: Load Multiple Images Into Multiple MovieClips?

Oct 26, 2009

I have 24 movie clips on the stage: my_menu.image_holder_mc1 thru my_menu.image_holder_mc24. I want to load an image in each one. How do I identify the holder which to add a child.

The Code I have so far is....

Code:
for (var i:Number=1; i<=24;i++){
var myLoader:Loader = new Loader();
myLoader.name = "image_"+i;

[Code].....

View 2 Replies

ActionScript 3.0 :: Multiple MCs Need Images Through XML

May 31, 2010

I have am pretty new to AS3 and am trying to figure out how to load images thru XML. I can get one image to load to one MC named upperLeftmc.load_img, however, I have 5 more mc's on my main timeline that need different images loaded. One mc is called MidLeftmc.load_img, BottomLeftmc.load_img and so on. But how do I get these images loading into more than just my Upperleft mc? They all have to be different images too, so my xml looks like

PHP Code:
- <Projects>
<Project ISBN="Upperleft_mc">
<Title>Schools</Title>
<Text>This is a test text</Text>
<Image>images/image_01.jpg</Image>
</Project>
<Project ISBN="Midleft_mc">
<Title>Welcome</Title>
[Code] .....

View 1 Replies

IDE :: Multiple Images Breaking Swf?

Mar 23, 2009

what its meant to do: A casestudy, has a section for each client, showing a selection of work for each one. It starts at a random client/section each time it is loaded, and there is also a menu that allows you to go to a specific client/section if you want.

So what i've done is made a randomly generated var at frame 1, and then told it to gotoAndPlay different sections of my timeline

Code:
var myVar = Math.floor(Math.random() * 6) + 1;
if (myVar == 1) {
gotoAndPlay(5);

[Code]....

This is working fine, as is the menu. However, as soon as I add a new layer with 2 or more images, in any of the sections it stops working.

Stranger still, it seems to be if i use more than one of the same image type it wont work ie, 1 jpg, 1 gif, 1 png it still works, but if i have 2 jpgs or 2 gifs it will break.

I also tried making a movie clip to hold my images, but the same thing happens

View 5 Replies

ActionScript 3.0 :: Best Way To Load Multiple Images?

Apr 4, 2009

I've been doing a lot of thinking about how best to construct classes that load multiple images, e.g. photo galleries and such.

What is everyone's take (or the general agreement, if there is one) on how to load those images? The 2 ways I am thinking about are these (after you've already got all the filepaths or urls to be loaded):

1)Create a for loop [code]...

Here, you are creating anywhere from one to a billion loaders, depending on the number of photos in your gallery, but they will load simultaneously. Is that a terribly bad approach?

The only other way I know of doing it is to add an event listener that re-calls the loading function when the loading of one image completes.

View 10 Replies

ActionScript 3.0 :: Multiple Images From Same Loader?

May 11, 2009

How do i load multiple imgaes on the same loader instance? or do i need to call new loader every time i load an image?

PHP Code:
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT,PicLoader);

[code]....

View 2 Replies

ActionScript 3.0 :: Transition With Multiple Images?

Sep 3, 2009

trying to do a blinds transition with multiple images, and so far the only thing i have been able to do is to give the transition to one image, after that the movie just stops.What i want to do is to start with one image, keep it there for 1 sec, then the blinds transition to image 2 and then back to image 1 and loop the entire movie.What i got is this:

<code>
import fl.transitions.*;
import fl.transitions.easing.*;[code]......

View 2 Replies

ActionScript 3.0 :: Load Multiple Images In A Row?

Mar 24, 2010

I want to load multiple pictures using ActionScript. I can do it in AS2 easily. But AS3 is driving me nuts.

I am loading all the images, but I am seeing only the last one. [code]...

View 3 Replies

Link Multiple Images To Different Urls.

Apr 28, 2010

I've been trying to fix a problem I'm having in flash, but have no idea where to go from here. I am trying to link multiple images to different urls.[code]I need to make each bigImage file link to a different url.

View 6 Replies

ActionScript 3.0 :: One Container For Multiple Images?

May 28, 2010

Will try and explain this best I can. Basically, I have a scroller which displays thumbnail images. The images show up when a button is pressed. This is the code I have

Code:
import caurina.transitions.*;
var xml:XML;

[code].....

View 12 Replies

Same Mask Effect For Multiple Images?

Jul 27, 2011

I have a mask and I want to take 12 images and put the same mask to it and then loop them.I can apply the mask to one image but would this be easier to do in actionscript or am I completely off base here?

View 21 Replies

One Button Navigates To Multiple Images?

Jun 23, 2009

I have a site for my portfolio, and I want to show several different images.  I want to just have a left arrow and right arrow to toggle through the pictures, so how do I code the same button to go to different pictures.  Also should each of these photos be on separate keyframes?

View 9 Replies

ActionScript 3.0 :: Loading Multiple Images In A Fla.

Jun 30, 2009

i am loading multiple images in a fla. In which, i read images path through XML.
 
Now I need to calculate the preloader , based on images loading. I am not sure how use Preloader in AS 3.0

View 1 Replies

ActionScript 3.0 :: Loading Multiple Images With XML

Jun 30, 2009

I am new to AS3 and am learning as I go along. The project i am working on involves loading a few jpegs whose paths are located in an XML doc. the XML structure is as follows:

[Code]...

and i would like to load images at runtime, e.g. cat_path1/project_path1/image1.jpg And all images for a given project. I have gotten as far as loading the XML but need help stepping through loading all the images for a project using the paths defined in the XML.

View 2 Replies

ActionScript 3.0 :: Multiple Images With A Loader

May 31, 2011

I am trying to load and display multiples images with a Loader, one after another. The program only displays the last image to be loaded and added to the stage. What is wrong? Here is my code..

[Code]...

View 1 Replies

ActionScript 3.0 :: Multiple Preloader With Images?

Jun 22, 2009

I'm trying to load multiple preloaders, for some reason the following code only works on one movie clip.

for (var i:int = 0; i < 12; i++)
{
var mc = new MovieClip();
var pre = new PreLoader();[code].....

This only works on the last movieclip created when I need to have each movieclip have it's own preloader.

View 0 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved