| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
|
Are there any examples out there using attachMovielip and place them inside a scrollable area.
ie placing a series of movieclip links into a scrolling movieclip |
|
|
|
|
|
#2 |
|
Registered User
|
Does anybody have anything on adding clips to a scrolling area.
|
|
|
|
|
|
|
|
|
#3 |
|
Addicted To FLASH
|
Okey, what do u mean by that?? do u want to have buttons to scroll MC's
__________________
â€* GOD Is Near â€* Questions Don't PM for Questions An eye for an eye, make the whole world blind _____________________________________________GHANDI |
|
|
|
|
|
#4 |
|
Registered User
|
I have the following xml menu system.
http://212.120.137.170/as/move.html It loads sections first. Each section in turn has it's own lessons. The lessons have a tendency to become more than ten per section. So for design purposes I would like them to be loaded into a scrollable area - so when there is more than five of them in the area one can scroll down to the rest. Brian |
|
|
|
|
|
#5 |
|
Registered User
|
this site has what i mean
www.2advanced.com They create scrollable areas filled with I presume text I want to add clips instead of text and scroll them brian |
|
|
|
|
|
#6 |
|
Addicted To FLASH
|
Use the same technique of the text scrolling tut but with a big MC that contains all the other mc's and use a MASK to limit the viewable area
__________________
â€* GOD Is Near â€* Questions Don't PM for Questions An eye for an eye, make the whole world blind _____________________________________________GHANDI |
|
|
|
|
|
#7 |
|
Registered User
|
Do you have an example of this by any chance.
|
|
|
|
|
|
#8 |
|
Registered User
|
You cannot use attachMovieClip to put a MovieClip into a scrollable area directly. Here is a small tutorial I wrote that explains how to attach content dynamically to a scrollable area at runtime. Hope this helps.
1. Create an empty movie clip and put it in your library, giving it a linkage ID. 2. From the components panel to your library, add a ScollPane component along with all other components and MovieClips you will use. 3. In your code, attach the ScrollPane and set its content property to the linkage ID of the empty movie clip you created. 4. Now you can attach clips dynamically to the ScrollPane during runtime. Just attach each clip to the ScrollPane's content property just like you would any Movieclip. 5. After you attach your components, invoke the ScrollPane's invalidate() method. Example code: // container is the linkage id of the empty MovieClip. this.scrollPane = this.createClassObject(ScrollPane, "scrollPane", this.getNextHighestDepth()); this.scrollPane.setSize(350, 150); this.scrollPane.move(50, 50); this.scrollPane.contentPath = "container"; var lblLastName:Label = this.scrollPane.content.createClassObject(Label, "label1", 0); lblLastName.autoSize = "left"; lblLastName.text = "Last Name"; lblLastName.move(lblLastName.x + 5, lblLastName.y + 5); this.txtLastName = this.scrollPane.content.createClassObject(TextInpu t, "lastname", 1); this.txtLastName.setSize(200, 25); this.txtLastName.move(lblLastName.width, lblLastName.y); this.scrollPane.invalidate(); Last edited by megamulli; 09-28-2006 at 08:13 PM.. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| obstacles within the drag area | sebnewyork | ActionScript 2.0 | 5 | 02-12-2005 11:44 PM |
| Scrolling to specific vertical area in ScrollPane | billd222 | Components | 6 | 09-30-2004 04:42 PM |
| help with text scrolling | darth | Other Flash General Questions | 0 | 09-03-2004 05:18 PM |
| scrolling line of images | mairoLT | ActionScript 2.0 | 8 | 12-11-2003 07:20 AM |
| scrolling lists generator object ? | spoonyg | Server-Side Scripting | 0 | 01-04-2002 04:41 AM |