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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

miaw from embedded swf file???

Status
Not open for further replies.

rockhudson

Technical User
Apr 25, 2003
2
MX
Hi all,

I've a fla file of our website that now needs to be put to CD-ROM. Due to precise directions from my superiors, I have to work out how to open a miaw with a flash button in the swf. The director code for the miaw is:

global cgMIAWName
property pcgMIAWName
on mouseUp
cgMIAWName = "miaw.dir"
CGopenMiaw
end

Of course, when I just paste this into the expert script window in flash it creates output errors. I have no idea how to make it perform this functionality, or if it's even possible...

So - a miaw passed from a flash button to firector. All help greatly appreciated. (ps - the miaw is a video window, so I can't just place the stuff in flash)

Thanks,

m
 
Well in flash you can use geturl action to send lingo to director.

it would look something like this:
on (release) {
getUrl(lingo:cgMIAWName = "miaw.dir");
getUrl(lingo:CGopenMiaw);
}

Thats right just the lines between the handler and the end statement need to be put into it.
I am not usre how to call the propertys and declare the variables. I guess you can try putting those lines in to getUrl too and see if they work. Hope this helps.
 
Hi archer,

Thanks, but that didn't quite fix the problem (it looked good and the base code is vital, but stuff didn't happen). I've now found a solution through precise and persistent googling. The working solution uses the same code but has a movie script in the director file that picks up the transmitted lingo and performs a function based on it. Here's the URL:

home.att.net/~jdoranz/seniors/tiptrick5_21_02.doc

Works a treat!!!

Thanks again,

mdmdmd
 
Sorry, I knew about calling a handler in a moviescript from the getUrl action in Flash before I posted my response. I have used that technique in the past, but I think I overlooked it in my last post because of the problems with navigation actions used within the handlers of moviescripts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top