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








LoadMovie Trouble Again (different)


But still, I've made some good headway that I feel pretty good about.

Overall, the thing works, and I got the loadMovie to work by using an embedded movie clip. After some research last night and some reading today I got the impression that there are smarter, more code-savvy ways to go about it, but it works.

Trouble is, when loadMovie brings us a movie with a preloader, it gets stuck on the preloader.

Check it out at http://www.cartoonthunder.com/ecards.

Select Thanksgiving and choose the top left ecard for preview. This same movie, minus some of the ecard script, is viewable from the Animations page of the site and works just fine.




Ultrashock Forums > Flash > ActionScript
Posted on: 2006-01-14


View Complete Forum Thread with Replies

Sponsored Links:

LoadMovie Trouble Trouble Troubles
hello,

i'm having a little bit of trouble here trying to load multiple movies into the same container. not all at one time. like this:

when a button is clicked this happens in my preloader clip which is located in my _root movie:

********************************
// set vars
sectionMovie = _root.currentSection + ".swf";

// un/load movie
unloadMovie("_root.SectionContent");
loadMovie(sectionMovie, "_root.SectionContent");
********************************

then the next frame of the preloader says:

********************************
// get the percent of the movie loaded
bytesLoaded = _root.sectionContent.getBytesLoaded();
bytesTotal = _root.sectionContent.getBytesTotal();
percentLoaded = int((bytesLoaded / bytesTotal)*100);

// if it's loaded then continue
if (percentLoaded == 100) {
this.gotoAndStop (1);
}
********************************

it all seems like it should work. i click "button1" which loads "movie1.swf" perfectly. then i click "button2" and it will unload the movie fine, but it just stops when it gets to "loadMovie"... anyone know what is happening?

thakns in advance for the help, it's a school project...mwaahaha!

xo

View Replies !    View Related
Trouble With LoadMovie
I'm trying to put all the sounds for my game into a seperate swf file. The sound swf appears to be loading correctly, it appears as _level1 in the debugger, but it acts weird.

All the sound variables show up in the debugger, but they are listed as undefined, and they all flicker like they're being loaded over and over. The scroll bar of the debugger also flickers a bit. I put in some traces, and neither the loadMovie line or the lines to attach sounds are running more than once.

Has anyone seen this weird flicker before? Any ideas what I'm doing wrong? If you would like to see any of the code please let me know.

Thank you for any help!

Volbard

View Replies !    View Related
Trouble With LoadMovie
OK, I'm going slightly insane here. In my actionscript is the following code:


Code:
//Open the music tracks swf
loadMovie("musicTracks.swf","_level10");

//Play the toc music track
_level10.gotoAndPlay(2);
I know (through a trace in the first frame of musicTracks.swf) that the movie is in fact loading. The problem is I can't seem to pass any kind of command to _level10. I've tried gotoAndPlay, nextFrame, gotoAndStop, play, and calling a function from musicTracks (which is what I really want to do). None of these seems to be doing anything. There is the following actionscript on an "actions" layer in the first frame of musicTracks.swf.


Code:
trace("music tracks loaded");

function fadeOut(){
fadeSoundClip.play();
}

function playTrack(track){
gotoAndPlay(track);
}

stop();
Does anybody have any idea why I can't pass any commands to level10 (not even play()? I'm starting to turn gray/lose hair over this one.

It's always the simple things that are the hardest...

Thanks,
-monster.

View Replies !    View Related
Trouble W/ Loadmovie
I've been having some problems with a Flash site I've created. Sometimes (and it almost seems random) movies that are loading in (via loadmovienum) do not show up. I can click one of the buttons that loads in a movie, exit from that section, click it again and nothing will load.

If anyone can offer any advice as to what I doing wrong, I'd greatly appreciate it.

If necessary, please view the website online at: http://www.semisans.com

Thanks,
Aaron Tanner

View Replies !    View Related
Trouble With LoadMovie()
ok....

I have btn inside a movieclip inside a movieclip with the instance name "acu". With the btn,
Im trying to load a movie named "acu".

this is what I tried....

on (release){
loadMovie(_parent._name + ".swf",1)
}


no response...not even error message


if you can direct me in the right direction it would be much appreciated....
-thanx

View Replies !    View Related
LoadMovie Trouble...
Yo. I am just learning the whole loadMovie stuff, and to start out, I am trying to load a movie into my movie that contains sounds. I am trying to arrange it so that the sounds will load after the first frame of my movie so that the preloader starts before the sounds are loaded. Otherwise the movie will just sit there until the sounds are loaded, which makes a preloader pretty useless. SO, I am using a loadMovie command on the first frame of my preloader. The movie contains four imported sound files which are Exported for ActionScript and Exported in First Frame (linkage properties).

So, once the movie is loaded, what's their path? How can I create the sound objects using those sound files? Also, the preoader doens't seem to be picking up the loadedMovie (which is 1.5 MB... that should slow it down).

Any help would be great. If you need it, I'll post a link to my .swf, and maybe my .fla THanks!

View Replies !    View Related
LoadMovie Trouble
I'm a bit stumped over some actionscript; I'm trying to load an external swf. dynamicaly into a movie clip called L1 by passing it a name that is diffined else where.

first_name = "sean"
myNum = ".swf"
letter1 = first_name.substring(0,1)
image = "images/"
loadletter = ([image + letter1 + myNum])

1l.loadMovie.("loadletter");


If I perform a simple: L1.loadMovie("images/s.swf")
it works but when I try and pass the info from 'loadletter' it doses not work.

Any help would be greatfully received.

View Replies !    View Related
Mc Loadmovie Trouble
Hi again...

I have a mc(1) which holds an empty mc(2) for loading a movie into it.

mc(1) have a few stop keyframes. I have a loaded movie into mc(2) and at a certain keychain in mc(1) I want it to fade.

I got this a.s.

onClipEvent(enterFrame){
this._alpha-=6;
}

but the problem is that when I make a new keyframe it reloads the movie before it fades.

View Replies !    View Related
LoadMovie() Trouble
ok i have a mc button and when you click the button i want the image in the movieclip to change, the files are located in a seperate folder outside of the fla. now the thing is that it works with jpgs but i think it has something to do with the file size,

code: this.onRelease = function() {
gotoAndStop("disabled");
loc = "accessories_files/speakers/"+_name+".jpg";
loadMovie(loc, _parent.empty_mc);
this.enabled = false;
if (laptop_viewbtn != 0) {
eval(_parent+"."+laptop_viewbtn).enabled = true;
eval(_parent+"."+laptop_viewbtn).gotoAndStop("up") ;
}
_global.laptop_viewbtn = this._name;
};
can someone tell me what i am doing wrong if i am, or is there an easier way to do this, thanks people.

View Replies !    View Related
LoadMovie Trouble
Hey...
I'm trying to figure out for long time now, how to load a move after another. I have 5 movies , around 100K and 5 to 7 seconds each. The first movie has a preloader , once this first movie starts I would like to make the second movie start preloading in the background. This movies are SWF's files and are independent , I mean, they are NOT a huge flash movie. So, I would like when the first movie finish playing the user click on the next movie and the second movie (which hopefuly is already loaded) plays and at the same time preloads the third movie and so on...
SOMEBODY PLEAAAASSSE has a clue of how to do this?! I'm a newbie on this and I don't understand the way LoadMovieNum works. I have read the manual a thousand times and no clue.
TNX!!!

View Replies !    View Related
Trouble With LoadMovie (Fla MX)
Please view this sample link

http://www.justinnguyen.com/tester/08loadmovie.html

click any of the four buttons to loadMovie and while that movie is loading click on another button to load another movie.

The problem I'm having is if I click on another button while a movie is loading I get a glich with the movie when its loaded...it keeps on looping.

Everything works fine if I let the movie load entirely and then click to load a new movie.

NOTE that this only happens when the movie is loading for the first time.

Thank you

View Replies !    View Related
Loadmovie Trouble
Ok.... I have recently come back to Flash and have upgraded from F4 to MX. All of a sudden i can't load a movie into a clip within a movie. All i want to do is creat a simple button which starts a movie in a seperate clip and i am banging my head against a wall. I can do it in 4, what changed?

Your help may just save the wall.

View Replies !    View Related
LoadMovie Trouble
Hi,

I'm having some troubles with the loadMovie method.
Using the folowing code in an empty movie doesn't work:

Code:
this.createEmptyMovieClip("cont", 1);
loadMovie("target.swf", cont);
While this does:

Code:
loadMovieNum("target.swf", 1);
I don't have any weird code in target.swf, so what could be the problem?

Thanks!

View Replies !    View Related
LoadMovie() Trouble
Having promblems with MovieClip.loadMovie(). I guess that it is really simple and that i am on the wrong path.
this is what i have on stage:

_rootmenu_mcbutton_mccontainer_mc

As you notice the menu_mc and container_mc are children of _root.
button_mc is a child of menu_mc.

Now i want to add onRelease function that triggers loadMovie in container_mc. And this is one of the ways i thought it would work:

this is inside menu_mc:
this.button_mc.onRelease = function() {_parent.container.loadMovie("the_movie.swf");}


What is wrong?

View Replies !    View Related
LoadMovie() Trouble
Ok, Im not the best in flash, so I need some help if you can.

Basically, I have a external swf file that I want to load into my main flash movie. I have a button that does this, the code i used was.....

on (release) {
loadMovie("image_page.swf", _root.empty);
}

This seems to work fine, with one problem, within the image_page.swf I have a photo gallery that loads images externally (using the loadMovie) when a button is clicked upon. This does not work within my main flash movie when loaded. It works fine when I open the file on its own.
Does anyone know why this is happening????

I would appreciate any help?
Thank you in advance

Mx

View Replies !    View Related
Trouble With LoadMovie And XML
I am loading external swfs into my main swf using loadMovie. The content of the external swfs is loaded using XML. This all works fine when I am testing it in Flash, but as soon as I load it into the html page where I need it to display, it all goes kerflooey. The external swfs load into the main movie, but their content does not display.

I have even tried loading just the external files by themselves into a page and they will display, but the content does not load. Are there any known reasons why this would be happening that I am not aware of? The list might be very long.





























Edited: 05/15/2007 at 02:10:31 PM by wistatboy

View Replies !    View Related
[FMX] Trouble With LoadMovie
Yow

My site has a picturegallery. It works with a movieholder and the loadMovie command. It has 9 buttons, one for each picture, and they work. There's also a previous and next button to navigate through the pictures, there the loadMovie command gives problems.

Here are 2 lines that are used in the previous button:

Code:
_root.site.alles.movieHolder.loadMovie("images/1.swf");

Code:
_root.site.alles.movieHolder.loadMovie("images/"+(fotovariabele1-1)+".swf");
I get the following error with that button:

Error opening URL "file:///C|/school/multimedia/VOLLEDIG%20NIEUWE%20SITE/images/NaN.swf"

I know nothing about a Nan.swf. I don't understand why these lines don't work in the previous button, because the 1 button (the button that loads image 1) also uses the first line, and that works.

I know only very basic actionscript, but the code of the previous and next buttons are supposed to be correct except for those lines with loadMovie. In publish settings is actionscript 2.0 set.

Any help appreciated.

View Replies !    View Related
LoadMovie Trouble
i made a movie which loads an .swf into it. when i test it (ctrl+enter), the movie plays fine. But when I test it as HTML, the movie does not load.
thanks for the help in advance.

View Replies !    View Related
This.loadMovie Trouble
I am new at this forum. I posted at devshed.com. No help there. I am still trying to learn AS2.0 OOP as well. Any help would be appreciated.

I have an object that extends a movie clip. I would like to load an external clip within this class defininition like so:

PHP Code:



class Backdrop extends MovieClip;  public function init():Void {    this.loadMovie("backdrop.swf");  }} 




When i do so, there i get this error: "Target not found: Target="undefined" Base="_level0""

Now, i have also tried this:

PHP Code:



class Backdrop extends MovieClip {  public function init():Void;    loadMovie("backdrop.swf", this);  }} 




That should do basically the same thing, but AS doesn't allow it because the second parameter expects a MovieClip, not a Backdrop object.

Now if i manually enter the target with
PHP Code:



_root.backdrop.loadMovie("backdrop.swf"); 




that works, but it seems to me that defeats the purpose of putting it in the class definition in the first place. It is not abstract that way.

I hope i am making sense. Basically, i want to know if either
(a) There is a way to trace the target of the this property or
(b) If there is a way to force the loadMovie function to take subclass from the MovieClip object

View Replies !    View Related
Trouble In LoadMovie [F8]
I used to loadmovies in FlashMx without any trouble, but now that i start working with Flash 8, my movies apear to work well when i play it in swf, but when insert the swf files into html they don't load movie's.
I already try to use the loader component instead of using a movieclip(container), but also didn't work!

http://www.maisonline.net/testes/main.html
in this link i have my swf, an the "curriculum" button must load the "CV.swf" into the container.

Anyone can help me????

thanks in advance!

View Replies !    View Related
Trouble Using LoadMovie On IE6
Hello I having trouble using the instruction loadMovie with Internet Explorer 6, the problem is that the loadMovie just doesn’t work when I test my html file in Internet explorer but it works great when is tested don firefox or in flash cs3 environment.
This is what I have

this.onLoad = function (){
loadMovie(“source”,_root.target);
};


//source = movie2.swf
//target = _root.container_mc


Note: everything works fine unless you use explorer to view the html file.

Thanks in advance to anybody who can help me out

View Replies !    View Related
[FMX] Trouble With LoadMovie
Yow

My site has a picturegallery. It works with a movieholder and the loadMovie command. It has 9 buttons, one for each picture, and they work. There's also a previous and next button to navigate through the pictures, there the loadMovie command gives problems.

Here are 2 lines that are used in the previous button:

Code:
_root.site.alles.movieHolder.loadMovie("images/1.swf");

Code:
_root.site.alles.movieHolder.loadMovie("images/"+(fotovariabele1-1)+".swf");
I get the following error with that button:

Error opening URL "file:///C|/school/multimedia/VOLLEDIG%20NIEUWE%20SITE/images/NaN.swf"

I know nothing about a Nan.swf. I don't understand why these lines don't work in the previous button, because the 1 button (the button that loads image 1) also uses the first line, and that works.

I know only very basic actionscript, but the code of the previous and next buttons are supposed to be correct except for those lines with loadMovie. In publish settings is actionscript 2.0 set.

Any help appreciated.

View Replies !    View Related
This.loadMovie Trouble
I have an object that extends a movie clip. I would like to load an external clip within this class defininition like so:

Code:

class Backdrop extends MovieClip;
public function init():Void;
this.loadMovie("backdrop.swf");
}
}



When i do so, there i get this error: "Target not found: Target="undefined" Base="_level0""

Now, i have also tried this:

Code:

class Backdrop extends MovieClip;
public function init():Void;
loadMovie("backdrop.swf", this);
}
}


That should do basically the same thing, but AS doesn't allow it because the second parameter expects a MovieClip, not a Backdrop object.

Now if i manually enter the target with
Code:

_root.backdrop.loadMovie("backdrop.swf");

that works, but it seems to me that defeats the purpose of putting it in the class definition in the first place. It is not abstract that way.

I hope i am making sense. Basically, i want to know if either
(a) There is a way to trace the target of the this property or
(b) If there is a way to force the loadMovie function to take subclass from the MovieClip object

View Replies !    View Related
LOADMOVIE NEWBIE....in Trouble Here.
howdy.

i have a one frame movie with one simple line of code....it works fine when i try it in the flash player, or in tests...but will not run in a browser. i am using IE 5.5 and i see no reason why it does not work. help me!

here is the line (changed just a bit so not to confuse, but what i have here i tried as well and it still does not work...it so it has nothing to do with my variables or anything that you dont see here)

loadMovie("1.swf",_root);

thats it! whats up with that.

View Replies !    View Related
AttachMC And LoadMovie Trouble
Hi!
What am I doing wrong?!?
I want in one layer image.jpg, in other invisible button...
JPEG must be outside of swf.


Please help!!
Thanks
Cash




CODE:

/*name, _color and tmp[] variables are ok */

for( i=0; i<tmp.length; i++ )
{
_root.content.createEmptyMovieClip ("button"+i , 20 + i) ;
eval("_root.content.button"+i).loadMovie("images/"+ name +"/"+ _color + "_button.jpg" , 0) ;
eval("_root.content.button"+i).attachMovie("colorM ovieButton", "colorMovieButton"+i, 1);

}

View Replies !    View Related
LoadMovie And OnData Trouble
I've been working for some hours (grr) with loading an external 64kb swf into a movie.
On my home computer this works fine, but when I publish the files (yes, they're in the same folders, and they are the correct filenames etc, etc, and I have put the plug in the wall...), the external swf doesn't get loaded.
I've also tried to use an onData-check, to halt the movie until the huge file's loaded.
Nothing happens, the onData's never called.
Here are the codes I've been using now:
Code:
filmstrip_mc.loadMovie("filmstrip.swf",10);

filmstrip_mc.onData = function () {
trace ("onData called");
};
I've also tried
Code:
loadMovie("filmstrip.swf","filmstrip_mc");

filmstrip_mc.onData = function () {
trace ("onData called");
};
Please help me, somebody. I'm tearing my hair out...()

View Replies !    View Related
[F8] Trouble With 'LoadMovie' Function
Hi, I'm using the LoadMovie function so that when a button is pressed it loads a mini-game .swf file into a movie clip called 'holder'
I am using this code on the button:


Code:
on(release){
function() {
holder.unloadMovie();
holder.loadMovie("Http://mygameaddresshere.swf");
}
}
It's not reporting any errors but it's not loading the .swf either. I've checked the url I'm directing it to and that works.

Do I need to set the posisiton, width and height of the .swf file? I figured it would work off the center point of the movieclip but maybe not?

Any help is much appreciated thanks!
-Olly

View Replies !    View Related
Trouble With The 'loadMovie' Command
I'm designing a flash site in which the navigation menu stays in place while content is loaded below it. I want each navigation button to load an SWF file into the dummy movie clip that is positioned beneath them.

My dummy movie clip is 800x600 pixels and is simply named 'container'. I have scripted my buttons as follows:

1 on (release) {
2 loadMovie("filename.swf", "container");
3 }

For some reason it isn't working. The buttons behave exactly as I have set them up in their own individual timelines, but when I click them the SWF file does not appear in 'container'.

What am I doing wrong?

Thanks,
Curt

View Replies !    View Related
Trouble With CreateEmptyMovieClip / LoadMovie()
Can anyone take a look at this code, it's a mess right now! And point what is going wrong?


ActionScript Code:
onClipEvent (load) {
    if (_root.opcao=="destinazioni") {
        _parent.createEmptyMovieClip("thumbs",this.getNextHighestDepth());

        for (i=0 ; i < 30 ; i++) {
            _parent.thumbs.attachMovie("thumb_final","thumb_final" + i , _parent.thumbs["thumb_final"+i].getNextHighestDepth());
            //_parent.thumbs.createEmptyMovieClip(["thumb"+i],this.getNextHighestDepth());
            setProperty(_parent.thumbs["thumb_final"+i], _x, offset);
            _parent.thumbs["thumb_final"+i].loadMovie("photos/destinazioni/thumbs/"+_root.destinazioni[i]);
   
            // loadMovie ("photos/destinazioni/thumbs/"+_root.destinazioni[i], ["_parent.thumbs.thumb"+i]);

            //this["setx"+i] = 100 * i;
            //_parent.attachMovie ("thumb_repository" , "thumb_repository" + i , _parent["thumb_repository" + i].getNextHighestDepth());
            //_parent["thumb_repository"+i].attachMovie ("thumb_final" , "thumb_final" + i , _parent["thumb_repository"+i]["thumb_final"+i].getNextHighestDepth());
            //loadMovie ("photos/destinazioni/thumbs/"+_root.destinazioni[i], _parent["thumb_repository"+i]["thumb_final"+i]);
            //_parent["thumb_repository"+i]["thumb_final"+i]._x = (i * 100.8);
            //_parent.thumb_repository01.thumb_final01._x = 200;
           
        } // end for
                    _parent.thumbs._x = 50;
            _parent.thumbs.thumb_final10._y = 15;
            trace (_root.mcthumbs.thumbs.thumb_final10); // this resturn Undefined

    } // end if
}

I can't get to create and load all tumbnails into dinamically created MCs. Only the last one appears and I can't trace the MCs generated by a For loop!

View Replies !    View Related
Trouble With 'LoadMovie' Script
ok, so i'm making this website and i made a small interface for audio tracks that are going to be playing on the site. it's a bit complicated, but it goes like this: there are four swf files in all...each one having a 'previous track' and 'next track' option, which uses a 'loadMovie' script to load the other swf files into its place. everything works fine on my computer, but once i upload it to my site, the only one that works is the default one. once i click on it, the movie disappears and when i right-click it says 'movie not loaded.' so i'm thinking this is a problem with the URLs that i assign the 'next' and 'previous' buttons, but even when i changed those URLs to the specific addresses (i.e. http://astro.temple.edu/~rjb/ren/player/player3.swf), it still didn't work. what could this be? can flash load a movie into another movie's place, or do i have to load a movie INTO the previous movie? if you need any other info to help, i'd be glad to give it to you. my AIM is 'latenovember05' or you can email me at rjb@temple.edu, or just respond to this. thank you for your help!

edit - if you click on the example above...you'll notice that the songs that are playing are copyrighted...i'm just using them as examples until the client gives me their songs to play, so don't freak out. 8-)

View Replies !    View Related
Trouble Using SetMask With LoadMovie
Hey all,

I have something wrong with my code here. I'm guessing with levels or something is out of order. If I do this and omit the loadMovie it works fine. What I get now is the movie loads with the mask set on top of it without masking.


ActionScript Code:
function loadIllustration(){     _root.attachMovie("imageholder","image_mc",this.getNextHighestDepth(),{_x:280,_y:47});    image_mc.loadMovie("snowmelt.swf", this.getNextHighestDepth());    setMask();    };loadIllustration();function setMask() {    _root.attachMovie("imagemask","imagemask_mc",this.getNextHighestDepth(),{_x:280,_y:47});    image_mc.setMask(imagemask_mc);};

View Replies !    View Related
Trouble With Preloader When Using Loadmovie
When ever i use loadmovie function in flash mx to load a swf into the original swf; i have a problem with the preloader of the new swf i call. As an independant swf, the preloader works fine. why is this so?

View Replies !    View Related
Loadmovie() With Sound Trouble
Hello hello,

I need to import a .swf into an emptyclip... it works fine but I can't have the sound of my buttons from LeBook.swf to work while all the rest of the librairy from LeBook.swf is just fine.

The code is :

_root.createEmptyMovieClip("a",1);
//_root.a._lockroot = true;
_root.a.loadMovie("LeBook.swf");

I tried to create it on level0 and it's just the same.
I also tried a .setvolume() and it's a no no.
Thanks for your help.
Fabrice

View Replies !    View Related
Trouble With 'LoadMovie' Script
ok, so i'm making this website and i made a small interface for audio tracks that are going to be playing on the site. it's a bit complicated, but it goes like this: there are four swf files in all...each one having a 'previous track' and 'next track' option, which uses a 'loadMovie' script to load the other swf files into its place. everything works fine on my computer, but once i upload it to my site, the only one that works is the default one. once i click on it, the movie disappears and when i right-click it says 'movie not loaded.' so i'm thinking this is a problem with the URLs that i assign the 'next' and 'previous' buttons, but even when i changed those URLs to the specific addresses (i.e. http://astro.temple.edu/~rjb/ren/player/player3.swf), it still didn't work. what could this be? can flash load a movie into another movie's place, or do i have to load a movie INTO the previous movie? if you need any other info to help, i'd be glad to give it to you. my AIM is 'latenovember05' or you can email me at rjb@temple.edu, or just respond to this. thank you for your help!

edit - if you click on the example above...you'll notice that the songs that are playing are copyrighted...i'm just using them as examples until the client gives me their songs to play, so don't freak out. 8-)

View Replies !    View Related
Weird Trouble With Loadmovie Action
I've done this job and I'm having a strange trouble, so if you guys could help me here, I'd be very grateful.
The thing goes like this. It's a presentation in Flash that has the option to see it in two different languages, Spanish and English, but each file it's about 20 Mb big (it's in a CD, so the size of this files is not a big problem), so I've decided to make a small "intro" file, so it loads quickly and you can choose which language you want, and then it loads a different movie for each language. So, we have:

- english.swf (big file)
- spanish.swf (big file)
- intro.exe (small file, with two buttons each one with an action, loadmovie, that call the different language files).

But the problem is this. It works fine in different computers, but with one particular computer (the one where I created the files), it doesn't work, it just shows me a blue screen and nothing, instead of loading the movies. Nothing. It's very weird, because I've tested it in other five computers and worked perfectly fine. But then I sended it to my client and he has the same problem, it doesn't work in his computer.
Does anyone has an idea of what the problem could be? Anyone had the same problem that me? The computer in my job where it doesn't work is working under Windows XP, but I've tested it in others machines with Windows XP and didn't have a problem. This is very confusing. I'm waiting for your help in desperation.

Thanks in advance.

View Replies !    View Related
Trouble With LoadMovie When Viewing Online
Hey all,

Ok, I am doing a site which has a bunch of images being loaded into a movieclip as thumbnails of the images are clicked. The site works great offline, but once I upload to the server, the images don't appear when clicked. I can see the background, but it's as if the loadMovie function isn't working. Example of code:

phighfashion.onPress = function() {
loadMovie("/swf/hfbtn.swf", "_root.btnholder");
};

I know I have a /swf directory on the server where the images are being held. I have heard that sometimes this path needs to be the whole url ie.

phighfashion.onPress = function() {
loadMovie ("http://www.servername.com/swf/hfbtn.swf", "_root.btnholder");
};")

Is this the case, or is there another problem that I'm not aware of? I have tried this just in case, and it doesn't seem to work either. Any ideas?

Rick

View Replies !    View Related
Trouble Using LoadVars To Return A Url For LoadMovie
Hi there.

I hope that someone can help me. I think I'm trying to do something pretty basic and it's just not working.

OK, I have a movieclip on my main timeline that contains some text along with ANOTHER movieclip inside it that I'm using a loadMovie call on. Ok here's my problem...
on the first frame I'm using this actionscript in an attempt to load the url that contains the swf file:
*******
loadVariables("http://localhost/adurl.php", "this");
loadMovie(url, adclip);
stop();
********

Then the PHP file "adurl.php" contains this code:
*******************
<?

$string = "http://localhost/ads/backpain.swf";
print '&url=' . urlencode($string);

?>
*******************

I've tried several ways to grab the value of "url" from the php file and then use it in another function (or maybe for anything else) but no matter what I do it just doesn't work. I know the movie can be loaded because when I put the literal url in place of my variable "url" it works lovely. I also know that the PHP file is returing the value because when I run it thru my browser that works just fine.

But the functionality I'm aiming for is more dynamic than that.
Help anyone? What am I doing wrong?

View Replies !    View Related
[MX04] Loadmovie Into Parent Trouble
I have an instance called "empty" then a movie clip of some thumbnails on a separate layer in the root scene. In the thumbnails mc, I have added this actionscript to the buttons.

Code:
on (release) {
_parent.loadMovie("AM_WP1Prev.swf","empty");
}
The problem is, that it is replacing everything on the root level instead of loading into the "empty" instance.

Any help would be appreciated. Thanks.

View Replies !    View Related
Trouble Getting Loadmovie Load Status
I'm having trouble getting verification of my external
JPGs progress. Any ideas on what I am doing wrong?

tmp.createEmptyMovieClip('imgA',1);
tmp.imgA.loadMovie('images/img1.jpg');
tmp.onEnterFrame = function() {
var total = this.imgA.getBytesTotal();
var loaded = this.imgA.getBytesLoaded();
if (total && loaded == total) {
// trace(this.imgA._height + " / " + this.imgA._width);
delete this.onEnterFrame;
}
}

Thanks,
- Bullfro9

View Replies !    View Related
[F8] Trouble Using Variables To Define URL With LoadMovie
I'm trying to create a flash container where all the content is editable through a single text file. So far so good, the only hang up I am running into is passing my image paths into the loadMovie function

right now my code looks like this:

MainImg2.loadMovie("images/feature2.jpg","");

and it works

The problem arises if I want to swap "images/feature2.jpg" for a variable name that is defined outside the swf.

Does anyone know how to accomplish this? I am able to pass the image path / url into the variable- but am not able to get LoadMovie to recognize and use this variable to load the image

Any ideas?

View Replies !    View Related
Trouble With Learning Interactions And LoadMovie
I have created some very simple quizzes using the learning interactions components - specifically one of the quiz templates. When testing the .swf on its own, everything works, including the last page that tallies the number of right and wrong responses and calculates a percentage based on those numbers.
However, when loading this .swf into another movie (@ _level1), the question pages work correctly, but the last page returns all zeros for the right, wrong, and percentage values.
Any thoughts on where the problem might be?

Thanks,
Dave...

View Replies !    View Related
Trouble With Using LoadMovie(jpeg File)
I am able to dynamically bring in a jpg imagebut seem to have trouble making it stick to its size. Basically my movieclip object acts as a place holder for the image, but i seem to have this small problem.

If the image size is bigger than the movieclip then it does not proportionately fit into the moviclip?

Assuming my movieclip is 100 by 100 pixels.... and my image is 200 by 200 pixels... how would it be possible to proportionately reduce the size of the image to fit in the movieclips original size?

Any help would be appreciated...
thanks...

View Replies !    View Related
'IF' Trouble And LoadMovie Error - Massive Problems
Hi,

For the past week I’ve been trying to find a way to create actions from a LoadMovie error, but to no avail. I have a created a slideshow made up of 10 pictures, which cycle through depending on time. Each image is externally loaded. The slideshow works fine, the only function I want to include now is to skip to the next image, if one isn’t found. I have had great difficulty trying to achieve this.

The closest I have got is by using this script:

Code:
this.onEnterFrame = function() {
if (_root.holder._width<10) {
this.nextFrame();
}
};
Basically it checks the size of the holder MC, to see if it’s less than 10px in width, if it is (i.e. no image has loaded) it moves to the next one. This script works perfectly for one complete cycle, but when it starts from img1 again, it screws up. It starts skipping images for no reason, play the swf and see for your self. It’s as if the ‘skip’ script is running before the image has even had time to load, but I have no idea how to delay it.

I need a Flash genius to take a look at the fla and see if they can work it out, I can’t think of anything else to try! The actions for the skip function are in a layer called 'skip', I have also set the cycle time to 2 seconds so it will be faster for testing. Please note that I have deliberately not included img3.jpg, so that the skip function can actually test.

Please, please help me with this one. I’m about to crazy, if you can solve this I’ll be forever in your debt. I appreciate all help.

Thanks.

View Replies !    View Related
LoadMovie Trouble... Unexpected Appearance Of Movieclip. Please HELP
Hey helpful people... My website is up and running at www.kraghdesign.com. Go to it, click enter to enter, click artwork, then click on the hope artwork, then click zoom, then click back, and finally click any button like home, news, about, etc. As you might have noticed, it goes back to showing the zoomed up hope movieclip right before loadMovie'ing the next movieclip. Does anyone know why this happens? Any ideas would be helpful... I can't figure it out. All these are pages that come in with loadMovie, all seperate swf's. I used removeMovieClip() inside the zoomed up hope clip to try to remove it but it still pops up. Please help. Thanks.

View Replies !    View Related
LoadMovie() Trouble Making Imported Movies Script Run Right?
for example I want to open a interactive map but the startDrag() in the new clip wont work even though all the script works fine when the SWF is preveiwed alone.

am i just missing the obvious?

View Replies !    View Related
Flash Video... Trouble Using LoadMovie When Movie Is In Another Directory?
i have some video that are dynamically loaded...

http://www.camthomas.com/process/context/

just press play in the bottom right corner...

but the video won't play unless it's in the same directory... and sometimes not at all.

i kinda need the vids in a separate folder just to keep things tidy as i have 30 content movies.

anyone know whatthe deal is?

thank you in advance...

View Replies !    View Related
"Oooooh Trouble Trouble..." (Foghat Reference +1000 Points)
I am attempting to add X movie clips to the stage via script, with follow AI behaviors added to each of them. But for now I am just having them immediately start moving left until they hit the stage edge OR eachother...which is the problem.

I cannot get them ALL to stop when they collide with somehting else on the stage...

the way I atempted to solve this problem was to start an array... a list... and to add to that list the name of every object I add to the stage when I add it to the stage. So before ANYTHING moves it loops through this array to see if it is hitting anything else on the stage. Sounds simple right?

Well it seems to only work for the LAST movie attached in my function.

I have attached the script to this post. Please take a look, provide some help, give me some alternative ideas, tell me a good joke :-P, just gimme some feedback. Thanks in advance to anyone who even tries to help.

View Replies !    View Related
Trouble Explaining The Trouble
i am having a hard time explaining this problem so i have attached my fla file with some notes attached to it.
i'm trying to customise the a.s. but alas i'm not very good at it yet.

i have an element on the page that when it is clicked on it zooms big and comes to the center of the stage. when you click on it again it zooms back to its original position. - i have this part working.

the problem is i want elements within the zoomed elements to behave the same way. essentially zooming further into the stage. i just can't get it to work.

at this point i am completely lost, any help on this is much appreciated.
thanks everyone

View Replies !    View Related
How To Loadmovie The Place Iwant? I Have Loadmovie But It Just Take All The Screen
i load a swf and it just take all the space
and my buttoms and others are all been covered
here is how i do it

onClipEvent (enterFrame) {
ifFrameLoaded (1) {
loadMovieNum ("first.swf", 0);
}
}


i put this in the layer called middle where i have put a instance of a w700 h270 movieclip so i can try to loadmovie the same size of it but it just failed
did i miss anything else? i know i did
please tell me~~~~~~~~~~~~~~~~~~~~~

View Replies !    View Related
LoadMovie Target Vs. LoadMovie Level
can someone please explain to me why when I load an external movie as a target, the action scripting in the loadedmovie doesn't work.
But if i load the movie into a level it works fine. I want to load into a target beacuse I want it positioned in a specific co-ordinate.

thanks

View Replies !    View Related
LoadMovie Calling MC With LoadMovie Problem
I am loading a movie clip into a target MC on my timeline and it works fine, but the movie clip that I'm loading in is also using loadMovie to load a movie into a MC on it's own timeline. For some reason, the MC that is getting loaded doesn't load the MC it is calling on it's own timeline. It works fine when I test it out on it's own, but as soon as I load it in using the first MC, the loaded MC doesn't call the movie clip it's supposed to load.

Any suggestions?

-k

(I said "load" way too many times!)

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved