ActionScript 2.0 :: Link Button To Different Galleries?
Feb 25, 2010
I bought a template and althought I'm usually ok with Flash, I cant put my head around this one.I've got a category section that should link each time to a different catalogue (galery), see screenshot attached. Well after 2 days of trying, I think is fair to say that I dont know how to do it.
There is the following in the Action Layer of the main movie clip:
Code:
_root.link_gall = 1;
_root.photo = 1;
_root.D = 0;
And if I check the AS for the button of each category like "Water Colour", I found this:
[Code]...
View 1 Replies
Similar Posts:
Mar 15, 2009
I need a simple way to use xml and create a multiple gallery inside 3 main galleries so basicly like this: (Everything would be in the same page, list view, when clicking into one it would open it)
GALLERY 1 (Will include numerious galleries)
-Example 1
-Example 2[code]....
Basicly when clicking the link it would hover the pics with a scrolling effect in the flash file (that all should be sorted out)
View 3 Replies
Oct 8, 2009
I have a SlideShowPro component on my stage and some buttons I've made which I want to load the different galleries when clicked. I've tried tons of different ways of writing it, but just can't seem to get the code right.
Code:
//ENABLE GALLERY BUTTONS
function albumChange(event.Event, url):void {
my_ssp.xmlFilePath=url;
[Code] .....
View 2 Replies
Sep 2, 2006
I used senoculars xml gallery tutorial (link) to create a gallery but i want to have different galleries so that when i press a button a different set of thumbs load how would i do that ?
View 1 Replies
Dec 17, 2009
i created my subMenu buttons fine, however i only know how to link them to a picture/url address, my goal is to have the user click the subMenu button and open the image or page right below the menu bar in the "stage" area of flash. I read about IFrames but i'd rather create the whole site in flash .Here is the code for my subMenu...
btn_34th.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("images/34th.jpg"));
trace("I'm Clicked!");
Again, this works fine, i just want to have the image take up the "white" space on the stage area, very similar to an IFrame.
View 1 Replies
Mar 26, 2009
I've trawled the web, everyone with different ideas on how to call up a mailto link in AS3. What I'm looking for is this: I have a box, that is coverted to a button symbol given the name 'mailto'I have another layer for the actionscript I have imported 'flash.net.navigateToURL' and 'flash.net.URLRequest'
I know I need to create a function or a variable to link in the already created button. Do I also need to import the MouseEvents?
I created this FLA to get used to CS4 (i was previously using8)Everything works wonderfully, I would just like to know how to use AS3 properly, without having to call defeat and create the FLA again using AS2.
View 4 Replies
Feb 14, 2011
I am extremely untrained in CS4 and Actionscript. However I have managed to get along fairly well until I started to dynamically upload images as a gallery. This works great if I have one gallery, but for my site I have 9 galleries!!! I have a back and next button, but I want to be able to use those same buttons for all of the galleries so they look the same. I have split them up and renamed them, but I am clueless on how to script the buttons to work.This is what I have now because I do not know where to put the other button names without getting errors.
stop();
next_btn .addEventListener(MouseEvent.CLICK, nextImage);
var imageNumber: Number=1;
[code]......
View 3 Replies
Jun 21, 2009
I have an an array of objects. I populate the datagrid from the array. The nmber of columns in the datagrid is fix i.e.5 and the first column always shows serial number (0,1,2,3,4). I have a link button called 'CLEAR' in the last column of the datagrid.
1> How do I make the clear button visible only when the row is particularly clicked 2> When the clear button is clicked, how do I make the contents of that particular row cleared. Not deleted, only cleared to insert data again. Also, the serial number (0,1,2,3,4) should not be cleared, nor deleted. How to do this ?
View 1 Replies
Sep 1, 2004
I am trying to make a button in such a way so that after you clicked on it, the button will change colour, indicating that the link has been visited.
View 3 Replies
Aug 26, 2011
I'm using an xml menu and have the code in a .as that loads as2 & as3 swfs, but I can't load these externally created image galleries (externally because I created them using another software).I want to load 1 of these galleries into a movieclip when I click a button, and load another one when clicking another button, of course the first one should unload first.The Image galleries I have are: carrera, Col_Imanes, Cons_Base, Cons_Hapas, Cons_Imanes, Gallery, and 1.[code]...
View 4 Replies
Jan 6, 2006
[URL]
I used the XML gallery w/thumbnails in the tutorial section of this site. It worked great, but my client cant see it! She is on DSL, i think it may be taking too long to load. Does anyone know how this movie loads? Does it load ALL of the thumbnails when the movie starts? If thats the case, i can see why she might have some problems. I just checked, I have 24 thumbs that are saved without any compression (60k a piece). Thats almost 1.5 megs. Can someone with lower than a cable connection give this site a quick look? There will some other bugs, the site isnt finished yet.
View 5 Replies
Aug 3, 2008
I have two buttons on stage, to load pictures from gallery 1 (gotoAndPlay ("slider1")) and gallery 2 (gotoAndPlay ("slider2")) respectively. I changed the variable in _root.xmlfilein the second set (slider2)mybtn1 loads gallery1 without any problemmybtn2 loads only one picture from gallery2, nor the text is loaded.
View 1 Replies
Apr 6, 2010
I have a several galleries that I will be loading via several xml files. Gallery1 will load on start and the other galleries will load through buttons using their instance names (i.e. "gallery3" button will load "gallery3.xml"). Currently I have a function + listener (called "home") to initiate gallery1 on start, a function + listener (called "goSection") to initiate the other galleries via button instance name, and a function that loads the gallery (called "fileLoaded") with the listener located in the "home" and "goSection" functions. There is a lot more code in the fileLoaded function that controls the thumbnail and full size images functionality that I am excluding because its probably not necessary for my problem. Im not sure the most efficient way to set this all up so I unload the existing gallery before I load a new gallery. Ive tried to use removeChild and removeEventListener on urlLoader without much success.[code]...
View 1 Replies
Sep 30, 2008
When displaying mutiple image galleries (3 galleries with 15 images each) is it advisable to load multiple xml files or is it smarter/easier to include all the info in a single xml file?
View 9 Replies
Jan 3, 2009
I'm in the midst of creating my very first portfolio site completely in Flash. I followed the tutorial [url]... to create a nice looking gallery. Now, my problem is that I need to create two other galleries for the same website. All three galleries will be on three different pages. The actionscript doesn't seem to work if I try top use different folders and file names, and I can't even make a second gallery in a separate .fla file so I can access the gallery externally via movieclip. I've gone through countless threads on different forums to try to find my answer, but nothing seems to work.
View 9 Replies
May 22, 2007
I now have another issue that is preventing me from making this thing work properly. I have attached a zipped file of both the XML and the Actionscript. And here is the link to see what is happening at this point. Here's what I'm needing to do:I have 15 images. 5 images need to rotate in a single movie clip inside my flash movie. So I have 3 movie clips rotating 5 different images. The 15 images are in the XML file in three different categories (this will make sense if you look at the XML).I have the gallery kind of working, but the rotation of the images is not working properly. Again, I think all of this will make sense as to what I'm trying to do by looking at the XML and the link above.
View 8 Replies
Mar 30, 2010
I downloaded and am using kirupa's flash gallery with xml. It works/looks great. but i'd like to have it behave a little differently. i've seen sites where the thumbnails continue to change their alpha indicating they are loaded and loading while i'm viewing an image. are there any tutorials/samples out there for that? i simply want to see how it would all work together. maybe having 10 thumbnails and an image using xml.
View 1 Replies
Apr 27, 2010
I have uploaded flash galleries I created in bridge CS4 to my site in dreamweaver. I used an iframe within a divtag and everything worked great in the previews, but once I upload the site to my server, the galleries are not showing up.
This is the code from my index file:
<html><head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
[Code] .....
View 1 Replies
Oct 18, 2010
1. How to get the height and length downloadable images into a movie clip?
2. Help write the gallery without the use of thumbnails to the gallery to upload images of real size, and then decreased to the size of movie clip
View 2 Replies
Jan 16, 2011
I saw many examples in jquery compenents which takes image urls from HTML DOM. But flash photo galleries always need xml configuration files as i have seen till now. I need flash compenents which doesn't need any configuration settings from server. If it is possible to do that flash can get image urls from DOM or even by javascript. Is there such as flash photo gallery compenents ?
View 1 Replies
Sep 18, 2009
I've created a photo gallery that dynamically loads images into a movieclip entitled 'gallery'. Right now the images are listed in an array. how would I make it so that different arrays could be loaded for different image galleries on the site? For example clicking a certain button would tell the movieclip to load different sections. It would load an array that goes
[Code]...
View 2 Replies
Sep 25, 2009
I've created a photo gallery that dynamically loads images into a movieclip entitled 'gallery'. Right now the images are listed in an array. is it possible to make an Array of Arrays so that I could load different Arrays for different image galleries? Is this somewhat how it would work? Lets say I were to switch to a section entitled 'landscapes' which we will pretend is the array "var a:Array = new Array();" for now.
ActionScript Code:
var a:Array = new Array(
"a1.jpg",[code]....
View 4 Replies
Dec 10, 2009
I've created a simple thumbnail gallery script that my students can use for portfolio projects. I'm also making it available for public download along with video tutorials in how to use it. I had developed a nice AS2 script, but those days are over and I've been hammering away at AS3 with pretty good success, but am still learning.I have a workable gallery, but if I add a second gallery on a different frame, all the functions and variables of the second gallery conflict with the first one. I'm missing some simple way to reinitialize the gallery. It may be that I need a Gallery Class but this is just a hair beyond me right now. Can anyone take a look and point me in the right direction? Files can be downloaded from URL...The actionscript files are external and brought in with an include action.
View 2 Replies
Jan 12, 2010
I am loading some separate .swf image galleries in my main .fla; when you go to different sections the image galleries still stay there. How do I make them go away? When you click on the background it takes you to another spot on the timeline and the gallery should disappear, but it just stays there.
View 9 Replies
Feb 14, 2006
I have just started to learn more about XML in Flash but so far it's all a bit confusing. I have this photo site that I'm working on at the moment and I can't figure out how to load dynamically specified photo galleries. I load in my XML on the first frame of the root timeline with this script:
[Code]...
View 1 Replies
Jul 13, 2006
Right now, I have a successful combo box that loads an external jpg to flash from a folder where I store all my images. However the information that is given about the pictures are all in the flash code. I have an xml document, and I was wondering if there's any way I can load information from the xml file rather than supplying it in the flash code,
this is currently the flash code:
--------------------------------------------------------------------
combo_cb.addItem("0001 The Assasain", 1);
[code].....
View 3 Replies
Apr 21, 2007
I've been trying to add more galleries the Kirupa Photo Gallery but so far unsuccessfull - i've modified things alittle, but it's mostly the same.
Code:
function loadXML(loaded) {
if (loaded) {
image = [];[code].....
This is as far as i can get before i get errors i cant get out by displaying image[i] in gallery[n].at the current time i can only get the number of galleries and display the images in the first gallery - not change between galleries.
View 8 Replies
Mar 1, 2010
how to make image resizing galleries using AS
View 2 Replies
Apr 18, 2010
I am making a set of image galleries which will have looping background music. What are your opinions about the recommended method to bring music in? I am happy with the attachSound and loadSound methods, but wondered whether attaching a soundtrack.swf using loadMovieNum would be better. If so, I only know how to stop and start the music, not pause it and restart where it left off, which is important if I add a narration. Sound Objects seem more versatile because they let you use "position/1000", but from what I have found on the forums I have searched through, I may have to load the swf into a Movieclip or perhaps use _level somewhow?
Here is the code, which works well, but does not "pause" the music, it just stops and starts at the beginning. Code is in the root timeline of my soundControls_mc (play/pause button).
[Flash 8 - AS2]
loadMovieNum("includes/number10.swf", 100);
soundOn = true;
this.onRelease = function() {
if (soundOn == true) {
unloadMovieNum(100);
[Code] .....
View 2 Replies
Jul 13, 2010
I am working on a Flash/AS3 site used to view galleries of images. When the site is loaded, it loads an external XML document which contains the relevant information. An example of the XML looks like this:
[Code]...
I am fairly isolated from any sort of programming community (aside of course from this website and some others) and am curious if this is a reasonable method to manage externally loaded data?Are there other methods that could be recommended?The above functions are wrapped inside of a class of their own. I just pulled them out for the example.
View 2 Replies