PDA

View Full Version : diolague system exception


bloggs
05-18-2008, 07:16 PM
ok i'm stumped on this. i have used this before but for some reason i have this System exception for my diolague creation.

not sure whats going on but the Diolague is created but nothing works after that.

here is the code with the error.

(

rollout BlockRoll "Block"
(
button RBTN "EggECute" pos:[25,25] width:55 height:16
)
on RBTN pressed do
(
print "hello World"
)
blockFloater = newRolloutFloater "Block" 100 100

addRollout BlockRoll blockFloater
)


this is the error i get

** system exception **
OK


cheers

john

JHN
05-18-2008, 07:57 PM
You have the eventhandler outside of the rollout. That will never work.



(
rollout BlockRoll "Block"
(
button RBTN "EggECute" pos:[25,25] width:55 height:16

on RBTN pressed do
(
print "hello World"
)
)
blockFloater = newRolloutFloater "Block" 100 100
addRollout BlockRoll blockFloater
)


You should definetly consider using indention of your code blocks, it makes for a much clearer reading.

-Johan

abyjoe
05-18-2008, 07:59 PM
try this:
(
rollout BlockRoll "Block"
(
button RBTN "EggECute" pos:[25,25] width:55 height:16

on RBTN pressed do
(
print "hello World"
)
)

blockFloater = newRolloutFloater "Block" 100 100
addRollout BlockRoll blockFloater
)

PS: sorry didnt see ur post above :)

JHN
05-18-2008, 08:01 PM
Hahaha, well at least the solution is clear :)

bloggs
05-18-2008, 09:21 PM
hehe thanks guys wow dont i feel dumb now! yeah i do have indents for some reason the thing did do it when i posted. trying to do tomany things at oce

thanks again

cheers

CGTalk Moderation
05-18-2008, 09:21 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.