?
Solved

loadMovie() - can I pass a parameter to the new movie?

Posted on 2003-03-28
1
Medium Priority
?
215 Views
Last Modified: 2008-03-10
Hello,

When loading a movie with loadMovie, is it possible to pass a parameter to that movie?

I have a _global variable called 'splashPic' wih a value of 'home-wide02.jpg'. I want to pass this variable to the movie that is being loaded. Thinking it would be similar to passing a parameter from an HTML page, here is what I tried:

----
on(release){
     _root.loadMovie("bio02.swf?whichSplash="+_global.splashPic);
}
----

This returns:
Error opening URL "file:///G|/freestyle/web/bio02.swf?whichSplash=images/home-wide02.jpg"

The loadMovie works fine on its own, but it doesn't seem to recognize that the parameter is a, well.. a parameter!
Any ideas? I've searched & searched the web, but haven't found any info on this. I'm sure I'm not the only person who's ever wanted to do this, though.

Thanks,
//km

0
Comment
Question by:kris_mcl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Zeffer earned 80 total points
ID: 8228602
there are issues with passing variables on a local machine with early player versions..
http://www.macromedia.com/support/flash/ts/documents/local_query.htm
go down to No.2 ..also gives examples of syntax..etc

Z

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question