All flash Web site production analysis

Source: Internet
Author: User
Tags variables relative requires variable perl script
After a period of flash learning, many friends began to be interested in the production of all the flash sites. All flash site mainly graphics and animation, so it is more suitable to do those text content is not too much to plane, animation effect of the main application. such as: Corporate brand promotion, specific online advertising, online games, personalized sites and so on.

Create a full flash site similar to making an HTML site, first of all, you should draw a structure diagram on the paper, including: the theme of the website, what elements to use, what elements need to be reused, the links between elements, how elements move, what style of music, the whole site can be divided into several logical blocks, The connection between each logical block, and whether you plan to use Flash to construct the whole station or use it to do the prophase part of the website and so on, should be considered within the scope.

Realize the full flash site has a variety of effects, but the basic principle is the same: the main scene as a "stage", the stage provides a standard height-to-width ratio and the entire layout structure, "Actor" is the specific content of the site sub-column, according to the content structure of the sub column may be derived more sub columns. The main scene as a "stage" basis, basically keep their content unchanged, the other "actor" identity of the subclass, second-class content as needed to be imported into the main scene.

Technically, if you have mastered a number of individual flash works of the production methods, and more understanding of some SWF file calls between the method, the production of a full flash site is not too complicated.

Reference flow: Web site structure planning-> flash scene planning-> material preparation-> separate-> integral integration

The difference between the whole flash website and the production of individual Flash works

Second, commonly used technology

1. Important ActionScript Code Control

2, the production of loading

3. Text Import

Iii. analysis of the case-making

1, this example website structure planning

2, the first scene index.swf production

3. The production of Cartoon (200208.swf) of the secondary scene

4, two level of the scene (200208_FROG01~200208_FROG05) production

5, about the text import

Iv. Matters of note

Above we through the case analysis of the way to introduce the whole Flash site basic production methods, I hope to like flash friends a little real help, look forward to seeing you soon to make the wonderful flash website! This article Flash website instance source file downloads please point attachment.
The difference between the whole flash website and the production of individual Flash works

1. Different file structure

The scene, animation process, and content of a single flash work are in one file, and the entire Flash site's files are made up of several files and can continue to expand as the need for development continues. All flash Web site files are animated in their respective corresponding files. Animation effects are achieved through import and jump controls on the action, and because multiple SWF files can be loaded at the same time, they overlap and appear on the screen.

2, the production of different ideas

The production of a single flash works in a separate file, planning the animation effect with the change of time line or the alternating change of scene. All Flash Web site production will need to grasp the overall, through the different file switching and control to achieve the dynamic effect of the full flash site, requires the creator has a clear idea and good production habits.

3, the file playback process is different

A single flash work usually requires that the file be made in a file, and the viewing effect must wait for the basic download of the file to begin playing. However, the full flash site is a combination of several files, in time flow more in line with the characteristics of Flash software products. Files can be done relatively small, through the loading of other files more suitable for the spread of the internet, so as to avoid the visitors because the waiting time is too long to give up browsing.

Second, commonly used technology

1. Important ActionScript Code Control

This is the key to all flash site implementation, especially Flash MX added a lot of powerful commands, about this part, please take a look at other information, here is only part of the production of a full flash site need to use the more important ActionScript function.

Loadmovienum ("url", level[, variables])

Loadmovie ("url", level/target[, variables])

Function Description:
Loads the SWF or JPEG file in while playing the original loaded movie.
Parameter description:
The absolute or relative URL of the SWF or JPEG file to be loaded by the URL, and cannot contain a folder or disk drive description.
Level the SWF file is loaded as a layer into the movie, and if you load the 0 layer, the loaded SWF file replaces the currently playing movie. 2 floors above 1 floors.
The target available path picker obtains and replaces the destination MC, and the loaded movie will have properties such as the location, size, and rotation angle of the target MC. (Personally think it is better to use target, it is easier to control loading. SWF location)
Variables an optional parameter that specifies the HTTP method (Get/post) that is used to send the variable, or omit this parameter if it is not.

Hierarchy Level:flash allows multiple SWF files to run at the same time, Flash once loaded into a SWF file, it occupies a "level", the system defaults to _flash0 or _level0, The following movie are placed in the order of level0---level16000. The first loaded SWF file is _flash0 or _level0, and the second is called _FLASH1 or _level1 when it is loaded into the first tier, and so on. Note that the previous loaded file does not exit, or the first SWF file is flushed out, and the first file exits from memory.

Note: If you load the external movie into the LEVE0 layer or Level0, then the original movie will be temporarily replaced, and then you will have to reload once again, that is to say, a level in a time can only have a movie existence. When using Loadmovie and Unloadmovie, you must pay special attention to the relationship between level, otherwise, when you want to play only one movie in a time and unload off the previous movie, there will be unnecessary trouble.

Unloadmovienum (Level)

Unloadmovie[num] (level/"target")

Feature Description: Deletes a loaded movie from Flash Player.
Parameter description: Ditto

Loadvariables ("url", level/"target" [, variables])

Function Description:
Reads data from an external file, such as a text file, or text generated by a CGI script, Active Server Page (ASP), PHP, or Perl script, and sets the value of the variable in the Flash Player level or in the target movie clip.
Parameter description:
The absolute or relative URL of the location where the URL variable is located
Level specifies an integer that receives the levels of these variables in Flash Player.
Target points to the destination path of the movie clip that receives the loaded variable.
Variables an optional parameter that specifies the HTTP method (Get/post) that is used to send the variable, or omit this parameter if it is not.

gotoAndPlay (scene, frame)

Function Description:
Go to the frame specified in the specified scene and start playing from that frame. If no scene is specified, the playhead will go to the specified frame in the current scene.
Parameter description:
Scene the name of the scene to go to.
The number or label of the frame to which the frame is transferred.








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.