Jpg from outside source

I was wondering if there was any way to access jpg’s or any other images from a file and have them played and controlled within flash…

I am trying to create a portfolio template for my fellow students and many don’t have any flash knowledge…,:crazy:

Thanks :beam:

This works for me:

_root.createEmptyMovieClip(“container”,1);
container.loadMovie(“image name.jpg”);

Happy Tokin’ :wink:

Thankyou, but if it were to be a slideshow…how would I write the script for the images to advance on release:q:

Thanks

Well… Just name the containers like such…

container1, container2, container3… And so forth and so on…

Have a variable to keep track which container number you are on… 2 or 3 for example… Then…



// Place this in the move forward movieClip

on(press)
{
   if(containerNum <= numSlides){containerNum++;}
   else{containerNum = 1;}
}

// Place this in the move backward movieClip

on(press)
{
   if(containerNum >= 1){containerNum--;}
   else{containerNum = numSlides;}
}

Put this in your main movie frame.. The first one...

_root.onLoad = function()
{
   numSlides = 30;
   for(x=1;x<=numSlides;x++)
   {
      _root.createEmptyMovieClip("container"+x, x+10);
      _root["container"+x].loadMovie("slide"+x+".jpg");
   }
}


This says… If the variable containerNum (which holds which slide you are currently in…) is <= numSlides (which holds how many slides total you have) then to advance the slide to the next one… And if it’s at the very end… To go back to the very first image…

On the second line… It’s basically the same way except it moves backwards through the slides…

On the third line… It states… When the _root… or movie… Finally loads up… It will Create the for loop which will load up all the slides you have (gonna have to set up something here for that… Set up your own number there… I’d limit it to a small number for loading purposes on slow connections… ).

Hope this helps you out… You still need to do some more basic coding… But this should lead you in the right direction.