
Welcome Guest
|
#1
|
|||
|
|||
|
getScrollContent() for jpg images
Hello there.
I am using a ScrollPane component to load dinamic images. I am trying to resize the width of the image inside the component, because I don't want to see an horizontal scroll bar. Later on, I will put the code to change the height to maintain the proportion. For some reason, I seem to be unable to use getScrollContent(). I am using this script to resize the image when it completes loading: on (complete) { _root.loadingPicture_mc._visible=false; //it hides the loading movie animation var myContent = getScrollContent(); myContent._width = 200; //refreshPane(); } It doesn't resize. I commented out refreshPane() because If I leave it there, it triggers the on(complete) event again and starts an infinite loop. I also tried with: _root.image_mc.image_scrp.getScrollContent() //the complete path to the scrollpane or image_scrp.getScrollContent() And more. Nothing seems to work. I think it should work with just getScrollContent(); because refreshPane(); works just like that. I also noticed that getScrollContent(); does not turn blue like refreshPane(); . It looks like flash is not recognizing it. Does that mean that I need to install something? |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Centering images in a movieclip | photex | Flash 8 |
9 | 02-11-2008 10:12 AM |
| dynamically load and unload images from XML | naibas | Newbies |
7 | 04-18-2007 05:20 PM |
| load images form external clip | Sewdn | Actionscript 2.0 |
3 | 11-15-2006 03:22 PM |
| Changing images on rollover | michael66 | Flash 8 |
2 | 10-11-2006 09:57 PM |
| The Case of The Disappearing Images: Help Needed | TymeAw8z | Flash MX |
1 | 05-22-2006 06:15 AM |





