Ask a Question related to Macromedia Director Lingo, Design and Development.
-
markinoregon #1
Error object expected
hey folks!
I'm getting the usual NOOB error object expected.
I'm creating a simple box and applying a texture to it:
The specific line i get the error at is below
global newBox
on prepareMovie
member("newBox").resetWorld()
mr1 = member("newBox").newModelResource("myBox", #box, #front)
mr1.length = 50
mr1.width = 75
mr1.height = 100
md1 = member("newbox").newModel("myBoxModel")
md1.resource = member("newBox").modelResource("myBox")
getRendererServices().textureRenderFormat = #rgba5551
--create texture object,assign it to brick4 member
Here's my error line.....
------>>>>>>tTexture=newBox.newtexture("brick",#fromCast member,member("brick
4"))
I thought I just created an object?
tTexture.quality=#high
--apply the texture to a shader
tShader=newBox.newShader("boxShader",#standard)
tShader.textureMode=#wrapPlanar
--assign shader to box model
tModel=newBox.model[1]
tModel.shader=tShader
end
Any help is really appreciated, I'm stuck!
I'm going to do Lesson 7 from the Shockwave Studio 3D-traing from the source
book where it talks about assigning textures and shaders to primitives.
The preceding example was from FED book D8.5Studio, modified a little bit
off course, so i can learm.
--
markinoregon
Website under construction as always!
[url]www.markthesteelhead.com[/url]
markinoregon Guest
-
object expected error - audioLoadingStart( )
Trying to play a swf in a web page using flash. It plays fine, but throws an IE error. The error is: "A runtime error has occurred. Do you... -
Javascript Error: Object expected
I am having a very difficult time trying to get one drop down to call a cffunction and return a value to select the second drop down. I am getting a... -
error in havoc-car, object expected
Trying to build a nice little race game and the graphics are commin along very well, the problem is, im a 3dmodeller not a scripter, but with the... -
object expected error
Hi I am having several problems that might be a bug or bad codeing but I cant tell as the error only happens immediatly after I save my working... -
IIS ASP Object Expected Error
John wrote: Should be "Err.Clear". The Number propery is read-only IIRC.



Reply With Quote

