Mining Flash potential anchor use explanation

Source: Internet
Author: User
Tags implement
A lot of people do not know that there is an anchor in Flash, not to mention the use of him, even if someone knows that this thing will not be used, even if it will not necessarily use him.

So now I'm going to tell those who don't know what the anchor is, with the people who don't use the anchor.

The anchor is FLASHMX has already provided the function, is well-known, in the pure Flash website cannot use the back key, the general HTML website can use the browser the collection function, and can use the back key to watch just saw the content. I believe that the browser's function key is to use the most is back, followed by refreshing. If Flash cannot use the back button, this can make people feel so inconvenient. Also because of this inconvenient is almost unbearable, so mm company will develop the anchor this function.

However, this feature is not perfect and can only be used in browsers that support Fscommand and JavaScript interaction, in other words, only under 4.0 windows IE browsers and any platform under the 3.x-4.x NP browser. Take a look at the share of IE, I think no one will think that this anchor function is a garbage, if only to support the NP browser I am afraid it is not the same. If you're just a designer who yells that I'm only designing Web pages for IE, you should use this feature specifically for IE. If you're a Web planner and not just a designer for IE, you should also use an anchor because he doesn't have any impact on the appearance of the site in other browsers, but only a few bytes from the original file on your site.

The specific use of the anchor is: choose you to use the chastity of the anchor, (your chosen chastity is you want to let the browser remember this position, the browser remembers this position to be able to collect, the next time opens the browser to be able to go directly to this position in the flash, but does not have to start from scratch) in the Zhen attribute may give In the input box, enter the name of the anchor you want to give you. Below is a selection of label types, with names, comments, and anchors three choices

Here I say three types of differences. The name is we often use, show in the above is a small red flag, is to do the jump to use if you give Jeong named garbage then you can use gotoAndStop ("garbage") from anywhere in the flash to jump to this junk this chastity. Note To use the English input method to quote, the function of the annotation is just as easy to understand the Flash file as the code annotation, there is no actual function, show in Zhen is two slashes. In addition to the function of the two, the anchor has the function that I started to say, which shows that it is an anchor in my virginity.

After you choose the anchor, there is an anchor sign on your virginity and you have set the location in Flash, and then you make the HTML that can use the anchor. MM for you to think very thoughtful, he can automatically generate an anchor with the HTML. First point file--Publish settings--select HTML in the format type so that the HTML configuration box appears on the right. If you do not select HTML, the HTML settings on the right will not appear. There are templates to choose from in the HTML Settings tab. You choose the Flahs with the named anchor to enter the HTML you can use the anchor, and then click the file--publish it to get an HTML file, and note that each HTML file is used with the same flash. If nested other flash anchors are not useful

You've learned how to use the anchor, last time I forgot to mention that there is also an option in Flash that is related to the anchor, that is, in the edit--preferences--there's a "named anchor on the scene" in the editor. This function is to automatically help you build an anchor in your first virginity of each scene. I think this function is very rubbish, after all, few people use more than 1 scenes, but if you are making photo browsing and so on the scene is still good, save a lot of time.

You use DW to open a flash-generated HTML that can use an anchor, and you'll find a few golden anchors. If you've ever used a DW, you'll find that it's the same as the Anchor Point feature in HTML. In fact, I did not know what is called Anchor Point, and then someone asked a question how to point Flash press the cow to implement the anchor function. (The so-called Anchor function is to set a point in a page or anywhere on a different page.) Then set up a connection on the other page, and the point connection automatically jumps to this preset point. This feature supports the same range of browsers that flash anchors support, so I don't support the use of this feature because, for non-Windows Internet Explorer, There is no use of the function on the page should be a very annoying thing) on the same page to achieve flash by the Ox anchor point function is relatively easy, first in the flash to make a jump button such as gotoAndStop ("garbage") jump of the name of the Zhen is the same as the name of the anchor point in your page, Here is the name of Jump Zhen is "rubbish", then your anchor point name also if "rubbish".

One drawback of this approach is that if you jump to an anchor and then drag and then back to the button, the button will not work, which means that the Flash button's anchor point can only be used once. The solution is to use two anchor points in the flash internal also make two anchors, and flash internal two anchor positions are different but the appearance of the same visual deception so that users do not feel the jump. For example, your anchor point called rubbish, then click on the button in Flash browser will jump to the location of the junk Anchor Point, and the browser's address bar appears as "***.***.comaa.html# garbage", at this time you point flash in this anchor button will not have any reaction. So you have to make two anchor points to trick Flash to jump.

If you want to use the same page under the Flash button to achieve the anchor point, the same as above, but this time the flash jump buttons do not play a real role, he is only responsible for jumping to another page such as ***.***.com/ Aaa.html then inserts an invisible flash in this page to implement the automatic jump. This time the problem comes out, although not the same page will not exist two times, but once nested into a flash automatic jump, after any means to change the page will automatically jump. The solution to this problem is to let Flash's Jump button send a variable or something to let the nested invisible flash judge whether to jump. Specific I will not say more, because I feel very meaningless. I'm afraid there are very few people to do such trouble.

I am here just to say a solution, my flash in the true principle of the anchor is not clear, because after my test with my method only in IE has effect, and in the Firefox browser is not valid. But the strange thing is that pure HTML anchor points are effective under Firefox. I always thought Flash's anchor is the same as the principle of the anchor in the HTML, and it seems to be different. As to what is the difference between the master door to find pull.



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.