Forum Moderators: open

Message Too Old, No Replies

How can I safely remove an "admovies" from an inherited script?

Removing Admovies from Inherited Script

         

aeomac

6:51 pm on Jun 23, 2005 (gmt 0)

10+ Year Member



I am trying to remove EPASS_POSTER.swf from this bit of script, and I want to do so without breaking the whole thing! (Bear with me I have inherited this script and am a newcomer to Flash). Please tell me which parts of he code I should change/delete. Thanks! here is the bit of code in question:

onClipEvent (load) {

movies = ["final-1-purple.swf", "final-1-green.swf","final-1-orange.swf"];

i=1
t=0
movieTime = 75
movieFrames = movieTime*40

admovies = ["EPASS_POSTER.swf"];

adi=1

ad=0
admovieTime = 75
admovieFrames = admovieTime*40

_root.placeHolder.loadMovie (movies[0]);
}

onClipEvent (enterFrame) {
t++

if (ad==0) {

if (t==movieFrames*i) {
if (i!= movies.length) {
_root.placeHolder.loadMovie (movies[i]);
i++
}
else if (i== movies.length){
_root.placeHolder.loadMovie (admovies[0]);
ad=1
}
}

}

else if (ad==1)

{

if (t==movieFrames*i+admovieFrames*adi) {
if (adi!= admovies.length) {
_root.placeHolder.loadMovie (admovies[adi]);
adi++
}
else if (adi == admovies.length){
_root.placeHolder.loadMovie (movies[0]);
ad=0

i=1

t=0

}

}
}

}

Richard_N

7:40 pm on Jun 23, 2005 (gmt 0)



firstly what does EPASS_POSTER.swf do.. does it have any function within the site or any scripting of its own the site may rely on....

Two ideas..

1) give the movie to somebody who knows what they are doing with actionscript, if you dont know you may break something somewhere else.

2) replace EPASS_POSTER.swf with a blank movie of the same dimensions and with the same name see what happens, you may get away without having to alter code.

The first is probably the better idea.