Flash :: Button Inside Movieclip Used As Part Of A Scrollpane?

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


Similar Posts:


ActionScript 1/2 :: Accessing Button Inside Movieclip/ScrollPane

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

Professional :: Accessing Button Inside Movieclip/ScrollPane

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

ActionScript 3.0 :: Click A Button Inside A Scrollpane And Make It Load A Swf Outside The Scrollpane?

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

Flash :: Access The Movieclip Inside Scrollpane?

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

Flash - Access Methods Of MovieClip Inside ScrollPane?

May 9, 2011

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?

View 1 Replies

ActionScript 3.0 :: Flash Button Inside MovieClip Inside MovieClip Doesn't Dispatch Event

Jan 25, 2012

I have a Button that is inside MovieClip1 which is inside MovieClip2; yet when i click the Button it doesn't dispatch Event.

View 5 Replies

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

ActionScript 3.0 :: Accessing MovieClip Function Of A MC Inside A ScrollPane?

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

ActionScript 3.0 :: Buttons Not Working Within MovieClip Inside Scrollpane

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

ActionScript 3.0 :: Buttons Not Working Within Movieclip Inside Scrollpane?

Jun 29, 2010

I have a couple buttons within a movie clip of a ScrollPane that are not working. This is my exact code, how do i get them to work?

***************************
scrollPane.source = myContent;
scrollPane.setSize(173,500);
K1Button.addEventListener(MouseEvent.CLICK, playVid);

[code]....

View 1 Replies

ActionScript 2.0 :: How To Show MovieClip Inside Created Scrollpane

Jan 10, 2004

I create a super simple .fla using flash MX 2004 professional. I put this code under the button I created.

on (release) {
var mc = _root.createEmptyMovieClip("trianglemajor", 1);
mc.createEmptyMovieClip( "triangle", 5000);
with (mc.triangle) {
lineStyle (5, 0xff00ff, 100);
[Code] .....

I just see a blank screen when I click on the button. My objective is to show the movieclip mc inside my created scroll pane?

View 3 Replies

Button Inside Of ScrollPane To GotoAndPlay Frame On The Main Timeline?

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

ActionScript 3.0 :: TextField Inside ScrollPane - Scrollpane Wouldn't Scroll To The End?

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

ActionScript 1/2 :: Move ScrollPane Left And Right Through MovieClip Or Button Instance On Stage?

Apr 7, 2012

I am using ScrollPane component of as2.0, but I want to move the scrollPane left an right by clicking external button does it possible? this button can work like the functionality of LeftArrow anf RightArrow in scroll pane.

View 1 Replies

Flash - Scrollpane - Allow ScrollDrag When Clicking Anywhere Inside The Pane?

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

Flash :: Access Dynamically Loaded Movieclip (stage > Scrollpane > Myloader > Movieclip)?

Oct 16, 2011

what I'm trying to do is accessingsnapText = scrollPane.source.textSnapshot;from an external swf. I've tried:

trace("-->: "+scrollPane.source.textSnapshot.getText(0, 1000));
trace("-->: "+myLoader.content.textSnapshot.getText(0, 1000));
trace("-->: "+mc.textSnapshot.getText(0, 1000));

[code].....

View 3 Replies

Accessing MovieClip Inside Button Object In AS3 (Flash CS4)

Apr 7, 2011

I want to dynamically load the graphic of the button into an mc inside each frame of the button (up and over). Inside each frame I have a movie clip (canvas and canvas_over). The green box is the button object (header_btn):

This is my code:
var hLoader:Loader = new Loader();
hLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, hLoaded);
hLoader.load(new URLRequest("[URL]"));
function hLoaded(event:Event):void {
[Code] .....
It would be nice though if as3 allowed for buttons to contain objects.

View 1 Replies

Flash :: Get Button In Movieclip To Go To Another Frame Inside The Same Movie Clip

Dec 16, 2011

I have several website pages set up on different frames inside the content (which is a movieclip) of the home page - which is on frame 1 of the main timeline. The content movieclip name is contentMc.

My About page is at frame 10. There is a button on this page (called btnAbout_contactpg) that I want to make jump to my Contact page (frame 50) - all of which is nested under the main contentMc movieclip.

This is the pathway on my contentMc (where all of my pages are located), just in case that doesn't make sense: [URL]

I have looked at several different instructions online, but none of them seem to work.

EDIT:

I am also trying to get a button on my gallery page to load an external image, but it is not recognizing where the button is either:

btnGallery_1.addEventListener (MouseEvent.CLICK, showPic1);
function showPic1 (e:MouseEvent) {
var target:Object=e.target;
var parent=target.parent;
my_loader.load(new URLRequest("image-0.jpg"));
}

View 1 Replies

Actionscript 2 :: Show Tooltips Inside A ScrollPane Without Letting Flash 8 Hide Tooltip?

Dec 23, 2011

I have the content of a scrollpane that, when clicked, show a tooltip movieclip with attachMovieClip; the problem is that the attached movie clip, for the first rows, goes under the border of the ScrollPane and is partially invisible.

Is there a way to solve this problem (without changing the position of the attached movie clip?)

View 1 Replies

ActionScript 2.0 :: Button Inside Button Inside Movieclip?

May 14, 2005

I have a button inside another button which is inside a movieclip. *whew*I have it so that when you click on the movieclip, a dialog box pops up. I have two buttons on the dialog box, but for some reason you can't click on them and when you do, the dialog box just disappears. Here's a picture of what I'm talking about, so how do i get the "YES/NO" buttons to work? Oh, the buttons are not included in that Graphic

View 6 Replies

ActionScript 2.0 :: Create An "hitTest" Script Inside A Movieclip That Is Actually Part Of That HitTest Code?

Jan 15, 2009

i just would like to know how to create an "hitTest" script inside a movieclip that is actually part of that hitTest code?I mean... I have mc A, and mc B. and the current hitTest code im using (that is on the timeline) makes mc A, destroy mc B when collide with it... but there are many mc B on the stage (with the same instance name) so, when mc A collide with one mc B, it destroys ALL mc's B... but i want it to destroy only the mc B that he collides, not all the others... maybe an hitTest script inside a movieclip B would work (somethig like "if MC A hitTest ME = i die" (not all the others)).

View 1 Replies

ActionScript 3.0 :: What The Code Is For Having A Button Inside A Movieclip Not Active While The Movieclip Is Tweening

Jun 23, 2009

I have been using TweenLite for all of my easing. I was wondering what the code is for having a button inside a movieclip not active while the movieclip is tweening.Then when the movieclip does finish tweening the button then becomes active.

View 2 Replies

ActionScript 3.0 :: Get A Button Inside A Movieclip Link To A Frame In Another Movieclip On The Scene?

Feb 16, 2010

How can I get a button inside a movieclip link to a frame in another movieclip on the scene? I tried this code:

function gotoCenter(event:MouseEvent):void {
MovieClip(root).centermc.gotoAndPlay(2);
}
skruetest.addEventListener(MouseEvent.CLICK, gotoCenter);

..where "skruetest" is the button, "centermc" is the movieclip where I want to go to frame 2. I don�t get errors with this code, but nothing happens when I click the button. What can I do?

View 4 Replies

ActionScript 2.0 :: Button Inside Movieclip To Control Another Movieclip's Timeline?

Oct 23, 2009

I have a button inside a movieclip, to which I would like to apply a rollover function. When rolled over, this button (inside MOVIECLIP 1) would make (MOVIECLIP 2) jump to second frame. I'm using Flash 8.This is turning onto a real headache for me, since i've searched every single forum and thread concerning this matter, and nothing seems to work.

View 7 Replies

ActionScript 3.0 :: Flash MovieClip With Scrollpane - ListMC?

Dec 20, 2010

I have setup a flash MovieClip with a scrollpane in it, and another MovieClip that run's a FOR loop to create a list of buttons dynamically. I have the script pull the dynamic MovieClip and load it as a source to the scrollPane but the scrollbars are not appearing. To make sure that the scrollpane was working, I added an event listener to the scrollpane that when I clicked it it will run scrollPane.invalidate() and the scrollbars will pop on.

So here's my problem/question: If I'm dynamically adding a listMC to this scrollPaneMC, how do I get listMC to throw the invalidate() to the parent scrollPaneMC? Here's another way to look at it: Root adds a child scrollPaneMC. ScrollPaneMC uses listMC as a source from the library. listMC run's its FOR loop and dynamically creates a list and appears in the scrollPaneMC, but no scrollbars.

View 1 Replies

Flash :: Capturing A Part Of A Movieclip?

May 10, 2011

I have a movieclip on stage. Its 500x400. It has many children of diffent sizes added to it. How can I capture the area 300x200 of the movieclip from (0,0). Suppose there was a child at (100,100) of width and height 300 then I should be able to see from this child from 100 to 300 and 100 to 200 respectively. The rest of the area is not needed. I should be able to manipulate the captured image later. So I guess I have to capture it as a Bitmap. But how can this thing be done.

View 1 Replies

CS3 Inserting An Accordion Inside A ScrollPane?

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

ActionScript 3.0 :: Using Buttons Inside Scrollpane?

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

ActionScript 3.0 :: Hyperlink Inside A Scrollpane?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved