|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Scrollbars with falsh
Hi Everyone
I'm developing a website with Macromedia Flash MX and have seen website where part of the page scrolls and the rest remains static. What I want to do is have a vertical scrollbar down the side, which scrolls a section of the page (a bit like an iframe with HTML). Can anybody tell me how it's possible to acheive this? Thanks in advance for your help/comments. Joe |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
Thanks Tan
I've also been looking at a tutorial which seems to be the type of thing I'm looking for but doesn't seem to work with Flash MX 2004 Pro, http://www.cbtcafe.com/flash/index.html. If you go to this link and select the top tutorial (Scrollpane componant) you will find the tutorial I've been working through. The problem seems to be that I can't actually make a scrollpane from the compnants menu. Can some please tell me why this is and if there is a way around it? Thanks again Joe |
|
#4
|
|||
|
|||
|
|
|
#5
|
|||
|
|||
|
Hi, I dont use mx2004 so I dont know what built in options you have. You could always download the MX components for 2004 and use them.
Flash MX Components for Flash MX 2004, V1.5.0 |
|
#6
|
|||
|
|||
|
scrollbar
Hi Joe,
I had to solve the same problem last week. I use MX 2004 (not the pro version). The solution we used does not display a scrollbar, but it does display intuitive buttons and the text does, in fact, scroll. This is how we did it: 1. Set the text type to "Dynamic". 2. Name the instance (say, scrollText). 3. Resize the text field. 4. Put a scroll up button next to the text field. 5. Use the following code in the Actions for the button: on(release) { scrollText.scroll -=1 } 6. Put a scroll down button next to the text field. 7. Use the following code in the Actions for the button: on(release) { scrollText.scroll +=1 } Good luck! |
|
#7
|
|||
|
|||
|
Thanks Hilton
I've followed your instructions, which have semi-worked. I have a Flash file with two very simple buttons and a text box which goes below the scroll down button. However, when I publish the exe file, the text is all in a horizontal line and part is missing. Clicking the buttons has no effect but if I click on the text and drag to the right it moves right. I've uploaded the .fla file to here. COuld you please have a look at it and tell me if there is anything wrong with it? Thanks very much Joe |
|
#8
|
|||
|
|||
|
Hi, you might have the text box set to singleLine instead of multiline. Check the text box properties.
|
|
#9
|
|||
|
|||
|
Thanks everyone
I had the text set to single line rather than multi line. However, now when I click the down button the text moves down one line and then clicking the button has no effect. Is there a way of solving this so that the scrollbar can be clicked more than once? Thanks again for your previous posts and in advance for any in response to this. Joe |
|
#10
|
|||
|
|||
|
Hi, I'm not at a machine with flash installed right now so I cant look at your .fla file. If it's in 2004 format I can't anyway. The code that Hilton posted should of worked. You could try changing the relevant parts i.e.
scrollText.scroll -=1; to: scrollText.scroll = scrollText.scroll - 1; That shouldn't really make a difference but it's worth a try. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Scrollbars with falsh |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|