Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Framejump In Parent Window At End Of Movieclip In Frame 1?



The titles says ist all. I want to place a movieclip on the first frame of the file, and in this movieclip a certain animation takes place. when this animation is finished I want the parent window time line to jump to another frame. Does anyone know how to do this? I only know how to make a framejump with a button, but i think this can certainly be done, i just dont know how



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 11-29-2006, 08:21 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Parent Won't Acknowledge Button Within MovieClip Unless It's In The First Frame
I'm pretty new to Flash and ActionScript, so I'm probably not describing this problem in the most understandable way possible, but I'm developing a two-level menu that has several items which can be clicked to load content. The top-level items all work fine, I can add event listeners to the buttons and get input from them. However, the second-level buttons (which are not in the first frame of the MovieClip) don't seem to be accessible from the parent MovieClip. When I try to add an event listener to them, I get a "TypeError: Error #1010: A term is undefined and has no properties." (I'm positive that the instance name is present and correct).

Does a button need to be present in the first frame of a MovieClip for the parent to be able to access it? If so, how do I get around this? The only thing that has worked so far is to put the buttons in the first frame of the MovieClip, but it kind of defeats the point of an animating menu.

Any ideas? Thanks in advance for answering what is probably a stupid question!

Dynamically REMOVING Children From Parent Containers? MovieClip(this.parent.parent...
EDIT: actually, this isn't really dynamic... it should be really simple!

I can get a nested swf to add a movie to the root timeline, but in order to replace it with a new movie, AS3 first requires that I clear the old one. I can't figure it out!

This does not work, though it is the exact same format I use to add a movie to the root successfully:

Code:
MovieClip(this.parent.parent.parent).removeChild(MovieClip(this.parent.parent.parent).loadMovie)
Any idea why this doesn't work?

Link In Pop-up Window (flash File) Target=parent Window
I have a flash demo that is opened from our web site and spawns a new window. At the end of the demo is a link that directs the user to "get more information." I would like this link to open the "more info" page in the PARENT window rather than the spawned window. Currently I have my Flash link coded with:

on (release) {
getURL ("http://www.hiddenmind.com/materials.html", _parent);
}


This is not working. Do I need to add some code to the parent window and/or the HTML page where the Flash file is embedded?

Thanks for your help! I can't seem to find the solution

Passing Variables From Spawned Window To Parent Window
Is it possible to pass a variable from a child to a parent window.

I have one page (Index.html) with a swf (index.swf). A button on the index.swf launches demo.html containing a demo.swf. When the user gets to a certain point in demo.swf, I need to tell index.swf that it has arrived. Is this possible.

Any suggestions are appreciated.
Cordially,
Jason

GetURL - Targetting The Parent Window Of Popup Window?
Hello!

Yet another thread on getURL but I did a search and couldn't find anything related to my question, so here goes...

I have a website which launches a 900x400 popup window which contains an interactive flash movie. From within this movie, I am loading in HTML from a text file which populates a scrolling textfield.

I was pleased to learn that href links within the text file work as links within the flash textfield. What I want to do is have these links open in the parent window that spawned the popup.

If I use target=_blank on these links, the pages open up in a new browser window.

If I use target=_parent on these links, the pages open up in the same popup window and obviously replace the flash movie content (goes to the link instead of launching it in the parent window).

Is it possible to use the _parent target to launch these links into the main website that spawned the popup or is _blank the only one?

If anyone has any tips or experience on this matter it would solve a huge headache for me.

Thank you!

Flash Reload Parent Window + Close Window
Hi i got a quesiton.

I have an asp page that will open a new asp page in a new window that contains a swf file with a button.

When the user clicks the button i want to close that window and reload the parent window. Any ideas on how to achieve this in flash ?

Thanks

Object Created In A Frame's Actions Telling Parent Frame To Delete It?
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();
addChild(foobar);

stop();
CFoobar then creates and manages some buttons, etc. At a certain point, CFoobar knows it's time has come, and it wants to be deleted, and have the frame go to another frame.

What's the best way to have it do this?

[F8] Target Parent Window From Popup Window
I launch a popup window from a flash movie in the main window. When I close the popup window, I need to target the main movie to go to the next frame, depending on weather the the movie in the popup has played to the end. I tried making use of Javascript with a url quaryString when opening the popup:
window.open("popup.swf?variable1=stringvar")
I also tried Flashvars in the param and embed tags, but do not know how to send the flashvar to the popup. Then update the Flashvar when the movie in the popup is done. Then when I close the popup, communicate with the movie in the main window to go to the next frame.

This need to be done without php, cause I need to deploy this in a LMS environment.

Child Window Redirecting Parent Window
I have made a movie that gets launched from a browser window. In this movie is a button that when clicked needs to close the window and direct the parent window to go to another address. I am using this code to close the window..

on(release){
getURL("javascript:window.close();");
}

but dont know how to get the parent window to go to another address
at the same time?

Help!

dzinr

On Click Closes Pop Window And Changes The Parent Window URL
Question about having a pop up window display flash movie, button within movie having the function of on click closes pop window and changes the parent window (which pop up came from) to navigate to new url. Having trouble with the parent changing. any ideas?

Thanks,
MT


Code:
ready.onRelease = function () {
getURL("javascript:window.close()");
getURL("http://www.google.com" ,"target_parent");
}

Child Movieclip Staying Within Boundries Of Parent Movieclip
I am trying to create a child movieclip that should only be displayed within the boundaries of the parent movieclip.

Lets say I have a stage of 800x600 pixels. The parent movieclip is 600x400 pixels. When I create a child-movieclip and place it at _x = 650, the movieclip "disapears" as it is outside the boundaries of the parent movieclip.

I'm pretty sure I am doing something wrong in the creation of the child movieclip, but can anyone help me PLEASE!?!

- mortenft

AS2 MovieClip Location In Parent MovieClip
Hi,

I'm trying to create a sliding background using images converted to movieclips.

I have created a movieClip:
imageLoader (which includes)
image1_mc
image2_mc
image3_mc

image1_mc is the beginning image on the stage. When I click on image2_btn I'm trying to get it to have
image2_mc push image1_mc off the left side of the movie. same for image3_btn would push image2_mc
off the movie.

Here's the kicker. When image1_mc is on screen and I click image3_btn I want it to push image1_mc off the left
side of the movie.

what is the best way to do this? do you know of a tutorial I can't find that shows how to do this?

thanks,
sky

Parent Window Help
I have created a pop up map in flash
The code I have applied to the buttons is:

on (release) {

//Goto Webpage Behavior
getURL("http://classifieds.rgj.com/category/1682","popUpParent");
//End Behavior

}

this works great on the first click...the current browser refreshes to the url in the code. yay. however, when you click another button, the url populates the map popup window. ugh.

I have tried several variations, but nothing is working.

bottom line: I'd like all buttons to populate and refresh the parent window.

thank you in advance all flash gurus!!

Pop Up Window Centered In Parent... In Mac IE 5
Hi all. Been a while since I've posted here, so much thanks for any and all help. Here goes:

Basically, the site I'm working on requires that a pop-up window open in the center of the parent window from whence it came. The button which will cause this pop-up will be in a flash movie, but for now I'm trying to get it worked out in straight java script.

Heres the code so far:

<script>
function openCentered (url, width, height) {
if (document.all) {
var x = window.screenLeft;
var y = window.screenTop;
var w = window.document.body.offsetWidth;
var h = window.document.body.offsetHeight;
}
else {
var x = window.screenX;
var y = window.screenY;
var w = window.outerWidth;
var h = window.outerHeight;
}
var cx = x + Math.round((w - width) / 2);
var cy = y + Math.round((h - height) / 2);
return open (url, null, 'left=' + cx + ',top=' + cy + ',width=' +
width + ',height=' + height);
}
</script>

<input TYPE=BUTTON value="pop" onClick="openCentered('about:blank',320,240)">


This pretty much works fine in NN, IE6, Safari, WinIE5.

The problem is it does not work at all in MacIE 5. The function has no effect on the pop-up, and it simply opens in the top left corner of the screen. I've been having conversations with a friend, whos much better at this stuff than I am, and its beginning to look like its not going to be possible at all! MacIE5 apparantly does not supprt screenleft/top, or screenx/y; or comparable objects that would accomplish a similar task. We've been trying to figure out ways to do the popup relative to the parent, but it always seems to come back to pixel position of the parent on screen.

I like to believe nothing is impossible so hopefully someone has an idea.

If Javascript can't work this out with MacIE5, is there anything I can do with Actionscript?

I need to do this in Flash 4.

Thanks in advance for any help.

How Can The Parent Window Be Closed
Hi

I have imbedded a swf in an html page. The page pops up when a visitor clicks on an image. Is it possible from within Flash, to automatically close the html page when the mc finishes playing?

Thanks

Returning To Parent Window After Pop-up...
I have a flash demo popping up in a new window. After you click a "log in" link, it returns to the window the pop-up launched from. (it's supposed to, rather) Currently that's not happening, a new window is opening.

Any ideas?


Code:
on (release) {
getURL('https://www.myurl.com', window='parent');
}

Opening In The Parent Window
I am still new to actionscript 3.0

I have created a flash header and a a flash menu bar, the problem that I am running into is that whenever a button is clicked it opens a new window for the website. How do you code is AS3 telling the button to keep all traffic on the parent page.

Closing Parent Window
HI there...
I'm actually trying to close the very first page that opens when I get into the site.
This page (plain html) confronts me with a text telling me about the need of
flash 6 to go any further. providing me of two links...one to continue and the second which takes me to the macromedia link...etc...etc.

OK...if I press continue a child chromeless window with my flash movie pops up (no scrollbars...nothing) and the parent window should
close.

Well...actually I've been testing this with explorer 5.1 and it worked fine
but when I test it with Netscape 4.7 a warning message of Y/N closing main window comes across.

Now...how could I fix this is it possible to close the parent window after the new chromeless window is fully uploaded?



Sorry about the smilies...I'm new here.

Focusing Parent Window
Hi

I've button on my home page to load a map to a new popwindow. After loading the map earch regions have some content related to that. Click on each regions I want to display the content to the home page; ie the parent window of the popup. I'm still in the search to catch the parent window using a javascript. Anyknows plz let me know. thanks in advance

Parent Of Movieclip
May be one more time, but I cannot find here how can I change parent of MovieClip?

Get Parent Movieclip Name
using the MovieClipLoader, all works fine.

attaching a series of movieclips with a nested clip, and loading a jpg into each of these movieclip's nested clip.

in the listener func onLoadInit, I get passed the clip name that is loaded, how do I neatly reference the parent of that clip?

Currently I can get the nested mc name (I'm simply using target_mc like the help files use), but need to refer to it's parent.
thx!

Swf In A Javascript Pop Up Needs To Communicate To The Parent Window.
i have a pop-up generated from the main browser window with javascript. in the pop-up is a flash movie. on a button release in the flash file i need to tell the original/parent window to goto a certain url.

how do i do this??

Close Window And Load Another In Parent
I have a pop up window with a flash map inside it, when you hover over one of the cities I would like the pop up window with the map to shut and then be directed to the relevant cities home page in the parent window.
I have the following script on the flash buttons:

on (release) {
getURL("javascript:window.close(); window.opener.location.href='http://www.retire.com.au/testsite/CameronClose/Cameronclose.html';");
}
However Instead of the pop up closing, the pop up page just turns blank.
The relevant page still loads in the parent browser.

http://www.retire.com.au/testsite/vi...villages4.html

If you click on the small map it will open the pop up window, if you then hover over a red dot and click to visit the site, you can see what happens.

I have tried with the actionscript reversed with window.close being last, however did this not unfortunally help.

Any help would be extremely appreciated. Thank you

[CS3] Link To A Page In The Parent Window
hey gang,

I'm running my swf in a pop-up window and want to have links in the flash send users to a new page in the parent window. I got this to work great by using:

getURL("javascript:window.opener.location.href='" + tgt_url + "'");

However, there is one problem. I want the flash in the pop-up to remain unchanged. Right now, when I click a link, the parent window changes as expected, but the pop-up window then displays the tgt_url value as text. I've never encountered this problem when calling javascript with getURL before.

Any ideas how to fix this??

Launching A Page In The Parent Window
Hello all. I'm not necessarily new to flash, but i've never gotten into the meat of what the program can do and now have run out of my limited bit of knowledge.

I have an animation of have created as a splash intro to the site. Ive gone through been able to place the swf into my page and have even been able to have the animation launch the main page of the site when it is done playing. My problem is that every time it launches the main page of the site it does so in a new window (or a new tab if in Firefox). I am using the geturl function as thats the only one I know about to do what I'm trying to do. When telling it to geturl I have tried putting in it parent for the window but it still is not working.

Would anyone be able to tell me what i'm doing wrong, or point me in the right direction if there is something different i should be doing? Any help would be greatly appreciated. Thanks!

Communication Between Parent And Popup Window
Hi guys: After doing a long search in all the boards, I couldn't have found a solution to the problem I have. What I'm trying to do is: I've designed a shopping cart (HTML) which has several steps to accomplish the order. It has a Help icon through all the order process which launches a popup window with a flash movie embeded explaining every step in a clear way. So what I'm trying to do is to send the playhead of my movie to a specific frame label or frame number according to the section my client is. Let's say: My client is about to enter the credit card number but he's not sure what to do, so he presses the Help icon and this launches my movie not from the beggining but from the credit card section help. I don't know if I'm being clear, but if you understand what I'm trying to accomplish, please, answer my thread with the Javascript needed. Thanks in advanced

Can I Make The Last Frame Of My Movie Clip Say "parent Next Frame"?
I am just learning flash so maybe I'm real stupid but I'm doing a slide show where each slide comes onto the stage in a different way so every pick has it's own animated mask layer in a movie clip which sits on the stage in a single frame on scene 1.
I want the last frame of the movie clip to say something like _parent, gotoandplay (scene 2);
I am using a load of tutorials but can't find any reference to this and thought it would be a pretty simple hack of some code I already used...

Any ideas?

Returning The Frame Of The Parent
Hi!

Hopefully a quick one for you...

How can I return the number of the frame, that the parent movie is on?

I want to do something along the lines of..

if (_parent.frameno == 1){
_parent.gotoAndPlay(20);
}

obviously frameno isn't the correct parameter, but what is?

Open In Parent Frame? Help
I got this from my Flash file (Action Script), and I want the bold script to open in the Parent Frame when the button is clicked, but i'm not sure how to do that. Hoping someone can help me. Thanks! Heres the whole coding:

function startStory(success) {
if (success) {
storyNodes = story_xml.firstChild.childNodes;
changeStory((pos - 1));
node = storyNodes.length - 1;
thumb_x = -105;
loadThumbs();
} else {
headlines.headline = "Error opening XML file.";
}
}
function loadThumbs() {
var i = -1;
while (i < (storyNodes.length + 5)) {
if (node == storyNodes.length) {
node = 0;
}
thumbs.attachMovie("thumb", ("thumb" + (i + 1)), (i + 1));
t = eval(("thumbs.thumb" + (i + 1)));
t._x = thumb_x;
loadMovie(storyNodes[node].attributes.thumbURL, "t.image");
t.image._xscale = 99;
t.image._yscale = 99;
t.readMore = storyNodes[node].attributes.readMore;
node++;
thumb_x += 105;
i++;
}
delete t;
}
function changeStory(num) {
var Register_1_ = num;
loadSWF(storyNodes[Register_1_].attributes.imageURL);
headlines.headline.htmlText = ((("<b>" + storyNodes[Register_1_].attributes.headline) + "</b><br><font size="14">") + storyNodes[Register_1_].attributes.strapline) + "</font>";
storyURL = storyNodes[Register_1_].attributes.readMore;
}
function loadSWF(path) {
_root.gotoAndPlay("loadLoop");
loadMovie(path, "topImage");
_root.onEnterFrame = rootOEF();
}
function rootOEF() {
var Register_1_ = topImage.getBytesTotal();
var Register_3_ = topImage.getBytesLoaded();
var Register_2_ = Register_3_ / Register_1_ * 100;
if (Register_2_ == 100) {
_root.gotoAndPlay("loaded");
delete _root.onEnterFrame;
}
}
if (mode == null) {
mode = "1";
}
if (storyxml == null) {
storyxml = "xmltest.xml";
} else {
storyxml = (storyxml + "?") + random(65000);
}
story_xml = new XML();
story_xml.onLoad = startStory;
story_xml.load(storyxml);
story_xml.ignoreWhite = true;
node = 0;
thumb_x = 0;
pos = 1;
storyNodes = new Array();

Change Parent Frame
Hi All,

I am having a bit of a problem...I am building a Flash microsite, which is launched by the user pressing a button on our main site.

When the user clicks on a "Rules & Regulations" button within the Flash, we want the parent frame (our main website) to change to our TOS page, but keep the popup window open.

This is being built in AS2, and I tried


Actionscript Code:
getURL("tos.html","_parent");

But that opens the TOS in the current window, instead of the parent one. I heard that I can do this with JavaScript inside the Flash, but when I try to insert some JavaScript, Flash throws me some a security error, and in IE it just doesn't work.

Can anyone assist me solving this issue?

Open In Parent Frame? Help
I have the SWF in a iFrame on my homepage and every link on the SWF when clicked will open in the iFrame, which I dont want. And t.readMore = storyNodes[node].attributes.readMore; is for all the links. I can't just add _parent, so I was hoping someone could help me figure out what to do. Heres the whole ActionScript coding:

function startStory(success) {
if (success) {
storyNodes = story_xml.firstChild.childNodes;
changeStory((pos - 1));
node = storyNodes.length - 1;
thumb_x = -105;
loadThumbs();
} else {
headlines.headline = "Error opening XML file.";
}
}
function loadThumbs() {
var i = -1;
while (i < (storyNodes.length + 5)) {
if (node == storyNodes.length) {
node = 0;
}
thumbs.attachMovie("thumb", ("thumb" + (i + 1)), (i + 1));
t = eval(("thumbs.thumb" + (i + 1)));
t._x = thumb_x;
loadMovie(storyNodes[node].attributes.thumbURL, "t.image");
t.image._xscale = 99;
t.image._yscale = 99;
t.readMore = storyNodes[node].attributes.readMore;
node++;
thumb_x += 105;
i++;
}
delete t;
}
function changeStory(num) {
var Register_1_ = num;
loadSWF(storyNodes[Register_1_].attributes.imageURL);
headlines.headline.htmlText = ((("<b>" + storyNodes[Register_1_].attributes.headline) + "</b>
<font size="14">") + storyNodes[Register_1_].attributes.strapline) + "</font>";
storyURL = storyNodes[Register_1_].attributes.readMore;
}
function loadSWF(path) {
_root.gotoAndPlay("loadLoop");
loadMovie(path, "topImage");
_root.onEnterFrame = rootOEF();
}
function rootOEF() {
var Register_1_ = topImage.getBytesTotal();
var Register_3_ = topImage.getBytesLoaded();
var Register_2_ = Register_3_ / Register_1_ * 100;
if (Register_2_ == 100) {
_root.gotoAndPlay("loaded");
delete _root.onEnterFrame;
}
}
if (mode == null) {
mode = "1";
}
if (storyxml == null) {
storyxml = "xmltest.xml";
} else {
storyxml = (storyxml + "?") + random(65000);
}
story_xml = new XML();
story_xml.onLoad = startStory;
story_xml.load(storyxml);
story_xml.ignoreWhite = true;
node = 0;
thumb_x = 0;
pos = 1;
storyNodes = new Array();

[CS3] Load A Movieclip Into A Parent MC
Ciao Guys, I hope someone have got some time to help me out with a problem that is driving me mad.
I am trying to load a clip in a movieclip which i have created in a another swf.

I have a swf which works as holder for all the swfs that constitute my site.
The Action Script in the swf holder create an empty movieclip and load into it a new swf. The second swf should load another swf inside the movieclip created by the holder.



Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target, loaded, total) {
home.Loader.percent.text = Math.round((loaded/total) * 100)+"%";
trace("doing the math");
trace (home.Loader.percent.text);

}

mclL.onLoadInit = function () {
home.Loader.percent.text = "";

}


mcl.addListener(mclL);
trace (mcl);


home.b1Enter.onRelease = function() {
trace ("b1Enter.onRelease");
mcl.loadClip("index.swf", _parent.SiteHolder_mc);
}


Thanks for reading

How To Use Gotoandplay On A Parent Movieclip?
I'm making a next and previous button to scroll between pictures in an album. I have one movie clip with three screens in it each labeled "firstPage" , "secondPage", "thirdPage". I have two buttons, next and previous which I want to use to navigate between pages. I then created a button and placed this in the first movie clip, this button actually sits inside another movieclip which is used for an animation. Is it possible to use the onRelease to select a frame to play on the parent of the parent of the button if that makes sense?

I've tried
onRelease(){
gotoAndPlay("firstPage")
}

and it simple does nothing

also tried

onRelease(){
gotoAndPlay(_parent._parent.2)
}

and I get this error

**Error** Symbol=next_but copy 2, layer=Layer 5, frame=1:Line 8: ')' or ',' expected
gotoAndPlay(_parent._parent.2);

**Error** Symbol=next_but copy 2, layer=Layer 5, frame=1:Line 9: Unexpected '}' encountered

I can't think of anything else to try and I've searched for tutorials on this but can't find anything that covers it. I'm not sure if what I'm trying to do is impossible but any help would be really appreciated.

Changing The Parent Of A Movieclip
Hi,

Has anyone figured out how to change the parent of a movieclip?
This is the code I'm experimenting with:

Code:
//The actions
this.createEmptyMovieClip('a',this.getNextHighestDepth());
this.createEmptyMovieClip('b',this.getNextHighestDepth());
a.createEmptyMovieClip('c',this.getNextHigestDepth());

visualize(a);
visualize(b,50,0x00ff00);
visualize(a.c,50,0x0000ff);

a.c._x = b._x = 10;
a.c._y = b._y = 10;

a._x = 10;
a._y = 100;

setChild(a,b);

//Functions
function visualize(m:MovieClip,s:Number,c:Number,a:Number){
with(m){
var w0:Number = (s==undefined)?150:s;
lineStyle(1);
moveTo(0,0);
beginFill(((c==undefined)?0xff0000:c),((a==undefined)?20:a));
lineTo(w0,0);
lineTo(w0,w0);
lineTo(0,w0);
lineTo(0,0);
endFill();
}

m.onPress = function(){
startDrag(this);
}

m.onRelease = function(){
stopDrag();
}
}

function setChild(parent_mc:MovieClip,child_mc:MovieClip){
// How to do this???
}
Now, I want movieclip b to become a child of a - just like a.c.
How can I implement setChild(), so that b starts behaving like a.c? (without having to constantly update its position relative to a)

You'll know if it works, when movieclip b is constantly on top of movieclip a.c. Even while you're dragging movieclip a.

Something very unfortunate is that you can't use the _parent property to do this, because it's read-only.
That's why the following doesn't solve it:

Code:
function setChild(parent_mc:MovieClip,child_mc:MovieClip){
child_mc._parent = parent_mc;
}

How To Copy A Movieclip To Another Parent
the MovieClip.duplicateMovieClip method can only duplicate a movieclip in the same parent, right?

now i want to copy a movieclip to anther parent. how i do it now is: copy the bitmap to anther movieclip using attachBitmap() method. but the problem is: hit Area changes, not like the original graphic Area, the second movieclip's hitArea is the rectangle of the bitmap, thoght the bitmap i created is transparent.

what should i do, if i want keep the same hit Area as original graphic Area?

Can't Access A Parent Movieclip
This is really pissing me off.

I have a MovieClip on the main timeline, and the code for it is in an external class file that subclasses MovieClip.

I cannot for the life of me access another clip on the main timeline that is called "container" unless I pass a reference to the main timeline in through a function.

Should I not just be able to say


ActionScript Code:
root.container
?

But instead I get


Code:
1119: Access of possibly undefined property container through a reference with static type flash.display:DisplayObjectContainer.
Help!

DispatchEvent To Parent Movieclip
Hello all,

I have a movieclip that acts as a button within my library that is linked to a class which extends MovieClip. Via the constructor I assign several eventListeners to this button/movieclip. One of these listeners listens for a CLICK event and uses dispatchEvent to dispatch a custom event. The event gets dispatched correctly to listeners within the movieclip class, but any listeners outside the class don't get notified.

I want one of the classes that adds instances of this movieclip to its display list to receive updates from the event dispatched inside the movieclip.

Changing A MovieClip's Parent?
From my search of the forums, I think I know the answer, but wanted to verify. There's no way to directly change a MovieClip's parent MC? That is, move it from one MC to another?

Change Parent Movieclip
How can i change the parent of a movieclip.. i want to load it in a different container on top of the original parent.

Flash In Popup Changing Url In Parent Window?
heres the problem:
i have a flash movie that is popped up from an html page. at the end of the flash movie, i want it to change the page that the parent window is on and close itself. in the parent window, i named the window as follows:
<!-- <script language="javascript">
window.name="main";
</script> -->

and in flash i have:
getURL ("Page1.html", "main");

but instead of changing the window named main, it opens a third window. any suggestions??
thanks!
-bill

Controlling Parent Windows From A Child Window
how can I control a parent window from a child window.

The child window has a form w/ a form action = "page.php?afeafe". When submit is pressed, I want page.php?afeafe to appear in the parent window instead of the child window. Thanks for your help.

Control Parent Browser Window From Within Flash
Boy that was a horrible title but I could not think of anything better.

What I am trying to achieve is to have a button in my movie that will expand the browser window that it is in to fullscreen.

What am I missing here because it ain't workin'?


Code:
function fullscreen(){
getURL ("javascript:self=window.open('self','self','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=Yes'); self.focus(); void(0);");
}

Button Loading Parent Window Problem..
Within a movie I have created a button which sucessfully (when viewed in the player) opens a window containing a word document, but as soon as I activate it when viewed in a html window it replaces itself with the word document rather than opening a new window. I have tryed all the different options (_self,_blank,_parent & _top) with the same result. Code below:

on (release) {
getURL("4_2_2_TILEO_List.doc", "_parent");
}

Any ideas?

[F8] Need To Stop All Sounds In Parent Window When Pop Up Opens
I am running a flash movie in my parent window. When a user clicks a link and opens a pop up window with a flash video player, I need all the sound from the flash movie in the parent window to stop. I've been looking everywhere for a solution. There must be one. Please help!

Thanks!

Flash Popup Refreshes Parent Window
Hi,
My problem is that i have a parent window such taht when it opens it loads a popup with flash animation and when i close the popup with a flash button i want to refresh the parent window which loads with another location...

my close button reads these actions

on (release) {
getURL("javascript:window.opener=self; window.close()");
}

Can anyone help me with this problem plz

BenZ

Redirect Parent Window From Flash Popup
I am creating a Flash popup window that opens from my html website. I want a button in the popup to redirect the parent html window to a new page (quiz.html) and simultaneously close itself (the Flash popup).

I have tried:

on(release) {
getURL("javascript:opener.location='quiz.html';self.close()");
}

but that doesn't seem to do anything. Can anyone please help me?

Problem Advancing To Next 'parent' Frame
Hi all.

I have a frustrating problem. I have a flash file that on click loads movie. This secondary movie opens without a problem...until the end. What I want to happen is once you get to the end frame of the 2nd movie, it advances the 1st file to the next frame.

I created a button which when placed on the last frame with the following code:

Code:
on (release) {

_parent.nextFrame();

}

and clicked, does exactly what I want and advances the original file to the next frame.

Rather than a button, I would prefer the advance to occur when you enter the last frame. Placing the following code:

Code:
_parent.nextFrame();

does not work.

Probably a simple thing, but what am I doing wrong??

Thanks guys...chaddy

If ... Else Statement With Parent Frame Number
Hello all

I've got a Flash file with a child movie clip (which contains another child movie clip, but I don't think that's the issue).

Within the child movie clip is a button with this code:


Code:
on (press) {
if(this._parent._currentframe == 6) {
this._parent.gotoAndStop(7);
gotoAndStop(3);
} else if(this._parent._currentframe == 7) {
this._parent.gotoAndStop(8);
trace("frame7");
}
}
The IF statement works fine. But the ELSE statement doesn't, because Flash never recognises that the parent currentframe is now 7.

Can anyone see what I've done wrong? I'd appreciate some help because my brain really helps.

Thanks
MMH

Button GotoAndPlay Parent MC Frame
I think this is an easy one, but I'm just a little uncertain as to how it's done.
Any help would be appreciated:

Making a flash website.

I have a parent MC with all my content called GUI_MC, and on my timeline I have a Frame labelled "PAGE"

Within the GUI_MC I have a another MC for my navigation (NAV_MC)

In NAV_MC I have a button which I would like to gotoAndPlay the frame "Page" on the GUI_MC

Heres my button code:

on (release){
gotoAndPlay("PAGE");}

What do I need to add to make it goto the parent MC?.

Copyright © 2005-08 www.BigResource.com, All rights reserved