Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

in association to previous post

Status
Not open for further replies.

blended

Programmer
Aug 8, 2000
154
US
Ok. I'm now able to load up the specific image based upon the xml file previously shown. For some reason, it won't load the swf into a target. I think this has something to do with them not being on the time line, but loading due to being configured with arrays. Anyhow, how to I reference the same movie clip?

I imagine something along the likes of:

loadMovie (Image, *this movie clip*.Image);

but I don't know how to reference a movie clip like this. Much props to anyone who can tell me this one. Here's what I have now:



function getImage (Product) {
for (CounterA=0; CounterA<Products.length; CounterA++) {
if (Products[CounterA].Name == Product) {
showImage(Products[CounterA].Image);
break;
}
}
}
function showImage (Image) {
loadMovie (Image, _root.Image);
}

Where a frame action starts the getImage function

Gracias,

Blended
 
would

Code:
loadMovie (Image+&quot;.swf&quot;, _root.Image);

work?

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Well, &quot;_root...&quot; is not helping because the movie clip is not actually associated with the main time line in any way. It is &quot;linked&quot; into the movie so it sits in Ram and loads up when called from the xml action script. I've tried &quot;self.image&quot; &quot;_self.image&quot; nearly everything I can think of to load the movie into the mc the command is being given from, but the function sits on the main timeline with the xml script and the call button sits on a linked movie. Jeez!

Thanks, though. I'll try variations on this idea.

Blended
 
ok Blended

I'll try crunching my brain for a while, been helping Carl.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
on the press of a button, what about setting a variable which defines the path to the movie-clip in which the button resides:

on (release) {
/:target = this._target;
}

and in the function:

loadMovie (image+&quot;.swf&quot;, /:target);

or a variation on this?

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top