ActionScript 3.0 :: Playing External Swf Files In A Picture Gallery?
Sep 18, 2010
I am trying to make a picture gallery where each image is contained in its own .swf file and loads with a button click.The gallery works fine but I would like for each image to transition in and out,or play the timeline of each swf.I have a stop action in the middle of each swf so the image tranisitions in and then stops but when another button is clicked it immediately loads the next image and doesnt play the rest of the tmeline and transition out. Here is the code I used to load the swf files.
stop();
var movieName:String;
function movieLoad(event:MouseEvent):void[code]........
View 3 Replies
Similar Posts:
Apr 22, 2002
I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:
on (release) {
thisframe =+1
}
[code]........
but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.
View 2 Replies
Apr 1, 2003
I am using loadmovienum to try and load picture files(.jpg) into my main movie. When loading it onto a certian "level" it works fine However, when using load movie in the past I have loaded separate .swf files into movie clip symbols on the main time line which greatly helps when trying to position the movies I am loading in.
I am trying to load in my pictures files in the same way (into movie clip symbol on the timeline) however it doesn't seem to be working. Is is possible to load in external picture files in this way?
View 1 Replies
Apr 6, 2011
I would like to play external .swf files which will be located in a specific directory somewhere and I will be getting the filenames through a sharepoint XML file. The .swf files have no interaction at all they are just videos playing but I need them to play one after another and in a constant loop until the XML file changes.
View 6 Replies
Jun 29, 2011
This is my code:
var loader:Loader = new Loader();
addChild(loader);
var url:URLRequest = new URLRequest("/clientes/clientes_.swf");
loader.load(url);
I'm trying to load an external gallery. It works fine, but, the external gallery needs two xml files to work. My gallery with the xml are located in the folder "/clientes", and main swf is in root. When i load the swf gallery, the main swf load the xml files from the root, not in the folder clients, and is that what I need. I need to find a way to load the client_.swf an his xml files, all from the clientes folder.
View 5 Replies
Mar 21, 2011
I'm porting a simple application from browser-based to iPhone. It plays some external sound files. There are 2 main steps:
1) Load an external XML file that contains sound file paths.
2) Load the sound files.
Can this be done with iPhone or do I need to move everything into the .fla file and then just publish it to iPhone?
View 3 Replies
Sep 25, 2009
I've created an audio player with actionscript 3 which plays one of 55 different sounds, depending on a variable set from which button a user clicks on. It works fine for the first 1 or 2 plays, but after that the sound begins to double-up, or even triple-up. I'm using the code below./First I declare a few variables:
var sound:Sound;
var controller:SoundChannel;
var pausePos:Number = 0;
var audioReset:Boolean = false;
var playerObject:Object = new Object();//
The sound functions are placed within another function so that it can be called again once a new button is selected:
function audiofunc() {
//if the user is selecting a second audio file, it runs this "audioReset function to try to clear the EventListeners[code]....
audiofunc(); I'm assuming that somehow an EventListener isn't getting removed, so it's causing a few versions of the audio file to play at once. If I trace the value of pausePos, it starts to appear in multiples (the same number, but 2, 3 or 4 times) after a few plays of the different audio files.
View 2 Replies
May 18, 2010
I have gotten my movies to play at random from external files but the links that where coded into the random swf files no longer work. could there be an action script issue? The random swf files are as3 and the player file is as2????
View 1 Replies
Dec 3, 2009
I want to create a picture gallery in Flash. I want small thumbnail images all around the edges of the canvass (canvass will be a rectangle). When the user clicks on the thumbnail I want the image to be displayed in the centre of the rectangle in its full size. How do I create such a picture gallery? Is there a simple tutorial? Or simple template I can use anywhere?
View 1 Replies
Aug 9, 2009
I have a movieclip that when click call function moveW()The function work if I didn't add the command to change frame, but when I add command to change frame the function move to different frame before removing the pics. Does anyone know how I can fix this?this is the function:
function moveW(event:MouseEvent){ var i:int = 0; for (i=0; i<=count; i++) scene.removeChild(arr[i]); arr=[];
count=0;
[code].....
View 1 Replies
Feb 16, 2010
I have a gallery that shows pictures when yo hit a next and previous button, but id like to make it go automatically.[code]...
View 6 Replies
Aug 13, 2005
The XML gallery I have has a pop-up window that appears after selecting a thumbnail. What I'm trying to accomplish is for the first picture in the gallery to load into the pop-up window, which is now always shown on the stage. I was able to make it so that the pop-up is always visible, but one thing I couldn't figure out is how to make it so that the first picture in the gallery loads into the pop-up box WITHOUT the user selecting the thumbnail first?I think it has to do with this code:
Code:
portfolio_xml.onLoad = function(success) {
if (success) {
var gallery = this.firstChild.childNodes[index];
galleryInfo.text = this.firstChild.childNodes[index].attributes.title;
[code]....
View 3 Replies
Nov 28, 2005
I just tried to do a picture gallery.But It has to have around 21 pictures.In 3 sections(this is around 7 pictures per section)
I would like to look like file 1. It must have 21 buttons (on which when you click to see the picture bigger) on the same window,now there are only 13.[url]...
View 1 Replies
Feb 19, 2009
So i have created an XML Picture gallery in AS3. Everything is made in two files:
1) The main file Gallery.fla that has only one layer and has just a stage color applied to it
2) and Gallery.as taht contains all the code and functions.
And now that it all is created i would like to create a preloader, but i am having problems doing it. Have been solving this issue for a week, reading lots of tutorials etc. no luck so far. I even tried creating a seperate .fla file that contained only a preloader, that simply loads an .swf movie - which was my Gallery.swf but no good - it is not working like that because i am using an XML file in that Gallery.swf .
[Code]...
View 4 Replies
Jun 7, 2009
I want to make a gallery where the next picture to be displayed by one left click.
View 1 Replies
Aug 27, 2009
I have created a gallery with pictures that is generated from an XML file. When I look at it on Flash, it works perfectly; However when I upload it to a web server, the images don't appear. The files I have uploaded includes the XML file, the pictures folders, the html and the swf file as well as a swfobject.js.
View 9 Replies
Jul 31, 2009
how to make a video/picture gallery in flash? If not in flash then something else. I just need like a video gallery that i can put into flash!
View 11 Replies
Feb 26, 2010
I am building a web site and I have the main movie, which loads a picture gallery (another .swf file) using "loadMovie();" and then the problem comes in - my gallery movie has a preloader which after finishing is supposed to move on frame 2 of the gallery movie, but instead of that it moves to frame 2 of the main site...
This is the main movies button code loading the gallery:
on(release) {
gotoAndStop(5);
Gallery_Sub.loadMovie("../Flash/murals.swf");
Here is my preloaders code on the frame 100:
_level0.gotoAndPlay(2);
And at last my gallery movie's code on the preloader frame:
stop();
percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
if (percent == 100){
_level5.gotoAndPlay (2);
}else{
_preloader.gotoAndPlay(percent);
}
I tried using loadMovieNum(); but somehow it didn't work as well.
View 3 Replies
Sep 27, 2010
Working on a picture gallery with multiple pages. The basic idea of what I'm trying to do is I get a list of all thumbs, separate the list in groups of 20 and then add all the groups to a MC that slides left and right when the user presses a left or right button.This is the code I've written:
Code:
if ((totalPics % 20) > 0)
{
[code].....
View 2 Replies
Sep 17, 2010
I have a website that I would like to make a little improvement. The website is functioning quite well except one little small thing. The xml gallery image is not centering. At the moment it is aligned to the top left corner. I would like to center all images no matter what size they are, but I don't know where to find the action script that centers the content in XML. Here is the website, so you can see what I am talking about: [URL] how to make a pop up window that you can see the image even larger and go up and down to see the details?
View 7 Replies
Jan 29, 2011
Is there a simple way to create a picture gallery on flash?I literally want to have an image in the middle of the screen and use buttons on the left and right to scroll through the pictures?
View 1 Replies
Oct 23, 2009
I have added 3 staggered backgrounds behind each picture that act as a tri-color border around the image, named borderOuter, borderMiddle, borderInner. When i click on the thumbnail, i would like the border to disappear. [code]...
View 2 Replies
Oct 31, 2009
i'm making a photo gallery in flash AS3. I have two buttons, prev and next, what i want is when you are at the last image end press next, you jump to the first image. I have tried to google it and searched for an answer, but cant find anything. This is my code so far.
picture.stop();
rbutton.addEventListener(MouseEvent.CLICK,
clicknext);
lbutton.addEventListener(MouseEvent.CLICK,
clickprev);
[code]...
View 1 Replies
Jul 27, 2011
I am editing a template made with as2, flash8 and its controlled externally by a html file. I want to add a gallery when the end-user clicks on a picture. The main problem is the structure of the template. Its like that: There is a symbol named "pages" and in that there are 6 frames which one represents a page of the website except the main menu which is in another symbol. In the 4th layer 3rd frame there are 6 movie clips which are instances of another symbol named "p1_3 copy 2" which is a button and an instance of another button named "but_picts". One of those movie clips i want to make it a link for my gallery. So we there is the movie clips with the following actionscript attached:
ActionScript Code:
onClipEvent(load) {
loadMovie(_root.url + "_portfolio1.jpg", this.cont);
url=_root.url7;
[Code]....
View 2 Replies
Jan 27, 2004
Here's the situation: I'm making a script that will dynamically load JPG's from a file and will eventually display each JPG's thumbnail them side by side. I've got the code going and would like to know any suggestions for corrections.
[Code]...
View 14 Replies
May 10, 2006
I'am searching for a gallery with thumbnails which will load from xml file, and each thumb will open pop-up window with big picture. Does anoyone have fla for something like that or tutorial ? I had searched ultrashock and this forum, but every gallery is much more complicated than that what i'am searching for.
View 2 Replies
Jun 17, 2010
i made a pic gallery that loads pics from xml file.. when I open the gallerys .swf itself on my server it works fine.. when I open the website .swf file on my server it looks fine... but, when I open the flash-generated .html file and try to open my gallery on my web site it sometimes shows me only a couple of pictures... sometimes none. also, when I open it up on my computer, it works fine...
btw: the gallery is stand-alone and I load it in my flash web site through the code ->
Code:
var ldr = new Loader();
var url:String = "MY GALLERY.swf";
var urlReq:URLRequest = new URLRequest(url);
[Code]....
View 14 Replies
Apr 7, 2009
I have created a flash file that allows you to click on a thumbnail image and larger image appears ontop of a tshirt. The same way as a gallery would work. The images and thumbnails are pulled in through xml. However I have a problem, I need the images that appear on the tshirts to be .png files or gif files as the tshirt colour can be changed. At the moment my flash file will only display jpegs! I dont knwo why. The jpegs leave me with a white background, so I need the transparency of a png/gif. My actionscript is:
[Code]...
View 2 Replies
Dec 11, 2010
when I try to play my slideshow I click play and it goes so fast you don't see a single pictue then it goes back to the first one?? I don't know how to really fix this? This is all the code it.
[Code].....
View 46 Replies
May 2, 2010
I have a script for a scrolling picture gallery. I know it works, but I want to know how the script makes it work. What the script does it make it so that when you have your mouse on the far left of the flash canvas, the picture gallery scrolls fast to the right, and if your mouse is close to the middle but on the right slightly, the picture gallery scrolls slowly left,
The script is:
onClipEvent ( enterFrame )
{[code].....
I think it means that the move direction of the gallery is to do with (something) divided by the width of the stage, then - 0.5, then x by 5,and if this calculates to be less than 0 and (something) calculates to be less 0, then... I don't get how it chooses which direction to move after that.I also know the picture gallery has some sort of physics engine perhaps, but I'm not entirely sure..In short... I'd like to know how this code works.
View 0 Replies