ActionScript 3.0 :: Linking To Frame In Parent MovieClip From Scrollpane

Sep 8, 2009

I have a Scrollpane with a movie clip inside of it and am trying to link to a frame in a parent movie clip and keep getting an error. I am linking it the same way I do any other links. I was using this code.
stop();
import flash.events.MouseEvent;
//-------------Home Button
home_btn.addEventListener(MouseEvent.CLICK, homeClick);
function homeClick(event:MouseEvent):void{
MovieClip(parent).gotoAndStop("home");
}
Is there something special I have to do because its linking to a frame FROM a scrollpane? Never done this one before.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Flash8 :: Button In A Movieclip Linking To Another Frame In A Parent Clip?

Sep 10, 2009

A movie clip called "Symbol_4" contains all of the navigation and frames of my movie.inside of Symbol_4 is a MC called "bottom scroller" which contains "imgbar" which contains "bar" which has a bunch of buttons in it.I want those buttons to link to different frames in the main "Symbol_4" MC.

I've tried putting code on a button like this

Quote:

on (release) {
tellTarget (this._parent._parent._parent) {
}

[code]....

There are no errors in any of this code, but nothing seems to work?!

View 2 Replies

ActionScript 3.0 :: Linking A Button In A Scrollpane To A Frame In Another Clip?

Mar 26, 2011

I'm sure I am missing something. I have created a scrollpane instance "Buttons_sp" and set the source in the properties panel to "SantaThumbs_mc" Set the symbol linkage property to Export for Actionscript and used the default assigned class name for the SantaThumbs_mc. On my main timeline I have another clip LargeSantas_mc that I want to access specific frames on when a button in the scrollpane is clicked.
 
The button listeners are on an actions layer in the SantasThumbs_mc and at this point I have only one button with active code so I know that the code is being seen when I test the movie, which it seems to be.
 
My button code is:

[Code]...

View 5 Replies

AS3 :: IDE - Linking To A Frame From A MovieClip?

Mar 8, 2009

I'm trying to link from inside my movieclip to a frame on the main timeline.The ActionScript is inside the MovieClip.

Code:
function gotoSite(e:MouseEvent):void{
gotoAndPlay("home");

[code].....

View 2 Replies

ActionScript 2.0 :: Linking Buttons Inside A Movieclip To A Root Frame?

Feb 18, 2009

I've been working on a new issue while giving a break on cracking the other one.I have a movie clip acting as a button with rollover/rollout animation- we'll call it menu_mc for simple reference.I'm basically creating a rollover submenu. I've set it up a few different ways but the most user friendly has been hiding the submenu_mc (which has 4 linked buttons to root frame inside) by doing:_root.sub5_mc._visible = false;then inside the menu_mc with the rollover I have the submenu trigger set to show: _root.sub5_mc._visible = true;The links are working fine but the problem I am running into, is that the rollover state, once over the submenu_mc, does the rollout function and leaves the submenu_mc hanging there by itself- still functioning perfectly.You can go back over the menu_mc and it will play out the rollover again.On the other simple animated buttons (which do not have submenus) I have coded:

on(rollOver) {
_root.sub5_mc._visible = false;
}

[code].....

View 3 Replies

ActionScript 3.0 :: Scrollpane Linking External .SWF

Jun 17, 2009

i am working on a flash website with actionscript 3.0. i am using a scroll pane to view a external swf file that has buttons that move forwards and backwards through the swf. my problem is that when the naviagtion buttons are clicked the page changes but is at the bottom of the scrollpane. i want the verticalPostion = 0 so it starts at the top of the next page but don't know how to do this. this is the code for my

[Code]...

View 9 Replies

ActionScript 3.0 :: Linking - Calling An Specific Frame Or Movieclip From A Loaded Xml File?

Apr 28, 2010

Anyone knows if there's a way of calling an specific frame or movieclip from a loaded xml file? I have some xml text loaded to my flash site and i want to have a link in this text that when clicked loads a comment form that is in a different frame in the timeline. I've been looking and googling and i havent found any solution to this.

View 1 Replies

Professional :: Linking From A Swf In A Scrollpane To Positions On The Main Timeline?

Jan 30, 2010

I have a scrollpane where I have loaded a swf of many small images that are set up as buttons.How do I create the link between this swf/actionscript to the main fla/timeline that the scrollpane is contained in?

View 1 Replies

Flash :: Way To See Final Frame Of MovieClip From Its Parent Timeline?

Jun 9, 2011

I work on a truckload of flash banners and have progressed more into dispatching events from the final frame of a MovieClip that would contain an object (or collection of closely related objects) animating and then listening for them from the parent timeline so that I know when to continue the main animation etc.In the animation I'm working on currently, there's a car built from blocks over time (the blocks fall from the top of the banner to make up the car); this is all contained within one MovieClip (to make the resizing easier - all I'll have to do is move the entire MovieClip around).The problem is that when I place this MovieClip onto the timeline, it's represented by its first frame (which is nothing because no blocks have fallen yet). This makes it hard to work with because I can't really tell exactly where the car is going to be when the animation is done and so on.Is there a way to have the final frame of this MovieClip visible from the outer timeline?

View 3 Replies

Flash :: Way To Add A Movieclip At Frame "n" Of Parent Movieclip Without GotoAndStop()?

Nov 24, 2011

Is their any way to add a movieclip at a frame n ( n > 1) of a parent movieclip, without using gotoAndStop on parent movieclip ?

View 1 Replies

Flash - ScrollPane Component Required In Library Even Though It Is Not Being Used By Parent Movie?

Apr 19, 2010

note: all as3 is written in CS4 and compiled for flash 10.I have a parent movie that loads a separate standalone SWF movie. This standalone movie happens to use the ScrollPane component (fl.containers.ScrollPane), and it runs correctly when launched on it's own.When I attempt to have a Parent movie load the standalone SWF, i receive a run-time error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::ScrollPane/drawBackground()
at fl.containers::ScrollPane/draw()
at fl.core::UIComponent/callLaterDispatcher()

I understand that this error can be avoided by adding the ScrollPane component to the Parent Movie library. My question is why is this necessary? If the component is only used in the standalone SWF being loaded by the Loader class, why does the Parent movie require the component to be in the library as well?

View 1 Replies

ActionScript 3.0 :: Make Flash Child & Parent Linking?

May 29, 2010

Im working on a small project & Im not good in AS3. So please bear with me, I tried searching but cudnt find the keywords for this function.I have a Parent.swf that loads a Child.swf on the main stage of the Parent.swf that works perfectly with this as3.0.

PHP Code:
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("external/child.swf");

[code].....

View 1 Replies

ActionScript 3.0 :: Error 1120: Access Of Undefined Property Parent + Movieclip(parent)?

Mar 15, 2011

I am trying to access a function that is on my document class for my AS3 project, from a nested class. That is, the Document Class calls Class A which then calls Class B. So I am trying to access a function from Class B, I am trying to use MovieClip(parent).function(); but I am getting error 1120. The MovieClip(parent) (fixed to reflect my document class, etc) works when I try it from other classes but not from this nested class.

View 9 Replies

Actionscript 3.0 :: Parent.parent.movieClip.visible = False; - How The Heck Do Climb The Ladder Then Go Back Down Again Into Another Clip

Dec 10, 2009

I've struggled with this for a long time and have thrown in the towel. How the heck do you climb the ladder, then go back down again into another clip?

View 2 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

ActionScript 3.0 :: Object Created In A Frame's Actions Telling Parent Frame To Delete It?

Jan 21, 2009

I've got an object (an instantiation of my own class that extends Sprite) being created in the actions for a frame, like this:

Code:
import Scripts.CFoobar;
var foobar:CFoobar = new CFoobar();

[code]........

View 2 Replies

ActionScript 1/2 :: ScrollPane Position Buttons In Another Frame?

Nov 6, 2011

I've been looking everywhere but not solved my problem:In frame "2" I've got a ScrollPane with a long external sfw text scrolling. At his side I have buttons that links to a certain position of the scroll so they have:

on(release) {
ScrollPanename.vPosition=200;
}

(where 200 is n°of pixel down from the top)My problem is that I'd also like to have those shortcuts buttons on frame "1" (main menu) so they can jump directly to the ScrollPane position in frame "2" by press.

View 3 Replies

CS3 Next Buttons - Linking To Next Frame

May 20, 2009

I have got a very simple flash timeline, on each frame is a different page of a book. There is four pages alltogether. I am trying to create 'next' buttons so that the user can flick through the book.

This is the code I have used:

stop();
btn_1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);

[Code]....

View 1 Replies

Linking A Button To A New Frame?

Oct 27, 2009

I am currently building a website in flash for a school project and it has to be on a timeline. I was wondering if you could help me i have buttons at the top of the page how would i link these to another frame so it can be used as a new page

View 6 Replies

IDE :: Linking To A Certain Frame When Loading A Swf?

Mar 4, 2009

I have a main movie in which all my buttons are, this movie loads the other swfs in a contentHolder movie clip.Now the problem is that I need to link to a certain frame in the loaded swf.

button_btn.onPress = function() {
contentHolder.loadMovie("investment.swf");
};

Now in the investment.swf I want it to go straight to frame 5. I have done lots of looking online, but cant seem to find the answer. I think I need to use variables but am not sure

View 1 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 :: Import Frame Based External Swf File To Scrollpane For Flash?

Mar 15, 2010

i'm using pdf2swf but i can't import external swf frame per frame in scrollpane like to scribd[URL]

View 1 Replies

ActionScript 3.0 :: Linking Xml Driven Fla To A Frame?

Nov 5, 2009

I have an accordion menu fla, I copied the fla into my main fla so I have one file. The menu has external links that can be added in the xml file which is great but I need to link the menu from within the fla it is in. I need to have each mc or button in the menu link to a specific frame within the .fla I see now in order to do this I have to edit the actionscript within the menu. I'm new in AS3 but from my little experience in it I think I need an eventlistener that calls a function which will send the each instance to a frame inside the file.

Here is the original

[URL] (skip the crappy intro) and you will see 4 photos in an accordion. They link to separate galleries with no back buttons

Here is my remake [URL]

my version calls links thru an xml file which I posted above.

The file is in AS3

it is here [URL]

So I would need to link the 4 mc's in the menu to separate frames main.swf

View 1 Replies

ActionScript 3.0 :: Linking Swf To Another Swf Scene And Frame?

Sep 17, 2010

How would I link a swf to another swf's scene and frame?

View 2 Replies

IDE :: Linking Back To Flash Frame From XML URL?

May 27, 2009

I am but a lowly martial arts instructor who has 'foolishly' decided to try and do our website. I decided to use a flash template which has actually worked out ok (word to the wise - DON'T BUY FLASH TEMPLATES UNLESS YOU ARE WILLING TO KISS YOUR LIFE GOODBYE FOR A COUPLE OF MONTHS).

Anyway, I wanted to put a news ticker on the site to display 'latest news' - I took an example that was kindly supplied from this site, and it works fine. However, I just cannot figure out how to create a link in the XML file that when clicked takes you back into another part of the flash site. I can get it to link to an external URL no problem at all but just cannot get the link to take it back to a section of the site I want it to go to.

[Code]...

View 5 Replies

Linking A Drop Down Button To A Frame Using ActionScript 2.0?

May 11, 2009

I have a drop down movie button that shows the drop down when scrolled over but i cannot get the drop down buttons to link to the relevant frames.My current script on the dropped down button is

on (release) {gotoAndStop(6);
}

which does nothing.

View 1 Replies

Create Popup Linking To Another Frame From Text?

Aug 25, 2010

I'm trying to link some text within a textbox.  When the user scrolls down all the way to the bottom with the scrollbar  and hits the text it opens an popup linking to another frame in the project.  Basically Im trying to add some additional information relating to an word a sentence.

View 3 Replies

Linking Text To Another Frame And Opening Popup?

Aug 25, 2010

I'm trying to link some text within a textbox. When the user scrolls down all the way to the bottom with the scrollbar and hits the text it opens an popup linking to another frame in the project. Basically Im trying to add some additional information relating to an word a sentence.

View 1 Replies

ActionScript 2.0 :: Linking .swf And Jump To Specific Frame?

Apr 13, 2010

I have been researching this for hours and cannot seem to find an answer anywhere. Right now I am linking one flash file or .swf file within my main flash site using a button.So in my main flash site, I connect to this .swf file by using...

on(release){
loadMovie ("MDsite2.swf", _level0);
}

This works perfect but the .swf file starts at the first frame. Is it possible to a jump to specific frame within that .swf file so it doesn't start on the first frame?

View 2 Replies

ActionScript 2.0 :: Linking To A Frame In Scrolling Text?

Jan 30, 2003

The first problem I have is I have created a scrolling text box - it's a list of items - and I want the user to be able to click on an item and then a specific frame load that relates to that item.

I'm sure this is possible but at the moment I can only work out how to add a normal html link inside the external text file so when clicking on the link it loads an actual webpage.

View 2 Replies







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