ActionScript 3.0 :: Buttons Within A Movie Clip Within A Scrollpane Within A Movieclip
Nov 12, 2009
I'm in desperate need of some help here. I've been working on a website for months and I'm so near the end, but I just need to rectify one problem (and judging by my google searches for the past two days, it seems to be quite a common problem). I'm pretty much a novice/beginner when it comes to actionscript and need some help to figure this out.I have a movie clip (called 'CLvertlist_mc') which is simply some text and buttons. This movie clip has been placed inside a scrollpane, which sits inside another movie clip ('Client list 2'). Also sitting inside 'Client list 2' is a third movie clip called 'clientlist_mc', which has a few different labelled frames in it.Now, I want to get the buttons in 'CLvertlist_mc' to link to the labelled frames in 'clientlist_mc'. At the moment I've put an actions layer in 'Client list 2' with the following actionscript:[code]'clb_cch' is the instance name of one of the buttons in 'CLvertlist_mc', and 'SM' is one of the frame labels in 'clientlist_mc'. I keep getting a 1120 'access of undefined property' error.
View 3 Replies
Similar Posts:
Jul 6, 2009
I'm trying to use the scroll pane component for the first time, and I've spent most of the day getting nowhere. Based on my experience with other components and with loading content into movie clips, I expected that I would point my scroll pane to its content and be off and running, but that hasn't happened.
[Code]...
View 4 Replies
Sep 13, 2009
i have made all my buttons by movie clips and all the different pages movie clips, but i have movie clip buttons, inside those movie clip pages, and cannot figure out how to make these movie buttons inside the movie clip work when that specific page is loaded, the"links" inside that movie clip page, how do i make that link to go to the next page.
View 0 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
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
Nov 2, 2009
I am new to actionscript 3.0 and am having problems when adding a scrollpane to my flash file. I want to scroll a movie clip. My scrollpane instance is aSp and my movie clip name is vendor_scroll. This is what I have:
import fl.events.ScrollEvent;
aSp.setSize(245, 458);
function scrollListener(event:ScrollEvent):void {
[code].....
View 2 Replies
Oct 27, 2011
im currently working on building a search app which allows filtering of a list of products.
NOTE: shift+leftClick to drag and reorder the lists, just left click to use scrollbars and buttons.
[URL]
here is a preview of the stage as it is at the moment.
when the scroll pane is created (dynamically) i also create a new instance of my own class which is as follows . . . (the content for the scrollpane)
ActionScript Code:
package {
import flash.display.*;
import flash.events.*;
[Code].....
holding shift and clicking allows you to drag the scroll panes into a different order. clicking one button in each of the scroll panes works fine. if you try clicking a second button in either of the scroll panes you will notice you have to click twice.
View 0 Replies
Nov 19, 2010
i am trying to import an external movie clip in a scrollpane in my flash movie my external movie is an animated sequence which expands on click of a button much like a data tree but here its just images so now i want that when someone clicks on the expand button the scroll should appear but i ran into this problem that the swf load perfect but no matter what i do the scroll either doesn't appears or even if its there it won't scroll through the complete swf rather just 5px in vertical i defined a few basic properties in AS and some through the property inspector Check the attachment below if u want to
View 1 Replies
Mar 30, 2011
I am making several movie clips that are linked to scroll panes.All of the content is text.I have one movie clip that is a bit longer than the others and if I test the movie a good deal of the text is CUT OFF.This ony happens with the long text movie clip. Is there somewhere I can change the lenght parameters?
View 3 Replies
Feb 13, 2009
here is my issue, so i have a main page with a slideOut movieclip which basically is a movie clip button and the "over" state sends a tray out of the movie clip with info and anothe rmovie clip button. i cant seem to get that movie clip button to root.gotoAndPlay("frameLabel");i have the actionscript on the same frame as the movie clip i need to act as a button. but it just doesnt seem to react to it.i have tried going to the main timeline and doing
blank_mc.blank2_mc.onRelease = function();
{
_root.gotoAndPlay("frameLabel");
[code]....
View 4 Replies
Mar 15, 2010
I need t draw a rectangle on a movie clip(board_mc) by dragging mouse over it......It works fine till here but I want to put the movie clip(board_mc) in scrollpane.
but after doing so the code doesnot work....can u plz guide me how to make this code work after placing the movie clip (board_mc) in scrollpane(say board_scp).
[Code]...
View 5 Replies
Aug 27, 2009
I am trying to place buttons inside a movie clip to control the timeline of the same movie clip. This does not seam to work like buttons on the main timeline. When I play the movie the cursor does not turn into a hand and the rolloever affects only sort of work. I have read about controling the movie clip with buttons on the main timeline, but I need one of the buttons to change halfway through the movieclip. I want to be able to jump to interior shots while in the exterior section and vice versa. It would seem that button would work the same way inside a movie clip as they do on the main timeline, but that does not appear to be the case. I am using CS3. Action scrip 2.0 is selected, but I could change it to 3.0 if it would make a difference.
View 6 Replies
Aug 7, 2009
I have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function
I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0
View 9 Replies
Jul 25, 2007
I am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?
[Code]....
View 2 Replies
Feb 19, 2008
I used the Kirupa Tutorial for Advanced Rollovers to create my navigation menu and within one of the movie clips I have additional buttons that show up on the roll over.I know that you need to place the onPress code on the frame that the buttons actually live. I have a trace("mix_btn: "+mix_btn); to find out if the button is being found.
My problem is that I dont know how to get the code below to actually dynamically load and external SWF into a container on the main timeline. A friend of mine suggested a MovieClipLoader or onLoadInit Handler but I have no idea how to use those. (I'm a noob and proud of it!). (this is my latest version of a onPress.)
Code:
mix_btn.onRelease = function() {
_root.createEmptyMovieClip("container", getNextHighestDepth())
loadMovie("musicMixes.swf", container);
[code]....
View 1 Replies
Oct 3, 2009
I'm trying to get buttons to redirect the user to another part of my site. However, the button is in a movieclip and won't work. URL..I've been trying to get it working for ages and it just won't work. I've even made other buttons (as you can see on the site), and they work!
View 1 Replies
Jan 16, 2009
I have a movie clip & inside that movie clip, some Images are moving around the stage. I want these images to act like buttons, so that when we click on them we can go to URL link. First I stopped my movie clip on mouse rollover, which is working fine & for buttons I converted these images to movie clip ( yahoo_mc) & gave action Script
on (release){
getURL("http://www.yahoo.com ", "_parent");
}
[code]...
View 1 Replies
Nov 25, 2009
I imported the .MOV clip (a 3D rotation) into the library, and I would like to be able to control where the rotation stops, by use of a slider or clicking a button
View 4 Replies
Jun 3, 2011
I'm trying to put buttons on an intro movieclip for a game and I keep getting errors saying they are undefined like this: 1120: Access of undefined property.
View 4 Replies
Jul 8, 2011
I have 3 layes in my file, the first one has a movie clip, the 2nd has few buttons and the third has the background image. When i rollOver the first layer with the movie clip, it zoom the entire movie. if i rollOut then it zoom out. the problem is that the buttons behind this movie clip don't work. They are placed in the layer under the first layer with the movie clip. Is there any way to make these 2 layers work, the movie clip and the Buttons? The layer with the movie clip need to be at the top. I am working with AS3. if you have any idea please let me know.
View 2 Replies
Jan 22, 2008
using AS2, I need buttons inside a movie clip to jump to a particular frame in the scene.I've got the obvious:
on (press) {
gotoAndPlay(15);
}
I just don't know how to tell it to affect the scene and not the movie clip.
View 1 Replies
Feb 17, 2009
I have created several buttons using movie clips with animations and the 'rewind=true'method when someone mouses off. What I am wondering is, if I have 2 buttons on the stage and I want to animate both of them if one or the other is moused over at the same time, how can this be accomplished
View 1 Replies
Mar 17, 2010
I'd like to know if it's possible to have several buttons in a single movieclip that can interact with things outside of that movieclip? An earlier test failed due their instance names not being found, I'd like to think it were possible though.
My reason for asking is that I'd like to control the visibility/position of a large group of buttons simultaneously via AS3 while keeping to a single frame.
View 1 Replies
Aug 25, 2010
My buttons work fine in the main time line, but I need to place them in frame 1 of a mc_pages, I get an error about it saying "the statement must appear within on/onClipEvent handler". And I just can't figure out how to do that to save my life. If pc's were cheap their would be a pile of them outside on the curb. I'm thinking I need to split up this action and place some on frame 1 of the main time line and keep some for for my button on frame 1 of pages, but what part? how?
My button loads a new swf in the mc placeholder.
btn01.onRelease = function () {
// let's first unload the current movie, to refresh the cache
(placeholder.unloadMovie());
// SETUP THE MAIN VIDEO PLAYER
autoPlay = "true"; //
autoLoop = "false"; //
[Code] .....
View 9 Replies
Jul 5, 2009
script that would allow the user to clikc and drag mulitple symbols- similar to this:
on (press) { startDrag (this._parent, false);}
on (release) { stopDrag ()}Only that instead of using "this", it drags the following symbols on mouse click:
background (a movie clip)[code]..............
View 2 Replies
Sep 4, 2009
I have a screen with transparency that pops up over a movieclip full of buttons.I need to disable the movie clip and/or buttons so they don't function when the pop up comes up.Can't get it to work with this code:
myMC._enabled=false;
or
myMC.myBTN._enabled=false;
[code].....
View 11 Replies
Mar 8, 2011
Having a bit of a problem with a project. At the moment I have a draggable map which is a movieclip, within the movieclip I have added a range of icons for hotels, restaurants, etc.I am having a problem linking these icons so that they will take you to the correct point on my main timeline. I've converted the icons to buttons and added the script below, but it doesn't seem to be picking up that the icon is a button. I think it may have something to do with it having a start/stop drag on it.
View 4 Replies
Apr 12, 2011
I have some buttons, and above them a movie clip with a 20% transparency which I use for some graphic effects in my page. But the buttons can't be accessed (they are not working) because the layer covers them.I have used the following code to disable the graphic layer:overlay_mc.buttonMode = false;overlay_mc.enabled = false;overlay_mc.mouseEnabled = false;but none of these solves the problem. The buttons are still covered and inactive.
View 3 Replies
Apr 20, 2011
I am building a website in flash for a design class (emphasis on design, nothing taught with actionscript)
I need help trying to figure out the actionscript for allowing buttons inside a movie clip symbol to navigate pages at the parent/root/main timeline level.
With this site I have the mainMenu as a Movie Clip symbol and have the menu items populate with animation inside the movie clip. I need these buttons when pressed to navigate to different parts of the site that are controlled on the main level of the site (outside of the movie clip the buttons reside in).
I have given the buttons instance names, btnDining in the movie clip symbol. The movie clip symbol is call mainMenu. In the main level, I have labels for the different states/pages I want the website to have (dining, accommodations, etc)
[Code]...
I don't know if it is best to run the code from inside the movie clip symbol and call the different view on the main stage/level of the flash or if I try to run from the main stage/level and reference the buttons inside the movie clip symbol.
Please help me figure this out, I am trying to go a little above and beyond on this project. I have been struggling on this for days and I have looked at tutorials, books I have on actionscript, etc.
View 5 Replies
Apr 24, 2011
I'm having an issue with some clickalbe movie clips that are dynamically being placed on the stage with dynamic TLF text boxes being placed in them. The TLF text boxes seem to be blocking the event listener attached to its parent movie clip. If I leave out the TLF text the event will trigger.
public function set myText(_txt:String):void
{
_myText = _txt.toUpperCase();
[code]....
View 2 Replies