PDA

View Full Version : load movie issue



morse
May 11th, 2003, 06:11 PM
Look at this:
http://www.morsedesigns.com/profile/quotes.swf
When you open it loads a random thinger.

But in this movie:
http://www.morsedesigns.com/profile/profile.html (mouse over on the left, click quotes)
It loads the same "quotes.swf" but doesn't work.

help, why doesn't it work???

morse
May 11th, 2003, 06:27 PM
bump please help maybe perhaps ( ? )

pom
May 11th, 2003, 06:30 PM
Hard to tell if you don't tell how it works :)

Nice tsunami by the way. Did you code it?

dizknee
May 11th, 2003, 06:31 PM
im a noob, but are u using _root. or _parent? try using _parent. in the quotes swf.

morse
May 11th, 2003, 06:33 PM
pom: hehehe nope, I stole it. Everything else I coded, and thats why it all sucks :P

quote = new Array("many thing", "in here", "etc");
_root.textmc.text = quote.length;
rndm = random(quote.length);
movie = rndm;
_root.qt.text = quote[movie];

dizknee
May 11th, 2003, 06:34 PM
try that

quote = new Array("many thing", "in here", "etc");
_parent.textmc.text = quote.length;
rndm = random(quote.length);
movie = rndm;
_parent.qt.text = quote[movie];

if u are loading the quote.swf into another movie, then it is going to look for those files in _root, which is the main movie. _parent will look for them in the movie loaded

morse
May 11th, 2003, 06:36 PM
but this code is in the root timeline of the movie i load. you really think that would change anything?

morse
May 11th, 2003, 06:39 PM
oh the load code

on (release) {
loadMovie("http://www.morsedesigns.com/profile/quotes.swf", _root.loadmc);
}

dizknee
May 11th, 2003, 06:40 PM
yea, lets do this..

MainMovie.swf and Quotes.swf

inside MainMovie you have a MC named loadInto. when you click a button in MainMovie, it loads Quotes.swf into loadInto. if in Quotes.swf you have code that says _root., it will look in MainMovie, since now MainMovie is the _root. Changing code that is only relevant to Quotes.swf to _parent. will look for those files within Quotes.swf, and not MainMovie.swf.

I kno this is horribly worded, but im just gettin into the swing of things

morse
May 11th, 2003, 06:40 PM
and before, I had a loader in the quotes.swf. But it never played, I don't know why. So I trashed the loader. Any idea why? It worked when I previewed.

morse
May 11th, 2003, 06:41 PM
oh I think I get what you mean, disney. thanks.

dizknee
May 11th, 2003, 06:42 PM
no problem, i just hope that works
*crossing fingers*

pom
May 11th, 2003, 06:42 PM
:P thanks for you honnesty :P
quote = new Array("many thing", "in here", "etc");
this.textmc.text = quote.length;
var rndm = random(quote.length);
this.qt.text = quote[rndm];That is, if your texts are on the _root of the loaded movie.

dizknee
May 11th, 2003, 06:44 PM
ily, hey, im new, im learnin.. but could you reply to MY thread?

morse
May 11th, 2003, 06:45 PM
hah, thank pom. Us n00bs do the stupidest things.

dizknee
May 11th, 2003, 06:48 PM
morse, how DARE you call yourself a noob, hah. if your a noob, then what am i? i dont even wanna think about it.