This is a discussion on "Image loader problem!" within the Flash & Multimedia Forum section. This forum, and the thread "Image loader problem! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Image loader problem!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Image loader problem!
Hi there guys,
I'm having a real headache problem and I can't work out a solution! I am building a flash site where I have gallery sections. I have created a thumbnail button as a movieclip that basically changes its alpha value as you roll over it. I have then created an invisible button to house the script. Fine. I then want to drag this movieclip onto the main stage and use the loader compontent to dynamically load the images from the movieclip thumbnails. I have named the component "myloader" and the code I am using is as follows:
Thank you. Last edited by karinne; Sep 6th, 2007 at 15:28. Reason: Please use [ code ]...[ /code ] tags when displaying code. |
|
|
|
#2
|
|||
|
|||
|
Re: Image loader problem!
You'll want it to look more like this....granted you are using AS2..
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Image loader problem!
Hi There,
Thanks so much for the reply. That doesn't seem to work for me either! I have experimented with putting the following code on the main timeline;
Thanks, Tom. Last edited by karinne; Sep 6th, 2007 at 15:28. Reason: Please use [ code ]...[ /code ] tags when displaying code. |
|
#4
|
|||
|
|||
|
Re: Image loader problem!
Whoops take out the = sign...it's early and I missed that...
on(release){ myloader.loadMovie("image1.swf"); }
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#5
|
|||
|
|||
|
Re: Image loader problem!
myBtn.onRelease = function() {
myloader.loadMovie("image1.swf"); } You need this code for the button states:
Last Blog Entry: Yay!? (Oct 8th, 2007)
Last edited by Sgaspar11; Sep 5th, 2007 at 15:48. |
|
#6
|
|||
|
|||
|
Re: Image loader problem!
Hi there,
Thanks again! I'm just a bit confused as to where I put the code for the button state. On the same frame as the rest of the code, or somewhere else? Sorry if this sounds like a dumb question! But I'm fairly new to this. Thanks again. |
|
#7
|
|||
|
|||
|
Re: Image loader problem!
you can put it in it's own layer above the buttons....I usually create an actions layer and put all my code there for easier sorting...
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#8
|
|||
|
|||
|
Re: Image loader problem!
Hi ,
Thanks again. The code for the component works great but I am still having probs with my rollover states. I could send my experiment Fla. if that would help? If not, thanks for all of your time. Tom. |
|
#9
|
|||
|
|||
|
Re: Image loader problem!
Did you use the code supplied above? Make sure it is on its own layer above the "button"
One thing to change that might work is to change "myBtn" to "this". See what that does.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#10
|
|||
|
|||
|
Re: Image loader problem!
Hi there,
Following on from my previous thread, I have a much simpler way of doing it!;
Thanks again. Tom. Last edited by karinne; Sep 6th, 2007 at 15:29. Reason: Added code tags |
![]() |
| Tags |
| button, invisible button, loader component, movieclip |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pre loader problem | monkeygraphik | Flash & Multimedia Forum | 1 | Jan 25th, 2008 15:45 |
| First image problem and inline list problem | konnor5092 | Web Page Design | 8 | Dec 1st, 2007 09:08 |
| Need help with Pre-loader | GFXology | Flash & Multimedia Forum | 3 | Aug 13th, 2007 15:45 |
| Random swf movie loader (continuous) | markmod1 | Flash & Multimedia Forum | 1 | Jul 3rd, 2007 14:49 |
| How can I create a Flash Movie Loader | JohnMitch | Flash & Multimedia Forum | 19 | Mar 12th, 2005 04:01 |