Load/unload movie in flash
- Started
- Last post
- 8 Responses
- Meeklo
I have a little question for any of you action script guys out there:
I have on frame one, loaded this movie:
//load Movie Behavior
if(this.holder == Number(this.holder)){
loadMovieNum("swf/1_jpgrotator.s...
} else {
this.holder.loadMovie("swf/1_jpg...
}
//End BehaviorWhen I click on a button, I would like to unload that specific external swf and load another one on the exact same place.
I know there is a function called unload movie, but my knowledge of AS is very limited and there is no option to do that on the preset of behaviours.
Anyone care to help me out?
Thanks in advance!
- Mimio0
If you target the same clip it will just replace it. No need to unload it.
- ********0
what he said...
- Meeklo0
Hey thanks for replying!
For some reason is not working properly if I just load the next movie on a different frame.
I used this (for the second movie)
//load Movie Behavior
if(this.holder == Number(this.holder)){
loadMovieNum("swf/1_jpgrotator_r... this.holder);
} else {
this.holder.loadMovie("swf/1_jpg...
}
//End Behavior
- Meeklo0
^
- Meeklo0
nobody?
- tommyo0
Your code looks okay to me (I'm no expert though), not seeing why you are using the:
Number (this.holder)
in the evaluation but I'm sure you have a reason for this...have you tried tossing some 'trace' commands in there to see what is being called?
- Meeklo0
Your code looks okay to me (I'm no expert though), not seeing why you are using the:
Number (this.holder)
in the evaluation but I'm sure you have a reason for this...have you tried tossing some 'trace' commands in there to see what is being called?
tommyo
(Aug 3 06, 17:15)Hey Tommyo thanks for replying
holder is the name of the MC where I'm loading my external swf.
I just used behaviors, I do not know how to code, but its frustrating I think all I need is to unload the movie and then reload the new one, but there is no behavior for that.
:(
any thoughts?
I am reading tutorials that I found on google as well but I cant get it right for some reason
- tommyo0
go ahead and send me your fla and I'll take a peek.