New to flash actionscript, making a game.

Hi. My name's Rory.
I am an artist.
http://www.youtube.com/profile?user=PimpOfPixels
http://roaring23.cgsociety.org/gallery/
I am learning action script and Flash so that I can make
games.
I am not a complete novice in programming. I am proficient in
Java and in MaxScript (3DSMAX embedded language).
I have been making some progress in action script and I have
a functional (although incomplete) game in the works. You can view
it here:
http://secure2.streamhoster.com/~rlu...orniverous.swf
The idea is it's a color game
red beats green, green beats, blue beats red. Think paper
scissor rock.
The idea is to change the entire circle into one color.
The graphics are place holders BTW.
I am using FlexBuilder 2.0 and Flash CS3, and I have come
across a problem not covered in either of my books.
I'd really appreciate any help that you guys can offer.
I have gotten this far on my own.
My #1 question (and I have many more) is:
How do you through Flash specify animation segments for a
MovieClip Symbol?
Notice how the red creatures occasionally open their mouths.
I want to have a walk, an attack, an absorb, and a bounce animation
on the same timeline and trigger the appropriate one depending on
which color the creature collides with. I do not know how to go
about this problem. I’ve just been trying to get the walk
animation to loop without playing the attack animation so far.
I've tried frame-labeling in flash, with scripts on the key
frames of a second layer that specify when to stop or repeat the
animation... No dice.
I have a symbol named RedShot in the library of a flash
project named "graphics"
In my timeline I have 2 animation segments, and I have a
second layer denoting two corresponding frames named "walk" and
"attack" from the properties menu.
On the final frames of the animations I have scripts.
Code:
gotoAndPlay("walk");
and
Code:
gotoAndPlay("attack");
respectively.
Im my library I have linkage options specified as such:
Class:RedShot
BaseClass:flash.display.MovieClip
export of actionscript#CHECKED
export on 1st frame#CHECKED
on the main stage of my flash project I have actionscript for
2 functions:
Code:
function walk(){
red_shot.gotoAndPlay("walk");
function attack(){
red_shot.gotoAndPlay("attack");
I export the project and the opened window has the "walk"
animation looping properly.
In my FlexBuilder project I embed the symbol
Code:
//Inside class global variables:
[Embed(source="../graphics.swf", symbol="RedShot")]
public var RedShot:Class;
private var _shot:MovieClip;
Code:
//and in my buildShot function:
_shot = new RedShot();
addChild(_shot);
When I build the project the characters appear, and they
animate. The only trouble is that there are no breaks in the
animation. The animation loops right through the frames where I
have specified that the animation should "gotoAndPlay" from a
different part.
What's weirder is that I can call
Code:
"gotoAndPlay("attack");"
without an error and it will go to and play from that point.
The only trouble is that it will begin to loop the entire animation
again without stopping at the gotoAndPlay events stored in the
frames of the timeline.
It seems like all embedded actions are ignored, add I can't
think of another way to controll the animation.
Any thoughts?

After hours of searching the internet I finally got this
blasted question figured out.
How to you export a symbol from Flash for use in a Flex
Builder project without destroying actionscript stored within the
frames of the Symbol's timeline?
That's a long winded way of saying: "In FlexBuilder, how do
you control MovieClips from Flash". I'm trying to make games, and
this was a particularly important question for me :).
Here's how:
1) You need a hotfix from Adobe.
[HTML]http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401493&sliceId=2[/HTML]
This allows Flash CS3 to export a SWC file.
2)You have to set the linkage properties for your various
symbols in the flash library panel.
a)right click on symbol in library panel
b)choose "linkage"
c)"Class:" = (pick a name)
d)"Base class:" = flash.display.MovieClip;
e)"Export for ActionScript" = CHECKED
f)"Export in first frame"=CEHCKED
3)If you want to have multiple segmented animations as I
certainly did you'll want to create frames and actionscripts within
the symbols timeline to define where these animations are.
a) in the symbol's timeline make a second layer. We'll name
that layer "labels" for the sake of not having this get too
confusing.
b) on that layer create a new frame for each of the animation
segments that you'd like to define and stretch them to the length
of the corresponding animations.(I'm assuming that you have a
keyframe animation on the 1st layer... otherwise what's the point
of all this :P?)
c)in the properties panel name the frames in the "labels"
layer accordingly ie. "walk" "run" shoot" etc.
d)Define whether the various animations play once or loop by
adding a script to the last frame of the animation. If you want the
animation to loop add
[CODE]gotoAndPlay("name-of-the-animation");[/CODE]
if you want the animation to play once and stop add
[CODE]stop();[/CODE]
if you want the animation to play once and then return to a
different animation add
[CODE]gotoAndPlay("name-of-a-different-animation");[/CODE]
4) now you can export the symbols to an SWC file. Note: you
do not get this option unless you have installed the hotfix.
[HTML]http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401493&sliceId=2[/HTML] .
a)rightclick on a symbol in the library panel
b)choose "exportSWCfile..."
c)export the file to a logical place such as the root of your
FlexBuilder project.
5) Now you have to tell flexbuilder about the new SWC file.
Note: Once this file is added to the FlexBuilder library you can
instantiate classes from it as though they were included using the
"include" function.
a)Right clicking on the root of the project in the Navigator
view.
b)going to properties.
c)Going to library path. (2nd tab)
d)and pressing the "Add SWC" button
Now you're done and you can instantiate any of the symbols
from your library while preserving any actions from your symbols
timeline just as though you had imported it as a class from a
typical library.
Sweet huh?
Thanks to the countless people and internet resources I found
on the subject. Hopefully it will be easier for anyone who finds
this post.
Here's an adobe video which covers the basic process.
https://admin.adobe.acrobat.com/_a300965365/p75214263/

Similar Messages

  • What is new in Flash Builder 4.7 Game Development beta 2

    I just installed it, I thought it would include some version of monocle.
    Are there any changes other than a support for a product not available yet through labs?
    If Not, when will we get monocle to test with it?

    In this build you can create SWFs that support profiling with Monocle, but you will need to download Monocle separately as it is not a part of Flash Builder.
    The telemetry API usage via monocle is possible only with the AIR SDK 3.4, so out of the box AS3 projects would support creating SWFs that can be used with monocle. To make it work with MXML (or rather Flex) would will need to overlay the Flex 4.6 SDK with the AIR 3.4 runtime.
    Thanks
    Arijit

  • Making my game in Flash - a few questions

    Hello all, I am quite new to Flash but I have a few years of experience in the other CS software, such as Photoshop, Illustrator, and InDesign. I downloaded the trial version of Flash and started working through some tutorials last night so I can get my feet wet with it.
    Anyway, I have a game that I would like to create, and I never considered making it Flash-based until I started working with Flash yesterday. I made this game in a board game form about 8 years ago, and it revolves around giant monsters ala Godzilla, etc. It is turn-based and two players move pawns space-by-space around the board and attack by rolling a die and then using a corresponding attack on the card. There are also some simple environmental objects, such as buildings around the arena that can be destroyed and used strategically. I would describe the game as a strategy game with elements of a card game and also simple RPGs. There are five levels of cards, and when you score a certain number of points, you level up to the next round of cards. You win the game by reaching a certain number of points. When I made this game, I also included very detailed rules and such with it, so that part is finished at least.
    Is this a feasible project to use Flash to do?

    Though the nitty gritty details haven't been disclosed, it sounds like it should be do-able in Flash.  I could say it would be easily created with Flash, but I don't want to give the impression that you personally can just pick up Flash and get it done without a good amount of learning to tackle in the process.

  • New to flash, errors in actionscript compile

    Hello all. I'm adding a small .swf object (XSPF Web Music Player) to a site I'm working on. I need to add two lines of code to make external javascript calls, so, I guess I need to re-compile the actionscript (please forgive me, I'm extremely new to flash). I'm using MTASC to compile at the command line. I'm getting errors at the start of the file, pretty much at the first thing not-commented. The .as file is posted here http://pastebin.com/f3c4a4a03 and it produces an error(characters 0-4 : parse error Unexpected stop ) at stop. As I'm new to flash, is there anything you guys see in there which would make it break at stop()? or any other pointers at all?
    Thanks.

    Bump for today

  • Help!(confused face) I'm new with flash and don't know why the timers don't work like i would expect

    I'm new with flash and don't know why the timers don't work like i would expect.  In VB.NET timers are how you move stuff, but it doesn't look like they are ideal for moving stuff in flash at all (really slow).  I'm making a game in which you throw a ball around the screen. i am using a timer to get the ball to move. this doesn't work well for 2 reasons; 1: the ball jumps alot, and 2: the timer should eventually run out of time.  If anyone can help, i'd be thrilled cus this is my first post here, so yeah

    Timing for movement would be more often dealt with using something that operates at the frame rate of the file.  The ENTER_FRAME event is usually selected for this purpose.
    stage.addEventListener(Event.ENTER_FRAME, moveBall);
    function moveBall(evt:Event):void {
         // your positioning code
    You could use a Timer to control when to stop the listener from being active.

  • How do I install new Adobe flash on my notebook?

    I have tried several times to download the new Adobe in order to play games on my Mac but it downloads says its complete and for me to restart safari.  Then does not work.  Is Adobe just not compatable with Mac?

    Adobe Flash Player works fine.
    First uninstall Flash Player according to the instructions here:
    http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html
    Read and follow all the instructions with care.
    Then install Flash Player from this site:
    http://get.adobe.com/flashplayer/

  • New to flash, swf loaded while changing size

    i'm trying to create a button that will replace the current
    swf with another and i want the size to change between the various
    sizes of each page. i'm currently using the following code in the
    action inspector:
    on(release){loadMovieNum("myfilename.swf",0);
    i know there has to be a simple way to do this! a very
    grateful thanks to anyone who tries to help!

A: new to flash, swf loaded while changing size

b3autiful_dizaster wrote:
> i'm trying to create a button that will replace the
current swf with another
> and i want the size to change between the various sizes
of each page. i'm
> currently using the following code in the action
inspector:
>
> on(release){loadMovieNum("myfilename.swf",0);
> }
>
> i know there has to be a simple way to do this! a very
grateful thanks to
> anyone who tries to help!
You can't change size dynamically as it is defined by the
object embed tags.
You could use WMODE transparency which could help you fake it
tho not always best
solution to go with WMODE. It's a very buggy parameter.
WMODE will remove the background color so the flash movie
appear over the html and you
can see the HTML content trough the movie.
You could define some solid shape for the background on
bottom layer to make it look
like SWF background, than change it with the other loaded
movie making it appear as it
changed size while the over all flash size stats the same. As
said above - faking it.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

b3autiful_dizaster wrote:
> i'm trying to create a button that will replace the
current swf with another
> and i want the size to change between the various sizes
of each page. i'm
> currently using the following code in the action
inspector:
>
> on(release){loadMovieNum("myfilename.swf",0);
> }
>
> i know there has to be a simple way to do this! a very
grateful thanks to
> anyone who tries to help!
You can't change size dynamically as it is defined by the
object embed tags.
You could use WMODE transparency which could help you fake it
tho not always best
solution to go with WMODE. It's a very buggy parameter.
WMODE will remove the background color so the flash movie
appear over the html and you
can see the HTML content trough the movie.
You could define some solid shape for the background on
bottom layer to make it look
like SWF background, than change it with the other loaded
movie making it appear as it
changed size while the over all flash size stats the same. As
said above - faking it.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

  • New ALchemy settings for some major games for Win7 (64-bit)...

    [color="#ff0000"]Update 2/0/0 - Added Sid Meier's Civilization V: Ok this game is so hard to find in the registry because it uses a completely radically new type of installer that basically is a hybrid installer based on pulling the steam client game updates for Civ V and the data from the actual Civ V install DVD. The definiti've install location is similar to other steam apps are installed @ location C:\Program Files (x86)\Steam\steamapps\common\sid meier's civilization v. (The blue part is common for the majority of all steam installed games locations. Finding this for Civ V was not so easy, however.
    Here is the actual entry you should add to your ALchemy.ini file and is the ONLY location that points to the aforementioned correct install path in the entire HKLM tree that is valid. This is truly a very very unique and bizarre and radically new way to find and detect correct install path strings without resorting to using the GAMEUX path (which is different on everyones computer). This path is indentical for all Civ V installs and therefore the most valid. The ALchemy team needs to address these new radical ways that game companies are injecting the install string into the registry in the future or ALchemy will start to break big time. Notice its the Uninstall path that actually functions as the only correct static install path for the game. Its a dual use path. Very clever!
    [Sid Meier's Civilization V]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mi crosoft\Windows\CurrentVersion\Uninstall\Steam App 8930\InstallLocation
    SubDir=
    Duration=5
    Preset=
    GamePath=
    RootDirInstallOption=FALSE
    Buffers=4
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [color="#ff0000"]Update 2/0/0 - Added Star Wars Galaxies Trading Card Game: A nice game if you have SWG that uses gorgeous sound while playing. Here is the ALchemy.ini addition.
    [Star Wars Galaxies Trading Card Game]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wind ows\CurrentVersion\App Paths\SWGTCGGame.exe\Path
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [color="#ff0000"]Update 2/0/0 - Added Star Trek Online: The only correct and static install path for this wonderful game.
    [Star Trek Online]
    RegPath=HKEY_CURRENT_USER\Software\Cryptic\Star Trek Online\InstallLocation
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [color="#ff0000"]Update 2/0/0 - Added A few oldies but goodies: Some older games I have managed to get to work with ALchemy. The sound in these older games is UNREAL in how good they sound now!
    [Fallout Tactics]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\4 Degrees East\Fallout Tactics\ProgramFolder
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [UFO Afterlight]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AL TAR\UFO Afterlight\Path
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [UFO Extraterrestrials]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Tr i Synergy\UFO Extraterrestrials\installed to
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    The original post:
    I was playing around with the D:\Program Files (x86)\Creative\ALchemy\ALchemy.ini file to force ALchemy to run with all the games on my computer. After I changed the reg paths in this .ini file all the games I had on my computer started working with ALchemy running in Windows 7 64-bit. Windows 7 registry paths for some major game titles I play are NOT in the standard location that the ALchemy.ini file has them as which is why they never get registered. I run a 64-bit version of Windows 7 so the path is slightly different then the default ones in the .ini file. Here is what I added/changed and all these games now register with ALchemy and work! Game heading bolds are my addition in this post and not how they look like in the .ini file to help see the game titles better.
    I tend to shy away from any GAMEUX registry strings (for example: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\GameUX\S--5-2-837354825-494596859-745999896-00\{AFF227C-B0BB-49A5-8DFF-E87FDB864D}\ConfigApplicationPath) as they may be different for one computer to the next as they look identical to a SID string which changes radically as it is created when the game is installed. The strings should be static so they would appear identical on my computer as they would on yours. Having a string in the install path that looks like above just gives me the creeps that it is not valid. Since I only have my computer to compare this against I am not positi've of this. Just to be sure stay away from GameUX strings that are alphanumeric in nature as they can change from computer to computer or reinstall to reinstall making ALchemy fail. More on this at the bottom of this post.
    [Cabal]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mi crosoft\Windows\CurrentVersion\Uninstall\CABAL Online_is\InstallLocation
    Preset=
    [Dragon Age Origins]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Bi oWare\Dragon Age\Path
    Preset=
    [Dungeons & Dragons Online: Eberron Unlimited]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Tu rbine\DDO\InstallLocation
    Preset=
    [Sid Meier's Civilization IV]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Fi raxis Games\Sid Meier's Civilization 4\INSTALLDIR
    Duration=5
    Preset=
    [Sid Meier's Civilization IV: Beyond the Sword]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Fi raxis Games\Sid Meier's Civilization 4 - Beyond the Sword\INSTALLDIR
    Duration=5
    Preset=
    [Sid Meier's Civilization IV: Warlords]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Fi raxis Games\Sid Meier's Civilization 4 - Warlords\INSTALLDIR
    Duration=5
    Preset=
    [Sid Meier's Pirates!]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\At ari\Sid Meier's Pirates!\INSTALL_PATH
    Preset=
    [Star Wars Galaxies]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wind ows\CurrentVersion\App Paths\SwgClient_r.exe\Path
    Preset=
    [Wizard0]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ki ngsIsle Entertainment, Inc.\Wizard0\InstallPath
    Preset=
    [World of Warcraft]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Bl izzard Entertainment\World of Warcraft\InstallPath
    Duration=0
    Preset=
    I left the Preset= in all of them to have default settings. You can change or add the additional options to your pleasure but I find the defaults to work just fine. Here are all the settings for the options from the top of the .ini file.
    ;Creative ALchemy titles
    ;Format/Options:
    ;? [TITLE]
    ;? RegPath <-- registry path containing string to executable or executable's directory (use this when available; alternati've is GamePath)
    ;? GamePath <-- Directory to look for app (use if RegPath can't be used)
    ;? Buffers <-- #buffers to use (default is 4)
    ;? Duration <-- buffer duration (default is 25)
    ;? DisableDirectMusic <-- disable DirectMusic support (default is False)
    ;? MaxVoiceCount <-- maximum number of voices to support (default is 28)
    ;? SubDir <-- subdirectory offset off of path pointed to by RegPath for library support (default is empty string)
    ;? RootDirInstallOption <-- option to install translator support in both RegPath and SubDir directories (default is False)
    Notice if you do a clean reinstall of your games in Windows 7 the game paths are in actuality in the reg path of \Wow6432Node and not just the raw HKLM\Software location due to the way the 64-bit architecture restructures its registry keys to work with 32-bit games (as many of these still are in fact).
    The duration and such you can play with but I just left the settings as they were and changed the executable path location that ALchemy needs to find and work with the game is all. If you reinstall Star Wars Galaxies the new Station Launcher will put the game folder under its location and therefore it may be different in your registry. SWG (and Cabal to some extent) is the only game in this list that specifically points to an abnormal location in the registry for the install path due to the way it is launched from a voicechat type of application (The Station Launcher). But at least it works this way, so I don't care too much. I even got my classic game Sid Meier's Pirates! to work with ALchemy, yay! For Cabal I used the uninstall location for the true install path. I assume as long as the path is valid, it will work and it shows up in the ALchemy window, yay!
    [color="#ff0000"]Please verify these paths in your registry do in fact have these valid regitry entries using regedit or regedt32 and not just modify the .ini file as I have shown above.
    GameUX strings
    There is one game I can not find any verifiable path for in the registry and that's Sid Meier's Colonization =(? If anyone has a clue where this path is stored or how to edit the .ini file to reflect the correct location and work with ALchemy please let me know! I have tried this location:
    [Sid Meier's Colonization]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wind ows\CurrentVersion\GameUX\S--5-2-837354825-494596859-745999896-00\{AFF227C-B0BB-49A5-8DFF-E87FDB864D}\ConfigApplicationPath
    Preset=
    ...but it does not seem to like the GameUX registry path at all and won't detect it. Probably because its a specialized SID (in other words, the SID will be different on my computer then it is on yours) and ALchemy does not know how to transpose SID registry entries for it to work. GameUX is basically the registry location for all your Games as they are stored under the Start > Game location of your desktop. So if anyone can figure out how to include Direct3D games that are older but do not have a valid installation registry entry please let us know! Of course I could just use the full true path in this .ini file but I am not sure how that would look like and I don't want to break ALchemy for the games it does work with. So I stuck with just valid registry entries.
    I own an X-Fi XtremeGamer sound card with version .4.02 of ALchemy running on Windows 7 64-bit as of this post.

    ?pmc64 wrote:
    Why are you adding new games to alchemy No new games use eax and surround sound should work properly without it. The alchemy team doesnt need to do anything for the future of the program because it's for legacy games. You really don't? need to add wow6432node because it should read it anyways on 64 bit systems. At least it does with the 6 games i have installed. That steam regpath will work on any steam game. you just need to change the app number. About the only games that I have that need it are the old gold source games and far cry because for some reason the original reg path isnt on there. You really should update your alchemy version to 43.06 because the previous versions have problems with windows 7 and some games wont work right unless you change a .dll file to a older one.
    A few things about your post.
    ) Alchemy does not automatically detect the registry path settings as you have been misled for a lot of games you have to manually tell it where it goes. Hence this post.
    2) You are completely missing the point of ALchemy, which is to add the depth of audio in games (yes even new ones) which is lacking without them using just EAX.
    3) ALchemy is for new games not just legacy ones. hence why I have added the keys for both.
    4) I have had numerous ppl tell thank me for posting this thread and their games now are read by ALchemy. If you choose to not follow this thread its you choice. No worries =)
    5) My updater does not show any version besides 4.02 and I dont look for something even newer in some obscure forum post or whatnot. Official beta drivers from Creative tend to be less then stellar in performace (if any indicitation is by how their li've drivers are its even worse in their beta flavors). When I do the auto update it returns:
    Status: No updates are necessary for your Creative product.
    Your system already has the latest versions installed.

  • Scripting /Expressions in AE:  Similar to Flash/ActionScript?

    I think about learning AE, but I would like to get an overview about the Software, so that I can decide if it's suitable for what I am planning to do.
    I have little experience in Flash/ActionScript, but I can't get a picture what Scripting means in AE. Can this be compared to Script-Languages like ActionScript and Lingo?
    And what is the difference between "Scripting" and "Expressions" in AE.
    Thank's!
    Roland

    Expressions are layer-based formulae/commands that manipulate the layer and its content/effects based on factors such as time, random number generation, variables, and other layers and elements within the project. An expression can only change elements of the layer parameter to which it is applied - it cannot alter any other layer or parameter within your project, although it can "see" changes in other elements and react accordingly.
    AE Scripting, however, is an application-wide scripting language, which can perform almost any possible function within AE, from creating new projects, comps and layers, to reading data from external files, sending emails etc.
    Both are customized adaptations of Java Script. Both were developed independently of Flash Actionscript, so while they share similarities, they are not the same.
    One of the best places to learn about AE Scripts and Expressions is Dan Ebbert's fantastic site:
    http://www.motionscript.com
    And, of course, the AE manual. Expressions:
    http://help.adobe.com/en_US/AfterEffects/9.0/WS3878526689cb91655866c1103906c6dea-7a39a.htm l
    Scripting:
    http://help.adobe.com/en_US/AfterEffects/9.0/WSD2616887-A41E-4a39-85FE-957B9D2D3843.html

  • Can someone help with insertion of Flash actionscript 3.0 swf into Dreamweaver spry widget panel?

    Working on a thesis project due soon... Created flash actionscript 3.0  swf for home page, text plus image, previews beautifully in Flash  Publish, stored in my root folder, previews great when I open it in the  root folder, dragged and dropped it into my dreamweaver code page,  within a spry widget framework, size is perfect. and upon view in design  or browsers or browser lab, I just get a nice empty white box.  In  design view, I see the F symbol and when I click play in properties, I  get a message that says "Unable to find the plug in that handles this  media type.  Dreamweaver looks in both the "config/Plugins folder and  the plug in folder for each o your installed browsers".  I have Flash  Professional CS 5.  Reinstalled it just in case that was the issue with  the plug in and didn't resolve the problem.  Dreamweaver version is  CS5.  Using a template with spry widget panels. Before I inserted the  swf, the preview in browsers and browser lab was fine on the spry widget  and background.  PC is windows, 32 bit, with ms office suite 2010  upgrade on it.  Appreciate any advice.

    my first trace on the hz position and vt position outputs but the trace for "scroll positions" and "new scroll positions" is not outputting.
    i recieve this output when i click the 'next' and 'back' buttons within the menu9.SWF.
    [Event type="iwannaresetscrolling" bubbles=true cancelable=false eventPhase=2]
    does this seem right?
    import fl.events.ScrollEvent;
    aSp.setSize(600, 350);
    function scrollListener(event:ScrollEvent):void {
    trace("horizontalScPosition: " + aSp.horizontalScrollPosition +
           ", verticalScrollPosition = " + aSp.verticalScrollPosition);
    aSp.addEventListener(ScrollEvent.SCROLL, scrollListener);
    function completeListener(event:Event):void {
    trace(event.target.source + " has completed loading.");
    // Add listener.
    aSp.addEventListener(Event.COMPLETE, completeListener);
    aSp.addEventListener("main swf", scrollResetListener);
    function scrollResetListener(event:Event):void {
         trace("Scroll positions", aSp.horizontalScrollPosition,aSp.verticalScrollPosition)
         aSp.horizontalScrollPosition = aSp.verticalScrollPosition = 0;
         trace("New scroll positions", aSp.horizontalScrollPosition,aSp.verticalScrollPosition)
    aSp.source = "menu9.swf";

  • New to Flash CS3

    Hi Guys,
    I really need your help. I used to use Flash MX a while back.
    I can animate in flash really well.
    but my problem is the action script. Basicly, i'm design a
    simple learning interface.
    at the begining, theintro loads up, but then i need it to
    pause. a button appears, which you can click on and it will take
    you to the menu screen where you have 3 options to click on to look
    at different products.
    my problem is that I can manage to stope theanimation, but i
    don't understand how to get the button to go to Scene 2 (which is
    the menu animation)
    Am i doing this wrong? will it work with another scene or doi
    have to create a new file?
    If i'm doing right, can anyone help me with the coding
    please?
    I really appreciate you reading this
    thanks
    A very frustrated...
    Shigeru :)

    I'm new to flash too, and I created my website in two weeks
    using flash and dreamweaver. I still have to fix a couple of bugs,
    but after doing tons of reading and using good extensions I was
    able to get it up and running. I totally recommend you for the
    slide shows what I used for my website. It very easy to configurate
    in many ways, not much actionscript required, almost none. Check
    out my site:
    www.mauriciolopez.info
    This is the link for the flash extension called 'Creative FL
    Stroller' I used to create my galleries:
    http://www.extendstudio.com/
    You can download it right away and comes with very easy to
    follow materials.
    I hope this helps!

  • Sound controls for someone new to Flash

    I'm making a simple soundboard using different clips of a
    friend. I have all the buttons created and linked to the various
    clips. I also have them setup so that the sound plays when the
    object is clicked. My question is, how do i control the sounds so
    that if one clip is playing and I click on another one, the first
    sound stops and the newly clicked one plays?
    Please be descriptive, I'm very new to Flash
    Oh, almost made a noob mistake and forgot to mention I'm
    using CS3.

    are you using AS2 or AS3?
    under 2 use:
    stopAllSounds();
    under 3 use:
    SoundMixer.stopAll();

  • Question - New to Flash

    I am new to flash and building a simple picture slideshow with buttons for the next frame and previous frame to use on a website. I have two questions. 1. How do I get the pictures to start over at the beginning once I get to the last frame? Right now I can only got forward or backward. 2. I tried to use a video clip in the last keyframe and when I test the movie in Flash it works fine but when I posted the .swf file to the website all of the pictures played except the video clip. I am using the following action script:
    stop();
    next_btn.onRelease=function(){
    nextFrame();
    prev_btn.onRelease=function(){
    prevFrame();
    I am a complete rookie. Any help would be much appreciated. Also any recommendation on where to learn to work with action script would be useful
    Thanks
    MRCARZ

    It looks like you are working with ActionScript 2.0 here where you would actually be hoping to integrate ActionScript
    3.0 and above (3.0 is the latest out right now).  The two types of AS are very different in structure and 3.0 is much more like JavaScript and other ECMA scripting languages that incorporate Object Oriented Programming (OOP).   I don't know a lot about OOP other than it can be used to house Classes and call upon them in an organized fashion to save you a lot of coding in the long haul.  Don't worry about OOP right now.
    Where you should be looking for resources are online and in books.  There are lots and lots of books about ActionScript 3.0--just check your favorite online book retailer and also do a web search for ActionScript 3.0 tutorials.  You will probably find one that will explain how to code the logic for you to return to the first frame of your timeline and continue going in the forward direction and vice versa if you were rewinding and wanted to loop to the last frame and continue going in the backward direction of your timeline.
    Also, there is the ActionScript 3.0 Reference Manual which ships with Flash and will allow you to look through code examples.  Just go to your Help menu for Flash Help.
    Message was edited by: markerline

  • I'm new to flash

    Hi everyone. Well I am new to flash and I have a few
    questions. Here they are:
    1. How do I import a bitmap, without just pasting it.
    2. I also would like to know if there is a possibility of
    having objects which I can then get them to move around, asign
    bitmaps, etc.
    well I actually have many more than that, but for now I would
    like those answered. (by the way I am making a small animation/
    cartoon series with weird stick characters)
    Thanks

    hit F1 (help) and start reading - it is all there in the
    documentation that comes with flash - these
    forums work best when we dont have to retype the entire
    manual - when you get stuck with a specific
    issue and have exhausted all means of resolving it, then post
    here.
    also - plenty of information already available on the web:
    http://www.macromedia.com/devnet/flash/articles/intro_flash_print.html
    --> Adobe Certified Expert (ACE)
    --> www.mudbubble.com :: www.keyframer.com
    -->
    http://flashmx2004.com/forums/index.php?
    -->
    http://www.macromedia.com/devnet/flash/articles/animation_guide.html
    -->
    http://groups.google.com/advanced_group_search?q=group:*flash*&hl=en&lr=&ie=UTF-8&oe=UTF-8
    Haloclocked wrote:
    > sorry, I don't know what tweens are. I only got flash
    yesterday. Anyway, thanks for the help with graphics, but please
    explain these "tweens"

  • Making Java Game Help ^^

    We're making a game for our Java course and we're thinking of making something like Flash Flash Revolution, only in Java. Is this anywhere near possible? Or should we just make a tile-based game like Spyhunter...?
    I'd really appreciate some help or comments. ^^

    This can 100% definetly be done.
    The only real hard part is getting the arrows to perfectly sync up with the BPM of the music. Your going to have to write a routine that can change the scroll speed and timing of the arrows based on varying BPM values.
    There are some free programs out there you can download that will give you the BPM of songs you feed it. The non free tools allow you to get a higher and more accurate BPM precision.
    Of course if you simple make the game only have 1 song, and you already know the exact BPM, then you can code the initial arrow movement speed for that one song and pretty much the rest of the game is a cake walk to program.

  • Maybe you are looking for