Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 23rd, 2008, 09:12 AM
Alas's Avatar
Alas Alas is offline
Wickedwd.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: wickedwd.com
Posts: 187 Alas Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 17 h 32 m 22 sec
Reputation Power: 0
Exclamation Iframe Breakthrough

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?

Reply With Quote
  #2  
Old July 23rd, 2008, 05:23 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,633 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 15 h 7 m 8 sec
Reputation Power: 538
Facebook MySpace
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.
Comments on this post
Alas agrees: sweet
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old July 24th, 2008, 08:51 AM
Alas's Avatar
Alas Alas is offline
Wickedwd.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: wickedwd.com
Posts: 187 Alas Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 17 h 32 m 22 sec
Reputation Power: 0
Thumbs up

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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Iframe Breakthrough


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway