ActionScript 1/2 :: Put A Long Static Text Inside A ScrollPane?
Oct 7, 2010
I need to put a long static text inside a scrollPane? I've got a custom font embed. When I enable "Anti-alias for readability" the text looks wired (overlaps) in the scrollPane. But when I change it to "Use device fonts" the static text shows fine. How can I overcome this? Basically I need to have a long paragraph inside a scrollPane with a custom font.
I 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?
I'm trying to make a scroller for a movieClip, with a static text inside does any one Know how can i do it. (I don't need the arrowfor this case but only the code for the scrolling bar)
I have a swf file which contains static text.... Now i want to encrypt and decrypt the static text available inside the output swf file.. Is it possible to do in AS 2.0 .... If it is means then provide some idea to perform these operations
I've just used the accordion component in flash to successfully load some external data into it.For the purpose I want to use it, the accordion is a good option.However, as you keep adding more and more elements into it (and, presumably, there will eventually be lots of them in this project), the headers start to take up more and more space, up to the point that you can't see the content.So yes, I made it so that the accordion adjusts its size depending on the number of elements it needs to display each time. And that works fine.BUT... then, there's a point where the accordion is just too big for the stage... so it doesn't fit, and you can't see part of it.I thought it would be possible to insert the accordion inside a ScrollPane, but I can't make it work.
The first step would be to put the accordion component inside a new MC. But when I do that and test the movie, I get a very weird behaviour of the component. It loads the content, but at first only half of the component shows up. Then when you click some items, they don't display properly and do weird things.Still, I went forward and tried to put that MC inside a scrollPane (gave the MC a linkage name, etc.), but still the scrollPane seems to display a "blank" accordion inside it, not the one with the content.Is it possible at all to get a working accordion inside a ScrollPane? If not, can you think of any other way to make the accordion component "scrollable" so that it can have whatever size is needed, and still be usable?
I have the following code for my buttons (not in a scrollpane), but when I try to add additional (addEventListener) strings to correspond with buttons in a scrollpane I get these error messages (1120: Access of undefined property smith. 1120: Access of undefined property thomas.). I've tried using the script in an actions layer within the MC inside the scrollpane to no avail
I have my scrollpane on the stage, I have created the mc and exported it and linked it to the scrollpane, I have created a button on layer 1 inside the mc linked to the scrollpane and I have created a 2nd layer for as3. Below is the AS3 that I have used. When I export the mc to view the scrollpane everything works apart from the buttons itself. I can see everything but the buttons wont link to the webpage.
AS3
import flash.net.URLRequest; btn1.addEventListener(MouseEvent.CLICK, goDesignSite); function goDesignSite(Event:MouseEvent):void
I have the following code for my buttons (not in a scrollpane), but when I try to add additional (addEventListener) strings to correspond with buttons in a scrollpane I get these error messages (1120: Access of undefined property smith. 1120: Access of undefined property thomas.). I've tried using the script in an actions layer within the MC inside the scrollpane to no avail.
I'm using a scrollpane for a loaded external swf file. Scroll works fine but I want to add exra buttons to control the file such as size and position. If this is regular movie you can simply add the instance name and call it but in this cane since it's inside of component I don't know how I can reach it... The component is named "mySp" and the loaded swfg file is called "photography.swf" which I set it up in parameters tab under "contentpath"
So i have a scrollpane with a movieclip in it. Inside the movieclip i put static text that says "Email Eric" and linked it with mailto:sales@signsetconline.com but when i test the movie it won't work. So basically i need to know how to link an email to something inside a scrollpane.
Is it possible to create anchor links in text within a scrollpane. I created text with a list of questions at the top of the list and answers at the bottom of the list. I want to be able to click on a question and jump down the list to the answer within the scrollpane. Similar to anchor links in html.
I need to use a ScrollPane in my site to show several photos.My site is set up to load MC's to the MainStage using attachMovie.One of my MC's is named Photos. If I add a ScrollPane to Photos with content called Pics (another MC containing all the photos.) it won't scroll What is the proper method of adding a ScrollPane to a MC called with attachMovie?
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.
I'm using the Adobe supplied scroll pane component. The scroll bar is too wide and I would like to change it. But I can't figure out a way to get to it.
I created a scrollpane which contains several different buttons. Each button does a simple timeline navigation, but won't function inside of the scrollpane. I just need each button to 'gotoframeandstop'. How can I make these buttons work in a scrollpane?
I have a ScrollPane component to stage and I give it as source a new MovieClip instance. How can I access the movieclip inside scrollpane? This is what I have so far but it returns null:
var regForm = new RegistrationForm(); regForm.name = "rForm"; regFormSP.source = regForm; var form = Object(regFormSP.content).getChildByName("rForm"); trace(form) // returns null
[Code]..
There is an object "instance20" as a parent to rForm...Why is that?
I have the following structure set up from the top down - one inside the other on the stage. All instance names have been assigned properly[code]...
I've been trying various combinations of this from the main timeline to get a response when I fire the link (card1_button1) but nothing works. This is the longest version with everything in the path[code]...
I am working with a scrollpane that loads dynamic content into holder mcs, I also have another mc that loads from library as a background for the scrollpane. It is not an image but a vector background generated entirely in Flash. I would like to have this background tile according to content length so that when you scroll you always see the image. I know this is a common task and normally I would solve it on my own but I'm not feeling very lucid today..
I have a MC that is too tall for my stage and want to place it inside a ScrollPane. The probelm is accessing functions inside the MC. I have tried scrollpane.content.mc.function but that doesn't work. How do you access a mc inside tghe scrollpane?
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.
how to build a button inside a movieclip. I have a template that has movieclips within movieclips, and when I create a button (all using AS2) the button will work if I test the scene, but in the whole flash movie it does not work. I also have some buttons located inside a ScrollPane that also do not call correctly.
I'm trying to understand how to build a button inside a movieclip. I have a template that has movieclips within movieclips, and when I create a button (all using AS2) the button will work if I test the scene, but in the whole flash movie it does not work. I also have some buttons located inside a ScrollPane that also do not call correctly.
I have a couple buttons that work outside of the ScrollPane but don't 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"; [Code] .....
I am using a ScrollPane that I want users to be able to scroll by clicking andywhere inside it. I have set up the pane like this:
[Code]..
I go on to show a few different SWFs on the source movieclip. These SWFs are spaced vertically by about 80 pixels each inside the clip. The scroll dragging is working fine when you click on one of these SWFs, however, it does not scroll if you hit the vertical space in between items. Is there a way to allow the scroll drag to work no matter where inside the scrollpane (or movieclip) the user clicks? I would rather not have to fill the empty vertical spaces with some blank SWF, or make the others have a greater height.
I'm using a movieClip inside a ScrollPane to show a list of CheckBoxes. The amount of CheckBoxes shown is dynamic, it depends on a SQL query. After the query is done, I add as many CheckBoxes as rows in the result set. What I am trying to do is to access some methods I wrote in the MovieClip inside the ScrollPane to get the length of the CheckBoxes, check which ones are selected and the label they have (their label is also defined by the SQL query).
I've tried this valueINeedToGet = Object(root).scrollPaneInstance.source.functionINeedToRun(); But it returns error #1006 How can I access the code inside the MovieClip inside the ScrollPane?
I'm a beginner actionscripter, so I hope you will take that into account when replying. The problem I am having is that a client has asked me to place a call to action button inside a textbox that scrolls. My idea was to create a movieclip containing the text and the button, then place that movieclip inside a scroll pane. I've been monkeying around with it all day and have made minimal headway. I'm not even sure of the best way to accomplish this.
If one of you learned actionscripters out there could point me in the right direction, perhaps I can find my own solution. The client wants me to use custom icons for the scrollbars, and as altering a scrollbar component seems like such a PIA, I'm trying to avoid using components.
I'm trying to create a draw program in AS2 where I can draw shapes with my mouse inside a Scrollpane. Furthermore, I need to be able to drag and drop these objects within the Scrollpane. Currently, I'm doing the following:
1) I created an empty movie clip called main and I'm attaching it inside the Scrollpane called scroll
2) I draw the objects inside another empty movie clip called p0, p1, p2, etc. which I'm attaching inside main. When I drag the objects around, they can be dragged outside the boundaries of the Scrollpane. How can I prevent that from happening?