This is a discussion on How we can load images to ScrollPane within the Flash Actionscript Programming forums, part of the Web Development category; Hi guys ! This is the new way to load images to thumbPane and scroll the image by using scrollPane scrollbar.....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi guys ! This is the new way to load images to thumbPane and scroll the image by using scrollPane scrollbar..The steps for example is as follows 1)Drag the scrollPane to Stage and name it as "sp_content" 2)Create an EmptyMovieClip by insert menu select NewSymbol and choose type as MovieClip and name it as "mcs". 3)Drag the new MovieClip "mcs" on Stage and then Double click the "mcs" movieClip then create a new MovieClip as "mk". 4)select the MovieClip "mcs" then delete but the MovieClip must stay in Library. 5)Right click the "mcs" MovieClip and choose Linkage from Popup menu then select Export in FirstFrame and Export for ActionScript and Linkage name as "mcs". 6)Add the following code to first Layer of First Frame. //As2.0 Coding sp_content.contentPath="mcs"; for(var i=1;i<=5;i++){ var mks=sp_content.content.mk.createEmptyMovieClip("ms "+i,i); mks._x=i*120+20; mks._y=20; mks.loadMovie("E:/Arun/Flash works/medpics/thumb"+i+".jpg"); } 7)Save and run the Application. Thanks S.Arun ![]() Less Talk Work More |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how do I save images to SQL DB? | H2o | ASP and ASP.NET Programming | 2 | 09-19-2007 12:00 AM |
| What is the use of Load Analyser in load runner? | sundarraja | Testing Tools | 1 | 09-14-2007 08:10 AM |
| When I try to upload my site, all my images are X's. How do I get them to load correc | oxygen | HTML, CSS and Javascript Coding Techniques | 1 | 07-27-2007 03:58 AM |
| Rotating Images with PHP | Jeyaseelansarc | PHP Programming | 0 | 07-17-2007 08:36 AM |
| Google Images | Floppix | 3 | 03-08-2007 09:26 PM | |