Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-28-2002, 01:32 PM   #1
mcbreenmachine
Registered User
 
mcbreenmachine's Avatar
 
Join Date: Feb 2002
Posts: 57
Send a message via AIM to mcbreenmachine
Default re adding movie clips to a scrollable area

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
mcbreenmachine is offline   Reply With Quote
Old 03-28-2002, 03:11 PM   #2
mcbreenmachine
Registered User
 
mcbreenmachine's Avatar
 
Join Date: Feb 2002
Posts: 57
Send a message via AIM to mcbreenmachine
Default re movclips to a scrolling area

Does anybody have anything on adding clips to a scrolling area.
mcbreenmachine is offline   Reply With Quote
Old 03-28-2002, 03:24 PM   #3
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: EGYPT
Posts: 12,439
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

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 . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 03-28-2002, 03:37 PM   #4
mcbreenmachine
Registered User
 
mcbreenmachine's Avatar
 
Join Date: Feb 2002
Posts: 57
Send a message via AIM to mcbreenmachine
Default example

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
mcbreenmachine is offline   Reply With Quote
Old 03-28-2002, 04:31 PM   #5
mcbreenmachine
Registered User
 
mcbreenmachine's Avatar
 
Join Date: Feb 2002
Posts: 57
Send a message via AIM to mcbreenmachine
Default like 2adv site

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
mcbreenmachine is offline   Reply With Quote
Old 03-31-2002, 06:49 AM   #6
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: EGYPT
Posts: 12,439
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

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 . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 04-04-2002, 07:55 AM   #7
mcbreenmachine
Registered User
 
mcbreenmachine's Avatar
 
Join Date: Feb 2002
Posts: 57
Send a message via AIM to mcbreenmachine
Default do you have an example

Do you have an example of this by any chance.
mcbreenmachine is offline   Reply With Quote
Old 09-28-2006, 08:05 PM   #8
megamulli
Registered User
 
Join Date: Jul 2006
Location: Houston
Posts: 3
Send a message via Yahoo to megamulli
Default

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..
megamulli is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 09:28 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.