ActionScript 2.0 :: Get OnPress From A Button Inside A ScrollPane?
Aug 3, 2007
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]...
View 6 Replies
Similar Posts:
Feb 16, 2011
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?
View 2 Replies
Apr 19, 2010
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.
For my button I am using this code:
facebookbtn.on (release) {
getURL("http://www.facebook.com/","_blank","GET");
}
[Code]....
^ This also does not work, with or without the button name before on(release).
View 1 Replies
Apr 19, 2010
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.
For my button I am using this code:
facebookbtn.on (release) {
getURL("http://www.facebook.com/","_blank","GET");
}
[Code].....
^ This also does not work, with or without the button name before on(release).
View 1 Replies
Feb 13, 2012
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.
View 2 Replies
May 5, 2011
I have a scrollPane on my stage, and I have a movieClip inside of it with a bunch of buttons. When you click on one of the buttons, I need it to gotoAndPlay a frame label on the main timeline. So far I cannot get this to work.
View 6 Replies
Mar 30, 2010
import 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.
View 3 Replies
Nov 5, 2007
[URL]
First, click on the Abaco island shape on the map. You'll see on rollOver there is a glow around the island. Now click on that island and the glow remains for the zoomed-in detailed view. When you return to map and zoom back out, the glow is removed.
Now, compare this with clicking on the island name "Abaco" from the list on the right, instead of clicking directly on the island from the map. It zooms in and shows the details fine, but the glow that should be there is not.
The reason this problem is very perplexing for me, is that the onPress action of the list button in the right column calls the onPress function of the map button. So, theoretically they should do the EXACT same thing when pushed. But clearly they don't.
Here is the code for the button from the list on the right panel:
Code:
listAbaco_mc.onRollOver = function() {
_root.map_mc.abaco_mc.button_btn.onRollOver();
};
[Code]....
There is more code, for example rollOver, rollOut, and Press actions for the other island buttons, but they are all of the exact same format as the Abaco island button and they all have the same problem.
So, to recap, the problem is that the list button in the right panel do not function properly onPress, even though they are calling the onPress function of the island buttons directly, and the island button onPress function works perfectly. Strangely, all but one little thing works. So it's obviously getting to the correct functions and going through the code as planned, yet that one part about the glow is being ignored or otherwise messed up.
View 12 Replies
Mar 18, 2006
Code:
function loadSWF(src) {
_parent.swfContainer.loadMovie(src);
}
[Coe]....
the code above ... the onPress button dont work dont know
View 5 Replies
Jun 22, 2010
I'm trying to write onPress for 4 buttons inside a for loop.
This lines traces undefined:
Code:
trace(_root.TeachMethodArr1[count]) // undefined.
This is because count is no more starting from 0 when I click the buttons.
Code:
var TeachMethodArr1:Array=new Array()
var TeachMethodArr2:Array=new Array()
TeachMethodArr1 = ["a","b","c","b","e"]
TeachMethodArr2 = ["a","b","c","b","e"]
for(var count:Number=0;
[Code] .....
View 1 Replies
Mar 31, 2011
I try to use onPress function inside an onLoadInit function but nothing will be traced. I can see my hand cursor over my icons though. I also tried with onLoadComplete, but no change...
[Code]...
View 0 Replies
Jan 17, 2010
how to do so by clicking on the button movieclip moved to x = 100; and when pressed repeatedly to x =- 150 event onRelease - not work:
[Code]...
View 9 Replies
Mar 10, 2009
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?
View 2 Replies
Feb 11, 2010
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
home.addEventListener(MouseEvent.CLICK, clickSection);about.addEventListener(MouseEvent.CLICK, clickSection);staff.addEventListener(MouseEvent.CLICK,
[code].....
View 24 Replies
Aug 10, 2011
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
[Code]....
View 8 Replies
Feb 11, 2010
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.
ActionScript Code:
home.addEventListener(MouseEvent.CLICK, clickSection);
about.addEventListener(MouseEvent.CLICK, clickSection);
[code].....
View 0 Replies
Jul 6, 2010
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"
View 1 Replies
Aug 13, 2009
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.
View 31 Replies
Aug 15, 2009
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.
View 2 Replies
Apr 17, 2010
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?
View 6 Replies
Jul 7, 2010
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 Replies
Mar 25, 2011
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.
View 3 Replies
May 19, 2011
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?
View 3 Replies
Jun 23, 2011
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?
View 1 Replies
Nov 7, 2009
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..
View 1 Replies
Jul 17, 2009
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?
View 12 Replies
Jan 30, 2010
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]...
View 3 Replies
Jun 29, 2010
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] .....
View 6 Replies
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.
View 1 Replies
Jan 6, 2010
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.
View 1 Replies