Control panoramic playback with flash

Source: Internet
Author: User
Tags functions requires dreamweaver
Control

Many multimedia enthusiasts are constantly innovating, trying to combine various multimedia elements together to make a stunning effect.

This article will be about how to insert the panorama in Flash, the use of flash control to achieve panoramic playback, scene switching and other actions.

First of all, with Flash control panorama, you need a panoramic player to provide a compiler interface, so here take the Jettou roaming master For example, the roaming Master Player provides a script to control playback with JavaScript.

Detailed scripts can be used to view the software Help document or download it to the Jerry-chart website.

Take the zoomin (ie amplification) function as an example:

ZoomIn

public void ZoomIn ()

Description: Enlarge scene image

Note:

This feature is available only in the scene. However, this feature does not work if the scene image is magnified to the maximum value.

Example 1:

<form name= "button" >
<input type= "button" value= "ZoomIn"
>
</FORM>

Example 2:

Head Code:

<script language= "JavaScript" >
<!--
function ZoomIn ()
{
Document. Appletname.zoomin ();
}
-->
</SCRIPT>

Body Code:

<a href= "javascript:zoomin ();" >zoomin</a>

The roaming master offers two ways to apply:

1 write JavaScript script commands directly in the link or in the button's OnClick property.
2 Add JavaScript functions to HTML

So for the convenience of late modification and recompilation, we use the second approach:

First, add the JavaScript command to the corresponding Flash button.

Added an action script about JavaScript in Flash 8. We can call the JavaScript function by adding the following code to the button's action.

On (release) {
Import flash.external.*;
Externalinterface.call ("Up");
(Up here is the name of the JavaScript function)

Notice that the script is added to the button rather than on the timeline. On the label below the script area you can see where you are now typing the action script, which we can see now entering the script on the Up button.

This is the new addition to the Flash 8 action script, and in previous versions, invoking JavaScript can be geturl this way.

On (release) {
Geturl ("Javascript:document.applet.up ()")
}

However, note that the Swtichtoscene function of the toggle scene requires parameters, that is, the index number of the Panorama, which begins at 0.

Second, the use of roaming masters to create a virtual roaming:

Let's start by releasing a virtual walkthrough, which requires only one player without other skin components. Once released, we use Dreamweaver in tourview_**. Html This page to add JavaScript functions. These functions can be placed anywhere on the Web page, but preferably between

Then we make a flash and enter the corresponding action script as described in the second step in the button. After release, use Dreamweaver to add Flash to tourview_**. Html.

In this way, a flash control of the panoramic playback of the virtual roaming is done.

As the security of Flash 8 improved, so we can not see the effect locally, only to be placed on the site to watch, you can use the local Web server to test.

View Demo

source File Download



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.