PDA

View Full Version : Tell target for external swf


BlackfireMD
09-24-2004, 09:28 PM
Hello all,

Small request here.
Just wondering if anyone knows how to apply a tell target to an external swf.

How am i asking it to be applied u ask? =)

Scenario:

Ok. I have a main flash movie (to be the base site actually) that loads 4 preliminary swf's. One of them is the top nav bar. Basically there are small squares on the main flash movie where the movies should load. They replace the squares and load perfectly. What i want to do though is when i press a button in a movie in one square, on release, it tells another square on the main flash to load it's movie.

How do i go about this?

-BlackfireMD

P.S. I did not attach the actual flash files becuase, for one they are too big, also there are way too many layers and stuff for anyone to be able to back track through my sloppy work. If i knew how to attach files here i'd post the swf's and a detailed picture outline of what I was describing with the squares in this thread.

BlackfireMD
09-25-2004, 02:05 AM
Ok here are the attachments.. yay!!! :D

radon86
09-25-2004, 07:51 AM
how are you loading the swfs into the base, using loadMovieNum(); or loadMovie();

j

BlackfireMD
09-25-2004, 05:52 PM
//load Movie Behavior
if(this == Number(this)){
loadMovieNum("MW_Init.swf",this);
} else {
this.loadMovie("MW_Init.swf");
}
//End Behavior

farafiro
09-26-2004, 08:05 AM
the loadMovieNum needs two parameters:
a String for the name of the swf and a Number (a level) to load it into it
but here u didn't do this, u used a combination between loadMovieNum() and loadMovie()
so either change the word 'this' in the loadMovieNum() or use loadMovie() instead
//
and then for your ask, I assume u will use loadMovie()
the_btn.onRelease = function(){
theHolderMc.gotoAndPlay(//frame Num)
}

BlackfireMD
10-03-2004, 10:16 PM
Another user from a different forum suggested this:

"on (release) {
_level2.square.gotoAndStop("load");
}

on the square MC you just instructed to go to the frame labeled "load", you would have a frame action with the script:

loadMovieNum("someMovie.swf", 3);"

But sorry, i'm a bit of a newbie so i don't follow either of you :(

If there is anyway you could demonstrate in a brief .fla example it'd be greatly appreciated. :o

BlackfireMD
10-05-2004, 03:04 AM
btw cute baby :)