主题:  一个初学者的shockwave3D问题。

night_5d

职务:普通成员
等级:2
金币:1.0
发贴:275
注册:2000/12/15 21:24:38
#12002/9/24 15:36:29
刚刚接触shockwave3D,对里面的一些东西不太熟悉,希望大家指教。
如:newModelResource
member(whichCastmember).newModelResource(newModelResourceName { ,#type, #facing })
其中他的参数newModelResourceName 与他的返回值有何区别。
而且这种问题也处在同样的所有含有new的命令中,如newModel,newMesh......,如果我在后面引用的话使用我命名的值还是返回值。很多例程里面使用的是返回值
如果两者相同的话,MM为什么又要求两个名字呢?到底两者的相同点和不同点是什么呢?
望各位高手指教!


[img]http://61.144.28.245/hjc/web/non-cgi//usravatars/paladin.gif[/img]
I thirst for freedom

chentian

职务:普通成员
等级:1
金币:0.0
发贴:118
注册:2002/1/2 10:05:49
#22002/9/25 9:50:03
觉得SHOCKWAVE 3D很好,但是就是没有系统的教材,不知道这位朋友有这方面的详细资料吗?



night_5d

职务:普通成员
等级:2
金币:1.0
发贴:275
注册:2000/12/15 21:24:38
#32002/9/25 16:23:56
网上后很多教程和例程,但大都是英文的。可以好好找找,我都是勉强看英文的。:)
另:问题已经有恢复了,给初学者一个参考
Q:

I can't know about the "newModelResourceName" differ frome the return value .
when I use:
modelResource=member(whichCastmember).newModelResource(newModelResourceName { ,#type, #facing })

the "modelResource" is return value.

I want to konw the different of them.
A:
the first one is a handler to the model resource, the second one is the model resource's name.

you can use both of them to access the model resource.
myModelResource=member(myCastmember).newModelResource("myNewModelResourceName")

it's just two different methods to access the same resource. try:
if (myModelResource = member(myCastmember).modelResource("myNewModelResourceName")) then
alert ("see! we point to the identical resource")
else
alert ("we're different")
end if

if you've done already more programming: the handler concept in java is something similar.


hope this helped.....





[img]http://61.144.28.245/hjc/web/non-cgi//usravatars/paladin.gif[/img]
I thirst for freedom