Help you with the Geturl command.

Source: Internet
Author: User
Tags html page mail resource dreamweaver

Since is the network animation, then the Flash animation and "The HYPERLINK" the link is essential, below we have a common and very important action function Geturl in Flash () Make a summary.

First, there are two main ways to trigger Geturl:

[1] Spectator passive link way Add Geturl instructions to a certain chastity on the animation timeline, which automatically links to the page address specified by the Geturl parameter when the animation is played to this chastity.
[2] The active link way of the audience Adds a geturl instruction to one of the buttons in the scene, and when the button is triggered, the animation links to the page address specified by the Geturl parameter.

Its position in the action panel:
FLASH5.0: Actions--geturl
FLASHMX: Actions--browser/network--geturl

Grammatical form: GetURL ("url", "Window", "variables");

Parameter description:

[1]url parameter: The URL is used to obtain a uniform location resource for the document. Note that when filling in to write a complete thanwww.sina.com.cn can be written directly in the IE Address bar, but here we must writehttp://www.sina.com.cnCan be, of course, FTP address, CGI script, etc. can also be used as its parameters.
The above is the absolute address, it fully writes the unified localization resources.
In fact, the relative address can also be used here:
If the SWF is in the same directory as the resource you want to open, write directly to the file name and suffix you want to open. such as Geturl ("aaa.swf");
If the resource is in the next level directory, start with/, such as Geturl ("/aaa.swf");
If the resource is in the upper directory, use the. /start, such as Gerurl (". /aaa.swf) ";
The above directory refers to the SWF file stored in the directory as the benchmark.


[2]windows parameter: Sets how the page window opens for the link you want to access. You can enter the name of your own or window (in conjunction with the Dreamweaver frame settings). You can also select from the Drop-down list:
_self: Opens the link in the current browser.
_blank: Opens the Web page in a new window.
_parent: Opens the link in the previous browser window at the current location. You can use this option if you have more than one nested frame, and you want the linked URL to replace only the page on which the movie itself resides.
_top: Opens a new link above the current browser. If you set up some frames in the Dreamweaver, this movie is in a frame where you want the URL of the link to appear on all the frames without replacing any of the frames, OK, so pick it up.
[3] Variable parameter: The transmission mode of the specified parameter. In most cases, its default parameter is dontSend. If you want to submit the content to the server script, select SendUsingGet or sendUsingPOST. "。 "Get" means that the list of parameters is added directly to the URL, and submitted with it, generally applicable with fewer and simpler arguments, "POST" indicates that the list of parameters is submitted separately, slower in speed, but not easy to lose data, application and more complex parameters.




———————————————————————————————
Other uses for URLs:

[1] mail program triggers
Use Geturl to implement the trigger effect of the mail program (when you click the button, automatically open the local computer default mail program such as Outlook) just write Geturl ("mailto:flasher@flasherclub.com") on it. Note that there is no space between mail and to. Change your email address as needed.

[2] Desktop Shortcuts link
Remember the last time you had a full-screen animation. When the desktop, the desktop shortcut to connect the general address of all say, such as Geturl ("E:\ My document \flash\flashGAME "); but as the desktop has to have a special link [my Computer] [My Documents], I want to tell you my lesson: if you write Geturl (" My Computer "); it is invalid, here are a few more specific desktop link parameters:
link [My Computer]gerurl ("file&:///::{20d04fe0-3aea-1069-a2d8-08002b30309d}");
link [My Document]gerurl ("file&:///::{450d8fba-ad25-11d0-98a8-0800361b1103}");
Link [Network Neighborhood]geturl ("file&:///::{208d2c60-3aea-1069-a2d7-08002b30309d}");
link [Control Panel]gerurl (' file&:///::{20d04fe0-3aea-1069-a2d8-08002b30309d}/::{21ec2020-3aea-1069-a2dd-08002b30309d} ");
Link [Recycle Bin]geturl ("file&:///::{645ff040-5081-101b-9f08-00aa002f954e}");

[3] JavaScript functions in the calling Web page
Format: GetURL ("javascript:function ()");
Where the function is one of the functions defined in HTML or functions in a function library.
Principle: When the animation executes the geturl instruction, it starts searching for the JavaScript function named function in the HTML page where the animated SWF file resides, and executes the function immediately.

Here's the most common example--using Geturl to invoke JavaScript to open a new window
The method is as follows:
Add the following code to the Flash button
On(release){
GetURL("Javascript:opennewwindow" (' URL ', Windowname,width,height,toolBar,menuBar,locationBar,scrollBar,statusbar,resizable) ");
}

The specific parameters are set as follows:
Url->The address of the page that pops up the new window
Width->Window width
Height->Window height
Name->Window name
ToolBar->Do you need a toolbar
MenuBar->........ Menu bar
LocationBar->.... Address bar
ScrollBar->..... scroll bar
StatusBar->...... Status bar
Resizable->Whether you can change the size

Publish it in HTML format, and then open the file and add a code to it to define a function called Opennewwindow.
<scriptlanguage= "JavaScript" >
<!--
functionOpennewwindow (Url,name,features){
window.open (Url,name,features);
}
-->
</script>

The function of this function is to open a Web page file with the address URL as a new window named name with features.

Source: Flash guest World


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.