Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 6, 2016
0 parents commit 1c90a42
Show file tree
Hide file tree
Showing 159 changed files with 179 additions and 0 deletions.
Binary file added 9781590593035.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch01.sit
Binary file not shown.
Binary file added Ch01/MUSHROOM.FLA
Binary file not shown.
Binary file added Ch01/MUSHROOM.SWF
Binary file not shown.
Binary file added Ch02.sit
Binary file not shown.
Binary file added Ch02/boat steps/PEN_TOOL.FLA
Binary file not shown.
Binary file added Ch02/boat steps/PEN_TOOL.SWF
Binary file not shown.
Binary file added Ch02/boat steps/brush_tool.fla
Binary file not shown.
Binary file added Ch02/boat steps/brush_tool.swf
Binary file not shown.
Binary file added Ch02/boat steps/oval_tool.fla
Binary file not shown.
Binary file added Ch02/boat steps/oval_tool.swf
Binary file not shown.
Binary file added Ch02/boat steps/rectangle_tool.fla
Binary file not shown.
Binary file added Ch02/boat steps/rectangle_tool.swf
Binary file not shown.
Binary file added Ch02/boat_final.fla
Binary file not shown.
Binary file added Ch02/boat_final.swf
Binary file not shown.
Binary file added Ch02/case_study_ch2.fla
Binary file not shown.
Binary file added Ch03.sit
Binary file not shown.
Binary file added Ch03/case_study_ch3.fla
Binary file not shown.
Binary file added Ch03/case_study_ch3.swf
Binary file not shown.
Binary file added Ch04.sit
Binary file not shown.
Binary file added Ch04/CARDS.FLA
Binary file not shown.
Binary file added Ch04/EMERALD.FLA
Binary file not shown.
Binary file added Ch04/SHAPES.FLA
Binary file not shown.
Binary file added Ch04/case_study_ch4.fla
Binary file not shown.
Binary file added Ch04/case_study_ch4.swf
Binary file not shown.
Binary file added Ch04/casino_table.fla
Binary file not shown.
Binary file added Ch05.sit
Binary file not shown.
Binary file added Ch05/ANIMATED.GIF
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/EINSTEIN.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/FMC.GIF
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/GANDHI.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/QANIK.GIF
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/SPIKY.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/SWIRL.BMP
Binary file not shown.
Binary file added Ch05/case_study_ch5.fla
Binary file not shown.
Binary file added Ch05/case_study_ch5.swf
Binary file not shown.
Binary file added Ch05/friendsofed_website.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/hypertelia.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/importingPDF/CHAPTER2.PDF
Binary file not shown.
Binary file added Ch05/importingPDF/pdf_import.fla
Binary file not shown.
Binary file added Ch05/nettle_wine.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/pinderkaas_website.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch05/transparent.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch06.sit
Binary file not shown.
Binary file added Ch06/boat_animated.fla
Binary file not shown.
Binary file added Ch06/boat_animated.swf
Binary file not shown.
Binary file added Ch06/case_study_ch6.fla
Binary file not shown.
Binary file added Ch06/case_study_ch6.swf
Binary file not shown.
Binary file added Ch07.sit
Binary file not shown.
Binary file added Ch07/case_study_ch7.fla
Binary file not shown.
Binary file added Ch07/case_study_ch7.swf
Binary file not shown.
Binary file added Ch07/shape_to_text.fla
Binary file not shown.
Binary file added Ch07/shape_to_text.swf
Binary file not shown.
Binary file added Ch07/shape_to_text_color.fla
Binary file not shown.
Binary file added Ch07/shape_to_text_color.swf
Binary file not shown.
Binary file added Ch08.sit
Binary file not shown.
Binary file added Ch08/HORIZON.FLA
Binary file not shown.
Binary file added Ch08/HORIZON.SWF
Binary file not shown.
Binary file added Ch08/SKYLINE.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch08/SPECTRUM.FLA
Binary file not shown.
Binary file added Ch08/SPECTRUM.SWF
Binary file not shown.
Binary file added Ch08/case_study_ch8.fla
Binary file not shown.
Binary file added Ch08/case_study_ch8.swf
Binary file not shown.
Binary file added Ch08/iCanSeeYou.fla
Binary file not shown.
Binary file added Ch08/iCanSeeYou.swf
Binary file not shown.
Binary file added Ch08/maskTV.fla
Binary file not shown.
18 changes: 18 additions & 0 deletions Ch08/maskTV.html
@@ -0,0 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>maskTV</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="maskTV" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="maskTV.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="maskTV.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="maskTV" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
Binary file added Ch08/maskTV.swf
Binary file not shown.
Binary file added Ch08/starshape.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch09.sit
Binary file not shown.
Binary file added Ch09/BLIP.WAV
Binary file not shown.
Binary file added Ch09/case_study_ch9.fla
Binary file not shown.
Binary file added Ch09/case_study_ch9.swf
Binary file not shown.
Binary file added Ch09/interactivity01.fla
Binary file not shown.
Binary file added Ch09/interactivity01.swf
Binary file not shown.
Binary file added Ch10.sit
Binary file not shown.
Binary file added Ch10/case_study_ch10.fla
Binary file not shown.
Binary file added Ch10/case_study_ch10.swf
Binary file not shown.
Binary file added Ch10/scriptCompleted.fla
Binary file not shown.
Binary file added Ch10/scriptCompleted.swf
Binary file not shown.
Binary file added Ch10/scriptStart.fla
Binary file not shown.
Binary file added Ch10/scriptStart.swf
Binary file not shown.
Binary file added Ch10/scriptURL.fla
Binary file not shown.
Binary file added Ch10/scriptURL.swf
Binary file not shown.
Binary file added Ch11.sit
Binary file not shown.
Binary file added Ch11/case_study_ch11.fla
Binary file not shown.
Binary file added Ch11/smilerMovie.fla
Binary file not shown.
Binary file added Ch11/smilerMovie.swf
Binary file not shown.
Binary file added Ch11/smilerMovie2.fla
Binary file not shown.
Binary file added Ch11/smilerMovie2.swf
Binary file not shown.
Binary file added Ch12.sit
Binary file not shown.
Binary file added Ch12/SOUND/Acid.wav
Binary file not shown.
Binary file added Ch12/SOUND/BassLine.wav
Binary file not shown.
Binary file added Ch12/SOUND/BigBang.wav
Binary file not shown.
Binary file added Ch12/SOUND/MainDrumLoop.wav
Binary file not shown.
Binary file added Ch12/SOUND/Melody.wav
Binary file not shown.
Binary file added Ch12/SOUND/Percussion1.wav
Binary file not shown.
Binary file added Ch12/SOUND/Percussion2.wav
Binary file not shown.
Binary file added Ch12/SOUND/Percussion3.wav
Binary file not shown.
Binary file added Ch12/SOUND/Strings.wav
Binary file not shown.
Binary file added Ch12/SOUND/Vocal1.wav
Binary file not shown.
Binary file added Ch12/SOUND/Vocal2.wav
Binary file not shown.
Binary file added Ch12/VIDEO/REDCAR.MOV
Binary file not shown.
Binary file added Ch12/VIDEO/bella_the_cat.mov
Binary file not shown.
Binary file added Ch12/case_study_ch12.fla
Binary file not shown.
Binary file added Ch12/case_study_ch12.swf
Binary file not shown.
Binary file added Ch12/cat_video.fla
Binary file not shown.
Binary file added Ch12/cat_video.swf
Binary file not shown.
Binary file added Ch13.sit
Binary file not shown.
Binary file added Ch13/EINSTEIN.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch13/GANDHI.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch13/Thumbs.db
Binary file not shown.
Binary file added Ch13/case_study_ch13.fla
Binary file not shown.
Binary file added Ch13/case_study_ch13.swf
Binary file not shown.
Binary file added Ch13/einstein_thumbnail.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch13/gandhi_thumbail.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch14.sit
Binary file not shown.
Binary file added Ch14/ANCHORS.FLA
Binary file not shown.
Binary file added Ch14/ANCHORS.SWF
Binary file not shown.
Binary file added Ch14/EINSTEIN.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ch14/GANDHI.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions Ch14/anchors.html
@@ -0,0 +1,30 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>anchors</title>
<script language="JavaScript">
// This is only needed for Netscape browsers.
function flashGetHref() { return location.href; }
function flashPutHref(href) { location.href = href; }
function flashGetTitle() { return document.title; }
function flashPutTitle(title) { document.title = title; }
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="anchors" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="anchors.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="anchors.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="anchors" align="middle" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!--bookmarks used in the movie-->
<a name="main"></a>
<a name="apple"></a>
<a name="orange"></a>
<a name="pear"></a>
</body>
</html>
Binary file added Ch14/case_study.fla
Binary file not shown.
18 changes: 18 additions & 0 deletions Ch14/case_study.html
@@ -0,0 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>case_study</title>
</head>
<body bgcolor="#003063">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%" id="case_study" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="case_study.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#003063" />
<embed src="case_study.swf" quality="high" bgcolor="#003063" width="100%" height="100%" name="case_study" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
Binary file added Ch14/case_study.swf
Binary file not shown.
Binary file added Ch15.sit
Binary file not shown.
Binary file added Ch15/ADD.FLA
Binary file not shown.
Binary file added Ch15/ADD.SWF
Binary file not shown.
Binary file added Ch15/case_study_ch15.fla
Binary file not shown.
Binary file added Ch15/case_study_ch15.swf
Binary file not shown.
Binary file added Ch15/smilerAge.fla
Binary file not shown.
Binary file added Ch15/smilerAge.swf
Binary file not shown.
Binary file added Ch15/smilerAgeAdvanced.fla
Binary file not shown.
Binary file added Ch15/smilerAgeAdvanced.swf
Binary file not shown.
Binary file added Ch15/spaceship.fla
Binary file not shown.
Binary file added Ch15/spaceship.swf
Binary file not shown.
Binary file added Ch15/spaceshipAdvanced.fla
Binary file not shown.
Binary file added Ch15/spaceshipAdvanced.swf
Binary file not shown.
Binary file added Ch16.sit
Binary file not shown.
23 changes: 23 additions & 0 deletions Ch16/DrinkTempProcess.as
@@ -0,0 +1,23 @@
class DrinkTempProcess {
// Define properties and type
var liquid:String;
var froth:Boolean;
var temperature:Number;
// Define constructor
function DrinkTempProcess(arg_liquid:String, arg_froth:Boolean, arg_temperature:Number) {
// When a new Drink instance is created...
liquid = arg_liquid;
froth = arg_froth;
temperature = arg_temperature;
}
// Create methods to solve the problem/define the process...
function processIngredients():String {
var doSomething;
doSomething = "I have changed the temperature of "+liquid+" to "+temperature+"DegC";
if (froth) {
doSomething = doSomething+", then frothed it";
}
return doSomething;
}
}

16 changes: 16 additions & 0 deletions Ch16/MakeDrink.as
@@ -0,0 +1,16 @@
class MakeDrink extends DrinkTempProcess {
//properties...
var solid:String;
//constructor...
function MakeDrink(arg_liquid:String, arg_froth:Boolean, arg_solid:String, arg_temperature:Number) {
//pass to superclass...
super(arg_liquid, arg_froth, arg_temperature);
//create here...
solid = arg_solid;
}
//methods...
function makeIt():String {
return processIngredients(liquid, temperature)+" and mixed in "+solid;
}
}

Binary file added Ch16/drinkTest01.fla
Binary file not shown.
Binary file added Ch16/drinkTest01.swf
Binary file not shown.
Binary file added Ch16/mouseFollower.fla
Binary file not shown.
18 changes: 18 additions & 0 deletions Ch16/mouseFollower.html
@@ -0,0 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>mouseFollower</title>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="mouseFollower" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mouseFollower.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="mouseFollower.swf" quality="high" bgcolor="#000000" width="550" height="400" name="mouseFollower" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
Binary file added Ch16/mouseFollower.swf
Binary file not shown.
Binary file added Ch16/testDrink02.fla
Binary file not shown.
Binary file added Ch16/testDrink02.swf
Binary file not shown.
Binary file added Ch16/tile game2004.fla
Binary file not shown.
Binary file added Ch16/tile game2004.swf
Binary file not shown.
Binary file added Ch16/tile game2004_graphics.fla
Binary file not shown.
Binary file added Ch16/tile game2004_part1.fla
Binary file not shown.
Binary file added Ch16/tile game2004_part2.fla
Binary file not shown.
Binary file added Ch16/tile game2004_part3.fla
Binary file not shown.
Binary file added Ch16/tile game2004_part4.fla
Binary file not shown.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2004 Kristian Besley and Sham Bhangal

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user�s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to be included
in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


15 changes: 15 additions & 0 deletions README.md
@@ -0,0 +1,15 @@
#Apress Source Code

This repository accompanies [*Foundation Flash MX 2004*](http://www.apress.com/9781590593035) by Kristian Besley and Sham Bhangal (Apress, 2004).

![Cover image](9781590593035.jpg)

Download the files as a zip using the green button, or clone the repository to your machine using Git.

##Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

##Contributions

See the file Contributing.md for more information on how you can contribute to this repository.
14 changes: 14 additions & 0 deletions contributing.md
@@ -0,0 +1,14 @@
# Contributing to Apress Source Code

Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers.

## How to Contribute

1. Make sure you have a GitHub account.
2. Fork the repository for the relevant book.
3. Create a new branch on which to make your change, e.g.
`git checkout -b my_code_contribution`
4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted.
5. Submit a pull request.

Thank you for your contribution!
Binary file added mousefollower.zip
Binary file not shown.

0 comments on commit 1c90a42

Please sign in to comment.