ActionScript 2.0 :: Scrollpane Does Not Work Correctly?
Sep 3, 2006why the text disapears 1/2 way down the scroll?
Download FLA Here
Download ZIP Here
why the text disapears 1/2 way down the scroll?
Download FLA Here
Download ZIP Here
I have used a scrollpane on my new site, it scrolls but only if you click the arrows or click in the scroll bar, if you actuall try and scroll by dragging (which people would because it's long) it vanishes![URL]
View 1 RepliesI have a couple buttons that work outside of the ScrollPane but dont work within it. This is my exact code, how do I get them to work?
scrollPane.source = myContent;
scrollPane.setSize(173,500);
K1Button.addEventListener(MouseEvent.CLICK, playVid);
function playVid(e:MouseEvent):void{
myVideoPlayer2.myFLV2.source = "video/K.mp4";
myVideoPlayer2.myFLV2.play();
[Code] .....
ok, i have been working on this for a week or so, and yes it has been a week. I don't have the internet where i am from so I resorted to ebooks that I had downloaded. The problem is, is that I have made a very simple math program. You decide which operand you want to use and a randomly generated questions pops up. You answer the question and you are told whether you are right or wrong. This continues 5 times where you are graded based on percentage correct. I am not worried about taht part yet, I want to get my if else statement working correctly first.
The first frame is the frame where you choose your operand. The second frame is where you solve the problem, and the last frame is where you are told whether you are correct and what your percent so far is.I have an ebook teaching me but I have had some success in prior programming. When my program didn't work, I debugged and eventually ripped the program straight from the book. It still isnt working correctly.
[Code]...
I just want a scrollpane with thumbnails. When you click on the thumbnails a larger version loads right above. Anyone know how to do this? I have been scouring the internet trying to find an answer with no luck.
View 3 RepliesIn AS2, how can I get a roll over listner in a MC inside a scroll pane to display a MC tool tip on the stage outside of the scroll pane? I am using the following code in the main time line to display the tool tip and it dosn't seem to be working:
//****Sel******//
selectionTxt._visible = false;
Sel.onRollOver = function(){selectionTxt._visible = true;}
Sel.onRollOut = function(){selectionTxt._visible = false;}
I have a movie clip with text and buttons in it linked to a scrollpane.The movie clip shows up just fine in the scrollpane, but the buttons won't work when clicked.If button script is in the main timeline, an error message says the buttons are an undefined property.If button code is in the movie clip timeline, there's no error code but the buttons simply don't work.
View 0 RepliesI got some problem with a task. I Can't get removeChild work correctly.When u push i_golf three buttons appear (i_golf1, i_golf2, i_golf3) and each button is connected to a picture.
i_golf.addEventListener(MouseEvent.CLICK, visaGolf);
function visaGolf(e:MouseEvent){
var v_golf_bild:MovieClip = new golftumbs();[code]....
Tried to load one .swf file into another using loadClip method:
var MCL:MovieClipLoader = new MovieClipLoader();
MCL.loadClip("1.swf", "loader");
The .swf file is loaded but controls inside it won't work (I have some buttons and stuff in it). Separately everything works just fine. Also, what is the difference in loadClip usage between AS 2 and 3? The code above generates some compiler error messages in AS 3 mode, like
"1180: Call to a possibly undefined method MovieClipLoader" and
"1046: Type was not found or was not a compile-time constant: MovieClipLoader."
Im using the following script in the main timeline frame and I've got many buttons inside the buttons_mc.How do I change this script to make a button which is inside the buttons_mc work with a scrollpane.
[Code]...
scrollPane.setSize(400,400);
scrollPane.source=emptyc;
Where emptyc is a container in which I add content dynamically (i.e. by addChild method) doesn't work. It simply doesn't scroll at all.
Neither does work if I add content using scrollPane as a container itself (i.e.:
scrollPane.addChild(myChild);
I've just made a 2'nd version of my portfolio: [Code]... with xml used to read the content & i have several problems that i can't fix.
1: The site works well only in InternetExplorer. In all other browsers, jpg files are not loading correctly - they should fade in when the button is rolling & fade out when the button is rolling up, but they doesn't. Thare are also preloaders for each artwork & they doesn't appear (excepts IE). 2. The main preloader doesn't work correctly (even in IE) It appears, when about 80% of the site is loaded :S I don't know what to fix to the site to work correctly in all browsers.
I'm creating one sprite named 'holder' and I'm adding childs to it. finally I use sp.source = "holder"; NOTE: scrollPane is in stage, having instance name = sp, holder is AS created.
this works very good, but I need to on button press refresh data on holder. So I want to complete remove holder, so my function can recreate it with new elements and then define scrollPane.source = "holder";
How can I do this?
var holder:Sprite = new sprite();
holder.name = "holder";
addChild(holder); // this adds holder to stage
//
// add elements to holder
[Code]...
We have created on-line game that uses Ruby on rails for the server part. SWF client works well under browsers on Win&MAC. Windows stand-along client also works well but the MAC client runs down just after start. Analysis of the LOG file on the server shows a problem with a cookie for the session id. The server is not able to create the cookie on MAC to store session id.
View 5 RepliesWe have created an on-line game that uses Ruby on Rails for the server part.The SWF client works well under browsers on Win & MAC. Windows stand-along client also works well but the MAC client runs down just after start. Analysis of the LOG file on the server showsa problem with a cookie for the session id. The server is not able to create the cookie on MAC to store session id.
View 1 RepliesI'm searched and searched and tested this, but I can't seem to get a simple scroll pane to work correctly. I have a bare-bones file, with dummy text here:[URL]..
Can someone download this and put the dummy text inside a scrollpane for me (using the ruler guidelines as a guide)? I'll even send you $10 via PayPal if you can get the text to look right inside the scrollpane...
I can't believe I have to resort to this, but I'm about to pull my hair out,
I am having trouble to get the SendAndLoad() function to work correctly so that when the php script echo's or print("result") is called it gets a string saying pass, or fail... the following is my code for php, and action script. Also I have provided two pictures explaining the what exactly I want.
[Code]...
How do you get buttons to work correctly inside the Movieclip? When i click on my buttons they show what is supposed to be shown for a split second then goes to the nested frame 1. my website is: [URL] If you go to the Interest button, you'll see what i mean. the clip loads up fine but when u click on the Adobe cd it won't work correctly. The images flash on screen then disappear.
View 7 RepliesHave small thumbnails that will enlarge when the mouse is over them and shrink when it's not. For some reason sometimes only the X or Y will scale or the buttons won't work correctly. The animation will pop and I don't know how to fix it. The only reason I drop the opacity on all the others is because sometimes other images will get in the way.
View 2 RepliesI'm building a page that plays back 5 videos. If there is no interaction, the videos will playback in a random order every time the page loads. If the user interacts with any of the buttons for each video, after a video completes & if the user has stopped interacting, it would ideally playback only the videos that haven't been played.
I've been able to get the automatic random playback to work. What I haven't sorted out is how to get the video playback to work correctly if the user interacts.I've modified this code, which uses some 3rd party code, and it won't work outside of their environment. The logic would work outside of their environment, though. They only provide video tools. This code is used to create the buttonArray and the random array:
Creat the button array
var buttonArray:Array=new Array(scroller.scrubber.vidBtn1,scroller.scrubber. vidBtn2,scroller.scrubber.vidBtn3,scroller.scrubbe r.vidBtn4,scroller.scrubber.vidBtn5);[code]...
how to make buttons playback only the remaining elements of the randonArray if the user stops interacting after interacting,
I wanna make a gallery using xml. Every photo is gray, after ROLL_OVER on it position loads it's colored copy, and after ROLL_OUT copy dissapears. After click, it should navigate to URL. And I have 2 problems:
1. ROLL_OUT doesn't work correctly: it's strange, but it work after ROLL_OVER ... :<
2. how to make linking, hm.. for example, if it's first thumb, to "proj/1", if second to 'proj/2' etc...
it's my code:
[Code]...
I have a big problem - I decided to make a website using flash as I am good with photoshop and thought it would be fairly easy to construct in flash using tutorials. All went well except now the website is published, weird things happen. The homepage works fine but when you click on "portfolio" some of the buttons don't appear and when you try the buttons, some images don't appear. Occasionally some of the buttons take you to the wrong place also. When I test the movie in flash, everything works fine so I can't work it out. I am a complete novice so advice will have to be spelt out in black and white.
View 2 RepliesI decided to make a website using flash as I am good with photoshop and thought it would be fairly easy to construct in flash using tutorials. All went well except now the website is published, weird things happen. The homepage works fine but when you click on "portfolio" some of the buttons don't appear and when you try the buttons, some images don't appear. Occasionally some of the buttons take you to the wrong place also. When I test the movie in flash, everything works fine so I can't work it out.
View 9 RepliesI have a MovieClip inside a ScrollPane. Inside this MovieClip i have buttons. What i want to know is: how to click a button inside a Movie Clip, that is inside a scrollpane, and make it load a swf outside the scrollpane?
View 2 Repliesimport fl.containers.ScrollPane;
recentMsg_bt.addEventListener (MouseEvent.CLICK,resentMsgClick);
var sp:ScrollPane = new ScrollPane();[code].......
Everything works just fine, except for the last msg gets only half displayed as if the scrollpane wouldn't scroll to the end.
I haven't been able to find a non-hack way to use Drag and Drop with the AS3 ScrollPane component.
Here's what I'm doing:
I create a container mc, which I then add a bunch of children to. The children are what I want to drag.
However, dragging is constrained to the boundaries of the ScrollPane. This seems to me like a limitation of the ScrollPane component.
I know it can be worked around with attaching a dupe mc to the cursor pos, then manipulating other mcs on mouse up, but..
If you set a .swf with wmode transparent mode and register the Event.RESIZE in it. It will not work correctly in Chrome and will ultimately crash the Flash Player. Of course same thing in FF, EI or any other browser works like a charm. Setting wmode to window fixes the problem but anyone knows a work around with wmode set to transparent?
View 0 RepliesI googled this online, and almost all of them start with dragging the scrollpane from the component toolbar.
I don't like the way this scrollpane looks. How to change the color, shapes, etc. Can I do this through altering the code, or do I need to start from scratch?
I know that you can access the scrollpane's content by writing: scrollPane.content...But how can I access the scroller - with that I mean the thumb and up & down arrows...I would like to do something like this for example:
Code:
scrollPane.scroller.buttonMode = true;
for (i=0; i<policy.length; i++) {
newOpt = Stocklist_MC.attachMovie('Option', 'Option'+i, i);
I've got a ScrollPane on the root stage. This loads a MC called 'Stocklist_MC' (this also has a linkage/export name of 'Stocklist_MC'). When I try to use '.attachMovie' to the movieclip (Stocklist_MC) inside the ScrollPane nothing appears. All the AS is on frame 1 of root. Everything works when I use '.attachMovie' with _root. for (i=0; i<policy.length; i++) { newOpt = _root.attachMovie('Option', 'Option'+i, i); Also, if I drag Stocklist_MC to the stage I get everything working but list gets cut off at bottom, which is the reason why I need it in a scrollPane.