PDA

View Full Version : i got a question with some script



ultraloveninja
March 21st, 2005, 01:57 PM
okay...so, i have been having this issue with loading in this external swf file.


so, i did the trace thing, and this is what i got:





i'm not quite sure i understand what this means.

i put the trace command on a button that is supposed to transition to another selection which does this:

[quote]
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "cramer2";
pcontainer.loadMovie("cramer2.swf");
} else if (_root.currMovie != "cramer2") {
if (pcontainer._currentframe >= pcontainer.midframe) {
_root.currMovie = "cramer2";
pcontainer.play();
}
}
}



so, i'm not sure if i need to add some diffrent (lack of a better word) targets to make this bad boy work. :ninja:

scotty
March 21st, 2005, 03:25 PM
And in what timeline is your button?
To trace that put

trace(this);
in the on(release)
Or you could write

_root.whoweare.instance26.clients.pcontainer.loadM ovie("cramer2.swf");

btw No need to start a new thread everytime you come a step closer;)

scotty(-:

ultraloveninja
March 21st, 2005, 03:34 PM
sorry...:*(

the button that i have is on the "clients" timeline, which is also where the "pcontianer" MC is located.

i've been trying to tackle this issue for a while now, and i think i'm getting closer, but for some odd reason it seems like i take one step forward and then two steps back.


i'm trying to get external swf's to transitions beween each other exactly like the tutorial here:
http://www.kirupa.com/developer/mx2004/transitions.htm

but i can't get it to work. it keeps getting stuck on the first swf and won't load the second one.

i'm so confused on how to get it to work:*(

ultraloveninja
March 21st, 2005, 04:38 PM
well, i put a trace on the "cramer2.swf", and i came back as "undefined", so i'm not sure what that means.

this transition stuff isn't work, so i might just ditch it.

i dunno. i'm just so confused on what to do here. :puzzled:

ultraloveninja
March 21st, 2005, 05:23 PM
well, i'm outta ideas, so i'm gonna post a link to my file and if anyone can figure it out by all means go head.

http://www.scottjdunham.com/portfolio.zip