|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
ok some guy figured out how to make iframes that show complete and working html pages in .swf here's the link: http://www.gypsytrader.com/SWiSHmax2/example/exampleIndex.html
http://www.gypsytrader.com/SWiSHmax/iFrame/documentation/index.html He even gave a link to download the files: http://www.gypsytrader.com/SWiSHmax2/example/PostExampleFiles.zip the problem is that the file he gives is for Swish I cant believe this came out for Swish before Flash pretty embarassing, ur getting sloppy macromedia...*cough* i mean adobe. So my problem is i made the .swf work but i need to edit the file in flash and add my own buttons i succesfully did this but if i alter the .swf he provides in flash then publish it when i upload to a webserver it gives the error: ERROR: ExternamlInterface is not available. Aborting. Any ideas? |
|
#2
|
|||
|
|||
|
Hi, it's not a breakthrough at all. The documentation explains in the first paragraph that the iframe is not loaded inside Flash but by JavaScript and that it is just positioned to sit on top of the Flash file. They then use Flashes ExternalInterface class to call various JS functions in the HTML page to control the iframe. I think the real problem is that you didn't RTFM :¬)
So I wrote the error you indicated (fixing the spelling mistake) into google and the first result was a Swish forum where the last post showed the code that produces that error. They actually reference the iframe page you mentioned. They base their conditional on whether ExternalInterface.available is true. If you then backtrack and read the ExternalInterface documentation, which is quite brief, you can see a list of supported browsers. If you delve into the comments you can see that the fourth one down by shimi2 indicates you can also get this problem if the Flash objects allowScriptAccess HTML property is set to never. It's hard to say what the problem is specifically since the Swish example does have that property set to "sameDomain" which should work fine. All I can think for now is that you either (a) didn't copy the example correctly (b) are using an unsupported browser/Flash plugin combination or (c) have the allowScriptAccess property set to never. |
|
#3
|
||||
|
||||
|
My fault for not being clearer...i decompiled the .swf he gives in the example into a .fla then from macromedia flash i altered the .fla file (adding buttons etc.) then i published it to a .swf then when i play it it gives that error.
Thx for the point in the right direction i'll do some digging and get back with the results. ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Iframe Breakthrough |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|