Browser « Design « Flash Tutorials

Home
Flash Tutorials
1.Actionscript Programming
2.Animals
3.Animation
4.Colors
5.Design
6.Effects
7.Game Cartoon
8.Humans
9.Models
10.Nature
11.Operations
12.Shapes
Flex
Flash / Flex / ActionScript
Flash Tutorials » Design » Browser 

2. Using the trace(); method - from a BROWSER! - joshbuhler.com    blog.joshbuhler.com

Using the trace(); method - from a BROWSER! - joshbuhler.comNow go to the location where you told the flashLog.txt file to be written to. Open this up, and you should see something similar to the following output:

3. Use FSCommand to quit the browser    flashdesignerzone.com

Use FSCommand to quit the browser

5. Stop Browser Catching Data | Flash Tutorials    webdesign.org

The browsers cache comes in handy for slow connections, all the requests you make to a webserver are stored in a local folder on your computer, so that the next time you make the same request, the file can be loaded from the local hardrive as opposed to having to download the data over the internet again. However this can cause problems when you are building web based applications, you need to be sure, as the developer, that the latest content is being viewed. To achieve this in your Macromedia Flash Movies is relativley straight forward, all you need to know is the way the browser cache works. The browser cache, stores the 'full' url, along with the data associated with that url as a local file when a request is made to a webserver and the data is completley downloaded. If that same request is made again, to the webserver, then your browser uses the local version stored previously, unless you have changed the default browser settings. So for example, if i was to do a load variables call to a specific url, the data for that load variables call is cached when it has been fully downloaded, the next time i do the same load variables call, the browser returns the data it stored previously. To stop this from occurring, all you need to do, is make sure that the url you are making a request to, is unqiue, each and everytime. To make the url unique each and everytime without moving the data around, or changing any filenames, you simply have to 'append' a unique value to the url of the request as a name/value pair. So for example, to stop the following load variables call from caching in the users browser:

6. Use FSCommand With the Browser | Flash Tutorials    webdesign.org

Open your Flash Designer project and program the button. Select the button and choose "Item" > "Actions" > "OnClick". To execute FScommand use one of the following methods:

java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.