Target object is if you want to send to a specific movie script or parent script. For example...

iScript = script("my script").net()

If you then put in iScript as the target object it would try to find and run the handler you specify in that parent script instance.

-Chuck
--------------------------
Chuck Neal
CEO, MediaMacros, Inc.
[EMAIL PROTECTED]
http://www.mediamacros.com
--------------------------
Check out the Developers Mall
Your one stop shop for all your Director Xtra Needs
http://www.mediamacros.net/customer


Ali Aghighi wrote:
Hi

I forgot say something about my last treat (timer, timeout property),
I search Macromedia and Director Help and web for it, But I can't
understand how use timeout syntax in my project.
First please let me to say my condition at present time;
I want change some pictures in one sprite in every 5 second (loop). So
I write following scripts (attach to my sprite):

******
property ch

on exitFrame me
count=5
if (the timer > count*60) then
ch = ch +1
puppetTransition 50
starttimer
end if
if ch =312 then ch = 300
if ch =299 then ch = 311
set the member of sprite(9) to member ch of castLib "gallery"
end me


on beginSprite me
 ch=300
 starttimer
end

******
In next side I want when mouse leave my menu, my menu back to up, so I
write following: (I attach to my menu)
******

global countwo, countManager
on mouseleave me
if countManager ="n" then
countwo =4
if (the timer >60 * countwo) then
if the frame = 40 then
go to "menu up"
end if
starttimer
end if
end if
end


on exitframe
if countManager ="n" then
if (the timer >60 * countwo) then
if the frame = 40 then
go to "menu up"
end if
starttimer
end if
end if
end


on mousewithin
countwo =1000
end


******

All of above sprites works correctly, but alone. If I use both of
them, my pictures don't change.

I used one button for activate and deactivate my menu for
automatically going up when mouse leave it with "countManager"
variable.

Now I wish you understand my situation exactly,

I have another question about "timeout" Object, I read in director
help that for creating "timeout" use following syntax:

variableName = new timeout(timeoutName, timeoutPeriod, timeoutHandler,
targetObject)

I don't grasp the meaning of "targetObject" .

Director say: "targetObject" indicate child object's handler.


Please help me about above issues, I urgently need to it and don't have many time more.


Really appreciated for getting your valuable time,

Yours truly,
Ali
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to