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




Again Tell Target From An Other Scene



Help needed.. QUICK!

It didn't work the last time so here it is again.

I have 2 scenes, S1 and S2. When i press a "back" button in S2, it not only has to go back to S1, but it also has to control a MC inside S1 ("items" which is on the main timeline)

This is what I have now:

S2 back button:

on (release) {
set("whichFrame", 30);
_root.gotoAndPlay("labelS1");
}


Frame 1 of S1 (which is labeled "labelS1"):

_root.items.gotoAndPlay("whichFrame")



Because there will be more scenes that have to go back to scene 1 but to an othere frame in "items" it must be done with actionscript..

Can someone help me out here?



FlashKit > Flash Help > Flash General Help
Posted on: 09-03-2003, 01:51 PM


View Complete Forum Thread with Replies

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

Target Frame In Scene From Movie In Same Scene
I know this is probably really basic, but I'm stuck here. Here's what I want to do: I have Movie1 on a layer in Scene1, and Movie2 on another layer in Scene1. In Movie1 is a button that, when pressed, goes to a particular Frame in Movie2. How do I do this!? Thanks!

What Is The Target Path From Scene To Scene........
The button on the Scene 1 must tell
MovieClip2 (instance name MC2)
wich is in the
MovieClip1 (instance name MC1)
wich is on the scene 2
to play
how to do that
or
what is the target path

Tell Target / Go To Scene
i have a button within a movie within a movie within the main movie.
i want that button to send the main movie to the next scene names scene2.

ive been using this code and it's not working

on (release) {
tellTarget ("_local0") {
gotoAndPlay ("scene2", 1);
}
}


why?

Can Not Target Scene HOW?
i seem to be having problems trying to tell a button placed inside a movie clip which is placed in a scene to go to and play another scene WHATS UP WHITH THAT??????????

The main movie has 9 scenes, and each one represents another part of the site, so when i am viewing the scene "figures", the button inside the movie clip placed in the figures scene does not send me to the first frame of the "comics" scene. How can i do this? i tried with _root,_parent, and all.
so, how?

Tell Target From An Other Scene
I'm having a problem. I have a "back" button in Scene 2 when clicked takes you back to Scene 1. But it also has to tell a MC in Scene 1 (which is on the main timeline of Scene 1) to goto a frame.

But how? I tryed this:

_Scene 1.items.gotoAndPlay(30)

But it doesn't work.

(items is the instance name of the MC)

How should I correct this?

Tell Target From An Other Scene
I'm having a problem. I have a "back" button in Scene 2 when clicked takes you back to Scene 1. But it also has to tell a MC in Scene 1 (which is on the main timeline of Scene 1) to goto a frame.

But how? I tryed this:

_Scene 1.items.gotoAndPlay(30)

But it doesn't work.

(items is the instance name of the MC)

How should I correct this?

Target From MC To Scene
I have a drop down MC menu made up with buttons dropping down. I'm trying to target the buttons within the menu to the next scene, or a specific scene. It's not working. Any suggestions?

Target From MC To Scene
I have a drop down MC menu made up with buttons dropping down. I'm trying to target the buttons within the menu to the next scene, or a specific scene. It's not working. Any suggestions?

Target A Particular Scene
I want to be able to go to and play from a particular scene inside a MC that has been loaded inside of another MC.

is this possible?
attched are the trail FLAs

To Target A Scene In A Loaded Swf
hey guys..i read all the messages above and feel that there's a lot of u who are knowledgeable on the subject, can neone help me out?

i got some solutions about loading a swf into an MC and then going to a frame label.
it works fine

but how do i go to a frame label on a scene other than the first?
what i want to do is to let the user continue from where he left off by tracking his clicks and storing in database. and then when he comes back he gets a link to his last viewed frame. i plan to assign frame labels and then call them from variables by making the user click on a button with the foll action

- on frame 1 of the parent movie i have:
##
lastmodule = "module2.swf";
lastframe = "Overview1";
##
- on the button the user clicks i have:
##
on (release) {
loadMovie (aa, "_root.callerMC");
gotoAndPlay (2);
}
##
- and on frame 2 i have (for the waiting peroid as some of u have rightly pointed out):
##
_root.callerMC.gotoAndStop(_root.bb);
stop ();
##

Now, if framelabel "Overview1" is in scene 1, it works, but not if it's in a subsequent scene.

flash requires u to enter scene name as a quoted string and not a variable, but the frame label can be a variable as i have done above.

i need to know if we can, in the above setup assign the scene name as a variable as well so that i will keep it in my database and send it to flash along with the last swfname and last frame label.

i'll be really grateful guys if u can provide a soln to this, cuz otherwise i will have to make some huge modules in one single scene!

thanks,
Sammy

Scene And Target Mouse Help, Please
I have eight scenes on one of my web sites. Every scene shows up except the last one, the e-mail scene. I have the same code on each scene, basically just a stop action. The only time the e-mail page shows up is when I add a /index.swf to the address. Can anyone tell me why that would be?

I also have a problem with the target mouse feature. I can create an object in flash and have it be the mouse, but I'm not sure how to import a small picture and make that the cursor on screen. Any idea how to accomplish this?

Thanks for the imput!!!

Rodney

Can You Target A Scene From A Get Url Command?
A quickie
I want to click a button to get a url and the file i want to load is a .swf file in the same sub folder.
i.e

on (press) {
getURL ("part2.swf", "_self");
}


Can I target a particular scene in this part2 flash movie that opens... i.e part2.swf scene 3 frame 10???
If so can anyone say how.
Thanks

LoadMovie...Can Target Be In Different Scene?
Hi,
I am trying to load a file named "portfolio7.swf" into a different scene. The receiving scene is named "porfolio" and the movie clip instance I tageted is named "window".
I seem to be getting confused between levels and targets. Here is the non working code:

on (release) {
loadMovie("portfolio7.swf", "_root.porfolio.window");
gotoAndStop("Portfolio", 1);
}

Any advice would be much appreciated! Thanks in advance.

nick

Target A Scene From A Level
Why doesn't this work from level2?

on (release) {
with (_level1) {
gotoAndPlay("Main Menu Fall Down", 1);
}
}


I'm trying to play a specific scene on level1 from level2.

"Main Menu Fall Down is a scene and 1 is the frame.

Target A Scene Within A A Seperate Swf
Hi there.

Can anyone help?

I have a main movie that contains a menu. From the menu headings i wish to be able to target individual scenes within a loaded MC. I am initial loading an swf into a MC holder, then i wish to be able to target a specific scene within the loaded swf!!

Is this possible?

on(release){
loadMovie ("myswfname8.swf", _root.mvClipHolder);
_root.mvClipHolder.gotoAndPlay ("make an appointment", 1);
}

Any help would be greatfully received. Many thanks

Richie

Target A Scene Within A A Seperate Swf
Hi there.

Can anyone help?

I have a main movie that contains a menu. From the menu headings i wish to be able to target individual scenes within a loaded MC. I am initial loading an swf into a MC holder, then i wish to be able to target a specific scene within the loaded swf!!

Is this possible?

on(release){
loadMovie ("myswfname8.swf", _root.mvClipHolder);
_root.mvClipHolder.gotoAndPlay ("make an appointment", 1);
}

Any help would be greatfully received. Many thanks

Richie

Tell Target Then Goto Scene?
Ok, here's my problem:

I have a button with this action

on (release) {
tellTarget ("targetclip") {
gotoAndPlay(5);
_root.gotoAndPlay("label");
}
}


What I want is to play the targetclip first THEN goto the other scene.
This script ignore the telltarget and jump directly to the scene.
How do I make it do it in the right order.

Target Scene Flash MX
I'm trying to get the user to return to the Choose scene after they successfully complete the jigsaw.

I have a movieclip which changes after all pieces have been successfully places to reveal a button saying "next" It is this button that I'm having problems with. The script I have attached is:

on (release) {
gotoAndPlay("choose",1);


}

but this does not seem to work to target the "Choose" scene.

Flash file attached.

I'm sure I've done something stupid but can't see what!

Thanks

Tell Target / Goto Scene URGENT
i have a button within a movie within a movie within the main movie.
i want that button to send the main movie to the next scene names scene2.

ive been using this code and it's not working

on (release) {
tellTarget ("_local0") {
gotoAndPlay ("scene2", 1);
}
}


why?

How Do I Target A Scene From Inside A Movieclip?
As in the subject: How do I target a scene from inside a movieclip?

I'm in scene 3 called game.... how do I get a movie clip to goto scene 4 named looser?

I tried
Code:
_root.nextScene ();
Any ideas?

About Tell Target How Can I Talk With The Main Scene
hi all ammmmmmm if iam in a movi clip and i want another movie to play i use this code

tellTarget ("/majed") {
play ();
}

that is ok !!
but the problem is :

how if i am in a movie clip and i want the scene itself

(not the movie clip) to go *****ple to frame 20

i hope i am clear

Target Main Scene From Loaded In .swf
hello,
I have loaded a .swf into my mainframe, using Loadmovienum(target)
i know have a button in this new .swf, and i want it to tell the Main scene to go and stop frame 4.
Can i do this, if so how?
Thnx

Target Scene With Button In MovieClip?
Using flash mx,

how do I target a Scene with a Button that is inside a MovieClip?

Al

Target Scene Vs. LoadMovieNum (Levels) ?
A classic newbie question, I'm sure!

I've designed a new site in which I've got my main menu buttons on my 'home' scene.

The loadMovieNum action has been attached to my menu buttons, and each new scene is loaded as an .swf file.

The menu bar still shows up just as it should (along with all other artwork on my main scene) no matter what page I'm viewing.

Problem is, I've had a change of heart in terms of the design for the page. As each menu button is pressed and a new page comes up, I'd like my menu buttons (and other art from the main scene) to vanish.

Here is a great example of the kind of structure I'm looking for:

http://www.mackayandpartners.co.uk/

Once you click on a menu button, you are taken into a completely new environment; which tells me that perhaps the loadMovieNum/levels approach wasn't used, and that a simple Target Scene method was employed.

Any thoughts? Thanks much.

Goto Target To Jump To Another Scene Isn't Working.
How do I target a frame in another scene from a menu embedded in an MC? Below is my attempt, but it's not jumping to scene2, "startScene2" label.


On Scene1, I have the MC symbol "menuMovie"


On my "to scene 2" button in MC symbol "menuMovie"
on (release) {
gotoAndStop ("Scene 2", "startScene2");
}

A Goto Target To Jump To Scene?... (continued)
I've also tried this, to get out of the MC onto the main timeline so it can jump directly to the next scene.
on (release) {
_root.gotoAndStop ("Scene 2", "startScene2");
}

Get URL - Target Specific Frame Label Or Scene?
I have two Flash movies, both embedded in HTML pages. I'd like to be able to click on a button in one movie, and go straight to a specific frame label or scene in the second - can this be done, or should I be using Load Movie?

I'd be happy if I can avoid using the latter as I'll get bogged down in levels, and I've got a rather complicated structure.

Many thanks as always...

Button In Movie Clip To Target A Scene, Help
Hey i have a movieclip that is a sliding menu with a few different buttons on it linked to corresponding scenes. It doesnt seem to be working. I dont know if i need to target outside of the movieclip or what to get it to change to the different scene when the button is clicked on. Right now i just have the standard on (release) gotoAndPlay("scene, 1") HELP please =)

Button In Movie Clip To Target A Scene, Help
Hey i have a movieclip that is a sliding menu with a few different buttons on it linked to corresponding scenes. It doesnt seem to be working. I dont know if i need to target outside of the movieclip or what to get it to change to the different scene when the button is clicked on. Right now i just have the standard on (release) gotoAndPlay("scene, 1") HELP please =)

Transition Effects After A Button Is Pressed Before It Goes To The Target Frame/scene
Hi, I really need some help with some actionscript because when it comes to that, I do not know where to start...

On my site, I have a menu a the top. When a button is pressed i want it to play to then end of the scene, then goto the corresponding scene to which button was pressed, so there is a transition between when the button is pressed and it going to the next scene.

I really dont know how to go about doing this, it is probably obvious, i have thought about having a play for however many frames it is until the end of the scene, then gotoAndplay at the corresponding scene (this is the actionscript for the button, OnRelease action)

could someone please tell me what i should do......

Cant Target "Scene 1" Wit Preloader
hello, i am trying to target part of the main timeline with a normal button. when i have the preloader scene ahead of the main scene (Scene 1), my button automatically targets the preloader again because it sees that as the root. how can i script my button so it refers to Scene 1?
Thanks

Can We Tell A Scene With "tell Target"?
Please help me!

I need to know If we can tell a Scene with the option "Tell target"

...If possible...I absolutely want to know how!!!

Please!!!!!!

Newbie Movement Question - Move Number Of Pixels NOT To Target Or Even PRECISE TARGET
Like a lot of people im using the code below to move a movie clip my question is this - how do i move the clip exactly a set number of pixels from its current position (lets say 20 pixels) rather than setting a target?

(what im using now)

onClipEvent (enterFrame) {
if (_root.go==1 && root._x<300) {
_x = _x+2;
}
}

ive tried lots of things but there must be a simply answer - someone please help.. thanks.

My second question is how do i move something to a specific x target ie not use <300 or such like - ive tried != and stuff like that but to no avail..

1st question more important right now though - thanks!

Apply Glow Filter On Target MC While Dragging An Object And Rolling Over The Target
I can get my filter to apply to a movie clip if i simply rollover or roll out of it. When the mouse rolls out, the filter is set to undefined. The problem I am having is that I want the object that is in effect the hit area to glow (have a filter applied) when the draggable object is being dragged over it.

This would make is easier for the user to visually identify that where they are currently hovering over, whilst dragging, is the area that they should drop the object.

Part of my code looks like this


Code:
this.onRollOver = function () {
if(_global.isDragging == 1){
this.filters = glowFilterArray;
}
}



this.onRollOut = function () {
_global.isDragging = 0;
this.filters = undefined;
}
_global.isDragging is set to 1 at the onPress stage, when startDrag occurs.
_global.isDraggin is set to 0 onRelease of the draggable object.

Are there any ideas for a solution?

Action On Button, Tell Target, Error=target Not Found
Hello, beings of helpfulness!

I am working at a non-profit and trying to make a website from a Flash template with minimal, but some Flash experience. The template has multiple timelines (main page, content pages, and buttons). This part I am still learning. On the home page, I have an image (mc) that loads, with an instance name of "girls." Menu buttons take the viewer to corresponding content pages, which is when I want the image on the main page to dissapear to make room for the content. When the viewer selects the home page again, I want the image to appear again. At first I put in the following action (except for the home page), alpha=0. It worked! And now it doesn't! I did play with the button timelines some. I tried taking the actionscript out and putting it in again, to no avail.

The action in my button is


on (release) {
tellTarget ("_root.girls") {
_alpha=0;
gotoAndPlay(11);
}
}

And the error I now get is: Target not found: Target="_root.girls" Base="_level0.instance58.instance543"

Any ideas? I'm quite stuck. Thanks so much for any help, or suggestions to do this another way.

I've attached the swf, but the compressed fla was too big. I can email it to anyone willing to fix what is probably very simple, except to the newbie with little but increasing experience!

I'm using Flash MX.

Won't Change Scene...neither With Actionscript,neither From Scene To Scene
I have a big problem...why won't my movie change from my intro to scene one...I built my intro, i built my scene one but it won't skip from one to another. At the begining i had a loop problem on my intro,and it would never go on to the next scene,and now even if i build a new page it won't change to another scene either....HELP PLEASE!!!

LoadMovie In A Target Without Inherit Of Target Properties?
hi,

I load a SWF-FILE in a target MovieClip with loadMovie(). After that I want to read the _width and _height of loaded MovieClip (from the SWF-FILE), but I only get the properties of the target MovieClip.

loadMovie ("test.swf", "dummySwf");
trace("height:"+dummySwf._height+"width:"+dummySwf ._width);
//put out the properties from target, not from new clip :-((

any idea?

thanks

Target A Specific Frame In And Instance Using Tell Target
is it possible to target a specific frame in and instance using tell target? I can get the effect i want by using goto frame, however i want to use this mc or .swf in a movie, and i don't want goto frame to affect the whole movie, just the mc.

Target JS Button To Target Frame Swf At Different Html...how?
this is my 2nd post regarding this problem, i'm seeking for many input nad perhaps the example soource file/code...

kind like a loading specific frame of swf from a html hiperlink?!? can it be done?

- say we have a 3 frame swf, located at index1.html
- then i have a button(gif/jpeg htmlpage not flash), located at index2.html

- what i wanna do is when i click the button(JS) on index2.html, it will open the index1.html then start play the swf at frame 2 NOT 1(beginning)

how can we do that?

[F8] Flash Site, Multiple Scenes, Button Moves Scene To Scene Instead Of Navigating
Hi...I am very new at flash, so forgive my ignorance in advance...I really really need help!

I created a site, separated into scenes (intro, main-home, about, portfolio, press, contact).

About half the time the navigational buttons work fine. However, the other half of the time one of the buttons, the Press button, instead of bringing me to the Press scene, just moves scene to scene (for example, say I'm on the home page and I want to go to the Press page, it just goes to the about page...I hit the button again it goes to the Portfolio page, etc.). I think the problem lies somewhere in bypassing the intro prematurely (you can skip intro and go straight to the site/home-main scene), but I'm not positive.

Here's the code for the Press button:
on (release) {
gotoAndPlay("press", "pressframe");
}


where pressframe is the name of the first frames in the Press scene.

I can upload the fla file to my own site for download and review if necessary....

Please help!....I am losing sleep and hair over this.

Load Movie Into Target And Tell Target
when i load a movie into target i can effect thie movie with setproperty but not with tell target, is this "normal"?

Help With Passing Number From Scene 1 To Scene 2's Dynamic Text Field
hi all ,
i have 2 scenes on the first i retreve user information from flash and through php to a mysql database then send it back to flash. on one of the lines i retreive a id number

content.htmlText += "&nbsp;&nbsp;<a href='#" + this["id"+i] + "'>" + this["id"+i] + "</a><br><br>";

when the user clicks on this ahref i want to goto scene 2 and insert the id into a dynamic textfield with an instance name of "recorde_id"

this scene is complete and works it retreives more infor about the user..

but i have to manualy enter a id number into a INPUT filed i want it to be automatic that why i have changed it to be dynamic so it can capter the ahref from scene 1.. if you need more code or information just ask and ill deliver, im a flash newbee..

cheers aron.

Targeting Frame Label In Scene From Movie Clip In Same Scene
Hey Pals,

I'm trying to target a frame label on the timeline of a scene from a movie clip within the same scene, using Flash MX 2004 Pro. The scene is ultimately used as a .swf to load as a page of a website. The frame label is called "miscOn", the scene is called "misc". The below code is attached to a button within the movie clip.

on (release) {
loadMovieNum("tajwebsite_main.swf",1);
gotoAndPlay(miscOn);

}


Thanks!

Stu

Simple Gotoandplay - Animate The Scene Out Before Playing Selected Scene?
Hey there again,

Just wondering if you guys could point me in the right direction.
Before, when I made full-flash websites, when I clicked a button I'd have it gotoandplay frame 60 or whatever (or scene 2 or 3 or 4 etc.) and that page would start up there and have a nice little animating intro but it would be a very abrupt start because anything on the previous page would just disappeer jaggedly.

But I've seen a lot of nice sites, that once you press a button, it'll clean up the current scene, say have everything burn out or fade or or something instead of just having the next option just appear, then go to the selected page. Say they clicked News or Contact, and they were on products. It would allow me to have a timeline to animate all the objects out (just a simple tween) then once it reached the end and all the objects were out, it knew which button they pressed and where to gotoandplay.

This is probably easy actionscripting (or not, I have no clue) so it would be greatly appreciated if someone could direct me, thanks!

Scene 2 Works Fine, But When Preloaded Added Scene Will Not Work
I have a website at wosso.com which I needed a preloader. So currently the site works fine. I am toying with a preloaded, but when I add it the main part of the site does not function.

There are two scenes, PRELOADER and SCENE 1. My preloader includes this script in the first frame of the preloader: ifFrameLoaded ("Scene 1", 105){
gotoAndPlay ("Scene 1", 1);
}


I have also inluded this line at the end of the preloader, but also tried it without this line:

gotoAndPlay ("Preload", 1);

I haven't used Flash in some time and I am not good at scripting. It seems to make sense, but why is it not working when SCnene 1 works fine by itself.
Any sulotion/suggestions?

Thanks,

Wayne

Play The Rest Of Current Scene, THEN Gotoandplay Another Pre-determined Scene
Hi,

Im my scene contains 6 buttons, I want button '1' to play the rest of the current scene (for example scene '0' then goto and play scene '1'

I want button '2' to play the rest of the current scene (for example scene '0' then goto and play scene '2'


I want button '3' to play the rest of the current scene (for example scene '0' then goto and play scene '3'

etc....

any ideas? this is for actionscript 3. My current script just makes the button goto a certain frame, can I edit it? here it is:

stop();

thumbbtn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
thumbbtn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(3);


any help greatly appreciated.

Ger

Scene -> Object? Turning A Scene Into An Importable Symbol For Other Projects
Okay I made a scene with movement and everything, but when I convert it to a symbol I lose the movement frames.
I want to be able to import it as an object so that the animation loops for as long as I need it to in the other project.

How do I do this?

Sound Plays From Next Scene, While Playing In Current Scene?
i am making an animation, i have about 8 scenes.
for some reason it starts playing the sound from the next scene in the middle of the current scene.
why?? i checked movie explorer and the sound is in another scene. does that sound like a flash bug, or just me? it is a big file, could that be it. please help it is driving me crazy!!!!!

I Cant Navigate 1 Scene From Another Scene Thorogh Movie Clip
SIr i made a Movie Clip and in the movie clip there are 4 buttons when i want to use the button so go to another scence it cant happen so how can i go to Another scene by the button which is present in the MOVIE clip
i think u understand my Problem
simply summary is that i there is a button in the movie clip and i want to use the button to go to another scene but it cant happen
Thk u in adnvance for any body Consideration

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