作者hirabbitt (兔子)
看板Flash
标题[问题] 奇怪的Error #1009
时间Sat Jun 23 11:22:21 2012
影格1
var bgm2:Sound=new Sound();
var channel:SoundChannel=new SoundChannel();
trace("MC1"+channel.toString());
var VolTransform2:SoundTransform=new SoundTransform(.2,0);
bgm2.load(new URLRequest(".\\P.mp3"), new SoundLoaderContext(30000, true));
影格7
trace("MC7 227"+bgm2.toString());
trace("MC7 228"+channel.toString());
channel=bgm2.play(0, int.MAX_VALUE);
trace("MC7 230"+channel.toString());
输出
MC1[object SoundChannel]
MC7 227[object Sound]
MC7 228[object SoundChannel]
TypeError: Error #1009: 无法存取 Null 物件参考的属性或方法。
at baking_town_fla::MainTimeline/baking_town_fla::frame7()
超怪的
明明bgm2有物件
channel也有物件
但却出现错误
更怪的是
只有在我这台电脑编译才会这样
用其他电脑却是正常的
我的环境是cs3 as3
最近灌了flashplayer10.1和风行网
想说会不会是这些原因?
麻烦大家帮我猜猜看
感谢
--
◤ __ \__◣
█ ∠ ◢◤◢◤ ψhirabbitt
我们爱
◢ ◤ ◢███◣
▄▄█▄▄ ◢███◣
█████
▄▄▄▄▄ █████ 这就是为什麽我们的爱
因为神先爱我们 ██
●█
● █ꄠ█▇███
██
╱╲ █ ●◥█████◣● 和世人不一样
◥
╱█
╱╱ █ ● ◥████ ˇ
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.116.190.172