Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Flash/php Form In Externally Loaded Files



hi there, i've been using the flash/php email form for awhile now and i've had it opening up in a separate window clickable from my site. it's been great and very reliable. however, now i want to integrate the form into my site, and not as a separate pop up window. and i have it so that it's placed as an extrnally loaded swf file within my main index file. so far, it's only working kind of half way. problems are: 1) won't move on to the second frame of the file when the "send" button is clicked (but does when the form is viewed separate...not externally loaded into the index file) i think it may have to do with this code in the main form movie clip symbol: onClipEvent(data){// show welcome screen_root.nextFrame();} 2) although it isn't moving onto the next frame, so that the user can see that it actually went through and sent...sometimes it is sending...although a bit inconsistently. i'm trying to work out one problem at a time, and with this one, i think i may have kind of tired out my server or something for now from all the testing. if anyone has any tutorials or codes or any insight to share about putting a php/flash contact form within externally loaded files, i'd appreciate it! denise ciecierega



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 05-04-2006, 02:49 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Retaining Order Of Files Loaded Externally From Large XML Files
Hi everyone,
I was messing around with some old examples, and I ran into an unfinished example where several 30k-100k XML files are loaded and stored as a string into an Array. The code looks basically like:

Code:
//example input: foo.xml%zeeb.xml%blarg.xml
function loadXML(filePaths:String) {
filesArray = filePaths.split('%');
for (var i:Number = 0; i<filesArray.length; i++) {
var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = function(success) {
if (success) {
//order of files loaded is messed up here!
parseXMLData(this, filesArray.length);
} else {
//trace(filesArray[1]+" failed to load!");
}
};
xmlData.load(filesArray[i]);
}
}
Basically, when I trace the 'this', the order of the files that are loaded is off. Out of about 10 tries, about 3 times the order is perfect. The remaining 7 times, the order is a bit off. Does anybody have a suggestion on how to ensure the files are loaded prior to the next file being loaded?

I tried placing a while loop that basically delays the clock for a few milliseconds, and that didn't work either. Besides, that is not really a good solution to arbitrarily waste clock cycles. I am guessing some sort of a listener might be needed, but that is where I've hit a wall

Thanks!
Kirupa

Email Form Won't Work If Externally Loaded
I'm using Kirupa's php email form. It works fine in it's own .swf file, but the problem is when it is loaded externally into another, "main", movie. I hit "send" and nothing happens. When I test it w/out loading it into another movie, after hitting "send", it shows a "Thank You" message and "back" button...it works fine. What's the problem?

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
}

I keep both movies and the php form in the same folder, but is there some tweeking of the path that needs to be done. I.E. "../email.php", I know that's wrong, but something to that effect. I'm browsing the old posts but no luck yet.

Any help is appreciated.

Externally Loaded SWF Contact Form Problem
im using


Code:
stop();
loadVariables("send_email.php?flashmo=" + random(1000), this, "POST");
message_status.text = "sending...";
var i = 0;
function check_status()
{
if( success == "yes" )
{
message_status.text = "Your message was sent successfully!";
play();
}
else if( success == "no" )
{
message_status.text = "Your message could not be sent. Please try again.";
gotoAndStop("stop");;
}
if( i >= 20 )
clearInterval(interval_id);
i++;
}
var interval_id = setInterval(check_status, 400);
to call the php, it works fine as a standalone swf.. but once i test it as a loaded swf it all stops working

my branch would look something like

index.swf > "main" > "content" > contact.swf > "contactmc" > then all my code is located in a frame within this mc

ive tried _root _parent _level0 through to 3, but i cant seem to get this working
perhaps im overlooking something

also if it makes any difference i have _rootlock applied to all my mc's for the combobox

Muting Externally Loaded Swf Files
I am sure there is a couple of ways to do this, but I am trying to figure out what the best method is.

I have a container movie that plays 10 differnt swf files (from Captivate) that have embeded sound. I can seem to figure out the best method for muting these 'videos' as they play (I have really only done such with actual FLV files).

Do you have a suggestion for muting and/or volume level adjustment through actionscript (2)?

Variables In Externally Loaded SWF Files
Greetings!

I am having a major problem in initiating variables and or accessing and evaluating variables which are included in the ActionScript of SWF files which are loaded into a Movie Clip in the main SWF (projector or swf) with a target of: _parent._root.NAV.ExternalAds -OR- another instance with a traget of _parent._root.NAV.ALERTS.

I developed a stand-alone EXE from a Flash MX file which contains two movie clips: 1) ExternalAds ; 2) ALERTS (see target paths above). These movie clips load external SWF files into them. These external SWF files are files which we modify occassionally to vary the content based on dates.

Without getting into all of the date object stuff they basically check the date and time and load the correct files into themselves. We create all of the other files which are loaded into the movie clips in advance and use the date object to chage them out. That all works fine and we have been doing that for several months.

Now however, we need to run a contest through this app. and we don't want things repeating throughout the day. We need to load only a specific file at a specific time and load it only once. The other side to this is that we have to cater to two different audiences: 1) the occassional user who runs the EXE file only daily; 2) the user who keeps the file running on their desktop all the time. SOOO... I need to use an Externally loaded SWF that runs for about a minute and then reloads, checks the date and time and repeats this process. If a particular alert has been run then a variable needs to be set in the main EXE (SWF) to indicate that the file has been played previously.

Here's a very simple example of what works without the variables involved:
The file ExternalAds.swf loads into the MovieClip _parent._root.NAV.ExternalAds

ActionScript Code:
// The SWF file: ExternalAds.swf -- contains the date object:

myDate = new Date();
currentMonth = myDate.getMonth();
currentDate = myDate.getDate();
currentMinutes = myDate.getMinutes();
currentSeconds = myDate.getSeconds();
/*
Then several frames down, we determine what to do based on the Date object's properties:
[NOTE THAT: the date related SWFs load into the same Movie Clip instance External Ads in the _parent SWF(EXE)]
*/
stop();
if (currentMonth ==6 && currentDate <= 31){
   loadMovie("DefaultAds.swf", "_parent._root.NAV.ExternalAds");
} else if (currentMonth == 7 && currentDate <=15){
   loadMovie("AugustAds.swf", "_parent._root.NAV.ExternalAds");
}
else {
   gotoAndPlay(1);
}

if (currentMonth == 6 && currentDate == 22 && currentHours == 10 && currentMinutes <=1){
   loadMovie("Alert7_22-10am.swf", "_parent._root.NAV.ALERTS");
}  else if (currentMonth ==6 && currentDate == 23 && currentHours == 12 && currentMinutes <=1){
   loadMovie("Alert7_23-12pm.swf", "_parent._root.NAV.ALERTS");
}
else {
 gotoAndPlay(1);
}
OK ... SORRY 'BOUT THE LENGTH OF THIS THREAD, but I don't know how else to explain it.

SO now if we want to introduce a variable and then evaluate it to determine what needs to be done along with the date and time, here's what I have been trying:

ActionScript Code:
stop();
if (currentMonth ==6 && currentDate <= 31){
   loadMovie("DefaultAds.swf", "_parent._root.NAV.ExternalAds");
} else if (currentMonth == 7 && currentDate <=15){
   loadMovie("AugustAds.swf", "_parent._root.NAV.ExternalAds");
}
else {
   gotoAndPlay(1);
}

if (currentMonth == 6 && currentDate == 22 && currentHours == 10 && currentMinutes <=1 && _parent._root.contest == "no" || _parent._root.contest == undefined){
   loadMovie("Alert7_22-10am.swf", "_parent._root.NAV.ALERTS");
}  else if (currentMonth ==6 && currentDate == 23 && currentHours == 12 && currentMinutes <=1 && _parent._root.contest == "no" || _parent._root.contest == undefined){
   loadMovie("Alert7_23-12pm.swf", "_parent._root.NAV.ALERTS");
} else if (_parent._root.contest == "yes"){
   loadMovie("Alerts.swf", "_parent._root.NAV.ALERTS")
}
else {
 gotoAndPlay(1);
}
When either of the files Alert7_22-10am.swf OR Alert7_23-12pm.swf load they attempt to set the variable _parent._root.contest = "yes", indicating that the file has been loaded before.

Once I start using variables, the only thing that works right is the Loading of the ExternalAds.swf.

I've tried using the _global object for the variable and setting it locally and here's what it seems like to me:

YOU CAN'T SET A VARIABLE AND EVALUATE IT, EITHER BY A LOCAL METHOD OR _GLOBAL METHOD IF THE SCRIPT TO DO IT IS IN A EXTERNALLY LOADED SWF WHICH LOADS INTO A MOVIE CLIP IN THE MAIN SWF(EXE).

IS THIS A CORRECT ASSUMPTION? WHAT OTHER METHOD CAN I USE??

[useastags]

FMX - 2 Questions About Externally Loaded Swf Files
hi there,

i'm creating a site that uses the external swf tutorial on this site...it works great! the only thing is...certain functions such as my contact mail form, do not work when i use the form from within the main page of the site. however, it does work, if i view the swf alone on the server.

is it because the form uses php and that cannot be read from the swf when in the main page? i've noticed sometimes certain functions don't work when in this situation.

oh, my second question is that i found a tutorial on this site for a photo gallery which loads in each image separately. it uses xml however. is there a way to do this using just actionscript? any links to tutorials or articles would be much appreciated!

thanks!
denise biondo

Looping Externally Loaded Swf Files
I'm trying to load external .swf files into a blank MC on the main timeline (using loadMovie). The external files contain music (1 track in each .swf). I want these .swf's to load one after the other and then loop back to the first .swf again (like a CD player set to repeat all songs). What kind of script can I write to accomplish this?
Note: In the external swf files, the sound is in a MC called audio. No other frames exist in the .swf.
Also, what's the best way to script button controls that can stop, play, fwd to next track or rev to next track??
Help!

Thanks!

Trouble Playing Externally Loaded Mp3 Files
Hi,

I'm having trouble with externally loaded mp3 files (loaded using loadSound()). They load just fine, and my "play", "pause", and "stop" buttons are all working in both Internet Explorer and Netscape. The problem is that if the mp3 file is encoded at any sample rate other than 44.1 KHz, Flash seems to interpret it as if it were encoded at 44.1 KHz even though it's not. For example, if I save my sound file out of Audacity as a 48 kbps mono mp3 file, my flash program plays it back way too fast and everyone sounds like Alvin the Chipmunk. Yet when I save the same source-file out as a 48 kpbs mono mp3 file from Adobe Audition (where I can specify either 44.1 KHz or 32 KHz sample rates), it sounds fine as long as I use a 44.1 KHz sample rate. But for really low bit rate mp3s, I want to be able to use lower sample rates (like 11 KHz).

Is there a something I need to do to get Flash to correctly identify the sample rate at which the mp3 file was encoded? Or is there something I need to do when I encode the mp3 files?

The following two URLs hopefully make my problem clear. (NOTE ALSO: The audio isn't streamed, so you have to wait a few seconds after the page comes up for the mp3 file to finish downloading before you hit the "play" button)

1. How it should sound: mp3 encoded at 48 kbps and 44.1 Khz:

48 kbps, 44.1 KHz

2. The same voice-over, still at 48 kbps, but this time using a sample rate lower than 44.1 (probably 22.05, but I used Audacity to encode this one, and it doesn't seem to indicate the sample rate):

48 kbps, but less than 44.1 KHz

The embedded flash program is identical in both cases.

Any hints would be appreciated!

Thanks!

Editing Externally Loaded Text Files
Does anyone know of a good text editor for externally loaded text files into Flash? I would like something similar to the box I am typing in right now for this message.

Frankie B

Editing Externally Loaded Text Files
Does anyone know of a good text editor for externally loaded text files into Flash? I would like something similar to the box I am typing in right now for this message.

Frankie B

External Loading Animation For Externally Loaded Files
i have a flash site, and i want each section (they are 30k or so each, and i don't want them all to have to load before the user can even see the index) to load in from an external swf when the relevant button is clicked. but when they click the button, i want a loading animation (not a proportion bar) which is another seperate file to appear until the section is loaded, when the animation will be replaced. i have tried several things, and it doesn't seem to want to load the loading animation.
how do i do this?

thanks
-bart

Occaional Audio Distortion On Externally Loaded Files
Hey all,
I have a couple of interactives that both load sounds from external files. Occasionally, the audio will play distorted, as if it were a very low bitrate, but it is not. The same audio file played again will sound fine, but I can't seem to find any connection between when these files don't play/load properly. Any ideas?

-B





























Edited: 04/04/2008 at 05:47:43 AM by BSpero

Dynamic Images, Masks And Controlling Externally Loaded Swf Files.
Hiya folks

My latest project (and problem) is as follows.
I have a script file in which the user enters 3 parmaters in an array.. filename, holdtime & mask.

(ie. imgArray[0] = new Image("Testpic1.jpg", "3", "L_Wipe");

The swf itself just contains 3 movieclips, all empty and just holders for the dynamic images/swfs & masks to be loaded into.

So far I have it working very nicely, the jpg or swf is loaded into an imgHolder clip (using loadMovie), the mask/transistion (stored in the library with a linkage ID) is loaded into a mask Holder clip with the attachMovie command, and lastly the underlying img2Holder clip contains a copy of the top image so that when the new image is bought in the transition works seamlesly between the new image and the previous image(which is now loaded into img2Holder). All of this is totally dynamic and the users just specify whatever images/swfs they want, how long to hold the jpg for or how many times the swf loops, and what mask is used as the transition for the incoming image/swf.

DOWNLOAD ZIP: http://194.154.190.87/DynamicImage.zip

HOWEVER..as the user can also specify swf files, this brings up my major problem. At the moment I am having to KNOW the length of the swf file and use the hold variable in the array to hold it for its play length (which is no use as the user will not have produced the swf so have no idea of its length and also the production willnot have any code in it that can be passed back to the main player timeline). What I THINK I need to know,is thus..

1. How do I determine the total number of frames in a swf loaded into a movieclip with attachMovie, and then get it to perform a function when it has reached its last frame. (ALL SCRIPT HAS TO BE ON THE MAIN TIMELINE, AS THE PRODUCTION CANNOT HAVE ANY MANDATORY CONTROLLING SCRIPTING)

2. When I can do the above, I can then use the hold part of the array as a loop counter for swfs and a hold amount in seconds for jpgs. How would I get a swf (loaded as above) to loop a specified amount of times ?

3. Also I need to load in the wsf to the underlying img3Holder clip and then go and stop straight at the last frame so that when the top layered version of the swf finishes, the bottom layered version isn't playing (which it does when loaded in with loadMovie).

So it all comes down to how do I control swf files which have been loaded into a movi clip using the attachMovie command ??

if anyone could please help I would be most grateful and would have no problem as adding them as a contributor in the credits section of the code.

Anyway folks, download the zip file, run the swf then look at the Fla and .as files and see where I am now...

Thanks for listening

Cheers

Akash

[Edited by Akashanq on 08-20-2002 at 08:05 AM]

Multiple Externally Loaded Txt Files - Works Offline But Not Online ?
Hi guys !
Really confused with this one ! - I am loading 2 external text files into my SWF..
I believe that my action script is correct as it works pefect offline..
However as soon as I uploaded it to my webspace, both text boxes have the "undefined" text sitting there..
The problem doesn't exsist when I only have 1 external text file loaded... but more than 1 I get the problem !

Any ideas ?? I'd be really grateful !

//load 1st text file

myData1 = new LoadVars();
myData1.onLoad = function() {
myText_txt1.html=true;
myText_txt1.htmlText = this.content;
};
myData1.load("textfiles/artist_of_the_week_content.txt");

//load 2nd text file

myData2 = new LoadVars();
myData2.onLoad = function() {
myText_txt2.html=true;
myText_txt2.htmlText = this.content2;
var myformat:TextFormat = new TextFormat();
myformat.tabStops = [300];

};
myData2.load("textfiles/artist_of_the_week_heading.txt");

stop();

What Tools Are Needed To Test A Load Indicator Component For Externally Loaded Files?
What tools are needed to test a load indicator component for externally loaded files?

only Macromedia Flash MX

Macromedia Flash MX movie

Macromedia Flash MX Component tester

Remote server and a Macromedia Flash MX movie

Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear

my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;

event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;

event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};




any help would be much appreciated

Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear

my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;

event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;

event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};




any help would be much appreciated

Controlling Externally Loaded Swf Files From "main.swf"
I've looked all over to get the info . . . can't find it anywhere.

I have main.swf which loads 4 other swfs inside of it such as navigation.swf, audioplayer.swf, and purposes.swf.

I want to be able to code from one button in the navigation.swf to move in the timeline of purposes.swf. HOW DO I DO THIS?

I have tried the _root.purposes.swf (but how can i get specific within the external swf file to specify the frame location [ex. gotoAndPlay (4)].

Does this make sense? It may make more sense if you go to the website.

http://www.fusionokc.com

The top buttons and content are "navigation.swf"
The bottom three buttons and content are "purposes.swf"
And "main.swf" is what loads both of them.
I want to be able to close the navigation.swf content when you push the bottom three "purpose" buttons and vice versa - when pushing top navigation, it moves the timeline to close purposes.swf

HELP!?!?!?!

Externally Loading Swf Inside An Externally Loaded Swf
Hey,

So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.

Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!

How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work

Thanks alot.

Externally Loading Swf Inside An Externally Loaded Swf
Hey,

So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.

Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!

How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work

Thanks alot.

Positioning Externally Loaded Movies In Flash 5
Hi, posted this previously to little avail....

I'm having problems, positioning movies that have been loaded in externally, I've looked at it over and over and still no joy, I'm using the following code:

loadMovieNum("externals/level1.swf", 2);
_level2._x = 500;
_level2._y = 500;

I gather I need to ensure the movie is loaded before I can position it - how does one check for this ?

I am still learning so it's all rather new.

Many thanks in advance...

tom

Positioning Externally Loaded Movies In Flash 5
Hi,

I'm having problems, positioning movies that have been loaded in externally, I've looked at it over and over and still no joy, I'm using the following code:

loadMovieNum("externals/level1.swf", 2);
_level2._x = 500;
_level2._y = 500;

Is this wrong ?

Many thanks in advance...

tom

Quick Code Fix For Externally Loaded Flash File
hi there, i know that someone out there can easily take a look at my problem and know immediately what i did wrong. but that's not me!

i have a test website here which has externally loaded files coming into the container on the main index page. the code on the buttons at the top right hand corner have this code on each of them for the externally loaded .swf files to come in:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "contact";
container.loadMovie("contact.swf");
} else if (_root.currMovie != "contact") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "contact";
container.play();
}
}
}

and that all works perfectly fine. what my problem is is when i click on the "contact" button and i'm on that page. on the left hand side column towards the bottom, i have a block of text with one red word. i want that word to bring in the f.a.q. page (and replace the contact page i'm currently looking at) which can also be accessed from the top nav. just a little thing, but i wanted to learn how to do it.

i've put the same code into the invisible button that says "faq" which is identical to the code listed above except i changed all instances of "_root" to "_parent" but that didn't do it. i think it's something like that that would have to do with the problem. any help is appreciated!

thanks,
denise

Externally Loaded Dynamic Text And The Difference Between Flash Player 6 And 7
Ok I was making a site in flash mx and decided to switch over to 2004 to get the new features, including flash player 7's ability to load images into text files. When I try and export it in flash player 7 the text boxes will not load. To load them I use the script:

loadhtmlText = new LoadVars();
//loading text field in
loadhtmlText.load("content.txt");
loadhtmlText.onLoad = function(success) {
if (success) {
myTextArea.wordWrap = true;
myTextArea.htmltext = this.fileText;
} else {
myTextArea.htmltext = "Failed to load Text file, please make sure file is present and try again...";
}
}

and at to top of my text files I put "fileText=". Why wont it load now in 7 but it will in 6, and how can I fix this?? Thanks alot,

-Dave

Flash MX Problem W/ Music Playing & Externally Loaded Swfs
Hi,

I was wondering if anyone could offer any advice on a problem I am having. I have 2 movies, one which holds a navigation menu and some music playing options, and the other which is my main movie. The main movie has an empty clip which loads the navigation and sound into it. However the music does not play in the main movie

Does anyone have any advice on why this may be?

Thanks!

Nelly

Flash MX Problem W/ Music Playing & Externally Loaded Swfs
Hi,

I was wondering if anyone could offer any advice on a problem I am having. I have 2 movies, one which holds a navigation menu and some music playing options, and the other which is my main movie. The main movie has an empty clip which loads the navigation and sound into it. However the music does not play in the main movie

Does anyone have any advice on why this may be?

Thanks!

Nelly

[F8] Instability Of Internet Explorer When Flash Movie Loads Files Externally
Hello,

I ran into a weird problem, and I was wondering if anyone else had the same problem.

Here is the scenario: You have a web page, in pure html or flash, and there is a link on this page to another page that pops up in a new window, contains a Flash movie and loads some files externally. For example, the first page can be a gallery of thumbnails of some images, and the second page can be a Flash movie that displays a slideshow of the images that you selected on the first page.

Here is the problem I'm having: If you are using Internet Explorer (v6 or v7, does not matter), and if you close the second page before the external files load into the Flash movie, and if you repeat that a number of times, Internet Explorer starts not loading the second page at all. It just keeps loading forever and ever. Furthermore, the first page won't refresh, either. You have to close the windows and start all over again to reset Internet Explorer. I'm having this problem only with Internet Explorer. Firefox and Safari work fine.

Example: If you want to see an example case, here is a commercial website where you can experiment yourself. Go to:
http://www.kohls.com/products/produc...17952 5087468
(If that link does not work anymore, just chose any women's wear at www.kohls.com)
click the "Zoom Feature" button.
A second window will popup and a flash movie will do some external file loading. The movie will say "Please wait" while loading the external files. If your connection is very fast and the first file loads before you even see the "Please wait", try zooming into the picture and forcing the Flash movie to load the bigger image. When you see the "Please wait" message, close the window immediately. Do this several times, and after a while you will see that the second page will start not working. It will load and load and load...

I don't know if it matters, but here are some details about hat I am doing: In my case I'm using a MovieClipLoader to load the external files. I'm loading several external files, and I'm doing so sequentially. I am constrained to open the second page in a new window, because my first page is also in flash, and I don't want the first movie to reset. I use getURL with javascript to open, resize, and center the popup window. And I pass some variables to the second movie. Even if the first page is in html, and I don't pass any variables, I run into the same problem.

This is really annoying, because it limits the usage of the external file loading capabilities of Flash.

Did anybody else run into this problem? This looks like an Explorer problem more than a Flash problem, but is there a way to avoid it? Something you can do in the ActionScript?

Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM

1. I have my navigation buttons in level0

2. When a button is pressed it loads an external .swf into the highest empty level

3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.

4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.

The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.

It works fine if you test it on its own. But not when loaded into a Movie Clip.

MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);

Do I have to refrence it differently? Because of where it is situated?

e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();

confesed!

Looping A Loaded An Externally Loaded Mp3
I was trying to loop an externally loaded mp3 and suceeded on my machine, but when I upload the swf and mp3, the function will not work in my browser (IE). I tried a relative path, as well as the absolute URL and neither worked. Here is the code I used to loop the externally loaded mp3:

loopSound = function () {
my_sound.loadSound("whisper.mp3", true);
};
my_sound = new Sound();
my_sound.loadSound("whisper.mp3", true);
my_sound.onSoundComplete = loopSound;
my_sound.setVolume(45);

Any help would be most appreciated, I have wasted a lot of time on this already.

Externally Loaded Swf Does Not Stay Loaded
Hello,

I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.

Any input onto why this would happen would be greatly appreciated.

I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.

EDIT
- I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?

Pop Up From Externally Loaded Swf
I have the main index .swf and inside that .swf I have another externally loaded .swf. In that swf though I have a link to a 3rd party website that I need to load in a new window. The standard code that i have been using is:
btn_Up.onRelease = function() {
getURL("javascript:Launch('http://www.somewepsite.com, 600,600)");
};

Where btn_Up is the button. But for some reason because the swf is embedded into another swf it doesnt work. Please help!

Externally Loaded FLV
In my SWF fie, I have an externally loaded FLV file.

I now want to add another FLV that will load and play automatically when the first one is finished.
I actually want the SWF to jump to a new scene when the first movie is done.
How can I do that/ what the actionscript?
Steven

Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.

Externally Loaded Swf
Hello all,

I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:

_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();

How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.

Ryan

HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum("<A href="http://www.geocities.com/krizinxgren/7UP.swf",0">http://www.geocities.com/krizinxgren/7UP.swf",0); please ignore the geocities address OK the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody

thanks all

K

HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum(http://www.geocities.com/krizinxgren/7UP.swf,0); please ignore the geocities address, the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody

thanks all

K

Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.

Externally Loaded Swf
Hello all,

I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:

_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();

How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.

Ryan

Externally Loaded Swf
This is probably covered somewhere, but I am loading an external .swf into my main movie and i am just wondering if the actionscript works in the external swf. I see what i am assuming are pages with an external load and most have a preloader. How does this work.

Using PHP In An Externally Loaded SWF
:?

I've constructed a site in Flash, using an external loader. The tutorials on this site are great, thanks. I've made a contact page that uses php script, which has full functionality when previewed OR viewed as an independent HTMP page. However, when I submit contact info from the live site, I never receive any email. Can anyone tell me why this is??

I've tried everything I can think of, and have allowed every file in site folder access through the Flash Player Control Panel. I followed Lee's tutorials for both external loaders and the php contact page extactly.

Thanks in advance for any help!

http://www.simplypilatesnashville.com

Loading .gif Files Externally
Hello,

is it possible to call/load .gif files into flash externally.

Compiling FLA Files Externally
I'm searching for flash 8 command line compiler for compiling fla and as files externally, please , any help.

Externally Load Wav Files
I'm currently importing mp3 files using the loadSound functionnality. Problem is, because of some mp3 encoding problems I can't use this format because of loop issues, so i'm turning towards .wav files which work fine. The thing is, if I try to import the wav files using the loadSound function it doesn't work.... the wavs dont play.

Is there any way I can load wav files externally in flash?

Load Wav Files Externally
How can I load a wav file without having to import it to my fla and export it to the first frame?

If I export it to a frame my preloader does not work?

I am new in flash.Please send example.

//targeting.from.externally.loaded .swf >[.x.]<
I have a movie called --frame.swf
in it i have a mc that loads external .swf's into it. called holder mc instance name "holder"
--
a button on the _root timeline of frame.swf tells the movie clip to play the timeline of the ext .swf after it has been rested on a stop action
--
on the end of the time line of the ext loaded .swf there is a line of code that basically asks if the variable
profile = 1 if it does it says load profile.swf into the mc called "holder" of the movie frame .swf
---
now heres where I have a peoblem how do i target the main timeline of frame to target the mc w/ the instance name of holder?

i tried
if (portfolio=1) {
_root.holder.loadMovie("portfolio.swf", "holder");
} else if (vision = 1) {
_root.holder.loadMovie("vision.swf", "holder");
}

if you can be of any help ...thanx!

GetBytesLoaded On An Externally Loaded .swf
I can't seem to get the bytes loaded of an external .swf which is being loaded into a movie clip instance.

I have the target, _root.holderMC1.holderMC2 and place the external .swf into holderMC2 via

_root.holderMC1.holderMC2.loadMovie("http://url.com/some.swf", some_level);

I then do

if (_root.holderMC1.holderMC2.getBytesLoaded()==_root .holderMC1.holderMC2.getBytesTotal()){
gotoAndStop("remove_cover");
}else{
//loop
}

However, when the timeline gets to 'remove_cover', the items aren't loaded. They come in quickly, but they're clearly not fully loaded.

I think getBytesLoaded is measuring whether holderMC2 is loaded (it's only about 4 bytes) and moves on when it detects that it has. However, the actual external .swf has not loaded fully.

I've done some testing, trying to use the actual name of the .swf being loaded (eg. ...holderMC2.somename.swf), but it comes up zero as do a few other combinations.

Anyway, that's what I think the problem is, maybe it isn't, but how do I get the bytes loaded of an external swf being loaded into a movie clip instance? Does the level it's loaded make a difference if you're referring to it with _root?

How Do I Position A .swf Loaded Externally
Hi, I'm loading some external .swf movies into my main movie as menu items. It's all working great except that I can't seem to be able to position them without using an empty container. Is there any way of loadin an external .swf movie and giving it it's x y position without using containers?

Loader For Externally Loaded .jpg/.mp3
im loading .jpg and .mp3 files into a flash 'shell' movie.

they load into a movie clip called 'dropzone' and i was wondering if you can have a loader progress bar on .jpgs or .mp3s without them being in a .swf file.

Postioning Externally Loaded Mc's
Hi can anyone tell me how to position an exteranlly loaded swf.

I am using MX and the loadmovienum function what else do I add to position it where ever I want?

Copyright © 2005-08 www.BigResource.com, All rights reserved