Loading External Swf
Hello, I am making a site which when I click a button, a transition loadson level 1. 1/2 way through the transition, I want it to stop, and display a preloader which preloads a totally different swf into level 2. After this seperate swf is loaded, I want the transition to finish, which will leave level 2 visible. Is this possible?
Thanks,
Greg
FlashKit > Flash Help > Flash MX
Posted on: 07-01-2003, 08:14 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading External SWF From External SWF Onto An Empty MC On Main Timeline?
Hi Everyone,
Please bear with me while I explain. I have an external swf that loads into a frame in the main timeline, into an empty MC. I can do this just fine. Once this clip is loaded, I have a button in this clip that loads another external swf into a different empty MC on the main timeline. I'm using loadMovie, and I need to load these movies into specific empty MCs. In other words,
I have the following:
MainStage: frame 5, contains empty MC "ClipA"; frame 6, contains empty MC "ClipB"
External swf: "Movie1"
External swf: "Movie2"
"Movie1" goes into "ClipA" of frame 5 on Main Timeline; and "Movie1" has a button that loads "Movie2" into "ClipB" of frame 6 on Main Timeline. I need help loading "Clip B" into "Movie2" from a button in "ClipA."
I'm sorry my message is so roundabout - it's not really a complicated situation, but explaining it makes it seem so.
Thank you in advance for any help - I'm assuming it's some sort of _root or _parent issue things I'm not quite understanding.
Thanks!
macgirl
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.
Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?
Any ideas how to fix this?
Here is the code for Frame 1 of the externally loaded swf.
Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
midframe=10
All the files are in the same dir.
Loading A Frame In _root And Also Loading An External Movie Problems.
First of all, hello everyone and nice to meet you
I have been hacking at a problem for a couple of days now and I am in need of help to solve it. Please excuse my noobishness, but I have a lot to learn when it comes to flash.
Here is my scenario:
I have my main movie (_root)
In the actions layer of my main movie I have:
Code:
this._lockroot = true;
I have a button that loads a new external movie at the end of which I want to load a particular frame in the main movie. I call this from the external movie:
Code:
on (release) {
_root.gotoAndPlay(610);
}
Everything up to here works brilliantly....But my problem arises when I also try to load an external movie onto level 5 at the same time as I am instructing the main movie to play frame 610 from an external movie. I want the external movie to call frame 610 in main, and also load a new external movie on level 5 in the main movie. I have tried about every way of loading movies that I can think of but I can never get the external movie to load along with frame 610 of the main movie. I even tried _root.loadMovieNum("myexternalmovie",5) right after my first root call, like this:
Code:
on (release) {
_root.gotoAndPlay(610);
_root.loadMovieNum("myexternalmovie",5)
}
Is that possible or do I have to approach this entirely differently? Thanks for any responses
Help Problems Loading External Text And Loading The Movie Into The Explorer
Hola a todos!
I have some troubles with my movies. I'll explain.
(Sorry for my poor English - I'm Spanish!)
I'm developing a website for a Real State Agency in Spain. My idea is make it enterely with Flash, but It's the first time I face Flash. I've found in the tutorials of kirupa.com the greatest help! But, still that, I need more help!
My first problem comes when loading the .swf into the explorer. I made a simple .html file that calls the .swf file to be loaded. The explorer says it's loaded, but I have to press the "Reload" button to see the movie. Can you say me why?!!!!
My second problem... well. I'll need a few minuts to explain it!
I have created a main scene. Inside the main scene I load the movies of the different sections of the site. This new movies loaded onto the main movie contain texts from external .txt files. There's no problem with the texts that are just a few words, as in the section "Acerca de". But when I need a bar to show the whole text I find that the bar doesn't work in the first time that the movie is loaded, and you have to click again in the section to access the whole text, I mean, to make the bar work. Have I explain myself?
Well. I think you should visit the site to see my problems.
Is this: http://www.wk-inmobiliaria.com/FLASH
This website is, of course, incomplete. I'm still working on it.
Could someone help me????
---- Help me Obi Wan: You're my only hope!!!!
Thanks a Lot.
Raul.
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.
Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?
Any ideas how to fix this?
Here is the code for Frame 1 of the externally loaded swf.
Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
midframe=10
All the files are in the same dir.
Problem With External MCs, Loading An External Into An External
What I have is 2 seperate files, Main file is the actual website flash, second file is the external movie clip that loads 3 other external movie clips. The site will see the external clip but nothing will appear on the site, blank movie clip only.
On the main site there is this code to load the external clip into the site:
ActionScript Code:
loadMovie("toonsext.swf", _root.toons_mc)
On the external clip these are the codes for loading the 3 characters onto it:
ActionScript Code:
loadMovie("joshtoon.swf", joshblank_mc)loadMovie("toonmatt.swf", mattblank_mc)loadMovie("metoon.swf", meblank_mc)
Seperately the external clip will work and show the characters however on the main site it will not show anything. What could be the problem can flash not load 2 seperate entities like this or is there a code wrong on my behalf?
Problem With Loading New External Mc Before Existing One Has Finished Loading
Hi all,
I've been building a flash website which loads various external movieclips with preloaders into a main movie using either target or level. All is working fine, except when a user clicks on a button to load an external movieclip (the button actually goes to a frame label and then said frame contains the loadmovie action), but then decides to click on another button which loads another movieclip before the original has finished loading. This basically breaks flash, causing the movieclips to start looping erratically (even though I have stop actions in place).
Obviously this problem doesn't occur when I test locally, but please follow this link to see what I mean. Click on the 'locations' or 'recent shoots' sections and then try to load a new movie before an existing one has completely loaded:
http://www.david-vernon.co.uk/365_2/365.html
Now I've experimented with adding 'unloadmovie' to buttons and frames to no avail (though as I'm loading new movies into the same target this shouldn't be the problem surely?), so my only thought is that the preloader actionscript might be causing a problem. Here's the actionscript I'm using on frame 1 of all my external movies:
Code:
stop();
myInterval = setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded() >=getBytesTotal()) {
play();
clearInterval(myInterval);
}
bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
percent.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
}
I'm not very good with actionscript and I'm really stumped with this, so any help would be greatly appreciated!
Thanks,
Dave
External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
ps. i am using Flash MX
Loading External Images Loading Bar (Movie Clip)
I have managed to have external images loaded with the progress bar. However, when I place these items into a movie clip the preloader no longer works. can someone please take a look at the flash file for me.
http://www.bloggot.co.uk/file.zip
External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
ps. i am using Flash MX
Loading Main Timeline Diff. From Loading External Swf's?
Last edited by enkriptid : 2008-06-30 at 04:16.
hey peoples, im still learning how to load things , my methods are working so far..
what ive been doing to load external swfs is using a intermediate "loading swf" that works between the main timeline and the desired swf to be loaded.. so far it works and is simple enough for me to work with now, but my question is, how do i go about preloading the main timeline if there are mc's being exported .. i tried my previously mentioned method but no dice.. if theres a rock-solid technical answer id like that..my goal is to have most of my site(illsci.com) in actionscript .as files, doc. classes and xml as of now so im looking for a method i can implement using script if i can, if there is one. perhaps a metatag trick of some sort
Loading External Swf Which Load External Txt File
Hi,
My main movie loads an external swf with the following:
code:
createEmptyMovieClip("contRight_mc", 5);
contRight_mc.loadMovie("contHome.swf");
contRight_mc._x = 485;
contRight_mc._y = 0;
contHome.swf loads an external text file and stylesheet:
code:
loadVariablesNum("contHome_no.txt", 0);
globalStyle = new TextField.StyleSheet();
globalStyle.load("global.css");
hdrHome00_txt.styleSheet = globalStyle;
hdrHome00_txt is a dynamic text field with the variable hdrHome00, which is used in the loaded text file:
hdrHome00=<html><body><hdr>text</hdr></body></html>
All files are currently in the same directory. When I test contHome.swf (the swf loaded by the main movie), everything works. But when I test the main movie the text does not load, or at least it does not show up as I receive no errors in the output window, and I can't figure out why. Can anyone help?
Loading External Jpeg Via External Preloader
mx2004
hello all, i have a button which loads an external jpeg from a folder. what i want is to have it so when the command to load the external jpeg is sent, an external preloader preloads it in the placeholder. this preloader will be generic so it can be applied to load before any image selected in any folder, for updating purposes. anyone know where to start with action script, or how to set it up,
Loading External Html Files With External Css Please Help
Hi people,
I'm new to this forum and new to ActionScript. I have not worked on AS1 or AS2 before so I just got started on AS3.
I'm trying to learn ActionScript 3 and I started experimenting with ideas and workinf examples.
What I'm trying to achieve is a website where the content shown is from external HTML files and external CSS.
My code was working up until trying loading the CSS. The error that I'm getting is "Call to a possibly undefined method URLLoader"
here is my code:
ActionScript Code:
import flash.display.MovieClip;
import flash.text.*;
import fl.transitions.*;
import fl.transitions.easing.*;
var bodyTextField:TextField = new TextField();
bodyTextField.x = 50;
bodyTextField.y = 300;
bodyTextField.width = 500;
bodyTextField.multiline = true;
bodyTextField.wordWrap = true;
bodyTextField.autoSize = TextFieldAutoSize.LEFT;
bodyTextField.selectable = false;
var textBox_mc:MovieClip = new MovieClip();
showContent("html_pages/home.html");
function showContent(paraString:String):void
{
var contentPage:String = paraString;
var myURLLoader:URLLoader = new URLLoader();
var myURLRequest:URLRequest = new URLRequest(contentPage);
var myCSSLoader:URLLoader = new URLloader();
var myCSSRequest:URLRequest = new URLRequest("html_pages/demo.css");
myCSSLoader.load(myCSSRequest);
myURLLoader.load(myURLRequest);
//myURLLoader.addEventListener(Event.COMPLETE, dataOK);
myCSSLoader.addEventListener(Event.COMPLETE, dataOK);
function dataOK(myevent:Event):void
{
var css:StyleSheet = new StyleSheet();
css.parseCSS(URLLoader(evt.target).data);
bodyTextField.styleSheet = css;
bodyTextField.htmlText = myURLLoader.data;
textBox_mc.addChild(bodyTextField);
stage.addChild(textBox_mc);
var myTransitionManager:TransitionManager = new TransitionManager(textBox_mc);
myTransitionManager.startTransition({type:Wipe, direction:Transition.IN, duration:0.5, easing:None.easeOut});
}
}
Can someone please have a look and tell me what I'm doing wrong? Thanks.
External Text In External Swf Not Loading In Main Swf
Hi. I'm kind of new to Flash, and am trying to make external text load into an external swf which is loaded into my main swf.
What I have is a swf file where I have buttons that load external text. I then loaded this swf into another main.swf and now the external text will not load. The code i have in the external.swf to load external text is this
but4272005.onRelease=function(){
loadVariablesNum ("4272005.txt","0");
}
but4282005.onRelease=function(){
loadVariablesNum ("4282005.txt","0");
}
but532005.onRelease=function(){
loadVariablesNum ("532005.txt","0");
}
This swf works by itself, but when i load it into the main.swf it doesn't.
I'm sure it has something to do with the "0", but I'm not sure what to put there to make it load correctly in the main swf.
The dynamic textbox i'm trying to load into is named "index_txt". The name of the loader in the main.swf is named "content". Any help would be appreciated.
Problems Loading An External .swf Inside An External .swf
Hey, I created a site using Kirupa's external .swf loading tutorial. Now in one of my externally loaded .swf's, I am loading another external .swf. I've gotten this to work fine, but the second external .swf (loaded into the first) contains buttons that will swap this second external .swf with another external .swf. I can't seem to get the AS references to the variables set up correctly in order to swap the swf's. It sounds rather confusing, so I've included the .fla's and .swf's below.
The file structure:
-band.swf load's profiles_main.swf
-The buttons in profiles_main.swf are trying to load chris.swf (swapping it entirely with profiles_main.swf)
If anyone has a few moments, I'd really appreciate the help.
Problems Loading An External .swf Inside An External .swf
Hiya, I created a site using Kirupa's external .swf loading tutorial. Now in one of my externally loaded .swf's, I am loading another external .swf. I've gotten this to work fine, but the second external .swf (loaded into the first) contains buttons that will swap this second external .swf with another external .swf. I can't seem to get the AS references to the variables set up correctly in order to swap the swf's. The initial .swf loads fine, but the button control gets complicated inside it. It sounds rather confusing, so I've included a link to the .fla's and .swf's below.
http://www.rta.ssxh.net/files.zip
The file structure:
-band.swf load's profiles_main.swf
-The buttons in profiles_main.swf are trying to load chris.swf (swapping it entirely with profiles_main.swf)
If anyone has a few moments, I'd really appreciate the help.
Loading External Files Within External File
Is there a way to load an external file from within an already loaded external file?
Example:
I want to do a section devoted to blog entries. So, I was wanting to externally load the dated references in one textbox on the right side, and when the user clicks on one date, it loads the referenced text file into the larger box next to it.
Any ideas of how to accomplish this?
Thanks!
bbbco
Loading External Images (from External Domains)
Hello kirupa users
I had a small problem in my latest work project where i wanted to load images from external domains.
The problem was that i did not know if i really need the checkPolicyFile set to true or if i really need to load the crossdomain.xml to tell flash player where the acces is.
As far as i know, in adobe as3 reference they stated that in order to load images from an external domain (a domain other than the one where the actual swf runs) you need a policy file or a security acces file in order to be able to do that.
My question is:
1: could i load an image from external domains without having to load some external file (or the crossdomain.xml file)?
2: if there is no possibility to load an image without the crossdomain policy why the checkPolicyFile method could take the value of false?
Thanks in advanced!
Regards.
External Text In External Swf Not Loading In Main Swf
Hi. I'm kind of new to Flash, and am trying to make external text load into an external swf which is loaded into my main swf.
What I have is a swf file where I have buttons that load external text. I then loaded this swf into another main.swf and now the external text will not load. The code i have in the external.swf to load external text is this
but4272005.onRelease=function(){
loadVariablesNum ("4272005.txt","0");
}
but4282005.onRelease=function(){
loadVariablesNum ("4282005.txt","0");
}
but532005.onRelease=function(){
loadVariablesNum ("532005.txt","0");
}
This swf works by itself, but when i load it into the main.swf it doesn't.
I'm sure it has something to do with the "0", but I'm not sure what to put there to make it load correctly in the main swf.
The dynamic textbox i'm trying to load into is named "index_txt". The name of the loader in the main.swf is named "content". Any help would be appreciated.
Problems Loading External CSS With External TXT FMX-2004
hi guys/gals. i'm not so new around here - this site has been a life saver several times, but i'm having trouble finding the answer to this problem i've encountered.
all of the files associated w/ this project are located here, http://www.ohmygraphics.com/test/groovesect/flash.
ok, here's what i'm trying to do.
i have a movie with a button that opens a window w/ a movie clip instance that is draggable. in this draggable movie clip is an external SWF file called "tester.swf". i've tried several times to have a dynamic text field that would load an external CSS file along with a TXT file.
see tester.swf. this is the same TXT w/ the CSS that i want loaded.
here, SITE1.SWF is the final movie w/ "tester.swf" loaded.
as you can see, i got it to load the external TXT file, but not the CSS.
i couldn't get the CSS to load in the SITE1.SWF file, so i thought that since it worked w/ the tester1.swf that i could load an external SWF file and have it work that way. but that didnt' work like i had hoped, which leads me to think that i've got the locations and everything else right in the AS.
i've also uploaded the two .fla files for you guys to look over to see the code. it's pretty simple really, i just don't know why it's not loading the CSS. i thought it might be something with having instances withing instances, but i really have no idea.
thanks in advance for all of your help. it's greatly appreciated.
External Swf Loading Into Target Movieclip Loading
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
Loading External Data Into An External Swf
I have a main interface where I'm loading an external swf's but I'm also trying to load text dynamically from a database from the external swf but the text will not show up,
but the text will load if it's in the main interface.
This is my code:
on (release) {
_level0.section = "about.swf";
_level200.play();
section = "contact";
loadVariablesNum("http://www.myurl.com/get_text.php", 0, "POST");
}
The swf will Load properly but the text won't.
Any help would be greatly appreciated.
ps.I hope what I'm asking for makes sense
Loading External Data Into An External Swf
I have a main interface where I'm loading an external swf's but I'm also trying to load text dynamically from a database from the external swf but the text will not show up,
but the text will load if it's in the main interface.
This is my code:
on (release) {
_level0.section = "about.swf";
_level200.play();
section = "contact";
loadVariablesNum("http://www.myurl.com/get_text.php", 0, "POST");
}
The swf will Load properly but the text won't.
Any help would be greatly appreciated.
ps.I hope what I'm asking for makes sense
Loading External Swfs From An External Swf
im building a site that uses a simple AS to load "contact us.swf" into the main movie. my question is how can i code it that from "contact us.swf i can load another external swf such as "form.swf"? i cant get it to load the form heres the code im using
from the mainmovie
on (release) {
_root.contents.loadMovie("contact us.swf");
in the contact movie
_root.contents.loadMovie("formswf");
any suggestions?
Loading An External Swf Inside An External Swf
Hello,
I've used loadMovie to load an external swfs in two host files. both work fine on there own, but when I try and load the second host file into the first host file I'm not able to view the 2nd's loaded swf.
Anyone know the problem/have a way around it??
Thanks
Loading External Text Into External SWF
I'm looking to somehow load an external .txt file into an external swf file for a website section.
I've attached a zip that contains the main SWF file and the external SWF file that should load as a subsection of the main SWF.
The problem is, the external text loads fine in the about.swf just fine, but as soon as the about.swf is loaded into main.swf the text and it's buttons do not appear.
Any help or tips would be greatly appreciated for a flash novice.
Again, the files are attached
Thanks!
Loading External .swf With External Images
I have created a basic website and wish to load an external .swf file into it. The .swf loads fine but the images that are to load within that particular .swf do not. The images are external and load using this action script.
btn1.onRelease = function (){
loadMovie ("IMG_2812.jpg", _root.photo.empty)
}
They load fine using just the .swf file but when the .swf is loaded within another document it doesnt load the imgs.
Loading External Swf Which Loads An External Txt/xml
Hey!
how you doin? fine? goood!
kay, here we go
im working with external swf files, same way you'll find it on http://www.kirupa.com/developer/mx/p...transition.htm
One of the external swf files contains an extension (called newsblock found on http://flashcomponents.net/components.cfm)
this extension works with an external xml file, called newsblock.xml
The swf on its own works great, it does everything i want it to do.
but if i load it into my main movie... everything is visible except the xml output...
following the preloader-transition tut:
when the transition MC goes to and plays "opening", the extension lay-out is visible but the xml output (the text itself) stays behind...
when loading other swf movies everything works fine..
then i tried just to load an external txt file instead of using the newsblock extension, only the textarea is visible but the text itself isnt
the swf with the extension on its own works fine and so does the swf with the normal txt file loading into it, but when i try to see it in the main movie it doesnt display text at all..
hope somebody knows an answer, cause i cant find any,
tried searching the forums but came up with nothing..
thx
xx
Loading External Swf Which Loads An External Txt/xml
Hey!
how you doin? fine? goood!
kay, here we go
im working with external swf files, same way you'll find it on http://www.kirupa.com/developer/mx/p...transition.htm
One of the external swf files contains an extension (called newsblock found on http://flashcomponents.net/components.cfm)
this extension works with an external xml file, called newsblock.xml
The swf on its own works great, it does everything i want it to do.
but if i load it into my main movie... everything is visible except the xml output...
following the preloader-transition tut:
when the transition MC goes to and plays "opening", the extension lay-out is visible but the xml output (the text itself) stays behind...
when loading other swf movies everything works fine..
then i tried just to load an external txt file instead of using the newsblock extension, only the textarea is visible but the text itself isnt
the swf with the extension on its own works fine and so does the swf with the normal txt file loading into it, but when i try to see it in the main movie it doesnt display text at all..
hope somebody knows an answer, cause i cant find any,
tried searching the forums but came up with nothing..
thx
xx
:D Pre-Load/Loading (external .swf) To (external.swf) Need A
Well I have 3 flash files:
PRELOADER.SWF (Containing the loading bar)
Index1.swf (actionscript to load PRELOADER.SWF and to move onto Index2.swf..
Index2.swf Main splash page to site.
Heres the actionscript:
Code:
stop();
//-------------------------<MCL>-------------------------\
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
//-------------------------</MCL>-------------------------\
myListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) {
_level50._visible = true;
_level5._visible = false;
var preloadPercent:Number = Math.round((loadedBytes/totalBytes)*100);
_level50.preloader.gotoAndStop(preloadPercent);
};
myListener.onLoadComplete = function(target_mc) {
_level50._visible = false;
_level5._visible = true;
_level5.play();
};
myMCL.loadClip("preloader.swf", 50);
// trigger the MCL to load this:
myMCL.loadClip("index2.swf", 5);
Problems ?
Well It works in Firefox BUT the loading bar is in reverse ?? Its actually degrading the fill of the bar instead of increasing.
In I.E. it loads ok first time but still Loading Bar in reverse. Also if you reload page bar is still visisble..
I presume my coding isn't correct and its a simple fix.. Please send me correct code I presume its a simple fix and just a bug with my loading bar code.
Thanks .
Loading External Swf, Then Loading Data...
I'm kinda new, im switching to flash from Swishmax... Concept is kinda the same but some parts are different...
I have my main swf loading an external swf which is than loading >
loadVariablesNum ("discography.txt",0);
now when I run the external swf by it self , it loads correctly.
But when I run the main swf, and it loads the external swf correctly the data being loaded does not come in at all... Ive pulled it off before on swishmax but on the real flash coding i cant
Loading External Movieclip From An External Movieclip Library Into Main Movie?
How do you load an external movieclip from an external movieclip library into a main movie?
I have an external movieclip loaded within a main movie. I then want the external movieclip to be able to take a movieclip from its own library and the load this into another container ind the main movie.
In other words:
A contains B
B contains C
I want a button in B to place C directly in A
How is this done?
[F8] Loading An External Swf Into An External Swf?
Hi
I've got to build a cd-rom in six languages. I don't want one really big file so I thought i should load lots of small clips externally into one main clip.
I want to build one 'main' swf which will inc:
- links to the six languages
- an empty movieclip (which will hold the first six external swfs)
The first six external swf's inc:
- the menu in each of the six languages
- another empty movie clip (which will hold the rest of the external swf's)
I can load the first six menu swf's fine but can't work out how to load swf's into the second 'level' movie clip. Is this possible? if so how?
Hope this is understandable. Any help would be greatly appreciated, I'm well and truly stuck on this.
Thanks in advance
Loading External Swf Into An External Swf.......help Please
Right....
all my external .swf movies get loaded into an empty mc on the main movie.
ok?
Now what I want to do is that when an external swf has been loaded, inside that if a button is clicked I want another external swf to load into that pervious swf??
Does this make sense?.......sorry if it dont but am trying to explain this the best a possible.
How can this be done?
Many thanks in advanced.
Loading External Swf Into External Swf
Hello,
My site is set up with a man menu that loads external swfs when the appropraite button for each swf is released. Lets say I choose my "Photography" button and I am taken to my photography swf. On my photography swf I have thumbnail buttons, that when released will open up a larger image of the picture(each picture is its own swf). These swfs load fine. The problem is....say I am done looking at photos and want to open the contact.swf.........now everything disappears on the photo page except the larger image I was viewing and then the photography page begins to load again. Any help? Let me know if this makes sense.
Loading External MCs Into External MCs
Is it possible to load an external mc (which has empty mcs for thumbs) into a container on the main swf? A sort of.. external mc into an external mc into a container on the main timeline? Confusing I know...
What I am trying to do is load a photogallery created by followng this tutorial:
http://www.kirupa.com/developer/mx2004/thumbnails.htm which has containers and thumbnails, etc.
into a container.mc on the main timeline. The gallery appears to be working in it's fla and own swf, but when I try to load that swif into the website's container the images/thumbnails dont show up..or text even.
I'm guessing that you can do this, i mean, after all any photographers site seems to use it... I'm guessing it has something to do whith the way I'm referencing mcs... obviously I'm not doing it right.
Or is there a better/other way to do this?
Can anyone shed some light on this?
Thanks in advance.
Loading External Swf's Into External Swf's
My main timeline is set up with a movieclip with an instance name of mainContent that loads an external swf that contains a movieclip with an instance name of subContent that I want to load another external swf into.
How can I control this from my main timeline.
I have two buttons on the main timeline, a next button and a previous button. I'm storing all external file references into Arrays so I can navigate through the entire presentation using the next and previous buttons.
Here's the AS I have so far:
Code:
// Main sections
var section_1 = "injectionSystem.swf";
// Sub Sections
var section_1_1 = "injectionSystemS1_1.swf";
var section_1_2 = "injectionSystemS1_2.swf";
var section_1_3 = "injectionSystemS1_3.swf";
// Global variables declared so they work in functions throughout the movie.
var nextURL;
var prevURL;
var Address;
var SubAddress;
var SectionOne:Array = [section_1, section_1_1, section_1_2, section_1_3];
var SectionTwo:Array = [section_2, section_2_1, section_2_2];
var SectionThree:Array = [section_3, section_3_1, section_3_2];
var SectionFour:Array = [section_4, section_4_1, section_4_2];
var SectionFive:Array = [section_5, section_5_1, section_5_2, section_5_3, section_5_4, section_5_5, section_5_6, section_5_7];
var SectionArray:Array = [SectionOne, SectionTwo, SectionThree, SectionFour, SectionFive];
var mainContentLoader:MovieClipLoader = new MovieClipLoader();
//
function _1() {
Address = 0;
mainContentLoader.loadClip(SectionArray[Address][0], mainContent);
mainContentLoader.loadClip(SectionArray[Address][1], mainContent.subContent);
trace(SectionArray[Address][1]);
}
function _2() {
Address = 1;
loadMovie(SectionArray[Address][0], mainContent);
}
function _3() {
Address = 2;
loadMovie(SectionArray[Address][0], mainContent);
}
function _4() {
Address = 3;
loadMovie(SectionArray[Address][0], mainContent);
}
function _5() {
Address = 4;
loadMovie(SectionArray[Address][0], mainContent);
}
_1();
Loading External Swf
Hello
Im having a real problem with having one swf file loading another swf file with the loadMovie script.
what i want to do is load the second movie while the first is playing and then click through from the first when the 2nd is loaded.
problem is that as soon as the 2nd movie is loaded it starts playing.
how do you control the 2nd movie?
I have tried loading the 2nd movie into _level1 and use that to turn its visibility to false, but that doesnt work.
any suggestions would be appreciated.
Matt
Loading An External SWF To?
I want to load an External SWF, Say BITEME.SWF into Level1
But I want to set the _X and _Y of it..
like _level1._x(200)._y(200)
How can I do this? Is there AS to set the X and Y?
-Paradoxz
Loading In External SWF's
Hmm, having a bit of trouble loading in external files.
Am i doing this right??
I am creating a MC called test.
the i am making a button that loads the external swf into target test.
but when i try the movie, the external file is placed somewhere else on the screen, not where i made the MC.
Is there a better way of loading external SWF files ?
I want to make an interactive menu system, that can load SWF's into specific areas of a specific size, but cant seem to figure out the best way of doing it... any advice guys n gals ????
Loading External Swf's
Please help.
I would like to know how to load a external swf file in to my flash movie so that instead of having to load everything at once. When i try it, the external swf always loads over the top and i want it in my movie.
Thanks
Adamski
Loading An External SWF
Hi
I am trying to get it so that when you click on one of the buttons say "news" the news page loads up inside of the page i have linked below.
http://www.cgttuk.co.uk/default.html
I dont know the actual action script i need to put in the movie and where.
If you need anymore info please reply I cant get my head around this.
Cheers
Loading MC´S From An External .swf
I can´t seem to get the techniques, that I learnt
in the following tutorial, to work;
´Loading External Symbols During Playback,
Author: Mark White´.
The idea is that I have 3 .swf´s that I want to have
a common shared library of certain movie clips,
so I´m using the action;
placeHolder.loadMovie("library.swf");
then I´m placing the mc´s in my movie via;
placeHolder.attachMovie("06", "my1", 2);
placeHolder.my1._x = 8;
placeHolder.my1._y = 18;
etc.
The problem is that when I publish and upload the
movie to the the web none of these movies show up,
even though I uploaded the 3 .swf´and the library.swf
to the same directory.
Should I be using some sort of .php/server type script script to link to the library.swf?
All help gladly appreciated,
Thanks,
Leonard.
Loading An External Swf With XML
I have created 2 swf files and an XML file. Movie1 carries a button and a movie instance (place holder so to speak), Movie2 carrys a window with 2 dynamic text boxes that receives their information from the XML file (Title and Article) When I open up the Movie2 swf file it displays the XML information in the dynamic text boxes just like it is supposed to, however, when I open up the Movie1 file and click on the button I created to display the Movie2 swf file inside of Movie1, it brings up the Movie2 window like its supposed to but does not fill in the text boxes in the window with the information from the XML file. Any ideas to correct this problem?
Thank-you for your time.
Loading External Txt
Hi
Could someone help me......
I have two swf files
Main.swf and About.swf
In Main.swf I have my menu.
I want to load the about.swf on level 2, easy enough.
But in the about.swf I have has a dynamic text box which is an MC and in the MC i have given the dynamic text box variable name as TextField.
I drag that MC onto the main stage and gave it an instance name of textmovie.
back to Main.swf in the navigation bar MC i have buttons and have give the following action
on (release) {
loadMovieNum("about.swf",1)
_root.textmovie.loadVariables("aboutobjective.txt" )
}
the idea is to load the about.swf and then load an external txt file....which i created in Homesite(HTML Editior)
I have put a variable in the HTML page is Textfield if that makes sence.
THE THING OES NOT WORK AND I HAVE TRIED EVERYTHING.....
I would like to know how to work it.....
I have an idea about putting actions in black keyframes in the about.swf file each key frame to the different txt files. Then in the Main.swf file i just tell it to load the swf file and go to frame 1,2,3 etc...you think that would work.
HELP ME PLEASE
|