查看: 1453|回复: 5
|
怎樣LOAD/PLAY MovieClip WITHIN MovieClip [经解决]
[复制链接]
|
|
在MainScene,我LOAD一个MOVIECLIP 叫 A
A 里面我要他LOAD另一个MOVIECLIP 叫 B
当 A 自己的Frame走到一半,要B走
B 完了接回 A 剩下的一半。
前辈,这个怎样搞?
不能把A+B变成一个,LAYER太多太长了
* 版主不要发传单,因为那些 KEYWORD 翻译了怪怪看不明白
[ 本帖最后由 fcuking 于 28-10-2005 01:10 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 27-10-2005 11:26 AM
|
显示全部楼层
首先,要搞清楚是你要click button了才load movie?
还是 走到某个frame才auto load movie ?
如果是auto load movie...
1) in your file A( "a.swf" )...open new layer( rename it as "Script" ) and put on top....
2) select the timeline u want load the movie B( "b.swf" )...
this is for load movie
3) highlight the frame in "Scritpt"....and click F6....
4) and type the script in there:
loadMovieNum( "b.swf",2);
this is for unload the movie
5) select the timeline u want to unload the movie B ( "b.swf" )...
6) select the frame n type :
unloadMovieNum(2); |
|
|
|
|
|
|
|

楼主 |
发表于 27-10-2005 01:50 PM
|
显示全部楼层
MovieClip走到某个frame又再 load movie
你教我的是不是Main Scene Load Another SWF
我的MovieClip(A 跟 B ) creted inside the Library liao
现在要把A Load B inside A ,因为A自己有背景
不要他PopUp New Window
Main Scene < A Movie Clip
|
B Movie Clip
谢谢你shonhock~ |
|
|
|
|
|
|
|
发表于 27-10-2005 05:10 PM
|
显示全部楼层
我虽然学过一点点皮毛,不过可以给点意见。
再A MovieClip里弄多一个actions layer(如果还没有弄的话),然后在你要暂停的keyframe那里:
stop();
var new_mc:MoveiClip = new MovieClip();
new_mc.attachMovie("B","b_mc",1);
/*
* 调整property
*/
//在B的最后一个keyframe那里输入this.removeMovieClip;
this.onEnterFrame = function(){
if(!b_mc){ //检查B物件是否存在
gotoAndPlay(//输入目前在A暂停的keyframe number);
}
}
以上只是自己随手写的,还没测试,不过我的idea大概是这样。希望能帮到你。 |
|
|
|
|
|
|
|
发表于 28-10-2005 05:41 AM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 28-10-2005 01:10 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|