ActionScript 2.0 :: Opening Picture Centered On Host Mc (XML Gallery)

Oct 30, 2006

I'm currently working with the XML gallery at [URL]

With the code provided below, what do I need to change to make the images load and be centered over the 'host' MC (instance name "picture"), rather than having the anchor at the top left?

This is because the images I am loading varying is dimensions so having it load centered over the "picture" MC would help keep the image position... consistantly centered in the gallery.

Current code:

Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;

[Code].....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Make A Picture Gallery And Use Buttons That Move You From Picture To Picture And Backwards?

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

Actionscript 3 :: Opening Cpanel (web Host Server) In Adobe AIR Application?

Apr 2, 2011

I am working on application to open cpanel (web host server) in Adobe AIR. I know how to open a web page in Adobe AIR, but I don't know how to open cpanel with username and password?

View 2 Replies

Flex :: BarChart - Labels(manual In The Picture) To Be Vertically Centered

Mar 14, 2011

This task doesn't seem too tough, but it has been blocking me for the last couple hours. I am doing a stacked bar chart, and I want the labels to be horizontally and vertically centered within each Bar Segment. The labels are set to be "inside". Such, you can easily center the label horizontally by setting label-align:middle, but there doesn't seem to be anything that can handle the vertical aspect.

Next approach was to create a custom component of the Bar Chart, but that go extremely messy when I was messing with the rendering functions. I thought it would be just modifying this line: v.labelY=v.y + barSeries.seriesRenderData.renderedYOffset - barSeries.seriesRenderData.renderedHalfWidth; but it hasn't worked. Attached is what the bar chart looks like now. And just to clarify, I would like these labels(manual in the picture) to be vertically centered.

View 2 Replies

ActionScript 2.0 :: XML Gallery That Want To Host In A Sub Directory On Server?

May 14, 2008

I am developing our company website and I have come across a small stumbling block!I have searched out a few other threads that mention this issue, but none have yet resolved iAnyway, I have an XML gallery that I want to host in a sub directory on my server(/gallery/...) - now when I publish the SWF using the below code, it seems as though it loads the XML, but the XML cannot find the correct path to the images themselves.My XML file, the images and the gallery SWF are all in the same directory (/gallery) and are called upon externally from a SWF at the root.> portfolio.swf > /gallery/gallery.swf > /gallery/images.xml > /gallery/image-1.jpgHere is an image of the error message...Here is my XML file...

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>

[code].....

View 8 Replies

ActionScript 3.0 :: XML Gallery - Web Host Does Not Support This Type Of File?

Dec 26, 2010

I have a sweet XML gallery that works perfectly fine, offline and when I drag the swf file to any internet browser. The problem that Im having is when I go to my web host and try uploading the .as file I get a message that says my web host doesn't support this type of file. I can't nest the action script 3.0 code from my .as file into my swf because my .as file contains packaged code. Is there anyway I can convert this .as file into something else.. like another xml or is there a way I can nest this packaged code into my swf or fla file? The fla files I am using can be downloaded here [URL].

View 13 Replies

IDE :: Flash Photography Gallery - Centered Images

Jun 15, 2009

Kirupa had written this fantastic tutorial: [URL] about creating a flash gallery using xml as the way of sorting the images and text for each. how to make it so flash takes any image and centers it in the masking area (for when using a vertical image with slightly different measurements).

View 2 Replies

ActionScript 2.0 :: XML Photo Gallery With Grid And Centered Popups From Thumbs?

Aug 7, 2007

I've built an xml gallery with thumbnails only, layed out in a grid, and am trying to link each thumb to a centered popup. I'm getting a centered popup when clicking the image, but instead of the page loading inside, I'm getting an error message: Not Found. The requested URL /tas-dp_new/undefined was not found on this server.Here is my actionscript:

Code:
cliparray = [];
columns = 6;[code].....

View 2 Replies

ActionScript 2.0 :: Photo Gallery Error Opening Url

Nov 15, 2009

I download a free photo gallery from [url]... and works fine. But when I put this gallery in a frame in my flash site justs appears but doesn't work. It's says Error opening URL 'file:undefined'

Should I change all the paths in the actionscript?

View 5 Replies

How To Create Picture Gallery In Flash

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

ActionScript 3.0 :: Removing Picture In Gallery?

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

Make A Picture Gallery Run Automatically?

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

ActionScript 2.0 :: Loading First Picture In XML Gallery?

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

ActionScript 2.0 :: Make A Picture Gallery?

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

ActionScript 3.0 :: Created An XML Picture Gallery?

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

IDE :: Gallery - Next Picture By Simple Click?

Jun 7, 2009

I want to make a gallery where the next picture to be displayed by one left click.

View 1 Replies

ActionScript 3.0 :: Picture Gallery Generated With XML?

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

Make A Video/picture Gallery In Flash?

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

Loading Picture Gallery - Preloader Frame

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

ActionScript 3.0 :: Picture Gallery With Multiple Pages?

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

Flash :: Professional - Centering Xml Gallery Picture

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

Professional :: Create A Picture Gallery On Flash?

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

ActionScript 2.0 :: Can't Hide Picture Border On A Gallery

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

ActionScript 3.0 :: Jumping Back To First Picture, Gallery?

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

ActionScript 2.0 :: Add A Gallery When The End-user Clicks On A Picture?

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

ActionScript 2.0 :: Picture Gallery And Thumbnail Doubts?

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

ActionScript 2.0 :: Little Xml Gallery - Open Pop-up Window With Big Picture

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

ActionScript 3.0 :: Flash XML Picture Gallery On Server Bug

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

ActionScript 3.0 :: Portfolio Gallery - Opening Image When Thumbnail Clicked

Jan 23, 2009

I'm working with XML and setting up a portfolio gallery. I basically want a thumbnail to be clicked and have an image opening, but i want the instance name of a button that is clicked to be stored in a variable that can be used when calling the images from the XML. I'm just trying to get the number that is in the instance name of btn2, and use that number 2 to reference the ID # in the xml file. I know there are easier ways to do this, but I didn't want to write new functions for all the numerous thumbnails on the site.

PHP Code:
btn1. addEventListener(MouseEvent.Click, _onBtnClick);
function _onBtnClick( e:MouseEvent ):void {
var clickedBtn = event.target.name;
}

Also the thumbnails are not being loaded through the XML, would it be easier to load the larger images without functions for each thumb, if I had the thumbs being referenced through the XML?

View 1 Replies

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







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