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




Linking To Frames In A Separate Swf



I have just split up my too-large-to-load-efficiently website into sections, but I'm having some trouble linking to the separated swfs.

One button loads a separate swf into an empty movie clip on the main timeline (which I have done), and I need another button to then reference a specific frame in that now-loaded movie. How do I do that? Do I refer to the empty movieclip, or the now-loaded swf? Is it something like:

on (release) {
_root.movieclip.gotoAndStop("movie.swf","framePrin t01");

}

I get confused about how the loaded swf is recognised via the empty movie clip... and what about when I load another swf into that container? Will the correct frame in the newly loaded swf load? Do I have to unload the first swf before I load the next one?


Yikes. Thanks.
Michelle



FlashKit > Flash Help > Flash Newbies
Posted on: 05-26-2003, 06:38 PM


View Complete Forum Thread with Replies

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

Linking 2 Separate .swf Files
I know it's probably really easy, but I can't find how to do it anywhere, and I've never really used flash before but...

I have 2 .swf files.  I want to create one swf file with these two playing one after the other and looping.  How do I do this?

Any help would be much appreciated...

Controlling Swf's In Separate Frames
Is it possible to have 2 .html frames each with a flash movie and the 2 movies interact with eachother?

Such as a menu in one frame and a submenu in the other.
When you click on a link in the menu... the submenu will go to and play a specific set of frames.

Videos On Separate Frames
I am trying to create a site where you click on links/video previews to play a video. There are 5 different videos, and I want to separate them using layers and separate frames and to play when you click on the links. But I can't seem to get the links to work right and nothing is happening. Can somebody help me? This is an important project for my job.

Separate HTMl Pages And Linking
I have a flash movie that has been broken into 8 separate .swfs, and each published as it's on Html page. Is there a way to link from one to the other, but have the link not just go the the beggining of the next .swf (just by the Html. name) but to a marker in the next .swf?
My client wants the movie broken up like this. Most scenes have atleast 15 markers for different content. So far, I have been pasting in the scenes from the other pages according to what its supposed to link to, into the scene with the link.This works alright, but it's increasing the file size for this movie,plus,since I'm not pasting the entire other .swf in, it makes navigation into the pasted scene useless, as I'm only pasting in a portion? Help,please, and better way to link would be appreciated.

Linking Separate Flash Files
I have set up buttons on each of my flash pages to link to another flash page so each wouldn't take so long to load...now I am trying to put each page into dreamweaver to launch them...is this the best way? Can I launch my site without using Dreamweaver? My links don't seem to work as well as I'd like...ie the buttons take several clicks to bring up a new page and when i'm testing it they haven't found their links...I need help!

Thanks so much:)

Linking To Anchors In Separate Sites
Hi,

I'm tring to link from one flash site to another. However, instead of linking to the intro page of the site I want the user to enter the site in a specific section. I'm attempting to use named anchors to achieve this, but not having much luck. Anyone any ideas?

Thanks

Linking 2 Separate Flash Files
hi

i have a music player as a swf file. the play button has the code


Code:

// play button
play_btn.onRelease = function() {
playSong(); };



i would like to have another play button in a separate swf file so that when you press it, it controls the music player. is there a way to call the player via a play button using actionscript?


edit: i found this

http://www.actionscripts.org/tutori...ies/index.shtml

which looks like it should do the trick, although i'm having problems implementing it.

In the receiving flash i have this:


Code:

myReceiving_lc = new LocalConnection() // creating local connection
myReceiving_lc.connect("_myLocalConnection") // this " _myLocalConnection" local connection is created in movie A.
myReceiving_lc.recievedValue = function(remotePlay) // this method is called by movie A.
{
if (remotePlay == 1)
{
playSong();
}
}



and in the sending movie I have this:


Code:

play_btn.onRelease = function() {

my_lc= new LocalConnection();
my_lc.send("_myLocalConnection","recievedValue","1")
// sendingData("Home")
// you can also create a function for this.
// So you don't have to write these code every time for every button.
};

Communicate 2 Different Swf's In Separate Frames In A Frameset
i want to communicate 2 different swf's in separate frames in a frameset.i want to mouseover or click a button in the 1 swf and manage to move the playhead of the 2 swf,which is in another frame of the same frameset.please give me a simple example.it's very important to make it work

I'm Trying To Do Two Different Things With The Same Symbols (in Separate Frames)
Is this possible?

Two frames which use different instances of the same buttons, with different pieces of Actionscript applied to the buttons in each frame.

I've given the buttons different instance names in each frame, but in the second frame they don't do what they're supposed to do (ie. play a sound or display a movie clip).

The context for all this is a multiple choice quiz.

Two OnEnterFrame Commands (in Separate Frames)
I have two onEnterFrame functions that run at separate times. The code is on the timeline of a mc that I am using as a mask, and it is controlling an empty mc on my main timeline that is holding a jpeg loaded into my main movie using the loadMovie command.

On the 35th frame of the mask mc timeline, I have this code (to scroll the picture)

_root.holder.onEnterFrame = function() {
_root.holder._x += 3;
}

It works fine until frame 503, where I have this code (to fake that the masking is being used to fade the picture in, I am setting picture alpha to zero, then fading it in)

_root.holder._alpha = 0;
MovieClip.prototype.fadeIn = function(speed){
this.onEnterFrame = function(){
this._alpha+=speed;
if(this._alpha >= 100) delete this.onEnterFrame;
}
}
MovieClip.prototype.fadeOut = function(speed){
this.onEnterFrame = function(){
this._alpha-=speed;
if(this._alpha <= 0) delete this.onEnterFrame;
}
}
_root.holder.onEnterFrame = function() {
_root.holder.fadeIn(5);
}


How would I get the picture to keep scrolling? (because it stops once the new onEnterFrame function is executed)

Two OnEnterFrame Commands (in Separate Frames)
I have two onEnterFrame functions that run at separate times. The code is on the timeline of a mc that I am using as a mask, and it is controlling an empty mc on my main timeline that is holding a jpeg loaded into my main movie using the loadMovie command.

On the 35th frame of the mask mc timeline, I have this code (to scroll the picture)

_root.holder.onEnterFrame = function() {
_root.holder._x += 3;
}

It works fine until frame 503, where I have this code (to fake that the masking is being used to fade the picture in, I am setting picture alpha to zero, then fading it in)

_root.holder._alpha = 0;
MovieClip.prototype.fadeIn = function(speed){
this.onEnterFrame = function(){
this._alpha+=speed;
if(this._alpha >= 100) delete this.onEnterFrame;
}
}
MovieClip.prototype.fadeOut = function(speed){
this.onEnterFrame = function(){
this._alpha-=speed;
if(this._alpha <= 0) delete this.onEnterFrame;
}
}
_root.holder.onEnterFrame = function() {
_root.holder.fadeIn(5);
}


How would I get the picture to keep scrolling? (because it stops once the new onEnterFrame function is executed)

Controlling Swfs In Separate Frames
anybody know how to control separate flash movies in different frames? found one source at : http://www.ashzfall.com/flash/fscomlib/frameplay.html
however it doens't work in netscrape (then again, what does?). thanx in advance!

Can SWFs In Separate Frames Interact?
I think this is a silly question...but just wanted to hear confirmation from those who know more than I do. I have a client/developer that asked me to see if this is possible. Basically he wants to load SWFs into separate frames and have them control /interact with one another. I normally use placeHolder MCs and load SWFs into them for this type of situation ... keeping everything on a single _root timeline. Thanks for your ideas....

Targeting Two Separate Frames In An Html Page...
I've been searching the boards for what seems like 2 days or so, but haven't yet found anything that seemed to work.

-I have a movie that when a certain button is pressed, it opens an html page that i have divided into two frames.

-I have built the frames page (in dreamweaver) to include a page called "content.htm" as the bottom frame (referenced in dreamweaver accordingly), but I need to be able to tell the content.htm page go to a specific URL from flash.

I've tried to do all this with html, but there are many of these links that have to open a different URL in the content frame, so that means a different html page for every one of them.

I've been trying to do it just by referencing the content frame with:

on (release) {
getURL ("www.thisdomain.com/sub-folder/frameset.htm", "content.htm");
}

but it just doesn't want to work when i try and reference a different html page for the content frame.

any ideas and/or help on this would be greatly appreciated.

Flash Buttons And Frames On Separate Pages
I have a site that has one window with a flash movie in it. I was wondering if it was possible to set the buttons to go to a frameset and have each button load a different frame. Any insite on this would be most helpfull.

Control 2 Separate Flash Movies In 2 Frames?
Hi guys, I have a set up.

Frames and 2 separate flash movies.

Can I control one flash movie with the other?

What I want to do is basically when loading one movie just hide an aspect of the other movie. I hope this makes sense. Thanks in advance! This forum always provides great help!

Linking To A Separate .swf File In Its Own Small Browser Window
Just wondering how to use the get url function to open another swf movie in its own browser window that is of a specified size that fits the movie.

I've tried using a javascript action, like how i would do it in dreamweaver but it doesn't seem to be working.

I want to link to a flash photo album that will not be "resizable" in its own browser.

Any ideas would be appreciated!

Linking With Frames
I have a website with frames and i want to make a menu in flash, but how do i make it link into the correct frame? Can someone plz help me?!?!

Alpha

Linking Into Frames
Im making a site using Frontpage and want Flash buttons to link to a page in another (i.e. the flash buttons in the menu page/frame should link to other pages to open in the main frame of the site). What frame should i say the buttons should link to (i.e. _self, _blank etc)

Thanks,

Linking To Frames
Here is the situation I am creating an interactive presentation that calls external flash swf files to create the one large presentation. I have a Preloader and an intro to a menu that plays before the main menu shows up. Once in the main menu it calls up external swf files and then runs those shows. From there I would like to be able to link back to the main navigation without having to view the preloader or the intro again what sould I do any Ideas

Thanks

Asnutting

Linking To Frames
Is it possible for html links to load a swf to a certain frame? I have an html page with several thumbnail links and an image viewer swf that has a different corresponding image on each frame. I can make all of the thumbnails open the viewer, but so far they all can only open it to the first frame. Is there a way to make each thumbnail load the swf and go to a certain frame?

I hope that wasn't too hard to understand.

Any help is greatly appreciated!

Linking Frames
I am using CS3. I asked earlier how one keyframe can be hyperlinked to go to another keyframe (frame 325 to 120). The answer I received was: place a button symbol on frame 325 with the following script: on (release) {gotoAndPlay(120);} I tried and there MUST be a step or two missing----I cannot do it. Where is the release button, where is the {gotoand Play(120) and is that a color or semi-colon at the end? A million thank you's to whomever can assist! I'm a GREEN newby who needs a step-by-step I guess!

Linking Between Frames
ive used the tutorial on how to create links inside a text box, but thats only for web address. i was wondering how i would create a link that would link to another frame on the timeline.

Linking Frames To Each Other..
Hi guys

Just stuck on one little thing here, i managed to have my main menu go to different frames with their own names like "main" "songs" "about us" and so on

but when i am inside one of the menu options what happens is that i can't link to them.

For example i replicated the link from the top menu which is on its own layer


on (release) {

//Movieclip GotoAndStop Behavior
this.pages.gotoAndStop("logos");
//End Behavior

}


but it just isnt buying it and the LOGOS is in PAGES .. but is there any easy way to go ahead creating layered pages as i will be having my portfolio with more than 10 sections and i dont know how to go to each section, all i am using now is NEXT FRAME PREV FRAME

anyone please

thx a mill

Linking Swf To Swf In Two Seperate Frames...
is there a way to link from one swf in one frame to another swf in another frame???

here is the scenario...

button in first swf links to a "goTo & Play frame number 120" in second swf... each of these swfs are in seperate html frames...

is this at all possible???
does this at all make sense???

thanks...

dan'l

Linking Buttons The Frames
Hi
Thanks for reading my dilemma...

Okay... here's the situation:
I have all of these buttons on my site. What I want them to be able to do is that whenever a person clicks on one of the buttons, it will jump to a specific part of the timeline beyond frame-150. Just to let you know, all of the animations and stuff all end at frame 150 on my main timeline.

I figure that I'd put a keyframe at frame 151 on a layer for one of the 'pages' to jump to, once the button is pressed. That so-called page would have a button to jump back to frame-150. *at least, this is the idea and theory*. I have the idea of labelling the frames involved after frame 150 but I don't really know how to piece together all of this knowledge.

Could someone please walk me through this and tell me how to code the action script and how to set this up?

Is this even how I should approach the situation?
I don't want to deal with scenes and stuff, since I'm not to familiar with actionscripting.

PLEEEEEEEEEASE help me.

Linking To HTML Frames
How do you link from a falsh menu in one htmL frame to another html frame?

All help appreciated

Ross

Linking To Second Flash Frames
Hi,
I'm not sure if this is possible but i was wondering if 1 swf could call a certain frame inside another swf and play it,
I'm trying to make a map by using 2 swf's, the first is the interface and the search engine swf (search is altered from either Kumar K's "Find a string" movie (u can download it at http://www.flashkit.com/movies/Scrip...07/index.shtml ) or from flashjunkie's "Active search v2" )
The second swf is the world map with the names of countries all over it
Here's what i want to do : The search contains a list of 10 countries, when u find a country u click it's name so the map swf repositions itself (by changing its coordinations) .. ex: u click on USA in the results field after u've done a search on USA (the result is also USA) so the map shows the US centered in the screen.
All i could think of is by making several frames in the world map swf each with different coordinations so when the search swf's result is clicked it goes to the correct frame of the loaded map.
i know its not a really bright idea but i don't know any actionscripting so if u have any better ideas please share them with me
thank u 4 ur help in advance

**web Frames Linking With Menubar** (pls Help)
thx 4 ya time. i got a big problem.
firstly,
i made a web page(frameset.htm) with 2 frames.
1st frame named "topp" <--the 1 on the top
2nd frame named "main" <--the main 1


then i put a flash5 menubar inside the topp.htm
when i open the frameset.htm with my IE ...i can see the frameset.htm ( topp.htm(flash menubar) at the top and main.htm below the menubar). when i click on my menubar links it will bring me to main_next1.htm (just an empty page) ... but i want the main_next1.htm to load inside frame "main" , the one below the menubar .

pls advise.

i tried setting
<BASE TARGET="main"> inside topp.htm codes but to no avail.
issit that i have to configure my flash5 menubar?

**web Frames Linking With Menubar** (pls Help)
thx 4 ya time. i got a big problem.
firstly,
i made a web page(frameset.htm) with 2 frames.
1st frame named "topp" <--the 1 on the top
2nd frame named "main" <--the main 1


then i put a flash5 menubar inside the topp.htm
when i open the frameset.htm with my IE ...i can see the frameset.htm ( topp.htm(flash menubar) at the top and main.htm below the menubar). when i click on my menubar links it will bring me to main_next1.htm (just an empty page) ... but i want the main_next1.htm to load inside frame "main" , the one below the menubar .

pls advise.

i tried setting
<BASE TARGET="main"> inside topp.htm codes but to no avail.
issit that i have to configure my flash5 menubar?

Linking Between Top And Buttom In Frames
Hi,
thank you for reading this.

I have a framepage with one topframe and a bottomframe. In the topframe there is a button in the swf that when clicking on it the swf in the bottomframe should go to a specific frame number - i.g. frame number 20. What would be the actionscript that I put in the button?

Thanx for any answers!
Regards ik.

Linking To Frames In New Swf Files
Im loading the new movies with the loadMovie command

In my first movie there are several different buttons (movie1) which when pressed should direct you to individual frames on a new movie (movie2). all of the frames in the second movie are on the one time line and are also in scene 1.

on (release) {
loadMovie("movie1.swf");
gotoAndPlay("65");
}

I started off by attaching this sort of scripting to each button
I know this is completely wrong but this should give somone the idea of what im trying to do.

any ideas

phil

Linking To Floating Frames
How do you use a flash button to link to a floating frame? My site has a floating frame and a flash button on the same page. How do I make it so that my flash button links to a page so that the page can be viewed INSIDE the floating frame? Here is my site... I hope you can help... I need the images page to appear in the floating frame (the white box) when I press the "images" button.

Linking To A Document With Frames
Hi, I need help with a school assignment.

I have been trying to link a Flash button to a document with frames. Everytime i test the file in IE6, the page just goes blank! what happened? Does Flash have some particular problem with linking to HTML documents with frames?

My deadline is 22 Aug, hope I can get some help by then...

THanks!

Frames And Linking Buttons
ok, this is what i know:

_self : Opens the URL in the current window. (Same as if you did not specify any window)

_blank : Opens the URL i na new window.

_parent : Opens the URL in the parent frame (only works with framesets).

_top : Opens the page in the current window - if it's a frameset all frames are cancelled.

Im sure you all know that too, but what i need to know is, whats the oposite of '_parent' , i have a navigation on the bottom of my page and i want the links to open in my top frame.

With pictures i know you use 'mainframe'

I tryed 'mainframe' and _mainframe' but that just opens in a blank page :S

Linking Between Swf's To Specific Frames
I'm building a site with frames... The "button frame" is a 5 frame flash swf, which links to individual swf's in the main frame... Is there any way to link from the "Main frame" back to a specific frame in the "Button" swf?

Frames - Button Linking
Trying to make a page that has 3 frames.

1-Top/Header: Static, flash file
2-Middle/Body: dynamic, content from bottom menu.
3-Bottom/Menu: static, links change frame 2.


I have crated the footer menu buttons with the following properties:

on (release) {

//Goto Webpage Behavior
getURL("http://art.artsensemagazine.com/copyright.htm","_blank");
//End Behavior

}


But I do not want it to open a blank page, I want the link to open on frame 2.
What is the correct scipt for that. I have seen defults for Parent, Self, Top, Blank, but no "center". How can I accomplish this?

Thanks in advance.


this is the current site:

http://art.artsensemagazine.com

Linking To HTML Frames?
Does anyone know how I can link a flash button to a certain HTML frame on my website?

I use 2 frames, one for my menu (which is flash) and one for the content (which is HTML). I need it so when I click the flash button, it opens the link inside the content frame. Is there some type of action script or <target="contentframe"> code I need to tag on?

Thanks for any help!

Linking To Different Frames In Seperate Swf
Hello

Here is what I need to do:

Link from swf file A which is embedded in A.html

to a variable frame from swf file B embedded in B.html

Is this possible?

Thanks for any help!

Linking Buttons To Frames
Hello, so this is my first post and i want to thank anyone who has some knowledge on this, in that case i'm sure there are lots of people to thank.

First I would like to clarify if its a recommended direction to take by making a button which leads to an animation that also has buttons on it.
Those 2nd buttons in turn lead to anther animation when clicked.

The issue i'm having is on the 2nd set of buttons/animations.

I've tried to use the same code :
on (release) {
gotoAndPlay(21);
stop();
}
which I used on the first set, but this time it doesn't seem to be working at all.

I'm wondering if this approach of creating multiple buttons and animations on what is initially just one animation a good approach.
Could anyone recommend some solution as to how I might get the 2nd button to work?
Thanks

Linking Buttons With Frames
Hi Im new to Flash and Im currently using Adobe Flash CS3. I have a problem that I could not find any solution for because of my lack of Actionscript knowledge... I have made a button "Enter" in Frame 1. In a new layer above I pressed F9 and tried using actionscript to link my button to a Movie clip in Frame 2. I could not find anything to do this. I know how to link the URL and stuff:


***name of button***.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("*********************websitesname***** ***"))};

What I want to know is how to change the navigateToURL(new URLRequest("*********************websitesname***** ***"))}; lines in order for me to move on to frame 2 after Frame 1 with the Enter Button.

Linking To Frames In External Swf
I'm a REAL newbie at flash, and have a website to create with a lot of separate SWF files.
I'm having difficulty linking back to a certain frame in the index.swf file which is embedded in the index.html file from the other SWF files.

how do i link back to a certain frame in the index.swf

or

should i have all the swfs placed within the index.swf and use to {goto} function to link to the correct frame?

any help or direction to find this out would be heaps helpful, thanks

Natzca

Linking Buttons To Frames
Background:
i have a products pages with 4 different product lines ex:chairs, desks, a/v, cabinets. Each product line is a button to its own page.

I was wondering if anyone would know how to link up a product line button to its specific page that is located on another frame he specific frame on the same page.

Can someone help me please :)

Linking To Specific Frames
I have a website with a javascript/Spry navigation bar. I was planning to have the static elements of the site done in Dreamweaver (the outer shell, basically), and have the main body of the page be in Flash.

If I had the body of the site in a Flash file, each page in a different frame, how would I link to a specific frame from my HTML file?

Linking Flash With Frames
Hello, I was just wondering if i could get a little help with linking flash to frames. Heres what my problem is.

I have my frame set complete and I have my flash file in my frame titled "top". I would like to know how to get my flash movie to open up a page in the frame "bottom"

All help will be greatly appreciated. Thanks in advance

Linking To HTML Frames
Hi there,

I've done a search on this, no luck.
I'm trying to link a Flash button to a html page in the right hand frame of my frameset, titled "mainFrame". I'm using the following code:

on (release) {
getURL ("02.html","mainFrame");
}

How do I stop "02.html" appearing in a new window?

Many thanks,

c

Flash Linking To Frames..
Okay, I have a flash navigation in one frame and html page in the other... I would like when clicked on a button, only the bottom frame reloads to a new page.. anyone know where I can find info on this?

thanks

Linking To HTML Frames
I'm making a flash menu, that plays an introduction to the webpage from the banner/menu. I need to use HTML frames, because if I don't, and I use the getURL action and create a html page with the flash in the correct position, the beginning of the flash will play each time a menu button is clicked.

If you didn't understand what I just said, because I communicated it wrong, here's what I have:

The Flash Banner/Menu

Please help!

Linking Buttons In Different Frames?
i downloaded a flash template which was pretty much an awesome navigation bar. my problem is that i have made 2 frames on my web site and the nav bar is in the top fram and the content is in the bottom. i know how to make a link in html to display the target in the bottom frame ie target="bottomframe" but i have no idea where i can edit this code in the flash. the page is currently being tested in singlefram on www.angelfire.com/dc2/biobin but this is only because i can't get it to work in 2 frames. help me!!

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