ActionScript 2.0 :: Scroll Masked MC With Buttons (no Scrollbar)?
Jul 1, 2009I'd like to scroll (with ease) my masked movie clip up/down with buttons. I do not want to use a scroll bar.
View 1 RepliesI'd like to scroll (with ease) my masked movie clip up/down with buttons. I do not want to use a scroll bar.
View 1 RepliesI have a movieclip that I am masking dynamically. The reason for masking the movieclip is because it can be different heights depending on user feedback to some questions. I want to add a scrollbar if the movieclip exceeds the mask area that will allow the user to scroll to see the rest of the movieclip.
View 2 RepliesI have a three masked pictures all are movie clips on the main timeline and the mask works ok. The problem I am having is a set of buttons on the main timeline which allow you to move between the frames the three pictures are on. They allow me to do this ok but when the movie is started the first time one of the buttons is pressed the masked pictures can be seen on screen briefly before the screen displays the material properly.
This is the script I am currently using:
room_pic.setMask("mc_mask");
mc_mask.onEnterFrame=function(){
this._x=this._x+this._xmouse*0.300000;
this._y=this._y+this._ymouse*0.500000;}
I have three layers the main picture which is a bitmap; the three masked pictures are in the layer above this; and the mask object is in a layer above this and is a movieclip.
Swf I am referring URL...I have an issue with getting my buttons to work when they are masked in the dragable mc (content_mc). Is there anyway of making these buttons work at all as is vital for me to have content in the scrolling mc?URL...It is probably a little messy but have been running around in circles trying to figure it out
View 9 RepliesI've gotten to chapter 5 in my AS 3.0 classroom book but I need to use wisdom today (CHAPTERS before I gain it for myself),I need to create a custom scroll bar with buttons that function just like the UIScrollBar but more visually suited to our projects. the boss demands it.
I found several tutorials on creating the custom scrollBar, however, they don't include the buttons and I'm unable to find a tutorial on how to create a button scroller (I figured I could link them both to my "info_txt" after creating them separately).
how to create an AS3 text scrollBar WITH buttons? how to create a nice scroll effect with buttons(if creating the scroll bar and buttons apart then linking them to the same text field is not possible or a faulty way to accomplish this).
Is there any simple way to scroll a dynamic textbox with easing, without having i scrollbar visible? perhaps something that scrolls when mouseover? Every tutorial i found is with a scrollbar, and still i come across the kind of scroll that doesn't have a scrollbar!
View 1 RepliesHaving some strange problems with masks in FMX 04: We're developing an accordion style interface. The problem is that buttons and images/mcs that are outside the "masked area" of each module are somehow clickable, or are "invisibly" pushing other content up/down. So basically the buttons/mcs are hidden, but Flash is still seeing them somehow. Is this normal mask behavior? Is there a solution besides setting the button to _visible = false? This is effecting my interface in other ways as well.
View 2 RepliesI have a scrollbar that scrolls left or right when the cursor is moved either side of the central x coordinate. I've been trying to change it so the scroll only activates when the cursor is towards the far right hand side (ie x>75%) or towards the far left hand side (x<25%) of the scrollbar, leaving the central 50% of the scrollbar inactive.
Code:
function scrolling() {
_root.onEnterFrame = function() {
container_mc._x += Math.cos(((mask_mc._xmouse)/mask_mc._width)*Math.PI)*15;
[code].....
I'm using the List and UIScrollBar components. I've got a list with a scrollbar placed far from it. I want to disable the built-in scrollbar in the list and scroll it with a different scrollbar. How is this possible?
View 1 RepliesI have several scenes in a Flash app; for some of them the Movie height is right while for others the content is very long so i would need to have scrollbars to let the user scroll down.Which is the correct way to handle it in this old version of Flash?
View 1 Repliesi have a bunch of variables loaded into a movie clip and taken the data and created a comment post / shout box the problem im having is i cant find anything on scrolling an mc using the uisrollbar everything i have found has been with custom scrollbars and scrollbar classes.Url..In the first example it is the data loaded and placed into a MC and the second example i have tried to load that MC into a scrollpane but it doesnt scroll right.As you can see its scrolling right past all the post into blank area when it shout stop at the last post. The other problem is if there is more then 8 entries into the databse it wont even scroll to the last few entries....so obviously its not recognizing the hight of the MC properly maybe i need to force it some how but i dont know.I have tried a masking scroll but i cant seem to get the scrollbar conected to the MC to scroll it.some sample code or perhaps a good tutorial on using the uiscrollbar with a mask scroll.One last thing i shout ask is should i be using variables or XML passed from php to acomplish this entry viewer?
View 0 RepliesI'm wanting to make a vertical scrollbox (say, 150 px wide by 500 px high with a scrollbar) and where the content is defined by an XML file. The catch... I'd like each name in the list to become a button (or otherwise clickable) that opens a swf (also specified in the XML file). I have succeeded in making a static list where each "name button" was created manually... but I'm realizing my list is going to be hundreds of names and I'm thinking there must be a way to achieve this with XML. Here is the current version:
[Code]...
I am making a scroll bar but it doesn't scroll as far as it should. I triple checked all my math but I can't find anything wrong. Probably the code of interest is on the movie clip content0 within the instance whole. This is what actually controlls the scrolling. Most of the other script dictates how the sliders work so you can ignore that, they work fine. Scroll index is a number between 0 and 1 indicating how far down the bar the slider is, 0 it hasnt moved, 1 it is at the bottom. That works as well. So i am not sure why this doesnt work.
View 5 Repliesscroll a movieclip inside a swf with the browser scrollbar? I'm not talking about something like swfFit or so but actually controling a mc on stage while the rest of the swf stays in place? I've seen this done in a site that I don't remember the url to. Don't know though if they placed a div containing a swf on top of the "main" swf.
View 15 Repliesi have made a custom scroll bar however when i change the angle of the scrollbar and the scroll line ( they are on the stage) it continues to scroll verticaly
View 2 RepliesI'm currently learning Flex, and am having the hardest time getting scroll bars to work. In short, I'm making a giant form for users to fill out, contained within a viewstack component. The user will type up information in one view, and it will be displayed in the other. But right now in the first canvas I have components that run off the screen and flex doesn't automatically add a scroll bar, so I added 'verticalScrollPolicy="on"' to my canvas. Now, while it gives me a scroll bar, it gives me an empty scroll bar. I still cannot move it up or down, meaning components are still trapped off the bottom of my screen. Am I missing something simpleEdit - I'm using Adobe Flex Builder 3, and the components it lets you drag in. http://img12.imageshack.us/img12/218/problem1f.jpg This is a picture of the problem, and i guess relavent code would be.
<mx:Application xmlns:mx="adobe.com/2006/mxml" layout="absolute" width="830" height="835">
<mx:ViewStack x="10" y="72" id="viewstack1" width="790" height="751" >
<mx:Canvas label="Design Mode" width="100%" height="100%" verticalScrollPolicy="on"
[code].....
I tried the tutorial on [URL] The Object-Oriented Scrollbar: Part 2 tutorial. Every thing is fine, but when I load the swf to main.swf
- I can scroll the scroller, but not the content
- I got this error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.leebrimelow.ui::ScrollBar()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at com.leebrimelow.ui::ScrollBox() .....
The scenario is:
- The main timeline play and stop at 56.
- At 56 the main.swf loads the sec1.swf
I used the lee brimelow scrollbox and scrollbar class for a resume scrollbox on a site I'm building. The problem is, when I load the swf with the scrollbar/box onto the mainpage, it throws the following error:
[Code]...
I'm using a scrollbar and textbox that I got here at Kirupa. I was wondering if there is any way to make this scrollbar function when a user tries to scroll it with the scrroll wheel on their mouse. Does anybody know if this is possible? If so, how?
Here is the scollbar I used: [URL]
And here is my code for my scrollbar:
loadText = new LoadVars();
loadText.load("news.txt");
loadText.onData = function(myLoadedText) {
[Code]....
I have a text box with a scrollbar attached and everything works fine except if i use the scrollbar then the scroll event attached to the textfield doesn't execute but if i type in the text field untill it scrolls then the scroll event works perfectly.
View 1 RepliesI have a text box with a scrollbar attached and everything works fine except if i use the scrollbar then the scroll event attached to the textfield doesn't execute but if i type in the text field untill it scrolls then the scroll event works perfectly. i can't post code because its a media server project and the code is several classes and a few hundred lines long.
View 1 RepliesMainly been making websites all these years, but in my last year at school i started to get interested in Flash Actionscript. I've been at home for over a year in 2008, unemployed. I got back to school in September 2008 but quit the education as it wasn't for me. Now I'm looking to get a job, but I need a showcase, so I'm building my portfolio at the moment.
I'm currently working on my portfolio which i wanted to make in Flash using XML generated content. I got as far as getting the content generated in my prototype. Now I'm trying to build the real thing. I currently got a scrollbar on the left which contains the thumbnails. I used the custom scrollbar from [URL] ([URL]). The content in it is generated with xml and actionscript though.
[Code]...
I have set up a small application which has a movieClip (named "GuruQuestions") with a mask over it, a scrollbar which you can grab and drag and currently, it does precisely what I want it to do.
However, my boss has decided he no longer wants a 'click and drag' scrollbar, and would instead like just 2 buttons to scroll, so essentially, when the user hovers over the button, it scrolls.
I have found several threads about using this method with dynamic text, but none for using a movieClip.
trying to modify the custom scrollbar that is in the tutorial section, it works nice, but i need to scroll the contentMain with the up and down arrow keys also, i think it needs a listener event, but is a kind of tricky for me.The complete code that is in the tutorial exactly is this...
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
[code]....
i have created some 6 -10 buttons and i want to keep these list of buttons in the scrollbar. so that a user can view only a set of 4-5 buttons at a time.i tried out the kirupa-scrollbar but when the masking is done on set of buttons all the buttons are under mask and i am unable to click any of those .i tried the UIscrollbar component, it works for the text area but not for the buttons
View 2 RepliesI know how to make a scrollbar for a text field, but how does one go about making a scrollbar for a non-text based item, say movieclip with a graphic inside?
View 5 RepliesI have a dynamic text field with scrollbar buttons that work in Firefox, chrome and safari but not IE8. I wish I could forget about IE8 but it's not possible yet. The following code is being used.
on (press) {
myText.scroll=myText.scroll-1;
}
[code].....
Is there anyway possible to take the "Simple Custom Scrollbar" on the Kipura site (http:url....)and make it so that the "UP" and "DOWN" keys on your keyboard also scroll the scrollbar?
View 1 RepliesI'm in no way a Flash expert, and I've got a bit of a query. I've followed a few tutorials and managed to get a vertical scroller working pretty well. However, is there a way of having a set of buttons that will move the content of the scroller (and subsequently scrollbar) to a certain position, without breaking the scroll functionality?
View 1 RepliesI've found plenty of scripts for scrollbars that move a movie clip up and down within a mask. However, what I'm trying to do is create a scrollbar that changes the "scroll" attribute for an XML textbox. I already have it set up to work with scroll arrows. Here is the code I'm using below:
Code:
scrollArrows.downBtn.onPress = function() {
this.onEnterFrame = function() {
EquipText.scroll++;
[code]...
So I've got the arrows working fine, but I'm still missing a scrollbar to go in between them.