ActionScript 2.0 :: Full Browser XML Gallery?
Apr 12, 2006
a couple issues I'd like to work out. I have taken the XML photgallery tutorial a step further by making it full browser (with images centered in the browser window). To make this possible, I've sunk the "picture" mc one level deeper into a "container" mc that is centered via actionscript.
So the code changed from: picture to _root.container.picture
Problem is, the registration point for the loaded images is top left. Since some of the images are different sizes, I'd like the registration point to be dead center. How would I do this? Actionscript follows (it's a lot, my apologies).
Side note: Why is the fade-in script so poorly written? Is there a way to make the fades smooth? It works ok when on local drive, but I'm assuming that the delay introduced by an image being accessed on the server makes some of the fades very sudden and ineffective. Any idea how to force the alpha fade to wait until the image has fully loaded?
[Code]...
View 6 Replies
Similar Posts:
Apr 22, 2010
problem regarding xml flash gallery and as 2.0. I have created a xml photo gallery from Kirupa ([URL]) I want to create a gallery where the images from the .xml fill the entire screen and scales proportionally. To achieve this I have followed this tutorial: [URL] As long as I can center the content of the mc center to stage this works fine, but when I create an empty movie clip and try to load external content from the xml file to the mc (instance name = picture) the images does not behave as espexted. It looks as if the TL corner of the jpg images are aligned TL in relation to the MC. Also the image rotates 90degrees clockwise. A final problem is that this test:
[Code]...
View 1 Replies
Jul 23, 2009
I am using an XML Gallery on my website and I would like to make it full screen (take up the entire browser) -- instead of its current size. I have played around with the code for hours and pulled most of my hair out and STILL I have no luck on making it fullscreen... I get the positions changed but I can't manage to enlarge it to the whole browser.
Here is my code used to align the holder on the stage and the gallery components (bttnPrev and bttnNext are on the left and right of the image to control movement to other images):
Code:
alignPic = function () {
holder._x = (stageW-holder._width)/2;
holder._y = (stageH-holder._height-menu_mc._height)/2;
bg_mc.bg._x = holder._x;
[Code]....
View 1 Replies
Aug 9, 2009
I've spent the past few days having a look for this and no luck so far. Basically I have got a multi-page XML gallery with thumbnails. At the moment the images in the gallery stay their original size. I want to make it so that a) the image takes up the entire page of the browser/stage, and b) the image resizes as the browser does, which I suppose might be in the publish settings.
So my question is how can I size this image so it takes up the entire stage? I've tried fiddling around with Stage.width and Stage.height but no luck so far.
Something like this: [URL]is what I mean.
Attached is my .fla, the actionscript code is all within a key frame inside gallery_mc.
View 2 Replies
May 5, 2010
I am creating a website where the entire background is tiled and it also contains a photo gallery. Now, the photo gallery has to only appear within a limited height but the width could be similar to the browser window. (The website will be a full browser website with a capability of going fullscreen.). I tried a lot of things but the stage calculation requires to be a little different than the general stage properties.
In general, the height and width of the image is directly proportional to those of the stage. But what I am looking at is for the image to be rescaled proportionally to the width of the stage but the height nneds to be about 20-30% less than the height of the actual stage. Basically the background will be visible in that 20-30% of empty space. (And of course other elements)
My scaling of the image code looks like following,
Code:
function scalePic():void {
if ((stageHeight / stage.stageWidth) < imHeight) {
im.width = stage.stageWidth;
im.height = imHeight * im.width;
[Code] .....
And it also centers the image on the stage based on the new stage size.
View 0 Replies
Apr 1, 2010
I am working in Flash CS3 and Actionscript 3.0 My application resizes according to browser width and height. If the user first resizes the browser and then loads the flash application, I could not get the full browser width untill the user goes for full screen. Is there any way around, to get the full browser width before the user goes for full screen.
View 1 Replies
Jan 22, 2009
I'm working on a small flash site and I want the swf file to have "bleed" or to go to the very end of the window so that the swf isn't just ploped over top of a background. [URL]
View 1 Replies
Apr 14, 2005
I have a standalone Flash projector running off CD. Currently, I use
getURL("http:url....);
to open the page on default browser. Only problem is the browser window is opening at the size it was last used. I like to see it opens full screen.
View 2 Replies
May 8, 2007
[URL].. Anyone know the AS to make it automatically check the size of the browser for the listeners_notice when you resize the browser it works perfectly...but not when it first loads up.
[Code]...
View 11 Replies
Jan 29, 2012
Im using a dock gallery fx from flash xml components. But for some reason when I preview in browser the dock gallery scales out of the swf area. This doesnt happen if i change the p[ublish setting to match movie. But if the publish setting is set to perscentage gallery scales.
View 3 Replies
Oct 5, 2009
It was designed in Flash MX 2004 on a mac. I need to make the site load full screen in the browser but with the content not to scale with the content to remain centered at all times if the screen size is larger than site. How do I do this? What publish settings does it need and do I use fscommand? Or does it need html code adjustment?
View 2 Replies
Apr 20, 2010
In AS2 I have a full browser flash setup with some centered movieClips.
I only want them to shrink (proportionally) if the browser window is 1024x768 or less.
View 1 Replies
Jul 15, 2011
[URL] They wanted me to make the gallery images full screen.. I have done this but this time the next and other buttons stays behind the big image when you enter the gallery (koleksion and showroom parts). Also the sliding menu stays behind this picture.. How can I fix this that the buttons and menu stays on the picture..
View 16 Replies
Sep 30, 2009
I bet you can't solve this one! I am using AS2 to make a full screen gallery like this: [URL].. and I'm having some problems:
1) MOST IMPORTANT: When the gallery is loaded in a smaller browser window, then the browser window is maximized, the scroll bar doesn't work properly when clicked. The scroller moves, but not to the position at which the user clicks.
2) LESS IMPORTANT: When the user mouses over the scroller and scroll bar, I would like their alpha/colour to change (preferably fade in and fade out).
3) LEAST IMPORTANT: Is it possible to use a graphic for the scroller?
[Code]...
View 1 Replies
Sep 14, 2009
I would like to create a html that would embed my swf without any borders in the browser.
I've tested embedding my swf but the excess graphics in the swf were shown at the side. Is there anyway i can solve it?
View 7 Replies
Feb 13, 2009
I've just followed the tutorial "Full browser flash" URL...I've got it setup so everything will be inside of the "centered" movieclip. view it here: URL...BUt I can't seem to get my preloader included in the centered movieclip.[code]Basic, but it works on the main timeline just not in movieclip. Something I need to change?
View 2 Replies
Aug 13, 2009
I've seen the Full Browser Flash video which has tiling in the background. Can somebody supply code, and possibly an example of how to have one scalable image as the background without distortion whilst the foreground flash remains the same size. the site below is exactly what i'm after with the menu fixed to the left.
[URL]
Is it also possible to have the menu bar a fixed percentage from the top of the browser?e.
View 2 Replies
Sep 25, 2009
In a nutshell here's my objective: I want to create a full browser flash video (not full screen mind you, just the browser window itself).I've imported the .f4v using the NetStream and NetConnection classes and set it to replay the moment the video reaches the end. Here's the code I've used:
Code: Select all//Create a NetConnection object
var nc:NetConnection = new NetConnection();
nc.connect(null); //if video resides locally or on my server pass null to the connect method[code].......
The problem I'm having is that I don't know how to center the original vid object on the stage.Currently, the video is being resized, but only the upper left portion is visible (example: http:url]....). As it stands the vid is being placed in the top left corner before being resized. In the tutorial he mentions aligning it with the tools in the align palette, which is not applicable in my case.
View 2 Replies
Dec 13, 2009
I want to display an image gallery that when clicked shows a video over top of the browser (like shadowbox)- full screen.I have tried full screen but I can't get rid of the message about using the esc button that flash player displays.
View 1 Replies
Jul 31, 2007
I want want to create a gallery where the images fill up the entire Browser window. Here is what I got so far:
PHP Code:
Stage.scaleMode = "noScale";
Stage.align = "TL";
import flash.display.*;
stop();var sl:Object = new Object();sl.onResize = function() {
[Code] .....
How can I use an XML file to get the images from?
View 14 Replies
Nov 29, 2011
i'm having a problem with embedding a full screen flash gallery. when clicking a thumbnail executes swfobject.embedSWF which creates the flash-object and the gallery is showing up. when closing the flashgallery, i'm removing the whole flash-objects. then when clicking another thumbnail, swfobject.embedSWF for embedding the object simply doesn't work anymore
View 1 Replies
Aug 6, 2009
I need to create a full screen photo scroll / gallery like on the Tom Ford website, see link below know how to make the various parts stay where they need to, but I do not know how to create a scrolling photo gallery.I have looked through the site for ideas, or clues how to make a full screen version.
View 1 Replies
Jun 30, 2010
I just created my first website, but one of my AS3 XML image galleries are not working properly. I followed the XML Grid gallery tutorial at to "T" and am using it on 5 of my pages, however, the "PRODUCTS" will not load the "full" images.The thumbnails load, they decrease opacity when moused over, but once you click on one, the progress bar loads till complete and just stops. This problem, however, only occurred after I hosted it on When I test it (Ctrl+Enter) in Flash, test it in Dreamweaver or open the .html of it from my computer, everything works perfectly. It is only after I FTP upload all the files to iPage's server that this problem occurs. Is it a problem with Ipage?Are too many images trying to load??Furthermore, for some odd reason the 1st image, 4th row down on the "Products" page DOES load the full image but the others still dont and I can't for the life of me figure out why
View 3 Replies
Nov 21, 2009
I am making full browser page, but resize doesnt work well. It looks like the flash took wrong stageWidth and stageHeight at the start... Then it all works but with wrong numbers [URL] (when you launch swf in standalone player, it works well - download [URL]
[Code]....
View 1 Replies
Feb 4, 2010
I was checking out flash templates looking for inspiration, when I ran across this template.If you open the link, you'll see a button on the right side of the flash file which allows for full screen display. There are no browser elements visible at all.
View 1 Replies
May 1, 2009
I'm learning AS3 and Flash CS4 right now and I'm trying to do what I have been doing in AS2 for years and I'm having some problems I'm trying to make a Full-Browser Flash site and upon resizing the screen I get an error #1009.I am able to to resize the mc's on the screen without a problem, but once I add simple interactivity, I get an error upon resizing the window.To duplicate this problem,I'm sure I'm doing something very stupid, but I just don't know what I'm doing wrong.
View 5 Replies
Oct 17, 2010
I want to develop a flash website. I have some background images. I want them to be filled the whole screen and also in center while seeing in the browser. I am able to make it into the whole screen. But while resizing the browser it is not holding into the center.
View 2 Replies
Feb 16, 2012
My flash program isn't using the full browser window, even while in full-screen mode. It uses the full height but not the full width. I end up with a large chunk of white space. I have the following code for full-screen mode:
[Code]....
So the problem is that the stage's width isn't the full size of the browser. I'm using Flash Builder 4.6 is there a way to set the stage's parameters to allow for true full-screen?
View 1 Replies
Apr 20, 2010
In AS2 I have a full browser flash setup with some centered movieClips.I only want them to shrink (proportionally) IF the browser window is 1024x768 or less.How do I code that into my listener?
View 4 Replies
Dec 18, 2010
I have a full browser image slideshow. It works fine. I have a top menu with some buttons and with each one of them I would like to load a new slideshow swf on top of the existing one while still using the full browser layout. Is it possible to load the new external swf so that it will match the size of the first one? I have been trying numerous times...and the new swf I load always appears offset.
View 0 Replies