ActionScript 3.0 :: Linking Two Swf's Together?
Dec 1, 2009
im wanting to link two swf files together but cant seem to get the code to work out correctly. I've created a button and a function that i want the code to go in to, so that once the button has been clicked it loads the second swf file. I've tried numerous things, such as getURL, loadMovie etc etc but it just doesn't seem to want to work.
View 4 Replies
Similar Posts:
Jul 28, 2009
the project im working on is all database driven, there are no html files and all coding that is created is made by php then stored within a db to be called later on. now because of this i can't use relative links at all with anything i.e. images, videos and swf files.
so.....i am using swfobject to link to a swf file using absolute linking as shown in the coding below. but what i need to do now is link an .as file in my swf using absolute linking so i can call some arrays from the file.i have doubled checked to make sure my vars can be passed by local testing and it works but now i need it as absolute....is this possible?
View 16 Replies
Nov 12, 2009
So I have main .swf file(I'll call it movie1) that leads to webpages that are not in the movie. The webpage has a navbar which is a seperate .swf file (I'll call this movie2). I need the buttons on the navbar to link to a certain place in the main movie. Is there a way to use gotoAndplay in movie2 to go to a scene in movie1?
View 4 Replies
May 26, 2011
I am making this flash induction demo but i can't link the buttons to a new scene so the user can click on a button and see information relating to that topic.My flash skills are OK but dont use it often enough to keep my memory uptodate.
View 3 Replies
Dec 2, 2009
I'm still a newbie at this, so pleasse bear with me. I have a links page on a website for myself. I wish to create a link from a hidden button over the text to a pdf file within the project folder. I keep getting errors saying that it cant find the file and points to an address which is totally wrong.[code]Is this the right way to link a pdf file to flash?Is there some other code I should be using?
View 3 Replies
Mar 29, 2010
I"m building a presentation & have two separate swf's. One is about 80 mb, the other is 40 mb. When I tried to export the larger one, I got a warning that it exceeded 16k frames. I figured out how to work around that. But now I need to integrate both swf's. If I take the smaller one & import it into the larger one as a new scene, will that blow up my export ability again? Can I link between two separate swf's using some sort of gotoAndPlay function?
View 5 Replies
Feb 26, 2009
Im starting work on a website, my first concern is sorting out a form. I have made a very basic one using the instrucs on this site in flash to start with as you will see on the site:[url]....
I can fill in my date fine, but when I click submit nothing happens. Im thinking there is problem with my actionscript (2.0)What I want to happen when send is clicked is for the page to submit the form information to my email (I have a PHP file set up,named flashformmail. php) and for the browser to forward onto my thankyou page (url....). Can someone please tell me what the action script should read exactly? Once i've got this working i can then got on with making it look better.
View 13 Replies
May 2, 2006
Right I have created a flash banner ad and taken it into dreamweaver, I thought I could just link it to its website easily in DW but I can't.
Do I have to set the url in the flash doc, if so what do I do
View 3 Replies
May 20, 2009
I have got a very simple flash timeline, on each frame is a different page of a book. There is four pages alltogether. I am trying to create 'next' buttons so that the user can flick through the book.
This is the code I have used:
stop();
btn_1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
[Code]....
View 1 Replies
Jul 7, 2009
This was created with frames in dreamweaver and the nav bar and index page movie are swf files. When you click on the pages in the nav bar it redirects to the index page. It does this the majority of the time and every now and again when you click it will go to the actual page.The way it is set up in dreamweaver, it has the nav movie in the top frame and the content in the bottom. All I did was change the old i.p address to the domain name because our host changed. I did nothing else and then this started not working correctly.I have checked and double checked all links in flash and they work from the swf but when it is loaded in the browser it does that weird linking to the index again. This is the code in flash to link to the pages:
on(release) {
getURL("http://www.fostersfreeze.com/Food.html","_top");
}
[code]....
View 4 Replies
Oct 27, 2009
I am currently building a website in flash for a school project and it has to be on a timeline. I was wondering if you could help me i have buttons at the top of the page how would i link these to another frame so it can be used as a new page
View 6 Replies
Dec 12, 2009
how do i link to another movie clip or swf using a button in AC 2.0. i have
btn1.onRelease = function() {
inner.gotoAndStop("health");
inner.health.gotoAndPlay(2)
};
[code]...
On the inner section i have labels.The problem i have is that when the movieclip loads the home movieclip doesn't unload therefore the new movieclip just appears on top whereas i want the home movieclip to unload leaving the background etc and the new movieclip load. I think the problem is that im loading a movieclip within a movieclip and the home moveclip label is on another section.
Therefore im asking can you unload a movieclip or is there another way around this without making the new movieclips background a full colour and working on top of that?
View 3 Replies
Aug 15, 2011
The accordion i created works by recreating a single movie clip as the frame/holder for each and every 'tab' the accordion has.Now I want to have seperate links for each 'tab'. which means, at the 1st tab for example, if you click anywhere on the content area, it will take u to page #a.If you go to the 2nd tab, click, it will take u to page #b.
the current flash file has holders in it in order to let it load the xml data. such as the tab titles, content etc. they are also reproduced in AS hence there is only one instance of each in the FLA.I have created an area which is TO BE the "clickable" area on each page. But i do not know what else to do from here...
View 1 Replies
Feb 28, 2007
I've recently made a simple standalone SWF in a projector format. It contains a button which links to a PDF ..
on (release) {
getURL("cd/manual.pdf");
}
On PC this works fine (although it does open in a web browser rather than Acrobat). On Mac this link does nothing except open Firefox which refuses to open the PDF. The PDF themselves are fine and if clicked on at the source just fire up Acrobat (in Mac and PC).it's possible to force a file to open in a certain App?
View 3 Replies
May 14, 2009
linking my thumbnail photos to the img. photo using action script 2.0?
View 22 Replies
Nov 2, 2009
I'm working with Flash CS4 / ActionScript 3.0I just wanted to know how to link my finished flash ad to its corresponding webpage.-->Click anywhere on the banner and it links you to...youtube or whatever :]
View 5 Replies
Jul 2, 2010
I was able to come up with a menu bar to display on my non-flash website, and left linking to absolute last because I assumed it would be the "easy" part.What I have is a menu bar where each item (about, home etc) is a mc, and some of those mcs have animated sub menus within them (mcs as well).My problem is that when any item in a sub menu is clicked, instead of redirecting to their own link, flash it redirects to the link of the mc that contains the submenu.I'm attaching a link to the file so you guys can understand what I'm talking about.The items with submenus are "services" and "markets".
View 3 Replies
May 24, 2011
Ive been working on a site TheCondoBar which will be up and running soon..... but im trying to figure out some steps on "deep linking" into specific frames. i would like to have deep linking to the tabs I have at the top of the swf file Flash File .... and recommendations on what could be done
View 1 Replies
Sep 6, 2011
Website.addEventListener(MouseEvent.CLICK,website);
function website(e:MouseEvent):void
{[code].........
This is what I have so far.It should go to "mysite.com",however when you click the button,it doesn't do anything.I get no syntax errors,
View 3 Replies
Mar 19, 2012
I have a flash animation of a glowing orb.Orb should always be dark, but should glow when i hover over menu items.SWF file is written using actionscript3.And menu looks something like this
<ul class ="menu">
<li class="menuitem">menu1</li>
<li class="menuitem">menu2</li>
<li class="menuitem">menu3</li>
<li class="menuitem">menu4</li>
</ul>
I want my orb to glow whenever i hover over menuitem class. Should I link with jQ or should I create another SWF file for the menu and then link them together (if so, how do I do that).
View 1 Replies
May 22, 2010
So, I'm making this website, and each page is a separate swf file. Let's call them 1.swf, 2.swf, 3.swf.. 6.swf.So far, I suceeded in linking page 1 to page 2 using Loader, but there's a problem. Page 2, in the player, is OVER page 1. That mean's you can see page 1 where you should be seeing page 2 background.My question is, is there anyway in AS3 to unload or close page 1, right after page 2 is loaded?
View 1 Replies
Nov 23, 2010
I need to get the code to make a button link to a pdf located in the same folder on my host server as my flash movie and index.html file. (or should it be located differently?) I want the pdf to load in a new window..
View 3 Replies
Dec 18, 2007
tutorial on deep linking or using swf address.Also my site uses currMovie for it's page transitions. I've noticed the examples seem to have all their pages on the main timeline. Is it possible to deep link with external swf's?
View 2 Replies
Feb 23, 2009
Project is a map of Europe - in Flash 8, with an xml document linked to it. for each country (or group of countries, where they need to be grouped together), there is going to be ultimately a URL link which displays a relevant article. The xml document needs to 'tell' the flash file there is an article - with the default being that there isn't (if that makes sense) - if and when there IS a story, that country needs to change to a button, which can be clicked by the user to open the article .. probably on a new page. thus far I think I need to have an xml document something like this (forgive my fumblings):
[Code]...
View 1 Replies
Aug 5, 2009
Is there a way to link a button to a .SWF file and if not is there a way to import an .fla file into a new scene of a different .fla file and then link the button to that scene? I am kind of a beginner to actionscript but I know some basics and am willing to learn.
View 1 Replies
May 14, 2005
I am working on a project which is basically a virtual tour of a house. Each room I have made on seperate scenes, some rooms are on more than one scene (diff view points) and some room have a panoramic effect (these are the ones causing the problems). To accheive the panoramic scrolling I have made the room as a mC. Inside the mC I have buttons which should link to other scenes... 'enter the problem'. how do I link to another scene from in there? I have tried :
[Code]...
With the options I haev tried I keep getting different error mistakes and I can't really figure out whats wrong. I have been trying for a week and a half and I'm just not getting any positive results.
View 12 Replies
Jun 21, 2005
I am having a major problem with an action script. Though I have been told scenes are evil I used them anyway because I have found in the past it helped me to organize my movie better. I have a button and I have been trying to write a script so when I click on it, it goes to scene 4 and plays it. The code I have been using is:
ButtonName.onPress = gotoAndPlay("scene 4", frame 1);
Although I don't get any errors this doesn't work at all.
View 5 Replies
Jun 29, 2005
I suppose there has been such a topic already, but I cannot find it. I have been doing some XML menu (I have covered all the XML tutorials here on kirupa.com) and the code is doing just fine. I am using this one:
Code:
item_spacing = 100;
item_count = 0;[code]...
The menu builds without any problems. But, now comes the problematic part... I want to give those buttons in the menu the function to load .swf-s into the "loader_mc" which is on the main timeline. "loader_mc" is basically the place where I want my "movie1.swf" etc. to load into.I have been trying to figure it out by myself for two days now and I gave up. What can I do (what code to write) so that every button gets to load a different .swf into the "loader_mc"?
View 6 Replies
Apr 7, 2008
I'm having trouble figuring how to get the buttons to reference the correct imageBox and position the imageHolder. The imageHolder is a movieclip on the main stage and inside of that are a series of imageBoxes attached for each image. You can click on each image and the imageHolder will move and the images will enable and disable. If you click on a button the current image will fade but then return to 100% alpha. It's not completing the disableImages function.
You can view a swf of it HERE. Probably viewing it will be better than anything I can describe.
This is the actionscript for enabling and disabling images and for positioning the imageHolder: ActionScript Code:
function disableImages() {
for (i=0; i<imageTotal; i++) {
imageHolder["imageBox"+i].enabled = false;
[Code]....
View 3 Replies
Mar 4, 2009
I have a main movie in which all my buttons are, this movie loads the other swfs in a contentHolder movie clip.Now the problem is that I need to link to a certain frame in the loaded swf.
button_btn.onPress = function() {
contentHolder.loadMovie("investment.swf");
};
Now in the investment.swf I want it to go straight to frame 5. I have done lots of looking online, but cant seem to find the answer. I think I need to use variables but am not sure
View 1 Replies