Hi Folks,
my chief wants me to attach a .swf File to my application! I have used the search button and found out, that webview might help…
set theURL to ((path to me as Unicode text) & "Contents:Resources:view.swf") as file specification
set theWebView to view "webview" of window "flash"
set URLWithString to call method "URLWithString:" of class "NSURL" with parameter theURL
display dialog "here3"
set requestWithURL to call method "requestWithURL:" of class "NSURLRequest" with parameter URLWithString
display dialog "here4"
set mainframe to call method "mainFrame" of object (theWebView)
display dialog "here5"
call method "loadRequest:" of mainframe with parameter requestWithURL
display dialog "here6"
I have made a window called “flash” and put in a NSView “webview”! When running the Application, then the URLWithString will not be set - Error Message is showing a “Variable not definied”… The Variable “theURL” is set up correct! Maybe you have a hint how to solve this issue? How can I display a FlashMovie into a Applescript application…
Thanks a lot!
Stefan