Embedding SWF in HTML

Post November 5th, 2009, 12:54 pm

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
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 5th, 2009, 12:54 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Offline

Post November 5th, 2009, 1:03 pm

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: [ Download ] [ 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: [ Download ] [ Select ]
on (release) {
getURL("c:\intepub\wwwroot\external.swf");
 
}
 
  1. on (release) {
  2. getURL("c:\intepub\wwwroot\external.swf");
  3.  
  4. }
  5.  
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com

Post November 5th, 2009, 6:08 pm

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
  • Joined: Jul 11, 2005
  • Posts: 1597
  • Loc: Minneapolis, MN
  • Status: Offline

Post November 6th, 2009, 12:19 pm

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.
//// Designer, Art Director, Developer & Teacher of Interactive, Motion and 3D \\\\
WhenImNotSleeping.com

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 94 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
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.