473,800 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New to Actionscript, help with movie clips!

2 New Member
I'm trying to do this automatic scroll box, with an "up" and "down" arrow. The scroll box will have boxes lined up on top of each other moving continuously throug the scroll area. I need help implementing the "up" and "down" arrows. What i want is when a user mouses over the "up" button the boxes will start scrolling upwards, and vice versa for "down". So far i have this:

onClipEvent(loa d){

lastbox = getProperty(_ro ot.Box12, _y) //position of last box
}

onClipEvent(ent erFrame){
setProperty(_ro ot.Box12, _y , _y+2 ); //increments position by 2.

if(_y >= lastbox){
setProperty(_pa rent.Box12, _y, (getProperty (_parent.Box1, _y)- getProperty(_pa rent.Box1, _height)); // moves box12 back to the beginning of the list of boxes, ie. on top of box 1.

}
}

So i have the boxes continuously scrolling nicely, but i have no idea how to implement the "up" and "down" arrows. Anyone know how? I assume you create a new button and do something like:

//for UP
on(rollOver){
//execute up button code
}
Mar 3 '08 #1
1 1824
nomad
664 Recognized Expert Contributor
I'm trying to do this automatic scroll box, with an "up" and "down" arrow. The scroll box will have boxes lined up on top of each other moving continuously throug the scroll area. I need help implementing the "up" and "down" arrows. What i want is when a user mouses over the "up" button the boxes will start scrolling upwards, and vice versa for "down". So far i have this:

onClipEvent(loa d){

lastbox = getProperty(_ro ot.Box12, _y) //position of last box
}

onClipEvent(ent erFrame){
setProperty(_ro ot.Box12, _y , _y+2 ); //increments position by 2.

if(_y >= lastbox){
setProperty(_pa rent.Box12, _y, (getProperty (_parent.Box1, _y)- getProperty(_pa rent.Box1, _height)); // moves box12 back to the beginning of the list of boxes, ie. on top of box 1.

}
}

So i have the boxes continuously scrolling nicely, but i have no idea how to implement the "up" and "down" arrows. Anyone know how? I assume you create a new button and do something like:

//for UP
on(rollOver){
//execute up button code
}
You might be able to do it with tween and using actions layer with stop();
if that doesn't work I there's always the Components panel and use textArea and set if or scrollable

nomad
Mar 4 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1892
by: torchestra | last post by:
I have several movie clips and would wish to play them in sequence. There is possible to use the SetQTNEXTUrl property for the quicktime plugin, but it creates a black gap between the clips. Is it possible to use to player objects and swap between them. So that I hide one player and reveal another when one clip stops? Or do you have any other sollutions to my problem
6
2916
by: P3dro0203 | last post by:
I have got a Movie clip that i have made in FLASH MX, and when i attach a actionscript to the button the hit CTRL + ENTER so veiw the SWF file, the actionscripting does not work. Is this becasue i have the movie clip on the same SCENE as were i want to the button to take me? Does any one have any ideas as i am stuck and need help!!
1
2633
by: itsthefocusman | last post by:
Hi everyone my name is Daniel, I would like some help. I am using Flash 8 to build a website. I have built the whole site within one flash movie by building the different sections of the site (i.e. Bio, Photos etc) along different parts of the main timeline, with each section animated in and animated out. My problem is I have the same set of buttons in a movie clip runnig through the whole flash movie. Because each section animates out I...
3
4275
by: groovymovin | last post by:
Hi there, I am a newbee. searched intensively for a quite simple problem but couldnt find an answer. Here is my problem: I have two layers with 2 movie clips. The movie clip on layer 1 stays static, the movie clip on layer 2 fades in on a few frames, thus I crossfade from clip 1 to clip 2 (actually it is a bit more complicated what I am trying to do). At the end of the fade, i would like to replace the movie clip on layer 1 with the movie...
2
1666
by: =?Utf-8?B?SG9sbHk=?= | last post by:
Please help...I'm trying to make a movie of different clips. I can add a set of clips from one collection to the storyboard and it plays fine. Then I will add another set of clips from another collection and the whole storyboard will NOT play. It won't all play together even though it shows up in the storyboard. WHAT DO I DO??????
1
3884
by: animNotasc3 | last post by:
Hi all actionscripters out there. I'm in the middle of what is now three projects. All call for the same way to look at photos and all have several photos. I have been looking through so many pages and need to find something soon. Here's what it is: I'm trying to pull in images externally from a folder that can continue to be added to and altered. These images then inside of flash need to be loaded into a movie clip that can be...
1
1485
by: pab143 | last post by:
Hi Friends can u explain the Actionscript to play Movie as a external file. if we click the button to Play the Movie file.
1
1462
by: metaphysics | last post by:
I'm a newbie to actionscript, and I have a few questions. I'd like to be able to 'send' some text from a html page that I have onto a flash movie clip that I made, but I haven't been able to figure out how to do it. The idea is that I want to send the title of a HTML page to this movie clip, so I don't have to create a new movie clip for every page on my website. Is their any way that this can be done, and can you please try and be as...
4
7363
nathj
by: nathj | last post by:
Hi, Well the title of the thread is the question. I have tried searching for this and after several days of getting nowhere with it I decided I would ask. So here's the deal. I am using Flash 8, I have a movie that reads information from an XML file. The trick is that depending on a selection on my web page I want the move to read a different XML file. This sounds simple enough right? I thought so, pass the variables over to the...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.