Embedding SWF in HTML

  • cosmic_billion
  • Newbie
  • Newbie
  • User avatar
  • Posts: 14
  • Loc: Amsterdam, the Netherlands

Post 3+ Months Ago

Hello,

Can somebody help me, please? This is an HTML/CSS based question by the cause that my flash file works fine.

However when I embedded the flash component into HTML and select a button in the flash component that loads an external swf, it doesn't pick up the external swf file...this is my problem

The external swf loads smoothly when I run it in flash player.

Regards
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

It's most likely a path problem in your code for the URL for the button.

Make sure the path to the external swf is not an absolute path.

For example assuming the external swf is in the same directory as your main flash that has your button, your actionscript would be

ACTIONSCRIPT Code: [ Select ]
on (release) {
getURL("external.swf");
 
}
 
  1. on (release) {
  2. getURL("external.swf");
  3.  
  4. }
  5.  


make sure it isn't something like:
ACTIONSCRIPT Code: [ Select ]
on (release) {
getURL("c:\intepub\wwwroot\external.swf");
 
}
 
  1. on (release) {
  2. getURL("c:\intepub\wwwroot\external.swf");
  3.  
  4. }
  5.  
  • cosmic_billion
  • Newbie
  • Newbie
  • User avatar
  • Posts: 14
  • Loc: Amsterdam, the Netherlands

Post 3+ Months Ago

Hello ATNO/TW,

Thanks for your quick response.

Yes, the paths are correct.

The external swf(movie) does load when I run the flash file, however the problem is when I embed the swf into html and run it through a web browser, then it does not load the external swf (movie) from the directory.

any more ideas?
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

getURL is intended to load pages OUTSIDE of flash. The best solution is to bring the other swf into your current swf via loadMovieClip() or to create a separate html page containing the new swf and link to the page.
  • bilhasry4you
  • Novice
  • Novice
  • bilhasry4you
  • Posts: 33

Post 3+ Months Ago

uhm, how about to put swf in HTML code or embed withot JS
  • cosmic_billion
  • Newbie
  • Newbie
  • User avatar
  • Posts: 14
  • Loc: Amsterdam, the Netherlands

Post 3+ Months Ago

Great, I got it working, I just started over, recreated the index.htm and embedded the swf again..and..well..it worked.

This sometimes happens to me, not sure why but I have to remember this post in the future..hehe :)

CosmicBliss

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 61 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.