Sha256: 0244506e8d9a270fc20745442e4b2faf30a288f0bf866214c0d96184107ec479
Contents?: true
Size: 499 Bytes
Versions: 7
Compression:
Stored size: 499 Bytes
Contents
A very simple example of communication javascript <-> flash: <hr/> <%= swf_tag("example", :width => 400, :height => 300, :mode => :dynamic, :id => "my_flash", :flashvars => {:message => 'Hello, World!'}, :parameters => {:allowScriptAccess => "always", :scale => "showall"}, :javascript_class => "ExampleClass") %> <hr/> <button onclick = "$('#my_flash')[0].sendFlash('Hello from js...')">Say Hello!</button> <button onclick = "$('#my_flash')[0].say('hi!')">Use javascript class to say hi!</button>
Version data entries
7 entries across 7 versions & 3 rubygems