all groups > flash (macromedia) > july 2003 >
You're in the

flash (macromedia)

group:

Loadmovie


Re: Loadmovie Byron Canfield
7/11/2003 3:39:10 PM
flash (macromedia):
Show your code -- copy and paste from the actionscript window; don't retype.

--
"There are 10 kinds of people in the world. Those who understand binary
numbers and those who don't."
----------------------
Byron "Barn" Canfield
http://www.headsprout.com
Flash examples: http://www.byronc.com/flash5
[I do not respond to private emails regarding issues for which the
appropriate venue is this newsgroup, nor do I reply to posts by email.]




[quoted text, click to view]
file. I am trying to load the image using the LoadMovie function. How can
I do it? I can't get the proper syntax...
[quoted text, click to view]
name..for some reason it doesn't use the content of the varaible...but
rather the varaible name...
[quoted text, click to view]

Loadmovie rob1979
7/11/2003 4:59:15 PM
I have a variable "boothimage". The variable contains a path to a JPG file. I am trying to load the image using the LoadMovie function. How can I do it? I can't get the proper syntax...

I have the expression check box checked... and when I put in the variable name..for some reason it doesn't use the content of the varaible...but rather the varaible name...

Please help!

Thank

Re: Loadmovie Byron Canfield
7/14/2003 8:24:28 AM
I'd suggest using the loadMovie() method, rather than the function:

_root.Picture.loadMovie(boothimage);

But some reasons that it might not load are:

1. The variable "boothimage" is not in the timeline where the above
command is issued, and so must have a path supplied to get at it.

2. The target movie clip either has ceased to exist on the timeline,
does not yet exist on the timeline, or does not exist on the _root (every
level has a _root, but there is only one _root per level).

3. The string content of the variable "boothimage" does not resolve to a
filename in a location that exists.



--
"There are 10 kinds of people in the world:
those who understand binary numbers and those who don't."
-----------------------------
Byron "Barn" Canfield
http://www.headsprout.com
Flash examples: http://www.byronc.com/flash5
[I do not respond to private emails regarding issues for which the
appropriate venue is this newsgroup, nor do I reply to posts by email.]


[quoted text, click to view]
I tried putting the variable in quotations and that does not work either.
Also the image is being laoded into a movie clip called "Picture"...
[quoted text, click to view]

Re: Loadmovie rob1979
7/14/2003 1:14:15 PM
Hi,

Here it is:

loadMovie(boothimage, "_root.Picture");

boothimage is a variable that contains the path and filename to the image. I tried putting the variable in quotations and that does not work either. Also the image is being laoded into a movie clip called "Picture"...

Any help would be appriciated.

Thanks,,

Rob


AddThis Social Bookmark Button