Wrox Programmer Forums
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 15th, 2007, 04:15 PM
Registered User
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Loading Javascript in Flashmovie

I am trying to either "geturl" or "loadmovie" the following scipt into a flash movie (version8):

<script type="text/javascript" src="http://www.marcakesson.com/ammap/swfobject.js"></script>
<div id="flashcontent">
If you see this message, you need to <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">upgrade your flash player</a></div>
<script type="text/javascript">
var so = new SWFObject("http://www.marcakesson.com/ammap/ammap.swf", "ammap", 720, 400, "7", "#666666");
so.addVariable("mapid", 1);
so.addVariable("mapas", 15);
so.addVariable("path", "http://www.marcakesson.com/ammap/");
so.addVariable("ext", "php");
so.addParam("scale", "noscale");
so.addParam("salign", "lt");

CAN SOMEONE EXPLAIN THE CORRECT FORMAT IN FLASH8 - I can get the URL to load but can not pass along all the variables...

Thanks - just a beginner...

Old February 16th, 2007, 12:33 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts

What are you trying to accomplish here? What does this javascript do? This javascript looks like it should be the placeholder for a swf file on the web page, are you trying to load it into a swf file???

geuURL - Loads a document from a specific URL into a window or passes variables to another application at a defined URL. To test this function, make sure the file to be loaded is at the specified location. To use an absolute URL (for example, http://www.myserver.com), you need a network connection

loadMovie - Loads a SWF, JPEG, GIF, or PNG file into a movie clip in Flash Player while the original SWF file is playing. Support for unanimated GIF files, PNG files, and progressive JPEG files is added in Flash Player 8. If you load an animated GIF, only the first frame is displayed.

Old February 19th, 2007, 01:47 PM
Registered User
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

thanks Mike, what I am trying to do is launch AMMAP.SWF which resides on a different server/drive from my flash movie. AMMAP needs to be launched with certain settings (see below) in order to work properly. The script tells AMMAP the settings. I can launch AMMAP.SWf but don't know who to pass along the variables. Especially important are the size settings "720x400"

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax and javascript loading pppswing Ajax 0 September 21st, 2006 01:27 AM
javascript popup keeps loading Dj Kat Javascript How-To 2 January 3rd, 2006 10:22 AM
dynamically loading table using javascript bkalyanchakri Javascript How-To 1 November 1st, 2005 07:21 AM
Navigate XML when loading with Javascript. awetch XML 1 February 24th, 2005 03:56 AM
VB and flashmovie binod VB How-To 0 August 6th, 2003 01:02 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.