This is a discussion on "externally loading jpgs via rollover for a beginner" within the Flash & Multimedia Forum section. This forum, and the thread "externally loading jpgs via rollover for a beginner are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
externally loading jpgs via rollover for a beginner
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
externally loading jpgs via rollover for a beginner
i have 4 swf gallery pages. each page contains an empty movie clip and a selection of thumbnails. what i would like to do is code the thumbnail images so that when the cursor is over a thumbnail, the larger version of that photo loads into the movie clip, and when the cursor is not over the thumbnail, the larger version unloads from the movie clip. if anyone knows of a good tutorial that covers this, or has any helpful advice along these lines, i'd appreciate hearing it.
thanks, brandon |
|
|
|
|||
|
I would suggest that this is impractical. If someone simply runs their cursoor over the images then you get a very quick succession of load and unload image functions, which isn't good for Flash or your server.
Instead consider making it on click. Loading the right image shouldn't be difficult, you simply need to unload the previous clip using unloadMovie(), then use loadMovie() and target the movieclip you want it to load to. If you already have your gallery in place then this change should be trivial. |
|
|||
|
thanks for the reply.
even though the idea seems impractical, im still curious how to do this in flash. |
|
|||
|
I'm not an Actionscript expert (in fact I script with the As Bible open
|
|
|||
|
PS... I think that if you use IF... ELSE ( or something like this
|
|
|||
|
thanks much for the response. im beginning to see that there are several ways to do this. i actually just tried this and it seems to work fine.
on(rollOver){ _root.mc.loadMovie("Image1.jpg") } on(rollOut){ _root.mc.unloadMovie() } |
|
|||
|
yes! this is the code I was thinking
|
|
|||
|
Hi, I'm having a similar problem.
I have a button and I would love to have text scroll from point A to point B when someone rolls on to the button. I have a movie clip of the text scrolling, I just want to make sure it scrolls in the right place ( a bit below center). I have this: on (rollOver) {loadMovie("Get Your Own Spray");} Uh... please help. Get your own spray is the move clip. my AIM is matthewrenton :-). |
|
|||
|
Firstly, it's customary to start a new thread for a new problem, but you're new so we'll let you off! 8)
loadMovie takes two parameters - the filename and where you want to load it to. So firstly you need to use Get Your Own Spray.swf. On the web you really shouldn't be using spaces though, so remove the spaces or replace them with underscores. Secondly - where to load it. You can specify either a level in Flash (you may not have come across this), or a movieclip to load the file into. If you're specifying a movieclip you need it's name in quotes: loadMovie("GetYourOwnSpray.swf", "holderMC"); |
![]() |
| Tags |
| externally, loading, jpgs, via, rollover, beginner |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| accessing variables and actionscript in externally loaded Swf from main movie | balaakrs | Flash & Multimedia Forum | 4 | Sep 8th, 2007 17:19 |
| loading jpgs | mac master | Flash & Multimedia Forum | 1 | May 29th, 2007 14:58 |
| Why does Flash resize jpgs that are coppied into it? | jbruso | Flash & Multimedia Forum | 3 | May 7th, 2007 16:31 |
| Help w/ rollover images not loading | camcool21 | JavaScript Forum | 3 | Jan 1st, 2007 01:22 |
| Preload and caching of externally loaded JPGs | hip | Flash & Multimedia Forum | 5 | Nov 8th, 2006 13:49 |