Actionscript 3 :: Unable To Unload Content In XML Gallery
Mar 26, 2010I have an XML gallery and I want in the next button function to "unload" all content and load new XML file.[code]...
View 1 RepliesI have an XML gallery and I want in the next button function to "unload" all content and load new XML file.[code]...
View 1 RepliesI am unable to unload content loaded by loader class.
View 4 RepliesI have a website that I am loading two external swf into my main movie... using addChild ... I am successfully removing "gallery.swf" addChild(loader2) when I select about, contact, and or my artects button(s) however I am unable to unload "artects.swf" addChild(loaderc) when I select about or contact button(s) but it does get removed when I select portfolio button..
Here is the script:
//var fade:Tween;
//makes hand cursor enabled for buttons
aboutBtn.buttonMode=true;
aboutBtn.useHandCursor=true;
portBtn.buttonMode=true;
portBtn.useHandCursor=true;
[Code] .....
I am trying to unload a movie I loaded like this
PHP Code:
loadMovie("slideshow-endsample.swf",movieContainer);
But
PHP Code:
unloadMovie("slideshow-endsample.swf");
Doesnt work?
i tryied all 3 methods
removeChild()
removeChildAt()
unloadAndStop();
but still m unable to unload file. Actually m loading a swf file which contains a video. The other video gets loaded but its sound continues. this is the code what i had tried:
[Code]....
I'm having issues unload links that are brought into FLash using XML.What i want to do is have the xml info load for the first frame but unload for all other 4 frames.URL...
View 8 RepliesI'm having issues unload links that are brought into FLash using XML.What i want to do is have the xml info load for the first frame but unload for all other 4 frames. I know this is possible because i saw it done, but i have no idea how to do this.
View 11 RepliesI have a URLloader that load an xml file, what i need is to be able to clear whats in the loader once the data of my xml has been loaded, is it possible to use unload in the on complete function? for example[code]...
View 3 RepliesI have a loaderIt loads xml files, which are like galleries (each has many image paths inside)I loop over the xml nodes to get all the image pathsI create a new loader for each image (called imageLoader), and dump each one within a movieclip which is on the stage (called _storage)I need to switch between galleries so I need to unload the content of one xml file, then load a different one Does that make sense? My problem is this - currently I am simply removing _storage then creating it and loading into it again when I want to switch galleries. It works, visually. The galleries switch...but I don't think the images are actually being removed.[code]....
View 13 RepliesI created a flash site and on the gallery page I load a gallery .swf and I want to be able to click on the "about" and "contact" buttons and have it go to there page and unload the gallery swf. This is the code I have on the gallery frame
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;
function startLoad(){
var mLoader:Loader = new Loader();
[Code] .....
I need to go from one keyframe with a gallery, I need that gallery to unload and go to another keyframe called "contact" but when I do it always comes with
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gallery_rabbit_picture_fla:MainTimeline/addImage/gallery_rabbit_pictu re_fla:comImage()[gallery_rabbit_picture_fla.MainTimeline::frame1:73]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.containers::UILoader/passEvent()
at fl.containers::UILoader/handleComplete()
In the 1st. gallery keyframe I have the following it's the button called: contact03_btn that needs to execute the function (see highlight)
var galWid:uint=879.95;
var galHei:uint=300;
var galX:Number=10;
var galY:Number=175;
var scale:Number=1.7;
[Code] .....
ActionScript Code:
import flash.filters.GlowFilter;
import flash.filters.DropShadowFilter;
_global.gallerynum=1;
[code]....
There are 3 pics each in FASHION SPORTS and BEAUTY catergory and 10 and 5 in ENTERTAINMENT and COVERS respectively. All is ok but when i click on FASHION or other categories having less pics the pics from the earlier categories ( e.g. ENTERTAINMENT ) wont leave the stage. Also the unLoadGallery() function is giving an error message that ' This code is making flash to run slower. Would you like to stop this script?'.
I have a xml carousel gallery in AS2 that works great, except I want it to unload when I click a button that takes me to another frame or scene. Right now it just stays in the middle of the screen.
Here is my flash code for the gallery and a button for the frame (this code all works, I just want to unload the gallery when I click the button, go to a different frame, scene or whatever) [code]...
i am new to flash actionscript 3 and trying to learn. I have a made a simple menu that has "start game" option. When the uses preses "start game", i hide the menu and the game starts. Now if i want to go "quit" and go the menu screen, how can i do this? How do i erase/stop the game that the user just played?
View 1 RepliesI have parameterised movie clips on the stage. By clicking each one, a thumbnail gallery, that is loaded from an xml file should apear. The problem is that if an xml file has less photos than the previous, the new apear, but the old also maintain. So how can I reset/unload the previous gallery, before the new one apears? [code]...
View 0 RepliesI have begun to build a vertical gallery. I have it set up to follow an xml document and it loads rather quickly. While the loading works, the unloading is not so hot. I can't figure out how to unload the container_mc which contains all the thumbnails. I intend to develop this page in as3 primarily so that I can adopt it to other projects. The arrangement is two vertical boxes on the right and left, a text box at the bottom in between the two vert boxes, and a fullscreen box in the center. The drawn squares are only being used as placeholders for real art right now.
As it stands, I can use either button to load the gallery, but when I click the next gallery it unloads everything, but it does not reload the next gallery. I want the buttons to load their respective galleries. I figure once I set up the structure for 2 galleries, I can make more.
var Gal_Array1:Array = new Array();
Was my attempt at loading the thumbs into an array, and later clearing it but I don't think it works (I think it would only double the amount of thumbs?). How to properly load and unload the container_mc?
Code:
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.display.MovieClip;
import flash.display.Loader;
import flash.events.MouseEvent;
import fl.controls.ProgressBar;
[Code] .....
If you haven't met me yet, that's because I'm pretty new around here. I picked up ActionScript just earlier this week, actually. Name's Kate. Nice to meet you. All righty. I'll start by saying that I've been referencing this thread:
actionscript.org/forums/showthread.php3?t=222486
(I'm not allowed to post URLs until I've got at least 50 posts in?! Gasp.)
My gallery is set up to load from an XML file and it works great. My problem is that the program only loads the first gallery. I can load either gallery 1 or gallery 2, but when I try to switch galleries, the current gallery vanishes and nothing reappears. according to the trace function, the thumbnails are being generated again, but nothing is showing up again.
I think it may be the container_mc that needs to be removed and re-declared but nothing seems to work. I've I've had to remove a bit of code related to background graphics to meet the max length req of the forums but otherwise it is all there. apologies for the messy code:
[Code]...
I've moved the scrolling thumbnails over to the left of the image area, and tried to make the thumbs scroll vertically*.I got this working, but the hit areas seem to be a bit off. Once you've rolled over either the top or bottom hit areas, then everything directly to the left of that also becomes active.In a perfect world I'd just like the actual hit areas to be active and no where else.Here's the code for that part. I've fiddled around with this, that and the other,
Code:
function thumbNailScroller() {
// thumbnail code!
[code].....
I am an intermediate actionscripter and I am attempting to make a flash picture gallery for my sister. I want to make it so that the flash movie looks in the image directory of her server and then gets the names of those folders and displays each one of them in a separate movie clip in the flash movie. Then if the user clicked on one of those generated movie clips, it would display the pictures in that corresponding folder on the server.r?
View 1 Repliesi download and try to modify a xml photo gallery from kirupa in this pagemake the buttons for "next" "back".... and one button that control the slide show, but i cant find how to activate the slide show and desactivate it.
View 1 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 m using flash on a module of Joomla to display images, i embed flash player code into javascript , it fetch images from an XML files wher images are predefined and it works fine, now i have a problem that i m collecting images from database, means images are dynamically, so i m unable to fetch that images an display on flash, i just want to knoe how to add dynamic image array into flash. do i need to create xml??
[Code]...
I've been trying to tweak the "image gallery + Bokel loader class" found on the laco web site. The image preloader is pretty nifty:
http:[url]....
I've added Previous/Next buttons which clients always seem to demand, and I've given the thumbnail buttons a static position (something I need to do). I'm having problems getting the buttons to stack in rows/columns though. I can't work with one long column or row of buttons - they need to be stacked in rows, say 6 buttons per row and 6 columns across so that there is a nice box arrangement to the buttons. But the way the functions are written its hard to make adjustments to the placement of clips.
What is best way to set up my application. I currently have a working app but the work flow doesn't feel right at all. Here are the basic steps involved:
[Code]...
Is there a code or something that can change my gallery contents ? I want new pictures to be loaded in my gallery when i click a button.
View 3 RepliesI have a meeting with a potential client this upcoming Wed. If I am hired, I will be redesigning his website, the major components he wants are galleries of his sculpture art and a way to update the images himself.
My idea: develop a custom CMS so he or his secretary can easily update what images are in the online flash galleries. My idea right now is an HTML/PHP form where they would enter what gallery the image goes to and maybe an upload button for the image, they hit submit and the PHP form edits an XML document which is where the gallery gets its image info from. Can anyone help me figure out how to do this? Or if there is an easier way to develop a CMS for them to update the images in the gallery themselves? Being able to remove images via a custom CMS would be ideal.
I have made a site for an artist with a dynamic gallery using an xml file. I am trying to create a way for him to update the gallery by simply uploading his new photos through a html form. I have an image upload form which puts the images in the directory which the xml file references but I cant figure out how to generate a new xml file to show all the new pictures. Are there any easier ways to achieve an updatable gallery?
View 3 RepliesI have a meeting with a potential client this upcoming Wed. If I am hired, I will be redesigning his website, the major components he wants are galleries of his sculpture art and a way to update the images himself.My idea: develop a custom CMS so he or his secretary can easily update what images are in the online flash galleries. My idea right now is an HTML/PHP form where they would enter what gallery the image goes to and maybe an upload button for the image, they hit submit and the PHP form edits an XML document which is where the gallery gets its image info from.
View 7 Repliesi am loading all thumbs and images in a container on a single frame using action script..but the size of the swf becomes 1.2 mb so i want to add a loader to it...the loader i am trying to add counts the frames but my file has just one frame so the loader doesnot show up..
here is the script of my gallery..and the timeline has just one frame...
import mx.transitions.Tween;import mx.transitions.easing.*;
this.createEmptyMovieClip("container",1);var imagesNumber:Number = 18;var scrolling:Boolean = true;
for (i=1; i<=imagesNumber; i++) {container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);myThumb_mc = container["thumb"+i+"_mc"];if (i==1){ myThumb_mc._x = (0.0)*myThumb_mc._width;
[Code].....