PDA

View Full Version : My movie dissappears! But that's not good!


astroscout7
10-21-2003, 04:20 PM
I'll be honest... I downloaded this source file from a kind flash genius.. I have almost re-purposed it to work how I need it to...

Here's the link: http://www.efficientsea.com/TESTING/index.html

As you'll see when the page loads there is only one link(the book) ..click that... The movie loads then it dissappears after .5 seconds!!! There is only one frame in the movie and I put a stop action on it! So I am guessing it is some little piece of code telling it to go away?

Here are the source files :
www.efficientsea.com/TESTING/Archive.sit
www.efficientsea.com/TESTING/Archive.zip

Thanks in advance!:D

sandman9
10-21-2003, 09:21 PM
whats the script on your button say?

Sandman9

astroscout7
10-22-2003, 01:24 AM
All the action is on the first(and only) keyframe of the movie:

book.onRollover = function() {
bookMC.gotoAndPlay("in");
};
book.onRollout = function() {
bookMC.gotoAndPlay("out");
};
book.onRelease = function() {
loadMovieNum("http://www.efficientsea.com/TESTING/book.swf", 2);
};
Here's the setup:
- index.html holds index.swf
- index.swf has action to loadmovie (menu.swf) into level 3.
- menu.swf has button "THE BOOK" which onRelease loadsMovie (book.swf) into level2

- on first keyframe of book.swf code =
loadVariablesNum("text_var.txt", 2);
var textareaheight = back._height;
var linesdisplayed = 12;
var lineheight = textareaheight/linesdisplayed;
scrollbar.setup = function () { lineheight = _parent.lineheight;linesdisplayed = _parent.linesdisplayed;textareaheight = _parent.textareaheight;top = _y=_parent.border._y;bottom = _parent.border._y+_parent.border._height;calcSize( );};
scrollbar.calcSize = function () { var totallines = linesdisplayed+_parent.textvar.maxscroll-1;var proportion = linesdisplayed/totallines;_yscale = (linesdisplayed/totallines*textareaheight)>12 ? (linesdisplayed/totallines*textareaheight) : 12;if ((_y+_yscale)>bottom) {_y = bottom-_yscale;_parent.textvar.scroll = 1+Math.floor(((_y-top)/((bottom-_yscale)-top))*(_parent.textvar.maxscroll));}};
scrollbar.scrollchk = function () { _visible = _parent.textvar.maxscroll>1;calcSize();if (eval(Selection.getFocus()) != _parent.textvar) {_parent.textvar.scroll = 1+Math.floor(((_y-top)/((bottom-_yscale)-top))*(_parent.textvar.maxscroll));} else {_y = top+((_parent.textvar.scroll-1)/(_parent.textvar.maxscroll-1))*((bottom-_yscale)-top);}};
stop();


on another keyframe fscommand =
fscommand("allowscale", "false");
stop();

The movie is loading the text in from text_var.txt ... Inside this .txt are two variables &textvar="blah blah blah" and &loaded=true .... If I don't include the "&loaded=true" part the movie stays in place... but it doesn't load the text. If I put it in the movie shows up with text in place but only for a split second!?

help.
Thanks!