I'm updating my website and found out that I originally created it using AS1. I now need to update to AS3 and am having difficult time learning AS3 or even catching on to the basics. On two of my pages, I created a static text box, which I turned into a movie clip to have controlled by buttons. I got my down button to work, but I'm still having a problem with my up button. I can get it to work if I use the same code as my "down", but then my movie clip text continue scrolling down, instead of up. Here is my current set up:
Movie clip controller that is 3 frames:
Frame 1: stop action
Frame 2: blank
Frame 3: gotoAndPlay(2);
I'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).
I have created a presentation which is mostly graphics and voiceover. I have created a few custom buttons to allow the user to pause, start over, etc. (not video). In a few places I am calling to external flv files which have been placed inside movieclips. I want to be use my custom pause button to pause the flv as well, as opposed to using a flv player/controller. I have made several attempts such as:
_on (release) { _root.myvideo_mc.pause(); }
[Code]....
and trying stop/play instead of pause, etc...all to no avail. the appropriate scripting to control an flv with a custom button?
I'm trying to get my website updated, which normally would not be a big deal, except that during the course of updates, I discovered my site was created using AS1 and now I have to convert to AS3, which seems like a foreign language to me. I'm making progress, except that my latest problem relates to custom buttons.On a couple of my pages I made a static text box into a movie clip and placed it behind a mask. I made custom buttons to fit into the look and feel of my site, which control the "text box movie clip". I don't want to use the generic "UI Scroll" that Flash gives you (even though it's probably the easy way out) because it doesn't fit with my site design.I was given code to use for my buttons, but I get an error when I test my movie.The error I get is an 1120 Error: "Access of Undefined Property" on lines 3 and 14.[code]
i recently doing a custom scroll bar with mouse wheel,i succes to make it scroll and wheel in internet explorer, but when it come to firefox, it can't wheel but can scroll. I wonder how can i solve this problem.Here is the script ( it actually the tutorial from kirupa, i remember some people have post it before, but i wonder he/she can wheel in firefox.)
scrolling = function () { var scrollHeight:Number = scrollTrack._height; var contentHeight:Number = contentMain._height;[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.
I figured out how to use custom cursor by using Mouse.hide and startDrag but I can't figure out how to control the movement of it. What I want to do is that when you mouse over a button the cursor gets pushed away from the button and stays there. I've seen examples of controlling the speed of the cursor but what i can't find any examples of literally moving your cursor location.
I am trying to create a way of controlling movieclip depths, which movieclip is show above another, so that I can set the depth of a movieclip to any number and they will be displayed with higher values above lower values. I was thinking of creating a MovieClipDepth class that extends MovieClip with the added property depth, and a Container class that extends DisplayObjectContainer which all objects will be placed inside of. The Container class will override the addChild method to update the child display order when a child is added.
I tried to make a very simple dynamic scroll content text box with its scrollbars but my problem is that I wanted its scroll bar to be having a custom look so I was struck over here I wanted the scroll bar should be the only bar without its up and down scroll button
How do I have a standard ScrollBar (or ScrollPane) scroll a custom MovieClip?
Basically, I am creating a custom menu list, and need to have a standard looking scroll bar able to scroll all of the items. If I am making this from scratch, what is the best method? It seems that the ScrollBar component only works with a TextField, and that the ScrollPane only works with importing external images or SWFs. Is there a way to use the ScrollPane to target a MovieClip?
i was under the impression after reading some posts on this forum that the flash mx component scroll bar could be edited and manipulated easily by breaking down the pieces (arrows, bar, ect) and changing color ect as seen fit?( i just was a black scroll handle that is pink on mouseover, and i want to delete the up and down arrows alltogether.)
i've a tilelist component on my screen which has many entries (more than 10).it displays only 3 items. i've created two buttons for scrolling. right button and left button.if right button is clicked, tilelist component will scroll to next 3 items.likewise if left button is clicked, tilelist component will scroll to previous 3 items.i know it can be done with tileList.scrollToIndex() command.but the problem is, it directly switches to specified number while i want to scroll (tween)..
Looking for an example, of a custom scroll bar inside flash that affects all content? Like, if stage's height goes less than 400, it appears a custom scroll bar, that scrolls all the way through stage's height, up and down!!! with mousewheel function too.
I'm trying to scroll a movie clip with a custom made scroll bar. This is code on the movieclip to be scrolled for the initialization. How this endLimit calculates.
I have a dynamic textbox I would like to scroll. Currently I have 2 images set to scroll up and down with the following actionscript.
[Code]...
The code works fine, though I want when I press, the box to keep scrolling. Currently I have to press, press, press, press, to get a small amount down.
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.
I have created a custom Flex widget by extending UIComponent that I call FlexMapBuilderWidget. I have overriden the various UIComponent methods for measurement, children, display list, etc.
I used this widget to replace a plain old Sprite so that I could add some layout based functionality. When the Sprite was there, I was able to get scrollbars using:
I have done test output to check the reported size of the FlexMapBuilderWidget in its measure() and updateDisplayList() methods, the size is always reported as a large enough number to require scrollbars.
I'm trying to create a custom view (one that is not 100% listview, for example), mix and matching images and labels.One issue is that when the label overflows greater than the screen height, the rest just gets off. I had assumed scrolling or touch-drag scrolling would be automatically enabled? How do you enable the touch-drag scrolling that happens naturally in list view?
I want to create a Custom Scroll bar in my FLEX 3.0 application. Which should enable to use Text instead of |||| that shows in ScrollThumb... I have used mx_internal for changing the style of that but still facing the problem that text is not displayed. here is the code that i have created.
I'm having an issue with a custom ItemRenderer I've written for a DataGrid. With this ItemRenderer, it's possible that the contents could exceed the width and height of the DataGrid cell - and when this happens, scroll bars appear, letting me scroll the individual cell.What I would like, however, is that when the contents of the cell are too large, the entire DataGrid scrolls, rather than the individual cells.
Now, when I set the custom ItemRenderer's horizontal and vertical scroll bar policies to "off", I get the vertical scrolling on the DataGrid that I want (the individual cells stretch to accommodate the full height of the contents) but I don't get any horizontal scrolling. Instead, any content too wide for the cell is clipped. Incidentally, setting the DataGrid's horizontal scroll bar policy to "on" has no effect, the scroll bar gutter is drawn, but nothing scrolls Is there a way to force the DataGrid to scroll horizontally when my custom ItemRenderer's contents are too wide for the cell?
I've set-up a custom scroll bar from an on-line tutorial. I have put placeholder text (I have proper text to fill in later) into a static text field that is inside a movie clip on the main timeline which can scroll with as2 however only shows 2/3 of the text. I've tried to see if there is a character limit for the field?
I am trying to control my main Scene 1 via a navigation bar within a movie clip.
I am using the following code for each button:
btn_2.addEventListener(MouseEvent.CLICK,btnClickHa ndler); function btnClickHandler(event:MouseEvent):void{ MovieClip(root).gotoAndPlay("frametwo","Scene 1"); }
If I just put that code in for one button, that one button will work, but once I add another line of code for my next button, the only one that works is the first one, then the rest of them don't do anything.
i have forward/back buttons to control the timeline. what happens in the following code is that if the button is clicked while in the < or > range of frames, it gets buggy. heres the code.
[Code].....
this doesnt seem to go to the exact frame i need if i click while the current sample is still animating in. It would be much better if i could tell flash to a specific frame instead of asking flash to determine a range. that way, if a button is pressed during an animation it wont just advance one frame, it would jump to a specific frame.
I wish i could just do this:
[Code].....
i thought about creating a var that would be a string. i could then add a number to the name of that string each time the button is clicked. then i could make frame labels the name of the string. but i couldnt get my head around it. also, i didnt know how to make the button stop adding to the string name once it reach a certain value (6 in this case). or how to make it play the last sample animation if the user kept clicking the advance button at the end of the samples.
I'm making a section in my production with 4 audio files which are controlled with a play and stop button. I've managed to make the first one work on the page with this code -
Code: import flash.media.SoundChannel; var mySoundReq:URLRequest = new URLRequest("audio/track1.mp3"); var mySound:Sound = new Sound();
[Code].....
What would I need to copy to control 3 other files the same way? (i.e "audio/track2.mp3" with play_btn2/stop_btn2). I've tried copying part of the code and changing the instant names but I keep getting errors so I'd rather ask somebody who knows what they're doing.
I am trying to make ThumbNail Highlite via button and MC.
Each of the Thumbnails has a same button with instance named "item" 1 to 40. Also, I have the highlite MC instance named "highlite" 1 to 40 as well
I am able to triggar the "highlite" MC with the following: ================================= onClipEvent (enterFrame) { _root.main_nav_mov.item1.onRelease = function() { _root.main_nav_mov.highlite1.gotoAndPlay("play_lit e");
I am trying to make ThumbNail Highlite via button and MC.Each of the Thumbnails has a same button with instance named "item" 1 to 40.Also, I have the highlite MC instance named "highlite" 1 to 40 as wellI am able to triggar the "highlite" MC with the following: