Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing Flash Events

Status
Not open for further replies.

WaterTight

Programmer
Nov 11, 2001
19
0
0
US
I have integrated a flash interface for a vb6 program. I'm able to get all of the flash interactions by doing a select case on fscommands. However, there are occassions when I will need to force flash events due to the user selecting different settings.

My main problem is that i'll need to call specific frames for specific objects - the flash interface isn't just one object.

Any suggestions or web addresses that anyone has would be most appreciated.

thanks,
J
 
Since there were no replies, I wanted to post the solution to this, in case anyone else was having this problem.

To call frame 12 for the object called "ul" within "style,"

ShockwaveFlash1.TGotoFrame "_root.style.italic", 12

Setting a variable, such as changing the textbox "fileName" in "save," to "" would be done as follows:
Code:
ShockwaveFlash1.SetVariable "save.fileName", ""
(yes, this is common sensical - it took me at least an hour to figure out...it sometimes puzzles me why i still call myself a programmer)

Ah...but here, now, is the rub. Setting a property's value with TSetProperty takes three parameters:

target as string - ok - should be pretty easy to figure this out. this is the object name

property as long - "what in the world?!" you ask. beats me...but i found a way to make it work by digging up a few references to tsetproperty. i list the property values for the properties at the bottom

value as string - once again, pretty easy - what to set the property to...

i used...
Code:
ShockwaveFlash1.TSetProperty "save", 7, "0"
ShockwaveFlash1.TSetProperty "main", 7, "100"
...to make the save panel invisible and the main panel visible.

X Position = 0
Y Position = 1
X Scale = 2
Y Scale = 3
Current Frame = 4
Total Frames = 5
Alpha = 6
Visibility = 7
Width = 8
Height = 9
Rotation = 10
Target path = 11
Frames Loaded = 12
Instance name = 13
Drop Target path = 14
URL = 15
High Quality = 16
Focus Rectangle = 17
Sound Buffer Time = 18

Anyway - there are some ways to force flash events. Hope it helps!

J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top