ActionScript 2.0 :: Load Photo In Current Swf?
Oct 27, 2005im using some AS that scotty modified from the photo gallery tutorial on this site. it goes like this.
Code:
var absX = 523;
var absY = 320;
this.pathToPics = "";
[Code]...
im using some AS that scotty modified from the photo gallery tutorial on this site. it goes like this.
Code:
var absX = 523;
var absY = 320;
this.pathToPics = "";
[Code]...
I have a gfx which I have created 6 shapes and converted them into simple buttons. I have urls sat inside an xml file. How can I get the buttons to use the urls set from within the xml file?Also how can I change the current external photo that is being loaded to load the url from a setting in the same xml file.
View 9 RepliesI found the tutorial by Kirupa
[Code]...
i cannot seem to find any tutorial around this... when i click the next button, a new photo begins preloading (showing a loadbar or similar) *WHILE* the current photo is still in sight... after loading is complete loadbar and current photo fade out and the new photo fades-in in glorious color... something like the one used in [URL]
View 1 RepliesI am trying to load an external swf (c2) from my current swf c1. On the last frame of c1, I have entered this code
loadMovie("c2.swf", "c2holder");
stop();
c2holder is the movie clip holder inside c1. The problem here is not only is c2 not loading, the stop() is also being ignored and the entire movie loops back to the start. My movie clip nesting is this
h2.swf(loadMovie --->) c1.swf Here I am trying to load c2.swf.
I have the main fla file (Handwashing.fla) and I want to load another swf file (Quiz.swf) at frame 301 of my fla file. They each work seperately, but once I insert the AS I get this error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
I am only in my 2nd class of Flash and this doesn't mean anything to me.
The files can be downloaded from my server, but I am not allowed to post links and the files are too large to upload. [code]...
Is there a way to script each button in a nav system to unload the current movie and load the swf the button selected is related too?
View 3 RepliesI'm trying to create a simple page transition. Please ignore everything but the timer in red. Everything works flawlessly EXCEPT that after the transition is made the timer is not cleared with the clearInterval command. Is there something wrong with my if statement?
stop();
function loadPage() {
_root.mcCover.gotoAndPlay(2);[code]....
downloaded an xml photo gallery that is displayed through a swf.
What I want to do is load that external swf into another swf - but everytime I do it gives me a #1009 error. I know my code works - because it loads regular swfs, and I know I have the address right, because I direct it to an exact url location.
I have (say) 3 photos on my homepage and what I would like to happen is, every time I access the site I would like the photo to be different. What I'm thinking is there must be some way that one can randomly select a photo (perhaps using tweenmax?)
View 1 Repliesi need to load a 360 view photo in my swf file.. im using the following code but i dont know if i need something else as it is not loading at all..
_root.container.loadMovie("terrace-360.mov");
Basically, I built a flash site recently for the company I work for and I've never built a website before...
[URL]
I have it where the links in the header load an external swf for the content. What I want to be able to do is link to another page from within the external swf. As in, when you click a link it loads in the current frame, keeping the header.
Basically, I built a flash site recently for the company I work for and I've never built a website before...
[URL]
I have it where the links in the header load an external swf for the content. What I want to be able to do is link to another page from within the external swf. As in, when you click a link it loads in the current frame, keeping the header.
I am making a flash site & have the intro & menu as separate swf's.
I want the Menu to load as soon as the intro ends, without having to click any buttons. I have tried...
onEnterFrame = function(){
loadMovieNum("AS_Menu.swf",2);
}
Target: Create wall of 25 photos
I'm creating dynamic objects like this[code]....
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]...
I have done a photo gallery using the following code. However, I need the first picture to appear as the movieclip is loaded. What shall I introduce to this script? Or what would I have to change?
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
[Code]....
I downloaded the sample file of making slide photos, but I just can't make it run and load pictures automatically and loop itself continuously. How do I do it without have to hit next or previous? And all done with action scripting only without using keyframes? [URL]
View 4 RepliesI'm new at actionscripting althought not new to flash. I tried creating the photo gallery using the code that is posted here on [URL]. But it doesn't seem to load. I've been using Flash 5, (I'm more comfortable using 5) and I don't know if it makes a difference. But I also tried it on MX and it didn't seem to load with MX either. I don't know if I'm messing up on the dir for the images or what have you, but most of the time I get nothing when I preview it, other times my image frames pops up for a split second. Here's what I've what I've done
[Code].....
I have a menu set up with several buttons (on the left side of the screen), each of which loads an external swf (on the right side of the screen). Within some of these swfs are more buttons to load other swfs, and the menu on the left remains active while another swfs is playing.What I want is to unload the current swf whenever a button is clicked and load the new on in the same spot. So before I was using addChildAt to get the external swf's at a certain level, and then removeChildAt to take away whichever swf it is and then add the next one. That didn't stop the sound, so I switched it to unloadAndStop and set up a function that unloadAndStops each individual swf, like this:[code]
That function runs every time a new swf is called to remove the previous one.Now I know that's not what I should do since I'm effectively using a method on objects that aren't in the display list, and it's apparent since it messes up the text later on in the timeline. But I don't know any other way to get everything to unload and to stop all the sound. It would be a headache to make specific paths for the buttons within swf's, but I don't even know what I'd do about the buttons in the main timeline that don't know what swf is playing on the right.I've searched lots of different forums for this one, for something kinda like unloadAndStop and kinda like removeChildAt, so I'm thinking I need to reorganize this project somehow
How can I take a simple counter and I want to load the current count into a textbox?
My code:
count1 = new Timer(count);
count1.addEventListener(TimerEvent.TIMER,stopWatch);
count1.start();
[Code]....
1067: Implicit coercion of a value of type int to an unrelated type String.
How do you load external swf files into your current flash document?
I have made a menu bar with 5 buttons. I want each button to load a new swf outside the current document upon mouse click.
This is the script ive got so far.. But its not loading anything [code]...
how to control the display of pictures by date?
I want to display images based on the date. Then it changes to the next one. For example for March it would be picture: img01.jpg and for April I would like the flash movie to automatically load the next picture: img02.jpg.
The code works but with an issue. When I load an image it replaces the current one loaded but when I alpha tween the image to zero I see both images fading out on top of each other like the first one is still loaded but underneath the current one. Any body run into this before?
var imageLoader:Loader;
function loadImage(url:String):void {
// Set properties on my Loader object
[code]....
Making a photo slideshow to load as an external movie clip on my site when a button is pushed. Here is a link to the .swf file: [URL]. There is text that describes each set of 6 pictures. After the set of 6 pictures plays through the text is supposed to disappear and a new text appears to label the next set of 6 pictures. Problem is: the text doesn't disappear! I made all the text layers a symbol/movie clip. I animated each text to disappear at a certain point in the timeline but when I test the movie the texts just remain there and build up one after the other. When watching the movieclip, pay attention to the text in the lower left screen.
View 2 RepliesI was taking a look at this great site at the link interior Design. How it's done that gallery? I noticed that the pictures are loaded in order, before they are asked to be shown. When the user clicks on the number of the image, it has already been loaded by the swf.
View 5 Replies[URL]. It's a tutorial that shows how to create a photo gallery and load the pictures and comments via XML. My problem is the following, the gallery and everything works well, but I when I try to load it into a container then everything messes up. Here's what I have: I have a main movie (the main .swf file) with a container in it, when clicking on one of the buttons from that movie the gallery.swf loads into the container (the gallery is the exact gallery from the tutorial) and it works well, until I press the button to load it again.
It seems that it messes up the value of "p". I tried tracking it, on the first load it tracks normally p=1, 2, 3, 4.... but on the second load it reacts as if it's double tracking it p=0 1, 2 2, 3 3, 2 4 ... It seems that Flash somehow keeps the old value of "p" in mind. I tried reseting it somehow or something but I can't seem to make it work (or maybe I have to rebuild the whole thing?).
It works perfectly if I load it only once but if I load the gallery.swf twice or more times then it goes crazy (or since I have more buttons on the stage, after pressing one and coming back to the gallery, it does the same, it's messed up). How can I "reset" the value of 0 on every load or something? I even tried playing around with unloadMovie but can't figure out how to use it.
1. For some reason, the first photo in the xml datebase (pic1.jpg) does not load when button#1 is pressed. The gallery starts with #2? I just don't understand why.
2. On load, the preload bar is presend even though i've got visible = 0.
3. The BIG one. Right now I've got an empty frame for my thumb buttons. What I really want to do is have a single button prototype that duplicates itself and externally loads a thumb*.jpg rather than placing each thumb*.jpg on each button manuelly. There was an example on the same thread, but I was unable to combine the two.
Making a photo slide show to load as an external movie clip on my site when a button is pushed . Here is a link to the .swf file:[URL]..Basic problem: There is text that describes each set of 6 pictures. After the set of 6 pictures plays through the text is supposed to disappear and a new text appears to label the next set of 6 pictures. Problem is: the text doesn't disappear!
I made all the text layers a symbol/movie clip. I animated each text to disappear at a certain point in the timeline but when I test the movie the texts just remain there and build up one after the other.
When watching the movieclip, pay attention to the text in the lower left screen.
[Code]...
Is there a way to have the file reference work under ipad?
The file reference works for flash and andriod tablet, but not the ipad.
/**
* uploadNewBackground
*
* Sets up the position for the panel container and add Event Listener to
[Code]....