ActionScript 3.0 :: XML Loaded Gallery As Background For Webpage
Oct 21, 2009
Basically what I've got is a XML loaded gallery as a background for a web page. Now the problem I can't seem to work out is, I want to be able to define which pictures in the gallery show up in different sections of the website. For example -
homepage - images 1.jpg, 2.jpg and 3.jpg are accessible.
About Us - images 4.jpg, 5.jpg and 6.jpg are accessible.
and so on.
Similar to what happens on [URL] but without the gallery popping up. It's relay bugging me now.
View 6 Replies
Similar Posts:
Nov 13, 2009
have a gateway button that resizes the browser window to the size of the user's screen. since this would vary, i'd like my flash elements to have a transparent background so they can rest in the middle of the background despite the size of the window, borderless and seamless.
View 3 Replies
Jun 16, 2010
I used a colour gradient background image on my stage for my website.Managed to load up the same background onto the browser background.However, the result is not satisfactory as I can see the website background image boundaries against the browser background.How can I get around this? Or is there a code that allows me to change my website background to transparent so that I can only see one browser background?
View 3 Replies
Aug 4, 2009
I ve uploaded flash file with transparent background to my web page. Set background transparency in html code of page. Purpose of this flash is to represent main meny, so it contains few buttons, in up and over stage everything is ok but when i press mouse some strange doted line appears around flash, on click out of flash zone line disappear i want to remove that doted line.
View 3 Replies
Nov 11, 2009
I've seen this done on many sites (it even happens on here when attaching links), where the screen darkens and an image gallery or form loads.
My question is, can this be done through Flash, but more importantly how to load a swf file this way. I noticed that the new Nike Running site has done it for their login functionality, where it loads the login box on a darkend screen, not sure whether the actual login is Flash but it's opened from within Flash.
[URL]
View 1 Replies
May 7, 2010
I am attempting to create a basic Flash website to promote myself online. To do this I require a scrolling gallery of images on one of my pages.I have found and implemented a tutorial online allowing me to have a scrolling gallery, but what I need to do is include it within the rest of the pages I have created. I don't know how the code I have used for the scrolling gallery works, to allow me to use it, inside the root level page.The script says:
_root.onEnterFrame = function()
{ if (_root._yMouse<594)
{[code]....
What I need to do, is put the scrolling gallery feature 1 level INSIDE the site, instead of on its "root". When saving the scrolling gallery feature as a movie clip, I coped the frame it was on and pasted that on the "images" page, within the navigation bar movie clip where the other page contents reside. ie Contact, Animations, Intro, etc.When doing this, the gallery is present on the page once the "images" tab is clicked on the navigation, but only the scrolling thumbnails are present on screen, and not the blown-up main image each of the thumbnails refers to, so when clicked on, no main image appears.But when placed on the "root" or outer-most layer of the site, the gallery works fine.I really need to know how to include this scrolling gallery feature WITHIN the navigation bar with the other pages, how can I do this? What actionscript could I use as a replacement to the "_root", to make the gallery function correctly?
View 2 Replies
Mar 13, 2010
I want to make flash gallery's background fully transparent. Now it looks like it is like 30% transparent. This is the code for flash movie on my page:
<div id="content">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[URL]" width="800" height="600" id="gallery" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="gallery.swf" />
[Code] .....
Looks like this on page (Flowers and white square):
View 1 Replies
Jan 14, 2009
I'm doing as 3 + xml gallery, my client want photos to be loaded in the background, so first we load one foto, user cant change the photo until the next one is loaded. so I am loading the photos until each of them is fully loaded, when the foto is loaded I use the addChild and set alpha of the photo to 0. The problem is this gallery works like shoot. The animations has like 2fps and everythink is laggy :/ any ideas why? I thought loading photos is not so exhausting for flash player.
View 14 Replies
Sep 28, 2004
I am try to adapted a new action in the photo Gallery Using XML and Flash. I am trying add a color function? You can see what I am trying todo here I want the color to change when you goto the next image?? I hope this make sense. I just don't know where to add it? to the xml or the fla?
View 4 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
Feb 7, 2009
I'm creating a photo gallery from xml with a changing background color and description which i've gotten to work fine, however, the border that goes around my image and the image itself are supposed to be centered on stage and they aren't even though i set their x and y to the center of the stage the line after
View 2 Replies
Mar 16, 2012
I'm creating a photo gallery, and I have a .swf loading when I click my gallery button..it loads on the same page. I would like to have the background image dim when the .swf loads, as it is a bit distracting under the .swf at full alpha.
View 9 Replies
Aug 19, 2009
I created a flash application which loads in many other little flash applications (.swf files) based on menu selections. When I change one of the little applications the changes are viewable except when I change the background color.
After the first time I view the application, the background color changes do not carry over to the main app. I run the little ones stand alone and they show the new color, then I run the main app and any other changes I have made are there but not the color change. When I remove the file and the load fails, the old backround color still displays in the container movie clip the .swf was previously loaded into.
I have tried several different options and the only thing that worked was renaming and copying and deleting and making a big mess. There has to be a way to force a refresh of this mysteriously saved color. doesn't there?
View 3 Replies
Nov 16, 2009
I'm loading an swf file into my main application using URLLoader, I want to get the background color of the loaded swf file. ( I heard that one solution wold be reading the byte code of the loaded swf )
View 2 Replies
May 7, 2010
I am new to Flash and am trying to make a page that has a fullscreen image gallery with individual thumbs along the bottom. I can more or less figure this out using some templates,but I need to do this for over 50 different projects, each with anywhere from 1-100 images.Is it possible to make more of a container that dynamically loads from a folder of images rather than have to make each one by hand?
View 1 Replies
Apr 14, 2010
I want to fade in a background with a alpha tween after it's loaded in by an UILoader. Everything seems to be working great when I do a Test Movie (in Flash) or view it in IE. However, I encounter a problem when viewing in Firefox. Somehow the alpha does'nt come up to 1(100%). Sometimes my background image is barely visable and sometimes it's at ~90%. It seems to be completely random.
Quote:
//load random background (1 to 10)
var randomNumber:Number=Math.ceil(Math.random()*10);
trace(randomNumber);
[code]....
I've tried increasing the final value (Regular.easeOut,0,1,2,true) and this will change something but doesn't solve the problem. I've also tried instead of fading in the background to fade out a overlaying vectorshape, but same result.Is it possible it has something to do with other script/my background img size/??.
View 2 Replies
Apr 27, 2010
I have some preloader (timeline-based) content and some FLV's that I want the user to see while other content is loading in the background. The preloaded content and the FLV's are very choppy while the content is loading and run fine afterward. I initially thought this might be a RAM issue, but my other apps are running fine at the same time (YouTube, etc.) so I think it's an issue within my code or Flash Player. How do the really nice preloaders (animation on timeline OR FLV's) run so smoothly while background content is loaded? For example, are they independent SWF's? internalized classes exported for Actionscript? some other option I'm not privy to? Mine, for example, are internal classes in the main library that I have exported for AS.
View 6 Replies
Apr 28, 2009
I am loading in text from an XML file, and it loads in fine but I am getting a black box behind each of my letters in my text field. I tried to cancel it out by write the background = false; but it is not working. Does anyone know why this is happening? I have loaded in hundreds of .txt files and this has never happened, but this is my first time loading in XML txt, so I am not sure what to do?
View 3 Replies
Mar 1, 2009
I have a main stage (its a background image + buttons) and when I click a button, an external swf is loaded in the middle of the page, on the main stage.
I would like the main stage to become inactive, dark and blurry... (you know what I mean?)...every time I click a button and the the external swf appears. Then when I click on the blurry area (main Stage), the external swf disappears and the main Stage becomes normal and active again.
How could I do all that in AS 3?
All I have now is the code for the button, to open the external swf file:
Code: Select allcontacts.addEventListener(MouseEvent.CLICK, Contacts);
function Contacts(e:MouseEvent):void {
var loader:Loader = new Loader();
[Code]....
View 7 Replies
Oct 7, 2007
I am trying to make a jigsaw puzzle where you can upload an image of a set size.Right now the only way I can think to do that would involve loading the same image for each piece, which I don't want to do for performance reasons.Is there a way I can make an instance of a movieClip the same as the instance of a different movieClip?
View 1 Replies
Oct 15, 2007
Is it possible to dynamically load a JPEG image and use it as a tiled background for a fullscreen flash movie?Everything I see online is for bitmaps already loaded in the library.
View 1 Replies
Jan 9, 2008
I am creating a site where there is a portfolio section with icons for each piece of artwork.Regardless of which icon 1-10 is clicked, for the first time ONLY, I want to load a swf which "draws in" a portfolio "background", and another swf on a higher level which corresponds to the icon clicked (lets say a sample artwork).
However, if the user has previously clicked another portfolio icon and is currently viewing one of the portfolio pages, there is no need to load the "background" swf again (it would be tedious watching the drawing in animation over again).
I've designated a target container movieclip for each.The icons swf file with the buttons is another swf on the timeline.Is there some code which can check to see if the background swf is already loaded into its container? And in which swf would I attach the code?
View 3 Replies
Jun 20, 2011
There are buttons on either side that scroll the dynamically loaded images left and right. The script is compiled from an external AS file which I've pasted below.
What I need to do is load a transparent png over top of the images but underneath the buttons. I've inserted a graphic below. I've tried inserting the png directly in the timeline as well as loading it dynamically in to a movie clip. The overlay always comes out on the bottom. [code]...
View 3 Replies
Jul 3, 2007
I got another XML gallery thrown at me this week and am thinking of adding a new feature.When a user clicks on a gallery it will load the first image, and continue to load all of the images so they won't have to wait each time they hit next, as it would be in their cache. this link has been thrown around a lot, but I don't think this feature (which is an awesome feature, oh yes) has been addressed. Goto one of the galleries and wait for it to load, and then keep hitting next. The pictures load before you get there. You can catch up to the unloaded ones and reach a loader bar if you hit next enough times
View 4 Replies
Feb 10, 2005
[URL]
Click on the first and second thumbnail a few times so that everything is loaded (I didn't use preloaders etc for now).Notice the wipe when you click the thumbnail? I spent already a long time to create this :-)But now I want it to wipe out if you click another button, then wipe in again to show that new image etc... (like it is now, you have a white flash, really annoying).Here's my code that is on frame 1 of the timeline (I only have 1 frame in the timeline)
[Code]...
'navi' is the MC with all the buttons in it. 'vol01' and 'vol02' are instance names of the first two buttons. 'container' is an empty movieclip. 'wiper' is a white MC of which I change the width with actionscript = wiping effect.For now I load .swf files instead of jpg's, because when I put ("pic_01.jpg") instead of ("pic_01.swf"), it doesn't work. (edit: I found it, my jpgs were progressive...)
So basically what I want when the first pic is shown and you click on thumbnail2:
-wipe out image currently displayed
-load new image (pic_02)
-AFTER new image is fully loaded, wipe in to show this image and so on
What would be cool also is the following:
when you click button 2, load image 2 while image 1 is still displayed. When loading is finished, a white line goes from left to right, wiping out image 1 and at the same time wiping in image2.Note that there will be 4 of these galleries with +-80 thumbnails each...I read the transitions between external swf's tutorial, but I want to load a bunch of jpg's, and not make 4*80 swf's with each only 1 jpg in it...
View 8 Replies
May 3, 2011
I have a full screen webpage with an elastic bg that is created mostly through AS, XML, and external .swf's. The main menu links to pages (other external .swf's with dynamically loaded content) that look sort of like popups over the graphic content of the main background (img2). There are two problems, 1) there are other buttons on the main page that the user can click when viewing a page and 2) the popups come down directly on the content and make the whole site look rather flat.
I am trying to create a background for each of the pages that has the same elastic qualities as the main page (so that no matter what it will cover the user's entire screen) and will disable all of the buttons beneath it. I tried adding a rectangle beneath the pages other layers, however any script I write for that mc (such as the onResize _mc.width and _mc.height or ._x and ._y) is completely ignored in the main timeline and the rectangle messes with the popup page position -- img3. Also the buttons beneath the rectangle are still active.
View 2 Replies
Aug 1, 2011
I have a few questions... All of which have to do with this website: [URL] 1) First off, is there any way to pre-load externally loaded .jpg's so that there is no time delay between each background image? (You can see what I mean by clicking the "-" and "+" buttons on the bottom left corner. Here is the code that I'm using for the background images/buttons:
[Code]...
View 4 Replies
Dec 7, 2007
Trying to use swapDepths in XML gallery to send the "picture" to the background, whatever I try it doesn't want to play...
View 2 Replies
Jan 23, 2010
I have made a gallery with xml, and my problem is that when the thumbnails are loaded they move on the Y axis and doesn't want to be in their original placed position. I am attaching a zip with my problematic sample to see what i mean.
Attachments: another_problem.zip (147.0 K)
View 2 Replies
Sep 22, 2009
I followed a youtube tutorial on how to create a fancy Image Gallery but when I got to run it I keep getting the following error : interface 'flash.events.MouseEvent' could not be loaded.
Code:
stop()
btn1.addEventListener(MouseEvent.CLICK,play1);
function play1(event:MouseEvent):void{
gotoAndStop("img1");
}btn2.addEventListener(MouseEvent.CLICK,play2);
[Code] .....
View 4 Replies