您的位置:程序门 -> vb -> 控件



rainstormmaster大哥,请问flash控件如何控制一个mc是否可见?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


rainstormmaster大哥,请问flash控件如何控制一个mc是否可见?[已结贴,结贴人:koei79]
发表于:2007-05-06 17:14:37 楼主
我现在为这个烦透,又不懂控件使用.现在要这样:本身在flash的mc设置成可见,然后通过flash播放器的按纽控制mc不可见.希望大哥有具体的代码写一下出来,在线等待,谢谢上次你的回答,学到很多东西.
发表于:2007-05-06 20:27:071楼 得分:0
在等.........
发表于:2007-05-06 22:18:502楼 得分:10
不好意思,才看见啊,假设你的mc的实例名为test,则:
private   sub   command1_click()
        shockwaveflash1.tsetpropertynum   "_root.test ",   7,   0
end   sub
即可
发表于:2007-05-06 22:20:193楼 得分:0
下面是参数表:    
    property       integer       constant       getable       set-able        
    x       position       0       x_pos       x       x        
    y       position       1       y_pos       x       x        
    x       scale       2       x_scale       x       x        
    y       scale       3       y_scale       x       x        
    current       frame       4       current_frame       x                
    total       frames       5       total_frames       x                
    alpha       6       alpha       x       x        
    visibility       7       visible       x       x        
    width       8       width       x                
    height       9       height       x                
    rotation       10       rotate       x       x        
    target       path       11       target       x                
    frames       loaded       12       frames_loaded       x                
    instance       name       13       name       x       x        
    drop       target       path       14       drop_target       x                
    url       15       url       x                
    global       properties        
    high       quality       16       high_quality       x       x        
    focus       rectangle       17       focus_rect       x       x        
    sound       buffer       time       18       sound_buf_time       x       x          

发表于:2007-05-07 01:31:434楼 得分:0
谢谢rainstormmaster大哥,已经解决,太高兴了.


快速检索

最新资讯
热门点击