Tell Target In Seperate Frame...
Heres the situation, I've got an interface that uses frames. I have a top frame, left frame, video frame and bottom frame. When I click a button in the bottom frame I want to target a movie clip that resides in the left frame, anyone know of an easy/hard way to accomplish this?
thanks,
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-21-2001, 12:17 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Communicating Between 2 Seperate .swf's Each In A Seperate Frame(HTML) ... Help
this seems so elementry, .. yet I cant get it working ...
here is what I have....
A frameset (2 frames).... Frames "Top" and "Bottom"
Frame "top" contains the .swf Named and ID'd as "cont"
Frame "bottom" contains the .swf Named and ID'd as "nav"
The _parent of the frameset contains the following script.. (between the <HEAD> tags)
<script language="Javascript">
function forward1(){
window.top.document.cont.GotoFrame(10);
}
</script>
The movie in the frame "bottom" controls the movie in frame "top" with this.
on (release) {
getURL ("javascript: forward1()", "top");
}
Please look at the source for the _parent ... maybe the mistake will be apparent,heres the link
http://www.alpha8.com/s3/index.html
I'm using dream weaver ..
I'm sure that the javascript is in the _parent of the frameset.
I'm Mac IE5 ... Javascript no go?
Thanx in advance ... I desperately need a solution to this prob.
Seperate Target Clips
Okay this might sound and look stupid. I will try to make it as simple as I can. I have two links within a box.
_________________________________
Biology
Business
_________________________________
Here is the code for Biology link:
on (rollOver) {
tellTarget ("_root.biology") {
play ();
}
}
on (rollOut) {
tellTarget ("_root.biology") {
stop ();
}
}
Here is the code for Business link:
on (rollOver) {
tellTarget ("_root.business") {
play ();
}
}
on (rollOut) {
tellTarget ("_root.business") {
stop ();
}
}
Now what my problem when I put my mouse over biology link it will play the movie, but when I put my mouse over the business link, you can still see the target from the biology link. What I want is to keep them seperet. I want the biology target to disappear when I have my mouse over the business link. And the business target to disappear when I have my mouse over the biology link. I hope I made this as simple as I can. Thankyou.
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
How Do I Target A Mc In An .swf Loaded On A Seperate Level To The Button
Quick question for you...
I am now familiar with the use of the _leveln. command, however I find that is is not precise enough. For instance I have a base level movie that is the main page of a website... I tell it to laod a new .swf file to level2 and stop there...
Within this new swf on level2 is a mc called "content_movie" and I want a button pressed on the main movie on level0 to tell the mc "content_movie" on level2 to gotoAndPlay at specific frame...
I have tried using 'tellTarget' and 'with' commands to control the seperate movie clip, however I might be getting the syntax wrong but it just won't do it for me. I always get a "target not found" error as it appears to be trying to find my taget relative to the base movie and not realtive to the swf loaded on level2
If anyone can think of a solution I would greatly appreciate it. I am trying to seperate my page into several different movies to drastically reduce the loading time for the initial page.
If anyone wants to see the fla files for the page simply email me at:
mike@linboswell.com.au
the unfinished swf can be viewed here:
http://www.angelfire.com/d20/zebra_d...ed_astaire.htm
This is the first, unseperated version of the mock site and does not contain the functions I am now trying to add. I look forwards to your comments on both this problem and the site I am building... (it's rather plain at the moment as it is still a prototype).
Thankyou,
Mike Baxter
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?
Navigation Bar Linking A Seperate Frame
I have a navigation bar I've constructed in Flash. I've placed it in the topFrame of a two frame html page. On this navigation bar is a button called "Contact". What would the getURL action script be to get the page "contact.html" to load in the lower frame?
Open Link In Seperate Frame
I am trying to get several links in a menu to open in a designated frame. however when i export it out it opens up in the same frame as the flash movie. i have used the normal geturl syntax but there is some wierd things in the script. what am i doing wrong. here is the code for on release.
on (release) {
name = getProperty("", _name);
getURL(eval ("../..:" add name add "url"));
..:starget = getProperty("", _name);
..:starget_y = Number(getProperty("", _y))+Number(getProperty("", _height));
sdown = substring(..:target, 10, 1);
if (..:CurrentSub2Set eq down) {
call("..:CreateSubTopics");
} else {
call("..:CreateSub2Topics");
}
}
i will try and et the fla up please help..
Linking To A Frame Label In A Seperate .swf ?
I have a flash file that has 2 frames in it. The first is labelled 'home' and the second is labelled 'contact'. This flash file is embedded in a regular .html page.
How do I link to this regular .html page (that contains the for-mentioned flash piece with 2 frame labels) and make it go to the second frame ("contact") as soon as the page is loaded instead of just stopping at the first frame ("home").
Is this possible ?.
Thanks,
Stephen.
Linking To A Frame Label In A Seperate .swf ?
Linking to a Frame Label in a seperate .swf ?
I have a flash file that has 2 frames in it. The first is labelled 'home' and the second is labelled 'contact'. This flash file is embedded in a regular .html page.
How do I link to this regular .html page (that contains the for-mentioned flash piece with 2 frame labels) and make it go to the second frame ("contact") as soon as the page is loaded instead of just stopping at the first frame ("home").
Is this possible ?.
Thanks,
Stephen.
Making An Inventory In A Seperate Frame.
Right now i have an inventory, but it is on the same page as the character and the map and stuff. I am trying to get it so when you pick up an item that it will go to a seperate frame or something. Like just an inventory page. And then I would need to know how to go back to the main screen from where you left off. If you have any piece of info or anything it would be much appreciated.
Linking To A Frame Label In A Seperate .swf ?
I have a flash file that has 2 frames in it. The first is labelled 'home' and the second is labelled 'contact'. This flash file is embedded in a regular .html page.
How do I link to this regular .html page (that contains the for-mentioned flash piece with 2 frame labels) and make it go to the second frame ("contact") as soon as the page is loaded instead of just stopping at the first frame ("home").
Is this possible ?.
Thanks,
Stephen.
MC Access Frame Label Of Seperate MC
I have a button in a movieclip that I want to goto a framelabel of a different Movieclip. Both Movieclips are on the same scene but are seperate. How can I do this.
Thanks
Linking To A Paticular Frame In A Seperate .swf - Ugent - Help
I have to seperate .swf files.
How does one link to from one .swf files to a paticular frame in another?
Another problem is that they are on html pages, and the layout for both pages are different, and the .swf files are different sizes.
Will doing a basic link just swap 'just' the .swf files, leaving the orininal html layout?
If so, does anyone know how to link to the 2nd html page, with the 2nd .swf, then to the paticular frame????
Help needed urgently.
Deadline nearing.
Opening A Page In A Seperate Frame On A Website
what is the code to open a seperate URL using a flash button which is on a different frame in a frames style website.
for example, i have a 2 frame website. 1 frame has the links, and the other is for the main content. The links page contains seperate swf buttons which open up seperate web pages in the main contents page.
In normal html on the button link, you use <a target = _content.html>, or something like that.
what would you use in flash?
Targeting Flash Movie In Seperate HTML Frame
HI there,
i know it's possible through java script.... but haven't found any tutorials on how to control a flash movie in a seperate html frame from my navigation frame (flash navigation)
i appriciate any links or hints,
yoken
Can't Target A Frame Label Or Frame Number Within Movie Clip
Hi guys,
Can't for the life of me figure out why this is not working:
if (_currentframe==82) {
homefade_mc.gotoAndPlay("fadeup");
design_mc.gotoAndPlay("design_fade"); - this one is fine
}
- the first gotoAndPlay should be going to the homefade mc and then going to the "fadeup" frame label and play from that, but instead it does nothing. Any clues?
Chris
How To Make Flash Button Load Html In Seperate Frame.
Hello everyone,
I was wondering if anyone knows how you can make a flash button load and html page into a seperate frame.
example: Flash navigation bar resides in a top frame in html.
the html pages load below in the main frame. Clicking the flash button loads the html page in the bottom frame.
if anyone knows how to do this I would greatly appriciate it.
Patrick
Dream FX Media
www.dreamfxmedia.com
Help:make Button Play Frame From Seperate Movie Symbol
I am trying to make an animation for my TEE Physics class as we are going to do a report & talk on something. For some strange reasons I chose airconditionares
so the intro to this animation is of side on view of an airconditionare (really scabby looking) with what is meant to be ribbons hanging off it. in the center is a "controller" basically a square with airconditionre control written on it and a button saying "on"
all of the ribbons are copies of a movie symbol and i want to make it so that when the on button is pressed then the ribbon movie symbols will go to frame 2 and start fluttering in the breeze.
My problem is that my limited knowlede of scripting animations is makes it so that i have no idea how to do this
I've tried searching for help but can't find any.
thnx in advance for any help I get
FLVPlayback On Seperate Frames On Timeline Play Over Each Other, And Wont Stop When I Leave The Frame
Hello,
What I am trying to do is pretty basic... I have a basic navigation with frame titles/names and it works fine. When I put videos (FLYPlayer from the components) in some of the frames, and test it, the flv does not stop playing when I leave the frame... so i keep hearing the sound or sometimes see the video I have navigated away from over the content in the other frames I go to!
I would appreciate any help.
Target To Bottom Frame From Top Frame
I try put on (release) {
getURL("http://www.qsuno.com/movies.html" target="bottomFrame");
}
at action ...
because top frame for nav bottom when click bottom making different page at bottom frame but didnt work I not sure action code wrong or right ? thank you
Target > Swf In A Different Frame
I have one html file with two frames.
I want to tell something to a swf that is located on the top frame from another swf that is located on the bottom frame.
How may I do it.
I know how to tell another swf but not in a different frame
thanks
renato
Target Frame
I have 2 html frames and a flash menu in the bottom one. When I try to change the top frame with a static text link in flash, I use the target _top but then the bottom frame dissapears?
sybaweb@hotmail.com
thanks
Target Frame
Hey Everyone! I have a menu that I'm working on and I'm not too good at action scripting, but I'm learning. I had some help setting up the action script to config some links... now I need the links to target a frame. This is the coding for the HTML links:
eval('sub' add i).ver.htmlText = "<a href="" + _root.url4[i] +"">" +_root.sub4[i] + "</a>";
So where do I put the target="mainFrame" so it will change the main frame of my site?? Can anyone help me? Thanks!!
Tell Target In Other Frame?
I want to tell a .swf located in another html frame to goto a specific frame no. (ex. goto frame 6 and stop) when clicking a button in the main .swf located in the mainFrame. Is that possible? I'm thinking some kind of tellTarget command?
The frame where the .swf is located: leftFrame
The .swf: left_side.swf
Thanks,
Mik
Target Frame
I've made a Flash button which uses, for testing purposes, the following for targeting the "content" named frame, in a Dreamweaver frameset, to load the Google site:
geturl ("http://www.google.com", "content")
Funny thing is: it only works when the site is uploaded and online. When I open index.html locally and click on the Flash Button, the "content" frame doesn't change to Google.com. However, when I use a local htm file to be loaded, e.g.:
geturl ("contact.htm", "content")
it works as it should work: contact.htm is loaded in the "content" frame.
Is this normal?
First I tried it by loading Google in a new window like this:
geturl ("http://www.google.com", "_blank") and that works fine. So I'm wondering why targeting named frames in Dreamweaver this way only works when all is uploaded...
[F8] Target Frame .. ?
Well I know how its done in HTML, I was wondering how its done in flash, I have a menu and it has sub headings, and whenever I click on the sub menu link it will open in the frame to the right. Heres a picture as an example.
Target A Frame On A MC
my frame label contains a movie clip... when the playhead goes to the frame label "corporate", i want it to play the movie clip sitting on the frame label, but starting at frame 20 of the movie clip...
i have the following code but doesn't work and i can't understand why... i attached an example of what i have made...
Button Code
Code:
on (release) {
_root.gotoAndPlay("corporate");
_root.playFromTwenty = true;
}
Code on Frame Label
Code:
if(playFromTwenty == true) myMC.gotoAndPlay(20);
Target Frame
my flash buttons are in a frame. I want to target another frame to replace content of that frame.
contest_btn.onRelease = function() {
getURL ("contest.html", "leftframe");
}
it replaces the whole page with this page. It does not just replace the left frame with the contest.html as I am intending.
How do I do this?
Target Frame
Hi
I,ve created a button that opens a web page. In the Actions of the button I'm using Script Assist. I need the page to be displayed on a target frame on a frameset the target frame is called mainFrame and the file is called MainFrame.html. None of the option in the Window droplist ie _parent, _self etc work.
ViRiPuFF
Target A Frame On A MC...
my frame label contains a movie clip... when the playhead goes to the frame label "corporate", i want it to play the movie clip sitting on the frame label, but starting at frame 20 of the movie clip...
i have the following code but doesn't work and i can't understand why... i attached an example of what i have made...
Button Code
Code:
on (release) {
_root.gotoAndPlay("corporate");
_root.playFromTwenty = true;
}
Code on Frame Label
Code:
if(playFromTwenty == true) myMC.gotoAndPlay(20);
Linking From One Movie To Affect Another Movie In A Seperate Frame
hi, im using a page with two frames. the top frame is the navigation and will always stay the same. the bottom frame has a big flash movie. when you roll over the buttons on the flash movie in the bottom frame, i want stuff to happen to the movie in the top frame. is this possible?
mike@indierockmedia.com
How To Target A HTML Frame? HELP....
just a quick one...(i hope)...
trying to display an ASP page in the bottom frame from a click of a flash button in the top frame???
thanks for any suggestions
egs
Target My Script In A Frame, Help
How to target this script to look into a certain HTML frame ?
I allways have the same problem, i make my site on my WEBROOT folder and everything ok. When I use a domainname, scripts doesn't work anymore. Cause it loads the site in a frame. So to avoid that frame I have to build mine in specifique frames grrrrrrrrrrr
tx m8's
...
<SCRIPT LANGUAGE="JavaScript">
function redirectPage() {
var url640x480 = "640.htm";
var url800x600 = "index0.htm";
var url1024x768 = "index0bis.htm";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width >= 1024) && (screen.height >= 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
</script>
</head>
<body bgcolor="#666666" text="#000000" onLoad="redirectPage()">
How Do I Target A Frame Label
ok, after my preloaded the movie my main movie goes to frame 40 and stops. On that frame I have a movie clip that plays. we will call this movie CLIP1
When clip one reaches its last frame I want the root timeline to jump to frame 60 and stop.
I tried labeling frame 60 or the root timeline jump1
Now I set up an action on the last frame of CLIP1 as follows
with (root.jump1) {
gotoAndStop("Scene 1", "jump1");
}
IT gives me an error object not found.
How do I target a frame label rather than a movie clip instance?
Target A Variable Into A Frame
Hi
MX
In a movieClip's timeline....I want to load a text variable like:
myText="this thing"
into frame 1 of that movieClip with loadvariables
How do I target this?
Thanks for your attention.
Mindy
Target Another Frame With GetUrl..Help
Hi all
Im doing a navigation in flash,
trying to get the buttons to load html docs in another frame
but im not able to get it to open in the other frame, it open in a new window instead, even though imn targeting the frame.
on (release) {
getURL("kontakt.htm", "main_content.htm");
}
Attaching a screendump of my frame setup.
Anybody know what im doing wrong?.
Thanx for ur help
Pet
GotoAndPlay In A Frame...Target?
ummmkkkkk
here's the code i have on a button in a movie clip called submaster_mc. this movie clip is in another movie clip called master_mc. I want this button (contact) to call to the empty_mc in my frame.swf file and play the animation from a certain frame. how would i target it to work smoothly?
on (rollOver) {
_root.empty_mc.fade = true;
}
on (rollOut, dragOut) {
_root.empty_mc.fade = false;
}
on (release) {
loadMovie("contact.swf", "_root.empty_mc");
}
My final purpose is to have an animation happen, have another animation drop down over top of that one and play the next piece. thanks in advance - Chris
Target HTML Frame
Hey All!
Still got a little problem. I am trying to get this flash menu to change the mainFrame in my html page. Perhaps someone can help me?
Here is the page I am using now: http://www.triggerfreaks.com/lagunz
And the flash menu is below to download so you can see how the menu works. If anyone could help me, that would be great. Thanks!
Target Frame From A Movie
On my main stage I have a mc. In that mc it loads a swf- I will call it swf 1- that swf has a movie clip on it's main stage that loads a swf- named swf2
How can I get a button in swf2 to go to a frame in swf 1
thanks-Dave
GotoAndPlay To A Target Frame
I have a problem that has been stumping me for quite some time and I'm hoping one of you pros can shed some light for me.
I have a flash movie that is used as a navigation bar for my site. It works fine on it's own, but I also want to be able to control it from a different source. I simply want to be able to load the movie and start at a target frame based on the viewer choosing a region from a list elsewhere on my page. I am trying to accomplish this just by sending a URL variable when it's loaded. For example, the flash movie might be loaded like this:
navflash.swf?targetFrame=11
I have created a little debug text field in the movie that just shows the variable targetFrame. That text field shows the proper value based on the URL, so I know that the variable is getting passed correctly. The only values that actually get passed to it are 11, 31, 51, 71, 91, 111, 131 and 151 which are the start frames of the various parts of my navigation setup.
On frame 1 of my movie I have an action that is:
code: stop();
if (targetFrame>1) {gotoAndPlay(targetFrame);}This is where my problem starts. No matter what the value of targetFrame actually is, the movie jumps to frame 14. I have been able to verify this by changing my gotoAndPlay() to a gotoAndStop() and checking what the actual start frame looks like. After playing through a few frames, frame 28 has an action that tells the movie gotoAndPlay(1). Bizarrely, this time when it goes to frame 1, it properly executes the original gotoAndPlay(targetFrame) and goes to the correct frame. So the problem is that it is only executing the gotoAndPlay(targetFrame) properly when the movie jumps back to frame 1, but not when the movie first loads. I had a delete targetFrame command along with the gotoAndPlay(1) on frame 28, but deleted it during my troubleshooting. Once I figure this out, I plan on putting it back in so that the variable is deleted and an endless loop is prevented when it returns to frame one.
I have attached the original .fla file in a .zip. I hope somebody can shed some light on my problem. Thanks in advance.
-Pete
|