佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1452|回复: 5

怎樣LOAD/PLAY MovieClip WITHIN MovieClip [经解决]

[复制链接]
fcuking 该用户已被删除
发表于 27-10-2005 12:59 AM | 显示全部楼层 |阅读模式
在MainScene,我LOAD一个MOVIECLIP 叫 A
A 里面我要他LOAD另一个MOVIECLIP 叫 B

当 A 自己的Frame走到一半,要B走
B 完了接回 A 剩下的一半。

前辈,这个怎样搞?
不能把A+B变成一个,LAYER太多太长了






* 版主不要发传单,因为那些 KEYWORD 翻译了怪怪看不明白

[ 本帖最后由 fcuking 于 28-10-2005 01:10 PM 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

发表于 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);
回复

使用道具 举报

fcuking 该用户已被删除
 楼主| 发表于 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 | 显示全部楼层
回复

使用道具 举报

fcuking 该用户已被删除
 楼主| 发表于 28-10-2005 01:10 PM | 显示全部楼层
谢谢三位的教导。。。
我已经解决了
回复

使用道具 举报

Follow Us
您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 24-7-2025 10:14 AM , Processed in 1.526519 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表