Why does the button not respond to mouseup?
The tool panel has three modes: Classic/default/flash component. Director default mode. In this mode, the button is actually flash component, and Director Sets flash component by default to not respond to Director events.
Choose one of the two solutions:
1.Set the tool panel to classic and drag the button to the stage;
2.Select the button, find the flash component tag in the Property inspector (on the right of the window), andEventpassmode(Last) Default# PassneverChange# Passalways.
Why does the sprite member and membernum attributes display the original attributes?
ForgotUpdatestage.
How to dynamically add behavior to Sprite?
Sprite ( Sprite_num ). Scriptinstancelist. Add (script ( "Moveable" ). New ())
Whether it is parent or behavior, the script object must use the script ("Scriptname"). New.
If behavior does not implement new, Director will have the default new.
Why cannot I edit the field editing attribute after it is modified?
Sprite (x). Member. editable = 1
Add later
Sprite (x). Member. scrolltop = 0
How do I know on which Sprite is the current story?
Currentspritenum,Currentspritenum
How do I obtain the stage Window handle?
Window ("stage ")
Who is me?
Me in Sprite BehaviorSprite.Is the instance of this behavior. The child object below is a level. Only behavior can be attached to frame/sprite/cast member.
For parent script, me is its child object.
Why does the mouseup in movie not respond?
The order in which Director sends event messages to handler is sprite behavior.-->Cast member script-->Frame Behavior-->Movie script.
Before the four types of handler, there was another kind of things similar to the default handler, such as on mouseupscript. It is a little different from the four types of handler above. After it finishes executing itself, the messages will be forwarded in turn. You can also disable them,Dontpassevent. In the preceding four types of event handler, you must manually add pass () at the end (). For example, if the pass () statement is not written at the end of the On mouseup operation of Sprite, the event ends after processing.
Therefore, handler at all levels, especially system event handler, must be checked whether or notPass ().
Why import sketchup 3D model (. SKP) always Failed ?
The media in the import dialog box is not setLink to external file.
Why did you import the SKP model? Also Can't see it?
Director11.5 only supports SKP to skp7.
Why does a video not respond to stepframe processing in frame behavior?Program?
Because stepframe is not a frame event. -___-U
Stepframe is the system event of parent script. It is useless to write on stepframe in frame behavior.
How can I determine whether a variable is a list?
Listp (VAL). If Val is list, 1 is returned; otherwise, 0 is returned.
Similarly, integerp (), floatp (), stringp (), and objectp ().
How can I determine the list type?
ILK (OBJ). Example
bids = [:]
put ilk (bids)
-- # Proplist
ILK (OBJ) can not only judge the list type, but also output the OBJ type, including integer, String, object, rect, point, color, date, symbol, void, picture, instance, Member, Xtra, script, castlib, Sprite, instance, sound, window, media, timeout, image ..
another method is ilk (OBJ, # type). The returned value is whether obj is of type.