Load JPG In Loader In MC (flash 8)
Hi, i'v got a problem and I don't know how to solve it. I'm working on it for al long time and don't get the solution
My AS: code: this._lockroot = true;
// RECENT IMAGES LOADERS // var picturesXML:XML = new XML(); picturesXML.ignoreWhite = true; picturesXML.onLoad = function(ok) { if (ok) { var images:Array = picturesXML.firstChild.childNodes; for (var i = 0; i<images.length; i++) { trace(images[i].attributes.project); imgURL = images[i].attributes.afbeelding; //projectURL = images[i].attributes.project; var loaderMC = _root.holder.duplicateMovieClip("holder"+i,i); loaderMC._x = 100; loaderMC._y = 100+200*i; loaderMC.loader.contentPath = imgURL; } } else { //error } }; picturesXML.load("myXMLDoc");
stop();
I've got a MC called holder and in it there is a loader called loader. Now I want to load the jpg's in the loader but that don't work. Duplicate the "holder" works fine, but I can't get the jpg loaded in the loader.
Please Help!
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-08-2005, 10:02 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Loader (to Load A Html Page)
Hello,
I used the search function and didnt find anything.
Does anybody know of a way to use a flash loader to load a html page? I hope that makes sense.
So basically the flash loader is repeating whilst it loads the html page, then the html page is instantly displayed.
Any ideas? All help will be greatly appreciated.
Regards
James
Coding Needed For Pre-loader So Two Flash Movies Fully Load
Hello,
Does anyone know what code I'll need for my pre-loader so that the main base flash movie loads, plus the other one which is being called into the movie at it's first frame as loadMovie. I want both of these movies to load fully before we go from the pre-loader to the full flash. Here is my code for the pre-loader so far:
stop();
mask_mc._height=1;
this.onEnterFrame=function() :Void {
var loadedData:Number=this.getBytesLoaded ();
var allData:Number=this.getBytesTotal ();
var percent:Number=Math.round(loadedData/allData*100);
mask_mc._yscale=percent;
if (loadedData>=allData) {
gotoAndStop(10);
delete this.onEnterFrame;
}
};
I'd appreciate any help.
Thanks,
Rob
[loader] Load Jpg With Loader?
Hi, I making my website and trying to load jpg into a movieCLip which will holds all of my loaded jpg images.
I have a MovieClip called "holder"
and I want to load img into this clip. so I wrote
ActionScript Code:
holder.loadMovie("myPic.jpg");
this part I had no problem, but the thing is that How do I apply a preloader to this? I mean if this image is IN the movie, then I can have a preloader in the first frame and load this pic, but the thing is that I'm now loading this images directly from folder, how do I have a preloader for this?...
I tried this
Frame 1 preloader
Frame 2 load Image code...
just...you know what I mean?...when you load a image directly from folder, can you apply a preloader for that?...I stood up so late only because of this question..makes me so awake...HELP!!! I wanna sleep...
Loader.load() - Load A Swf, Than Control It
I am a little confused with loading media into the loader object.
I can load a swf in fine but than how do you control that swf? I think that the swf gets loaded into a loader object, that has a display container? Im a little lost with the loader object concept.
I assumend it would be loader.getChildAt(0)
i saw loader.content in there but not sure what that does.
thanks for your time!
-Dave
Pre-Loader , Won't Load
I have a movie called resume.fla and in that movie have a pre-loader on the firs frame with the following action script;
stop();
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}
The animation and movie proceeds then on to frame 2. However, the pre-loader doesnot work. I used it in many other movies I am building and it works fine. Do I have the wrong decription tag; (i.e.- _parent instead of maybee a _parent._parent or _this tag)? Any help would be great. Thanks and if you need to see the fla to see hwat I am talking about, let me know where I can email it to you. Thanks a million.
[AS]to Load FLV With Loader
Hi, is it possible to load a FLV into Flahs with loader? not streaming in, just load it in as a normal swf...
What Does A Loader Actually Load?
**Warning: The following is long, repetative and has some sexual content... (not really)
Hey guys, I have a fairly simple question with some minor spin-off questions..
What does a loader load?
If you have one on your main timeline followed by some content is it loading that following content or everything in the movie? When you publish an fla and it becomes an swf, all that's in it is what's actually used in the movie, not everything in the library, right?
I'm aware that there are different types of loaders and that some might do some of what I said above and others might do other parts of what I said above.
How about page transitions? This thread: Controlling a Page Transition led me to wonder if I was making flash sites correctly.
When you guys make a flash site do you have on fla with your main... shell and all your sub content movie clips inside it (in the actual library) or do you have a shell fla and a home page fla, an about us fla, a services fla, and so on?
I used to use scenes to make my flash sites a LONG time ago, but I realized that was stupid and it presented a lot of problems. Then I switched to having several fla's one for each page then loading the content clips into my main shell, but that makes consistency a pain in the ass. I haven't made anything flash for about 1.5 years now and I've been learning ASP and using asp components and style sheets all over the place so I've become quite accustomed to having really easily updatable sites. I'd like my flash sites to be the same (not css though, I'm not concerned with that at the moment). What I'm doing now is having only one fla and inside the library all the content movie clips that I just summon at my command.
So.... what's more effiecent and what's actually being loaded?
Pre-loader: Load All Scenes
is there a code for the action script so you can say:
if frame <"all scenes of a movie"> is loaden
]
go to and play (3)
kinda like that...
what do I have to write between at the "al scenes from a movie" thing???
I know this is a stupid question... but ok
[F8] Loader Component Will Not Load SWF
the stop was on the wrong frame...doah!
Hi,
Perhaps I am missing something but I thought the loader component would load a swf or jpg.
Any ideas why I can't get the swf to load.
I loaded a jpg so I know that the pathing is correct.
thanks
The Loader Component Does Not Load
Hi.
I have a swf file that I want to load into my loader component in another swf file. The movie I want to load can be found here: http://www.bangers.se/polaroid_galle...allery_gbb.swf and it’s 634x634 px big.
I dropped a loader component in my fla document and gave the loader the size of 634x634 px and in the parameters I gave it the content path: http://www.bangers.se/polaroid_galle...allery_gbb.swf
But nothing loads in the loader component after I published the new swf to my site. I tried to load another swf file in the loader component and that worked! So it has to do something with the files I’m loading into the loader? All files I’m writing about are AS2.
Thanks in advance.
/jesper
Pre-loader Bar To Load Scene
hello,
I am building my online portfolio using flash MX, and know the very basics of actionscript. I need help because I have been able to do a pre-loader bar, that loads contents in another scene but the problem is I would like to be able to open the whole scene and it only loads the first frame. The scene I want to open has various images in each frame, and when I click the button to access the preloader and the scene.. it only loads the first frame, how can I make the preloader load the whole scene at once so then the navigation in that scene is easily made?
thank-you
Using Loader To Load, Then Control A Swf
I'm loading a swf with the AS3 Loader class. It's being done from a main.swf that has nothing but a preloader display. The content is all in the swf that I'm loading with the Loader class. It's working.
But the swf's playhead seems to be already 40 or so frames down the timeline once it's displayed on the stage. So I want to tell the loaded swf to gotoAndPlay(1) after the preload is complete in the relevant handler. The handler fires, but I don't know how to access the swf in question.
loader.content returns a DisplayObject and trying to talk to it with MovieClip properties throws errors. I've tried to cast it as a MovieClip based on various things I've seen via searches here and in the docs, but that's failing, too.
How does one do this the "right" way?
And for that matter, why has the timeline already started to play before the swf is visible on stage?
ActionScript Code:
private function onLoadComplete(event:Event):void {
// what can I do to take _loader.content and make it accessible for a gotoAndPlay() or some other call right here?
addChild(_loader);
// or should the manipulation I want to do be here after the addChild() command?
}
Load From Library To A Loader
Hello. I've posted a couple of days something about a component. I have manage to get far, much beyond I would expected. well, know I have a doubt about "how to read an image from the library"
the code I have it's this one:
Code:
//add itens
listagem.addItem({label:"project_1", loc:"photos/1.swf", im: "images/1.jpg", data:1});
listagem.addItem({label:"project_2", loc:"photos/2.swf", im: "images/2.jpg", data:2});
//load projects
listagem.change = function(evt:Object) {
loadMovieNum(evt.target.selectedItem.loc, 4);
unloadMovie(2)
};
listagem.addEventListener("change", listagem);
//show images
var roll:Object = new Object();
roll.itemRollOver = function (evt_obj:Object) {
image_container.loadMovie("images/1.jpg",4);
};
//Add listener.
listagem.addEventListener("itemRollOver", roll);
If I have this way, I can read a image (1.jpg) for a external jpg. But I wanted to load from the library this image and have the information about it in the item ----> ( listagem.addItem({label:"project_1", loc:"photos/1.swf", im: "images/1.jpg", data:1}); <---------
in the "im" I would like to say what image corresponds to the label.
There's anyone that could help me out on this, Please?
I really need to solve this out and I'm struggling with this mater for quite a long time...
Thank you all
UI Loader Wont Load SWF
This seems pretty simple. I have a UI Loader and a SWF file of my website. I have specified the correct path to the SWF in the Parameters tab for the UI Loader. When I preview I have a blank screen. Nothing appears but there's no errors. I've done this with image files - but it won't work on SWFs? Am I completely crazy or am I missing something?
Load Pdf Using Loader Component
Hello all,
Can anyone please tell me if it is possible to load pdf files using the loader component? Or Flashpaper is the only way to go?
Monkus
Loader Class To Load Swf
I am currently using the Loader class to load ext swfs. I have a problem, if the first frame of that swf is empty, the loader detects that its height and width to be only 0 and I won't be able to change the .height and .width of that loader in the complete event. This can be walked round if I put a invisible layer that reflects the dimension of that swf, is there other more elegant way of going round this?
Another Pre-Loader Problem: Pre-Load Different SWF Into A MC
Can somebody tell me how to make the following problem work, if possible.
The problem is: I have a main SWF-file in that SWF-file I load another SWF-file (the preloader) into an MC. Then I want that the pre-loader loads another SWF-file (intro) and when this file is loaded for about 90% that the intro SWF starts playing in the same MC as the pre-loader.
Greetings from Eddepet.
Load Bar With MovieClip Loader
I'm trying to create a load bar for this preloader . Here's the code:
var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());
var con:MovieClipLoader = new MovieClipLoader();
var conL:Object= new Object();
conL.onLoadProgress=function(target,loaded,total){
percent.text=Math.round((loaded/total)*100) + "%";
}
conL.onLoadInit= function(){
loader.visible=false;
percent.text="";
}
con.addListener(conL);
con.loadClip("bimmer.swf",container);
The preloader works perfectly, but I need a load bar ; can anybody add the line of code that would be grand....
Create Loader And Load .swf In Homepage
I tried to create a Flash homepage. But the flash file didn't load. The place stayed blanc even with a fast connection. When I insert a smaller file, it loads perfectly.
I want to give it another try. I want it to have a loader, but I have no idea how to do this. Can anyone explain how to make a loader, and how other sites with flash components load so fast?
Thanks, Kevin
Linking A Pre-loader To Load Other Swf Files.
I have a pre-loader and several other flash swf files that don’t have a pre loader at the beginning of the file.
Rather than me putting the pre-loader in to all my other flash files, how can I make it so it will show the pre-loader, load up the swf file, and play the swf file.
I’m sure it very simple to do but I have no idea thanks in advanced for any help it will be very much appreciated.
0rlando
Text Needs To Load In Time With Loader
I currently have this preloader set up with this code.
Code:
onClipEvent(load) {
bytesLoaded = 0;
bytesTotal = _root.getBytesTotal();
}
onClipEvent(enterFrame) {
if (bytesLoaded < bytesTotal) {
bytesLoaded = _root.getBytesLoaded();
percentLoaded = Math.round(100*bytesLoaded/bytesTotal);
if (bytesLoaded < bytesTotal) {
play();
loaderText = percentLoaded;
} else {
_root.gotoAndPlay("Frame01");
}
}
}
Now where it says "loaderText" is the name of my movie inside of the movie that this code is on. In that movie is a timeline with 100 frames and every 20 frames I have a new text message. Basically I want it to play in time with how fast the site is being loaded. Kind of like how everyone does a bar to show 0% to %100 except I'm putting in some text graphics. Anyone know where I'm going wrong?
Help To Load A SWF File With The Loader Component
Hello. I have an SWF that displays a popup menu when you pass the mouse over some buttons. The elements of the menu are Movie Clips that are hide by default. The menu works just fine, but when I load that SWF with a preloader that uses the Load movie component the menus that usually are hiden are show by default. I'm not sure if this is a sort of bug or if I have to send additional instructions to the SFW in the preloader.
I hope somebedy here can check my files and help me to find out a solution. Thanks in advance
This is the menu:
http://m.1asphost.com/aniden/loader/menu.swf
This is what happens when the menu is loader with the preloader:
http://m.1asphost.com/aniden/loader/ProgressBar.html
The source files for both the menu and the preloader.
http://m.1asphost.com/aniden/loader/menu.fla
http://m.1asphost.com/aniden/loader/ProgressBar.fla
I'm lost here, help me please ^_^
Load External Variables With A Loader
It didn't post right the first time so I will post my prob again:
I want to load an external .txt file and have a loader come with it...anybody know how to do this?
-Seth
Re-using Loader To Load More Then 1 Movieclip Dynamically
Hi,
I want to create a very simple movie which has a stage of 800x400.
On that movie I have 1 movieclip called "flashClip" and 2 buttons named "myButton1" and "myButton2"
I want my movie to load the external file eekhoorn.swf into my movieclip when I press "myButton1" and eekhoorn2.swf when I press "myButton2".
And the code below also WORKS !
myButton1.addEventListener(MouseEvent.CLICK,button 1Pressed);
myButton2.addEventListener(MouseEvent.CLICK,button 2Pressed);
var loader:Loader = new Loader();
flashClip.addChild(loader);
function button1Pressed(evt:Event) {
loader.load(new URLRequest('eekhoorn.swf'));
}
function button2Pressed(evt:Event) {
loader.load(new URLRequest('eekhoorn2.swf'));
}
But, I only want 1 of the 2 flash movies to play inside of my movieclip container. If you now press myButton1 , wait 5 seconds and press myButton2, then I can clearly hear that both eekhoorn.swf and eekhoorn2.swf are playing, while in fact only the last one clicked should play.
It looks like my loader object loads EXTRA data when you click, but it also keeps the old data which was still in it.
Eekhoorn.swf is around 3Mb here on my harddrive, and I allready tried clicking 100 times on the buttons and really saw my memory usage grow by 300Mb.
Is there a nice way to be able to load different swf files into a movieclip one after the other (so not together) ?
Kind regards,
Thanks for any help,
Bart
Is It Better To Load Different Things In The Same Loader Or Different Loaders?
Hi,
I have some buttons here and I want different swf to appear when user clicks
on different buttons, but they'll appear on the same position. My question is
that is it better to use a single loader to load all the swfs or it's better to load
separately? Also, if I'm going to load them all in the same loader, how do I
do transitions? For example, after you click on button one, swf one appears
and now you click on button two, it will jump back very abruptly to swf one.
Thanks in advance!!
Help To Load Swf Into Loader Via/ Multiple Combo Box
I'm running a multiple combo box selection and I want a .swf to load into the "loader" when the an item is chosen in the last combo box. Any help would be greatly appreciated.
Code:
this._lockroot = true;
dp = [
{label:'Province1',data:[
{label:'City1',data:[
{label:'123 City1 Rd'}
]},
{label:'City2 ',data:[
{label:'123 City2 Rd'}
]}
]},
{label:'Province 2',data:[
{label:'City1',data:[
{label:'345 City1 St'}
]}
]}
]
cb2.enabled = false;
cb3.enabled = false;
cb2.dataProvider = [];
cb3.dataProvider = [];
//
cb1.noSelect = true;
cb1.dataProvider = dp;
cb1.addItemAt(0,{label:'Choose Province',data:'select'});
cb1.selectedIndex = 0;
cb1.count = 0;
cb1.change = function(){
if(this.selectedItem.data!='select' && this.noSelect){
this.noSelect = false;
this.removeItemAt(0);
}
if(this.selectedItem.data!='select'){
cb2.enabled = true;
cb2.noSelect = true;
cb2.removeAll();
cb2.addItemAt(0,{label:'Select City',data:'select'});
for(var i=0;i<this.selectedItem.data.length;i++){
cb2.addItemAt(i+1,this.selectedItem.data[i]);
}
cb2.selectedIndex = 0;
//
cb3.enabled = false;
cb3.dataProvider = [];
}
}
cb2.change = function(){
if(this.selectedItem.data!='select' && this.noSelect){
this.noSelect = false;
this.removeItemAt(0);
}
if(this.selectedItem.data!='select'){
cb3.enabled = true;
cb3.noSelect = true;
cb3.removeAll();
cb3.addItemAt(0,{label:'Choose Destination',data:'select'});
for(var i=0;i<this.selectedItem.data.length;i++){
cb3.addItemAt(i+1,this.selectedItem.data[i]);
}
cb3.selectedIndex = 0;
}
}
cb3.change = function(){
if(this.selectedItem.data!='select' && this.noSelect){
this.noSelect = false;
this.removeItemAt(0);
}
if(this.selectedItem.data!='select'){
trace('You selected item #: '+this.selectedItem.data);
trace(cb1.selectedItem.label+' : '+cb2.selectedItem.label+' : '+cb3.selectedItem.label);
//getURL(cb3.selectedItem.document);
//trace(cb3.selectedItem.document);
}
}
cb1.addEventListener('change',cb1);
cb2.addEventListener('change',cb2);
cb2.addEventListener('change',cb3);
www.pyronline.ca/multicb_loader.fla
F8 Loader Component Does't Load The Swf Correctly
Hi, i learned how to do a basic site using Loader component from within flash to load external .swf. [works fine] was my first homework
now decided to create a simple "loader" that i could use as a gallery of my flash projects, thinking i could simply have a loader and fetch every swf i made and scale it to a box so viewers could click next and browse through all the swf i made....
That's when the problem started...
so i have the basic code that works fine but as soon as i put .swf file with either a preloader(within the swf that i fetch with my loader) or a component....3 problems occur
1-(doesn't worry me too much)the buttons within the fetched .swf files stop working...(i m sure there's a work around i'll check that later)
2-"Scale" set as "true" wont work properly or at all
3-the buttons i use to choose the swf to fetch only work once?!?!
My train of though....
Quote:
(2) I would assume that either the files cannot scale properly as the "scale=true" looks at the preloader within the swf or the file isn't loaded when the "scale=true" kicks in???
(3)as i see the preloader from within the swf flash the secound time i click on the button(the one that fetch the ext. swf) i would guess that the 2 preloaders are conflicting....no clue why.
Now if you read all that i must thank you for not giving up on me i really have issues in terms of explaining myself!!!
i did try all kind of combination (IE removing the "myLoader" preloader, changing the path to the swf from myloader.contentPath = "swf1.swf"; to mcLoader.loadClip("swf1.swf",myloader); nothing works.
Am i just crazy or is it just imposible to export to loader component files with other component or existing preloader...anything?? i m all ears??
thanks again for reading all this i just ratter give all the info that i can.
Code:
//-----------Initialization---------\
extLoader_mc._visible = false;
//-----------------------------------\
//--------Movie Clip Loader----------\
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}
//myloader.contentPath = "swf1.swf";
mcLoader.loadClip("swf1.swf",myloader);
//-----------------------------------\
//---------------Buttons btn1_mc---------------\
btn1_mc.onRollOver = function () {
btn1_mc.gotoAndPlay("_over")
}
btn1_mc.onRollOut = function () {
btn1_mc.gotoAndPlay("_out")
}
btn1_mc.onRelease = function () {
//myloader.contentPath = "swf1.swf";
mcLoader.loadClip("swf1.swf",myloader);
}
//-----------------------------------------\
("myloader" is in fact called like that, i m not a fan of capitals.)
Loader Class - What If You Load The Same Image More Then Once?
So say I have some XML I load in with a URLLoader, and in it is a bunch of urls for images to load. And say I go through all these urls and load each individual image, but some one who wrote the XML sticks the same image multiple times, because they want the image in multiple different places.
Will flash load multiple different copies of the BitmapData up, taking up more space in memory? Or does it realize it already loaded that image and just hand out that BitmapData to you from memory?
I'm going to assume the answer is it loads multiple copies, eating up bandwidth and memory, but a more definite answer would be great!
Loader, If Image Not Found, Load Another
Hello all,
I load images like this:
ActionScript Code:
var imageLoader = new Loader();
imageLoader.load(new URLRequest(path));
imageLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, imageNotFound);
When there is an IOErrorEvent, I want to load another image saying image not available, how can I do this?
ActionScript Code:
function imageNotFound(ev:Event):void {
trace('Image Not Found, use not available image');
ev.target.loader.load(new URLRequest('../images/image_not_available.gif'));
}
With the above I get the error:
Code:
Error: Error #2099: The loading object is not sufficiently loaded
to provide this information.
at flash.display::LoaderInfo/get loader()
at test2_fla::MainTimeline/imageNotFound()
Any work arounds???
XML Photo Gallery - Loader Won't Load :(
Hi,
I'm trying to make an XML Photo Gallery type thing. For each 'Product' it creates a new instance of a MovieClip from the library, 'XmlItem' which contains a Loader Component and Dynamic Text.
The Product Title goes into the Dynamic Text perfectly. The problem is with the Loader Component. It simply REFUSES to load the images. There's an exception. If I deliberately cause a syntax error in the Loader Component's code, then the pictures load! What the hell?
Oh, also I'm having trouble with the placement of the XmlItem instances... For each of them, what position is _x relative to?
Thanks very much in advance for any help,
Tim.
Code:
Attach Code
var XmlInput:XML = new XML();
var LastX = 200
var LastY = PicFrame._z;
var ContentPath:String
var ThisItem:String
XmlInput.ignoreWhite = true;
XmlInput.onLoad = function() {
var nodes = XmlInput.firstChild.childNodes;
for (i=0;i<nodes.length;i++) {
//var mcListItem:MovieClip = new MovieClip();
if (LastX > (PicFrame._x + PicFrame.width + 85)) {
LastX = PicFrame._x;
LastY = LastY + 150;
}
ThisItem = "Girl" + i;
MC = attachMovie("XmlItem", ThisItem, i, frame);
MC._x = LastX;
MC._y = LastY;
ContentPath = nodes[i].attributes.img;
MC.imglocation = ContentPath;
MC.textval = nodes[i].attributes.name;
eval(ThisItem).LinkImage.contentPath = ContentPath;
LastX = LastX + 100;
list.addItem(nodes[i].attributes.name);
//lstList.addItem(nodes[i].firstChild.nodeValue,i);
}
}
XmlInput.load("products.xml");
Pre Loader And Load Movie Issue
I have a website with a preloader that works fine. But I have other preloaders inside the website that load movies as well. Some of them work fine but some the swf will start before the preloader is finished. How do I det the movies to not start until the preloader is finished. here is my code.
thanks
loaderMC._visible = false;
loaderMC.onEnterFrame = function() {
var picLoaded = this._parent.container.getBytesLoaded();
var picBytes = this._parent.container.getBytesTotal();
per = Math.round((picLoaded/picBytes)*100);
if (per>4) {
this._visible = true;
}
this.percent.lbl_txt.text = per+"%";
this.gotoAndStop(per);
if (picLoaded/picBytes>=1) {
this._visible = false;
delete this.onEnterFrame;
}
};
stop();
Can I Have More Then 1 Loader Or How Can I Track Load Of Instances?
Hello, does anybody know if I can have more than one loader?
Ive made a thumbnailviewer with children, but when I track the progressevent, the loader sum it all up to 1 load.
I want a loader for each picture, how could this be done?
So can I have more then one loader progressevent?
any help much appreciated.!
ps. the "i" in last simpleloader function is there for test, and not because I know what to do!
Attach Code
var imagenames:Array = new Array("preview011.jpg","preview010.jpg","preview009.jpg")
var simpleloader:Array = new Array();
for(var i:int = 0; i < imagenames.length; i++) {
simpleloader[i]= new Loader();
simpleloader[i].load(new URLRequest(String(imagenames[i])));
simpleloader[i].x += i * 200;
addChild(simpleloader[i]);
}
simpleloader[i].contentLoaderInfo.addEventListener( ProgressEvent.PROGRESS, handleProgress );
function handleProgress(event:ProgressEvent):void {
var percent:Number = event.bytesLoaded / event.bytesTotal * 100;
loaded_textfield.text = String(int(percent)+"%");
}
Pre-loader With Load Movie Action
does the main SWF load all the associated SWF's on initial load up, or do the associated SWF"S load when there activated???
i'm finding that my pre-loader only works with the main movie and not when i activate any associated movies. The pre loader is visible on levels 1,2,3 etc but seems doesn't load anything.
this tells me that all associated movies are loading with the main movie which defeats the purpose of the load movie action. This might answer my question a couple of threads down regarding load up time of my main SWF.
how can can I make level 1,2,3 SWF's load when there activated???
thanks
Load XML Selection From List Box To Loader...
Hello,
First, thanks to everyone that has posted to the site. Definately helped in getting as far as I did working with Flash and XML (thx senocular).
Two questions:
I've attached the files so you can see what I'm talking about.
#1 How do I format the data in my listbox and combo box so it only show the "string" data and not the tags and random commas as well? (The combo box has unnecessary commas and the listbox shows tag data from XML)
I'm not sure if it's in my XML or the way I'm using the XML connector.
#2 I got the XML data to the combo box and the selection from the combo to the list box. How would I get the users selection from the listbox to load a .swf into the loader component?
Again, I'm not 100% of how well I did my XML and I have no idea how to use the XML connector in that way.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<posterlist>
<posterlistgroup name="Nice Posters">
<posterinfo>
<posterlistings>Nice Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Large Posters">
<posterinfo>
<posterlistings>Large Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Medium Posters">
<posterinfo>
<posterlistings>Medium Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Sexy Posters">
<posterinfo>
<posterlistings>Sexy Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Horrible Posters">
<posterinfo>
<posterlistings>Horrible Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Party Posters">
<posterinfo>
<posterlistings>Party Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
</posterlist>
Any help or direction would be great.
The file is 630KB, you can download it here.
The .swf can be viewed at this link.
Thanks.
Loader Component Refuses To Load
Hi all,
I have made a button which loads a swf file into a loader component. Works fine.
Then inside the swf are pictures which I 've converted to buttons and then added the following action onto:
on (release) {
container.contentPath = "img.jpg";
}
The file img.jpg is in the same dir as the rest of the site. Don't get a error messages just doesn't do anything.
What am I missing? I'm aware this is a newbie question. And I have googled and searched the forum. But I'm still perplexed why it doesn't do anything.
Cant you load buttons into a loader and then add action to these buttons within the loader?
Appreciate an answer.
Best regards
Vidir
Loader Component Does't Load Certain Swf Correctly
Hi, i learned how to do a basic site using Loader component from within flash to load external .swf. [works fine] was my first homework
now decided to create a simple "loader" that i could use as a gallery of my flash projects, thinking i could simply have a loader and fetch every swf i made and scale it to a box so viewers could click next and browse through all the swf i made....
That's when the problem started...
so i have the basic code that works fine but as soon as i put .swf file with either a preloader(within the swf that i fetch with my loader) or a component....3 problems occur
1-(doesn't worry me too much)the buttons within the fetched .swf files stop working...(i m sure there's a work around i'll check that later)
2-"Scale" set as "true" wont work properly or at all
3-the buttons i use to choose the swf to fetch only work once?!?!
My train of though....
Quote:
(2) I would assume that either the files cannot scale properly as the "scale=true" looks at the preloader within the swf or the file isn't loaded when the "scale=true" kicks in???
(3)as i see the preloader from within the swf flash the secound time i click on the button(the one that fetch the ext. swf) i would guess that the 2 preloaders are conflicting....no clue why.
Now if you read all that i must thank you for not giving up on me i really have issues in terms of explaining myself!!!
i did try all kind of combination (IE removing the "myLoader" preloader, changing the path to the swf from myloader.contentPath = "swf1.swf"; to mcLoader.loadClip("swf1.swf",myloader); nothing works.
Am i just crazy or is it just imposible to export to loader component files with other component or existing preloader...anything?? i m all ears??
thanks again for reading all this i just ratter give all the info that i can.
Code:
//-----------Initialization---------\
extLoader_mc._visible = false;
//-----------------------------------\
//--------Movie Clip Loader----------\
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}
//myloader.contentPath = "swf1.swf";
mcLoader.loadClip("swf1.swf",myloader);
//-----------------------------------\
//---------------Buttons btn1_mc---------------\
btn1_mc.onRollOver = function () {
btn1_mc.gotoAndPlay("_over")
}
btn1_mc.onRollOut = function () {
btn1_mc.gotoAndPlay("_out")
}
btn1_mc.onRelease = function () {
// myloader.contentPath = "swf1.swf";
mcLoader.loadClip("swf1.swf",myloader);
}
//-----------------------------------------\
("myloader" is in fact called like that, i m not a fan of capitals.)
Load XML Selection From List Box To Loader...
Hello,
First, thanks to everyone that has posted to the site. Definately helped in getting as far as I did working with Flash and XML (thx senocular).
Two questions:
I've attached the files so you can see what I'm talking about.
#1 How do I format the data in my listbox and combo box so it only show the "string" data and not the tags and random commas as well? (The combo box has unnecessary commas and the listbox shows tag data from XML)
I'm not sure if it's in my XML or the way I'm using the XML connector.
#2 I got the XML data to the combo box and the selection from the combo to the list box. How would I get the users selection from the listbox to load a .swf into the loader component?
Again, I'm not 100% of how well I did my XML and I have no idea how to use the XML connector in that way.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<posterlist>
<posterlistgroup name="Nice Posters">
<posterinfo>
<posterlistings>Nice Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Nice Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Large Posters">
<posterinfo>
<posterlistings>Large Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Large Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Medium Posters">
<posterinfo>
<posterlistings>Medium Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Medium Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Sexy Posters">
<posterinfo>
<posterlistings>Sexy Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Sexy Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Horrible Posters">
<posterinfo>
<posterlistings>Horrible Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Horrible Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
<posterlistgroup name="Party Posters">
<posterinfo>
<posterlistings>Party Posters 1</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 2</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 3</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 4</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 5</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
<posterinfo>
<posterlistings>Party Posters 6</posterlistings>
<description> posters/poster1.swf</description>
</posterinfo>
</posterlistgroup>
</posterlist>
Any help or direction would be great.
The file is 630KB, you can download it here.
The .swf can be viewed at this link.
Thanks.
>>Using A Pre-loader, W/ Percent, To Load Multiple Things...
<>Hey all, I need a preloader to load an entire site, mostly HTML, and display it's current percent loaded, as it progresses.
I know how to get a pre-loader to do this with one file, but how is this done with a large variety of HTML file, images, etc?? How do ya tell the same loader to load multiple things?
Thanks anyone!
Changing .alpha On A Loader.load() Image
I'm just now playing with Loaders and am loading external .jpg images to my movie. I can get the Loader to .load and display the image..that's all working. However, I'm trying to fade the image down by 2 on every enterFrame event. The EnterFrame handler that I've worked is running because trace() messages show up. But the loaded image doesn't fade.
Can anyone point me in the right direction?
Thanks,
---DamianHart
[MX04] Pre-Loader And Load Movie PROBLEM
Hello,
So i have a movie with a preloader from following this great tutorial: http://www.hypergurl.com/blog/flash/...preloader.html
I did everything right, and he did too. It's just that, my movie itself won't load. Its a quite large file, about 200 MBs on www.trixmasta.com uploaded through FTP. When I open the swf file itself on my computer it opens in a while, and streams fine. But opening through a url online, took over 10 mins still not loading the swf. By loading though a media player I created, and a "loadMovie" statement the movie would stream quite nicely in my swf media player file, only problem was that it stopped a few times to load the swf from my website. Therefore I wanted to create a pre-loader, and i did so. It worked all the way up to towards the end of the tutorial. Then it stopped working, I don't know why, and how. Thats the problem, when I 'Test Movie' it in flash, it loads but barely, plays at like 100 times slowed down. Then I tried putting this media player swf online at www.trixmasta.com and, the movie didn't load at all.
My fla is attached, and the online swf media player is:
http://www.trixmasta.com/RH%20Media%20Player.swf
and the raw file being loaded is:
http://www.trixmasta.com/How%20to%20SSH.swf (200 Mb's file, very large to load).
Load Random Content Into Loader Component?
As the subject suggests, I'm trying to load random content (regular old jpg's in this case) into a loader component.
I have an old script I found around the web before, where I basically make a new keyframe on the main timeline with a loader component in each one and the file in the content path of the parameters part like normal and the script tells it to gotoAndStop on a random frame.
But, this time, I have about 50 pics to randomize. I'm wondering if there's an easier way (more like a less tedious way) to do this where I don't have to make 50 keyframes and click all over to change the filename on each one.
Is there any way to just have 1 loader component, and then an action script that says "here's a list of images, display a random one when we load the page and stop there"? I'm thinking there must be some way to do it with XML too to specify all the images, but I never worked with XML & flash together before
So how can I do this? Anyone have any ideas? I'm not big on writing script stufff, so this one has be a little stumped even though I'm sure it's easier than I think. Any help would be greatly appreciated ;)
Load Random Content Into Loader Component?
As the subject suggests, I'm trying to load random content (regular old jpg's in this case) into a loader component.
I have an old script I found around the web before, where I basically make a new keyframe on the main timeline with a loader component in each one and the file in the content path of the parameters part like normal and the script tells it to gotoAndStop on a random frame.
But, this time, I have about 50 pics to randomize. I'm wondering if there's an easier way (more like a less tedious way) to do this where I don't have to make 50 keyframes and click all over to change the filename on each one.
Is there any way to just have 1 loader component, and then an action script that says "here's a list of images, display a random one when we load the page and stop there"? I'm thinking there must be some way to do it with XML too to specify all the images, but I never worked with XML & flash together before
So how can I do this? Anyone have any ideas? I'm not big on writing script stufff, so this one has be a little stumped even though I'm sure it's easier than I think. Any help would be greatly appreciated ;)
Trying To Load Vars Into A Text Area & Loader
So I am trying to load variables from a .php file into a movie clip and then plug in those variables to various fields and for some reason its not working...so heres whats going on...(this is for the staff page for my church) (and yes I have read the tutorials :P )
In the primary timeline we have this line...
loadVariables("./middleware/staff.php?id=" + staffID, staff_panel, "GET");
We are loading the variables into the movie clip which contains our various fields...the value for staffID is created in the previous frame when the user click on that person's icon, we know for sure that this is being passed correctly to this frame, because I have a text box in the main timeline which displays the number.
The resulting string from the .php file looks like this...
staffNameE=Jason+Webb&staffTitleE=Lead+Pastor&staffDescE=Jason's+bio+goes+here...&picLoader=./images/staff_pics/jwebb.jpg&staffEmail=webmaster@brooklife.org
Within the movie clip that the variables are being loaded into we have this....it loops till the var load is done and then writes the information to the fields...
while (L ne "stop"){
if (staffNameE ne ""){
staffName = staffNameE;
staffTitle = staffTitleE;
staffDesc.text = staffDescE;
staffPhoto.load(picLoader);
L = "stop";
}
}
So lol what am I doing wrong, it all seems right to me but I am kind of new at the flash thing...thanks for the help. :)
Using One Loader Class To Load Multiple SWFs?
Hello Community,
Pulling my hair out on this one. I want to use a single loader (from the Loader Class) to, sequentially, load an SWF to a unique movieclip on the stage. I have one Loader that I want to load the external files: "peel0.swf", "peel1.swf", ..., "peel9.swf" into 10 corresponding movieclips (that already exist on my stage): "peel0_mc", "peel1_mc", ..., "peel9_mc".
The problem with my code is that it doesn't load all but the last peel. Everything seems to be cranking away as desired until I look at the contents of my peels -- only the "peel9_mc" gets the "peel9.swf" external file loaded into it. When I slow things down with "Simulate Download" I can see that the 0 through 8 "peelX_mc's" get loaded with the proper SWF but when the "loop" moves to the next in line, it disappears from the mc. It's as if the *.addChild method is not sticking.
Any input would be greatly appreciated,
-john
Attach Code
//----------INITIAL CONDITIONS
var peelLoader:Loader = new Loader();// my loader from the Loader Class
var urlPeel0:URLRequest = new URLRequest("./swf/peel0.swf");// I have 10 SWFs that I want to load in at these URLs
var urlPeel1:URLRequest = new URLRequest("./swf/peel1.swf");// the array below contains all requests defined here
var urlPeel2:URLRequest = new URLRequest("./swf/peel2.swf");
var urlPeel3:URLRequest = new URLRequest("./swf/peel3.swf");
var urlPeel4:URLRequest = new URLRequest("./swf/peel4.swf");
var urlPeel5:URLRequest = new URLRequest("./swf/peel5.swf");
var urlPeel6:URLRequest = new URLRequest("./swf/peel6.swf");
var urlPeel7:URLRequest = new URLRequest("./swf/peel7.swf");
var urlPeel8:URLRequest = new URLRequest("./swf/peel8.swf");
var urlPeel9:URLRequest = new URLRequest("./swf/peel9.swf");
var urlPeelArray:Array = new Array(urlPeel0,urlPeel1,urlPeel2,urlPeel3,urlPeel4, urlPeel5, urlPeel6, urlPeel7, urlPeel8, urlPeel9);
var loadCurrentPeel:uint = 0;
var totalPeels:uint = 10;// total number of peels (SWFs I want to load in
//----------FUNCTIONS
function peelLoaded(e:Event):void {// gets called when loading from the peelLoader is complete
this["turntableContainer"]["peel" + loadCurrentPeel + "_mc"].addChild(peelLoader);
this["peelSelectors"]["peelPreloader" + loadCurrentPeel].visible = false;
if (loadCurrentPeel < (totalPeels - 1)) {// increases my index by one and goes back to load the next SWF
loadCurrentPeel++;
loadPeels(loadCurrentPeel);
}
};
function loadPeels(loadCurrentPeel:uint):void {
this["peelSelectors"]["peelPreloader" + loadCurrentPeel].visible = true;
peelLoader.load(urlPeelArray[loadCurrentPeel]);// my URL request is inserted from the appropriate value in the array
peelLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, peelLoaded);
};
function initiateScene():void {// sets the application's default state -- peel0 selected and ready to go
loadPeels(loadCurrentPeel);
};
//----------INITIAL FUNCTIONS
initiateScene();
//----------BUTTONS
Telling Parent Movie Loader To Load Something
hi geniouses,
i basically need (urgently) to tell a parent mc to tell its loader to load a swf.
for the example, lets say swf1 loads swf2 through Loader1. i need a btn in swf2 to tell Loader1 (in swf1) to load swf3 (which automatically unloads swf2)
one more thing, does anyone know why my PDF download works in mac but not in windows? My code is:
this.PDF_btn.onRelease=function(){
_root.getURL("Mami_TermLifePDF.pdf",_blank,"GET")
}
thanks so much! may life be good to you!
Loader Doesnt Load Content In Firefox
I have created an application using flash and the loader component to showcase some cars however i have noticed that the loader component loads the images in Internet explorer but not flash does anyone have an idea as to why this is so? It worked perfectly while it was on my local machine but it doesn't work at all on the server. All suggestions and comments will be warmly welcome. Also how do you find the size of a jpg picture in a loader?
Can't Call Play() When I Load SWF File With Loader
So ... my code:
var req:URLRequest = new URLRequest("some.swf");
var loader:Loader = new Loader();
loader.name = "loader";
loader.load(req);
stage.addChild(loader);
loader.play(); (i try loader.content.play() but ... error)
Please HELP ME
|