473,813 Members | 3,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Link to External Flash File Frame

27 New Member
Hi, I'm new to Flash am trying to link to an external site, which consists of a single flash file, and load a specific frame. The actionscript code I have attached to the button so far is as follows:

Expand|Select|Wrap|Line Numbers
  1. on (release) {
  2.     getURL("http://www.tinhorse.com", "_self");
  3.     gotoAndStop("we_see");
  4. }
  5.  
The link takes me to the external site as required but does not load the correct frame. It looks like gotoAndStop function is not being passed on to the external flash site.

Any help with this would be appreciated.
Oct 1 '07 #1
7 4322
Motoma
3,237 Recognized Expert Specialist
Hi, I'm new to Flash am trying to link to an external site, which consists of a single flash file, and load a specific frame. The actionscript code I have attached to the button so far is as follows:

Expand|Select|Wrap|Line Numbers
  1. on (release) {
  2.     getURL("http://www.tinhorse.com", "_self");
  3.     gotoAndStop("we_see");
  4. }
  5.  
The link takes me to the external site as required but does not load the correct frame. It looks like gotoAndStop function is not being passed on to the external flash site.

Any help with this would be appreciated.
That is right, gotoAndStop will act on the frame in the scope of which it was called. That is to say that the parent movie clip with goto the frame "we_see" You may have better luck creating an empty movie clip and loading the external swf into it, then changing the frame.
Oct 1 '07 #2
ridgedale
27 New Member
You may have better luck creating an empty movie clip and loading the external swf into it, then changing the frame.
Thanks for your reply, Motoma. You'll have to excuse my ignorance, here - is this something I should be looking at coding purely through ActionScript? If so, how do I go about doing that?

In the meantime I'll have a look through the Flash Howto book I got from the library to see it sheds some light doing what you suggest.

Thanks again.
Oct 2 '07 #3
Motoma
3,237 Recognized Expert Specialist
Thanks for your reply, Motoma. You'll have to excuse my ignorance, here - is this something I should be looking at coding purely through ActionScript? If so, how do I go about doing that?

In the meantime I'll have a look through the Flash Howto book I got from the library to see it sheds some light doing what you suggest.

Thanks again.
What I have suggested would be implemented through Actionscript, if that is what you are asking. The way I propose to test it (though I do not guarentee it will work) would be to create a new movie clip by calling createEmptyMovi eClip(), calling that movie clip's loadMovie() specifying the URL of the external SWF, and then attempting to call the movie clip's own gotoAndPlay() method.
Oct 2 '07 #4
ridgedale
27 New Member
Motoma, thanks again for your reply. I was wondering if there would be any disadvantages to splitting up the external flash file so I could use the getURL() function to go to each of the sections. Do you think this would be a good idea or do you have reservations?

Thanks again.
Oct 3 '07 #5
Motoma
3,237 Recognized Expert Specialist
Motoma, thanks again for your reply. I was wondering if there would be any disadvantages to splitting up the external flash file so I could use the getURL() function to go to each of the sections. Do you think this would be a good idea or do you have reservations?

Thanks again.
If there is a particular reason or goal you have for doing it this way, go ahead.
Oct 3 '07 #6
ridgedale
27 New Member
Motoma,

I was just thinking that it may be simpler and I know the getURL() function does work. I just wondered if there might be any drawbacks to doing it this way or that your method would be better or more efficient.

Thanks again
Oct 4 '07 #7
Motoma
3,237 Recognized Expert Specialist
Motoma,

I was just thinking that it may be simpler and I know the getURL() function does work. I just wondered if there might be any drawbacks to doing it this way or that your method would be better or more efficient.

Thanks again
If you want to load up an external flash file and jump to a specific frame in it, you cannot use getURL.
Oct 4 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3065
by: Unregistered | last post by:
I'm making an Intranet site for someone who is not very familiar wit making websites, thus I would like to make it as simple as possible fo her when she needs to update it. The intranet site uses frames - one menu frame that is always present and one frame into which the content is loaded. The intranet sit features many, many links to both internal and external pages - i internal pages within the intranet and external pages on the...
26
3012
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that clicking on the example link will open it in a new window in an already saved template/site/ called example.html
1
4208
by: ramvenkat | last post by:
hi is it possible to save a external file through flash application in a particular folder specified in the flash application? means 1)would like to specify a folder while saving a particular external file through flash 2)need to take the saved file again through the same flash file..
6
3969
by: mikes8arms | last post by:
Version: Flash MX (A.S. 2.0) Hello. I haven't posted since signing on a few weeks ago. I've searched your site seeking an answer or answers to the concept of creating a "close button" for my external swf's. I've also searched engines; Ask.com, Yahoo.com, Lycos.com, etc.. I've tried the following methods of code as solutions, with no success: on press{ unloadMovie (1); } ..or...
3
8119
by: WPeterson | last post by:
Converting PowerPoint to Flash would absolutely be a good choice to distribute your bulky PowerPoint presentations. You can do the whole PowerPoint to Flash conversion manually or with professional applications. First, you'll need to prepare the PowerPoint files. Make sure you are not using any complicated gradients or animations. These will be interpreted poorly when they are brought into Flash. Also, make sure there are no objects that...
1
7002
by: knkweb | last post by:
Linking pages with buttons in flash? Hi: I have this problem in actionscript (flash). I was wondering if someone can help me out. I am a junior programmer, and I really needed to do this for school. Ok, I have a page with a graphics, and I would like to push a button that I created which will go into another page on the certain frame in flash. I would like to use the timeline in flash to link each page. So one frame has a graphic...
1
2212
by: Omega | last post by:
Hello, For my flash project I want to read variables from a text file and store them locally in flash variables. This workes fine if I put everything directly inside the flash project file (actions belonging to a certain frame). Because I need to write a lot of code I want to put it all inside an external actionscript file / class(es). When I define a variable (like 'dummy' in the example below) and copy a value read from a text file to it,...
0
1788
by: prince23 | last post by:
hi, i am trying to develop an flash application. where they have designed the entire front end by flash. now i need to doing the functionality part like taking the data from flash and save in database(sqlserver r mysql) using ( asp.net 3.5 frame work) . now as flash is able to read xml file there is no issue in it. but how to write an xml file from flash and send to dot net frame ...
1
3363
by: jawwad90020021 | last post by:
import flash.external.ExternalInterface; after compile this error occurs **Error** Symbol=Menu_Buttons, layer=Layer 12, frame=1:Line 1: Syntax error. import flash.external.ExternalInterface; Total ActionScript Errors: 1 Reported Errors: 1
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10669
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10426
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7686
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.