Help with some movie clips and an function...

Hi all..
I`m having trouble with an function used to animate two movie
clips....
I want to use the function like this " fSwitch("movie1",
"movie2"); "
I`ve checked to see if I had typoes but I don`t and the
scripting looks good to me...
In spite of this fact , when I test the code or movie i get
this erros :
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 32:
There is no property with the name '_x'.
sItem2._x = 10;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 33:
There is no property with the name '_y'.
sItem2._y = 10;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 34:
There is no property with the name '_xscale'.
sItem2._xscale = 10;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 35:
There is no property with the name '_yscale'.
sItem2._yscale = 10;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 36:
There is no property with the name '_alpha'.
sItem2._alpha = 0;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 37:
There is no property with the name '_y'.
while(sItem2._y <= Stage.height/2 -1) {
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 38:
There is no property with the name '_alpha'.
if(sItem2._alpha <= 97) {
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 39:
There is no property with the name '_alpha'.
sItem2._alpha += 3;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 40:
There is no property with the name '_alpha'.
sItem1._alpha -= 3;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 42:
There is no property with the name '_x'.
sItem2._x +=2;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 43:
There is no property with the name '_y'.
sItem2._y +=1;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 44:
There is no property with the name '_x'.
sItem1._x +=2;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 45:
There is no property with the name '_y'.
sItem1._y +=1;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 48:
There is no property with the name '_y'.
if(sItem2._y >=98) {
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 50:
There is no property with the name '_xscale'.
sItem2._xscale +=1;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 51:
There is no property with the name '_yscale'.
sItem2._yscale +=1;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 53:
There is no property with the name '_xscale'.
if(sItem2._xscale >= 100) {
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 58:
There is no property with the name '_xscale'.
sItem1._xscale -=1;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 59:
There is no property with the name '_yscale'.
sItem1._yscale -=1;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 61:
There is no property with the name '_xscale'.
if(sItem1._xscale <=10) {
Total ActionScript Errors: 20 Reported Errors: 20
Please help me out :-<
The code :

sItem2 is a string and strings don't have _x etc properties.
"movie1" should be a movieclip, not a string when passed to
fSwitch() and fSwtich parameter typing should be changed. or
convert "movie1" into a movieclip in fSwitch()
to remedy the issue with sItem2, use a reference to your
movieclip created by attachMovie().
for example:

Similar Messages

  • Newbie:  Help with Interactive Movie Clips

    I'm just starting off with Indesign and am already running into an issue on a seemingly simple issue.  I'm trying to create an interactive document that I will play movie clips when exported to pdf.  Ok so far so good.  I've inserted one movie and started to play around.
    1st issue - The only option I can get to actually play the movie when clicked is when the pdf export option for compatibility is set to 'Acrobat 5 (PDF 1.4)'
                     How come no newer options work?  Using Acrobat reader 9 by the way and tried to toggle options such as 'embedding' the movie.
                     No luck with playing on any setting except 'Acrobat 5 (PDF 1.4)'
    2nd Issue - Inside the movie options dialog box for this clip, there is an option for a poster that I can 'choose movie frame' as poster.  The dialog box       comes up and is completely empth with no video controls or anything.  What the deal with this.
    I'm just starting out and I know I'm not totally incompetant but I'm not very pleased with what I'm seeing right now.
    Any help or suggestions would be very much appreciated.
    Thanks,
    Don

    Here is some help for starter.
    For embedding, do that in InDesign. I think you know the movie will only play in the PDF.
    If you export to PDF 1.3/1.4•Non-RGB movie or sound posters aren’t visible in the exported PDF document.
    •SWF and MPEG movies aren’t playable in the exported PDF document.
    •Clipping paths applied to movie or sound posters don’t appear in the exported PDF document. Posters are resized to match the movie page item.
    •Movies cannot be embedded.•Sounds cannot be linked.
    If you export to PDF 1.5 or laterQuickTime is specified as the preferred player when exporting to PDF. To change the preferred player, you must edit the rendition in Acrobat 6.0 or later.
    If you export to any PDF version•Non-rectangular media frames don’t appear in the exported PDF document.
    •Hyperlinks applied to movies, sounds, or buttons are not active in the exported PDF document. However, you can add those hyperlinks using Acrobat Professional.
    •Rotated or sheared movies and posters may not appear correctly in the exported PDF document.
    •Any masking applied to movie frames or posters is not supported.

  • Need help with using Movie Clips

    I know how to create a MovieClip object, add it to the main
    stage and even add things to the movie clip but how do I create
    frames within that movie clip that I can "gotoAndStop" or
    "gotoAndPlay" with?

    Ok, I know replying to my own post is odd on some forums, but
    anyhow:
    I've done some further testing and find that FlashObject
    isn't the problem.
    Looking at the AS code above, it is clear that the SWFs to be
    loaded must be in the same folder as the HTML web-page.
    However, my intent is that these small SWFs that are being
    loaded in by the main SWF will be shared by many other movies,
    therefore I'd like to stick them (the physical SWF files) closer to
    the root of the site (e.g. SiteFoler->flash).
    I see that my problem rears its ugly head when I try to
    reference these movies in my main flash movie as follows:
    First movie:
    this.createEmptyMovieClip("mcToolbar", 10);
    with (mcToolbar)
    _x=8;
    _y=68;
    loadMovie("../../../flash/toolbar.swf",mcToolbar);
    Second movie:
    this.createEmptyMovieClip("mcWindow", 11);
    with (mcToolbar)
    _x=500;
    _y=60;
    loadMovie("../../../flash/textwindow.swf",mcWindow);
    In the example above, my HTML page is 3 folders deep whereas
    the movies I'm loading in are 1 folder deep in the folder labeled
    "flash".
    By doing it in this manner, I get the problems I described
    above (first movie loads then disappears and second movie loads in
    wrong position).
    Any ideas as to why the physical location of the SWFs being
    pulled in is causing this problem? I'd like to try to avoid copying
    the SWFs to each place their being refrenced from as that could be
    a major maintenance headace.
    Thanks,
    Ben

  • Stopping and Playing some movie clips?

    I have a problem with some AS3 code and i don't understand why.. my code looks like this:
    stop();
    halt.addEventListener(MouseEvent.CLICK, stopplaying);
    function stopplaying(event:MouseEvent):void {
    MovieClip(root).stop();
    MovieClip(root).gun.stop();
    MovieClip(root).gun.gt1.stop();
    MovieClip(root).gun.gt2.stop();
    MovieClip(root).gun.gt3.stop();
    MovieClip(root).gun.gt4.stop();
    MovieClip(root).gun.gt5.stop();
    MovieClip(root).gun.gt6.stop();
    gotoAndStop(1);
    That code is set to listen to a pause button to pause all movieclips when pressed but the last 2 rows "MovieClip(root).gun.gt5.stop();
    MovieClip(root).gun.gt6.stop();" doesn't work and gives me this output:
    TypeError: Error # 1010: A term is undefined and has no properties. third_fla at::ppBtn_20/startplaying ()
    But there shouldn't be a problem with this, cause the movieclips are the same as the others and has an instance name of gt5 and gt6 just like the other movie clips, and the code is obviously the same?

    Try tracing the different objects on those lines and see if they are recognized.  It may point to a misnaming or object absence.
    function startplaying(event:MouseEvent):void {
    MovieClip(root).play();
    MovieClip(root).gun.play();
    MovieClip(root).gun.gt1.play();
    MovieClip(root).gun.gt2.play();
    MovieClip(root).gun.gt3.play();
    MovieClip(root).gun.gt4.play();
    trace(MovieClip(root).gun.gt5, MovieClip(root).gun.gt6);
    MovieClip(root).gun.gt5.play();
    MovieClip(root).gun.gt6.play();
    gotoAndStop(2);

  • Advanced Button with Movie Clip and Fading

    Problem: I'm trying to create a bottun that when you roll
    over it it plays a movie clip and also fades in and out on roll
    out. It is similiar to the three main navigating buttons on the
    following site.
    http://www.fjcruiser.ca/
    the buttons with the compasses that appear are the ones I am
    talking about.
    I already know how to make buttons, I just can't figure out
    the actionscripting to load the movie and also fade in and fade out
    according to roll over and roll out.
    Please help. Thank everyone.

    Amazingly, I actually know exactly how to do this. And it
    only requires about 4 lines of code in the _root layer and on the
    button.
    Instead of having the rollover load an external movie, you
    want the have the rollover execute an on(enterFrame) function that
    tells each newly entered frame of your movie to check to make sure
    the mouse is still on the button, and if not, send the movie
    playhead backwards.
    So, put that sampleMovie right on the stage with the button.
    Then write the code in the _root so that says: as long as the mouse
    is over the button, the movie will advance to nextFrame(). When it
    gets to the next frame, again the code checks to see if the mouse
    is on the button, if so, the movie is instruct to go one more next
    frame (which is tweening the fade, right?) again, over and over
    until the stop() at the last frame. But, if while while entering a
    frame, the code finds that the mouse is no longer over the button,
    it does the same thing but this time instructs prevFrame(), and so
    on, going prevFrame (backwards, in other words) as long as the
    mouse is not on the button.
    The result of the above is a gradual fade in and out,
    depending on whether the mouse is hovering. This, as opposed to an
    abrupt disappearing graphic on(rollOut).
    Click the below link for the .fla that demonstrates this
    technique (which, by the way, I learned from Joshua Davis'
    excellent book, "flash to the core". Check it out at Amazon, or
    wherever. Lots of cool tricks).
    click here for
    fade_Movie example

  • My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words.

    My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words and looks them up via dictionary. I currently have a wireless mouse connected and I am still having the same problems.
    I fee like I may have a virus or my laptop is perhaps being accessed remotely. All of the sharing options are unchecked.
    HELP PLEASE
    Very worried!!

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

  • Subject : Slideshow looks bad  Hello guys  I have a project in my Final Cut just about done.  I want to add my slideshow as part of the project and burn it to DVD.  In my slideshow, there are some stills from the movie clips and some downloaded from the i

    Subject : Slideshow looks bad
    Hello guys
    I have a project in my Final Cut just about done.  I want to add my slideshow as part ofthe project and burn it to DVD.  Inmy slideshow, there are some stills from the movie clips and some downloadedfrom the internet but they all look blur when playback and even worse if Iapply Ken Burn to it.   Pleasesome one can tell my how to do it right or it can’t be done because thedownload quality and stills from the clip are not suitable or slideshow.  Thank you
    PSC

    Thank you Ross.
    The entire DVD containing Quick Time movies (Final CutExpress project) and slideshow was done in iPhoto.  The Final Cut project was rendered prior to export to QT,  the slideshow was sent to iDVD withoutrendering. The slideshow with most of the pictures from my still camera incombination with stills from movie clips and some downloaded from the Internet.After burning, the movie playback is perfect but the slideshow is not.  The slideshow containing 3 differentkinds of pictures; those from my still camera looks OK; the stills from themovie clips and from the Internet are not.  I don’t have much knowledge in this game, but I think NTSCwith frame size 720x480, and the downloaded picture Item Property shows most ofthem are between 400 to 500 x 300 to 600, may be both of them are not suitablefor TV screen while the stills from my still camera looks OK because they are2048x1536.  Please enlightenme.  Once again, thank you so much,I really appreciate the time you offered.
    psc

  • Difficulties with movie clips and frames

    This is really irking me.
    I am extremely new to Flash so please bear with me. I am assuming that this is a simple, easy to fix problem that I am having. I have Adobe Flash Professional CS5.5.
    What I am trying to do is display a sequence of images after other movie clips stop playing.
    The image sequence itself does what it is supposed to and works properly, and the other movie clips also are successful. However, whenever I try to put the movie clips for the images in frames or keyframes, the beginning movie clips only play part of the way before the images show up. This happens even though the images' movie clips are on frames/keyframes (I've tried both) after the other movie clips.
    The movie clips that are supposed to play first are each on a separate layer and there are two of them.
    The first layer is called "tree" and the second is called "text"
    The tree layer has a 45-frame gif animation that I have turned into a movie clip. I have created a motion tween and changed its alpha so that the gif has a fading in and out effect. I also have it so that it stops replaying once it reaches the last frame. I am using stop(); for this.
    The text layer has a 40-frame gif animation that I have also turned into a gif. This gif is also a movie clip and also has motion tween. Its alpha has also been changed.
    Both tree and text play together successfully and how I want them to.
    The sequence of images is three separate images, each a different layer, that fade into eachother. These images are pngs, therefore they aren't gifs nor do they have their own frames.
    The bottom layer is called floor1 and has frames 1 through 50 of motion tween and alpha adjustments fading the png image. The image is a movie clip.
    The layer on top is called floor2 and has frames 51-100 of a different png image fading.
    The very top layer is called floor3 and has frames 101-150 of yet another png fading.
    The images are successful in doing what they are supposed to.
    Layers tree and text are one fla file, and layers floor1, floor2, and floor3 are a separate fla file.
    When I copy the frames from layers floor1, floor2, and floor3 into a keyframe after layers text and tree, they transfer properly, but when I test the animation, the image sequence shows up a lot sooner than it is supposed to, interrupting the movie clips on the layers text and tree. I have tried moving the floor# layers' keyframes farther down the timeline, but then the other movie clips just stop.
    In the fla file with layers text and tree, I've imported the gifs into the library and then put them onto the stage.
    In the fla file with the floor# layers, I've imported the pngs into the stage.
    Here's what the text and tree layers look like:
    Here's what the floor# layers look like:
    The rest of the frames for the floor#s...
    So, I thought that the problem was that I needed to delay the image squence. I looked around and found no code or anything for that..
    Afterwards, I thought that it was because I had imported the tree and text gifs to the library before putting them on the stage.
    I opened a new fla and imported the "tree" gif straight to the stage.
    I figured that this should work because then it would show each of the individual frames in the movie clips, which it doesn't do in the above pictures. By importing the gif like this, it does show the individual frames. I've tested this with the image sequence and it works fine. But I have a problem with this method too..
    I select all of the frames for the gif to convert into a symbol, so I can add a motion tween and mess with the alpha. However, only the last frame is converted into a movie clip. Well actually no... Only the circled frames below are turned into the movie clip. Even when all of the frames are selected.  This isn't very helpful because then I can't change the alpha for the entire gif nor can I create a motion tween without getting a message saying that the motion tween could not be applied to all of the frames.
    Here's what this version of "tree" looks like.
    And the frames continue like so until 135.
    The frames that are turned into the movie clip are circled below.
    If I can solve the issue that I'm having with the tree shown in the two pictures above this sentence, then I can display the movie clips and image sequence without a problem. It wouldn't be quite how I had intended it to be, but it would be successful and would still work.
    If I can fix the problem with the image sequence showing up to early, and of the tree and text movie clips being cut off, then this project would also be successful and it would be how I had wanted it to be.
    If you need clarification, let me know and I'll explain something better.
    I am not willing to provide a download link in this forum for my fla files, but I can email them to you if you would like a look. I just don't want someone to be able to find them and take them by doing a google search.
    I have uploaded two swfs though.
    The first is of the tree and text layers/movie clips working as they are supposed to. The second is of the image sequence (floor1, floor2, floor3) doing what it is supposed to.
    Text and tree: http://glassoliverdesigns.weebly.com/uploads/1/0/6/5/10653451/tfg1.swf
    Floor1, floor2, floor3: http://glassoliverdesigns.weebly.com/uploads/1/0/6/5/10653451/tfg2.swf
    Notice how at the end of the text and tree swf, when the text stops the thing in the background keeps flashing. If that can keep flashing WHILE the images appear, then that would be great.
    TL;DR: I want the floor# flash to show up after the text and tree flash but I keep having problems and nothing I try is working properly.

    Very concise question, appreciate the screenshots. One thing that motion tweens don't always show very well is keyframes. Let me clear a few things up and see if it helps.
    Go back to what you wanted to do originally, which is copying the frames from one document to another. This is perfectly fine and to clear it up, it will also copy any library elements (images, clips, etc) that are required to copy those frames for you, so you do not need to import them yourself.
    To successfully copy frames (not symbols), select the first frame of the frames you want to copy, hold shift and select the last frame (alternatively double clicking anywhere in the blue motion tween should select it all as well). Now right-click and "Copy Frames". Now go into your new document, select a frame, right-click and select Paste Frames. You will see the same frames copied over, the blue representing the tween and keyframes came with it and you finally will notice all your images/etc were copied into your library.
    Now is a good time to manage the library clutter that was just copied in, if you're a clean freak like me.
    This process is the same, as you tried, for the other documents you want to copy in. If any resources match in name then Flash will ask you if you want to "overwrite" that library item. If you do that,  you will break one of your previous animations. Make sure that's not the case.
    The common gotcha here is not knowing how to slide frames over properly. If overwriting isn't the issue, this is what I suspect your problem is and as you expand/contract the timeline the keyframes aren't going with you.
    For example if I import 2 clips with fade in/out and move keyframes as you did I'll get something like this:
    Now moving them over I would be very careful to select all of the frames I want to move via the methods above. Click the first frame, hold shift and select the last frame, or double-click anywhere in the middle of the blue. The selection of frames:
    Now I simply drag my selected frames to the right, notice the keyframes stay as they should (the black dots):
    The animation plays as expected.
    Lastly I'm not sure if you've ever used the panel but you should really get used to the Motion Editor. This gives you control over easing as well as shows you an in-depth view of the keyframes that exist in a selected motion tween.
    At first this panel may look complex but it simply represents the basic properties you can animate. Any more properties you animate can be added in here. I moved the X, Y and Alpha properties of my object. So you can see over the frames 30-60 what I did. You can also adjust basic easing here.
    If your animations don't look correct you can select a motion tween, open the motion editor and verify the keyframes look correct. Scrub the timeline and look at the values you're interested in. Alpha for example, for you.
    If you don't see any keyframes when you scrub the timeline, you moved your frames over incorrectly and the keyframes probably exist in a different place and therefore it appears incorrect.

  • I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    If you still have your serial number, look at OLDER previous versions http://www.adobe.com/downloads/other-downloads.html
    Otherwise, the US$ 9.99 plan is what is current at Cloud Plans https://creative.adobe.com/plans

  • I ve updated my i pod touch to version 6.0.1. Installation got failed with some error msg, and now my i pod is not getting detedted in my system.Help me to fix it up.

    i ve updated my i pod touch to version 6.0.1. Installation got failed with some error msg, and now my i pod is not getting detedted in my system.Help me to fix it up.

    What's the error mesage?

  • Want a complete migration guide to upgrade 11.1.0.7 to 11.2.0.3 database using DBUA..We are implementing R12.1.3 version and then have to migrate the default 11gR1 database to 11.2.0.3 version. Please help with some step by step docs

    Want a complete migration guide to upgrade 11.1.0.7 to 11.2.0.3 database using DBUA..We are implementing R12.1.3 version and then have to migrate the default 11gR1 database to 11.2.0.3 version. Please help with some step by step docs

    Upgrade to 11.2.0.3 -- Interoperability Notes Oracle EBS R12 with Oracle Database 11gR2 (11.2.0.3) (Doc ID 1585578.1)
    Upgrade to 11.2.0.4 (latest 11gR2 patchset certified with R12) -- Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 (Doc ID 1058763.1)
    Thanks,
    Hussein

  • Attach movie clips using seperate functions

    I'm having a little trouble with the following code. I'm
    calling two functions: init() and inittwo() to attach some movie
    clips to the stage. If I comment one of them out, the other works
    fine and the movement is okay. But as it is, only the "cloud" movie
    clips are being attached. I need for the clips in the "dreamarray"
    to be attached, and then for the "clouds" to be attached with a
    second function. I'm probably not going about this the right way,
    but I could sure use some help!
    It would also be cool if I could attach the dreams at set "x"
    values instead of random distribution. I'm not sure how to set a
    seperate x value for each item in the array being attached.
    var numClouds:Number = 10;
    var fl:Number = 250;
    var gravity:Number = .5;
    var vx:Number = 0;
    var vy:Number = 0;
    var vz:Number = 0;
    var friction:Number = .97;
    var vpX:Number = Stage.width / 2;
    var vpY:Number = Stage.height / 2;
    var vpY:Number = 400;
    var dreamarray:Array = new Array();
    dreamarray[0] = "dreamone";
    dreamarray[1] = "dreamtwo";
    dreamarray[2] = "dreamthree";
    init();
    inittwo();
    function init() {
    for (var i:Number = 0; i<dreamarray.length; i++) {
    var dream:MovieClip = attachMovie(dreamarray
    , "dreamarray" + i, i);
    //var dream:MovieClip = attachMovie("dreamone", "dreamone" +
    i, i);
    dream.x = Math.random() * 1600 - 800;
    dream.y = 50;
    dream.z = Math.random() * 800;
    //trace("functioncall");
    //tree.x = Math.random() * 2000 - 1000;
    //tree.y = 50;
    //tree.z = Math.random() * 10000;
    function inittwo() {
    for (var j:Number = 0; j<numClouds; j++) {
    var cloud:MovieClip = attachMovie("cloud", "cloud" + j, j);
    //tree.x = 400;
    cloud.x = Math.random() * 1600 - 800;
    cloud.y = 50;
    cloud.z = Math.random() * 800;
    function onEnterFrame():Void {
    if(Key.isDown(Key.UP))
    vz -= 1;
    else if(Key.isDown(Key.DOWN))
    vz += 1;
    if(Key.isDown(Key.LEFT))
    vx += 1;
    else if(Key.isDown(Key.RIGHT))
    vx -= 1;
    if(Key.isDown(Key.SPACE))
    vy += 1;
    vy -= gravity;
    vx *= friction;
    vy *= friction;
    vz *= friction;
    for (var i:Number=0;i<dreamarray.length;i++) {
    //i think there is a error here
    var dream:MovieClip = this["dreamarray" +i];
    dream.x += vx;
    dream.y += vy;
    dream.z += vz;
    if(dream.y < 200)
    dream.y = 200;
    vy = 0;
    if (dream.z <= -fl) {
    dream.z += 1000;
    else if(dream.z > 1000 - fl)
    dream.z -= 1000;
    var scale:Number = fl / (fl + dream.z);
    dream._xscale = dream._yscale = scale*100;
    dream._x = vpX + dream.x * scale/2;
    dream._y = vpY + dream.y * scale/2;
    //dream._x = dream.x * scale/2;
    dream._alpha = scale * 60 + 40;
    dream.swapDepths(-dream.z);
    for (var j:Number=0;j<numClouds;j++) {
    var cloud:MovieClip = this["cloud" + j];
    cloud.x += vx;
    cloud.y += vy;
    cloud.z += vz;
    if(cloud.y < 50)
    cloud.y = 50;
    vy = 0;
    if (cloud.z <= -fl) {
    cloud.z += 500;
    else if(cloud.z > 10000 - fl)
    cloud.z -= 10000;
    var scale:Number = fl / (fl + cloud.z);
    cloud._xscale = cloud._yscale=scale*200;
    cloud._x = vpX + cloud.x * scale;
    cloud._y = vpY + cloud.y * scale;
    cloud._alpha = scale * 60 + 40;
    cloud.swapDepths(-cloud.z);

    Hi Ive just taken a very quick look at your code and Ive
    noticed at least one or two mistakes.
    you are calling:
    init();
    inittwo();
    before the actual functions have been declared.
    Flash works from top to bottom when actioning code so by
    calling:
    init();
    inittwo();
    bofore the function has been declared and this will do
    nothing as it cannot find the functions to call as they have been
    declared AFTER the function calls.
    The best thing to do is put any calls right at the bottom and
    then you will know everything is ready to be triggered.

  • Help with wav file, stop and play buttons

    Hey everyone,
    I'm new to actionscript, and flash for that matter. I created
    a new flash file, and a new layer. On that layer I put 2 buttons,
    btnPlay and btnStop.
    I found some code on this forum, and tried it, but it isn't
    working. The code is below. I get no errors, but when I test the
    movie, it doesn't play any music. I selected this layer, selected
    frame 1, and put this code in the actions window.
    mySound = new Sound();
    btnPlay.onRelease = function () {
    mySound.attachSound("adagio");
    mySound.start(0);
    btnStop.onRelease = function() {
    mySound.stop("adagio");
    I should also note, I have another layer with a movie clip on
    it, and another layer with a picture on it.
    Any help would be appreciated,
    Thanks,
    Jesse

    As another note--I right clicked on the wav file in my
    library and selected linkage and export to first frame as well as
    export for actionscript (and named the linkage "adagio"). Might
    help with a solution.

  • Help with opening Adobe Reader and downloading updates

    I can not open Adobe .pdf files any longer (this started yesterday, prior to that I could open adobe files).
    When I double click a .pdf file I get this notice on my screen: Windows cannot access the specified device path or file. You may not have the appropriate permission to access file.
    So I went to the Adobe download site to download a new copy of Adobe.  When I start the download I get this on the screen:  The instruction at "0x0e3a0068" referenced memory at "0x0e3a0068."  The memory could not be written.  Then two options are listed: click OK to terminate or cancel to debug.  So I click on cancel and I get this on my screen: Internet Explorer has closed this webpage to help protect your computer.   A malfunctioning or malicious addon has caused I.E. to close this webpage.
    I don't have AVG running, I do have avast but I've disabled it.  I ran Registry Mechanic and an I.E. erasure program but nothing helps.
    I have gone into I.E. and reduced the security level to its lowest state but no joy.
    So, any ideas or suggestions on what's the problem and how to overcome it would be appreciated.  Thanks, in advance, for your reply.  Jim R.

    Hi Mike..tried that as well but no joy.  A friend of mine was looking at it all and noticed that it was an I.E. thing as far as not letting me redownload the reader so I went to Mozilla Firefox and I could download a new version but....whenever I attempt to open a .pdf file I get that message, "Windows can not open the specified device, path or file. You man not have the appropriate permissions to access the item." 
    Damn...this is irritating as I need to get to some of thos files as I need them for a Journal I'm working on as editor-in-chief. 
    It all worked just fine last Saturday but starting Monday when I was on my flight out to D.C.  no joy. 
    Sigh...Jim R.
    Jim R.
    Date: Tue, 1 Dec 2009 14:50:27 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with opening Adobe Reader and downloading updates
    Under the help menu, there is an option to repair the installation of reader. Did you try that?
    >

  • Need help with my iPhone 5 and my Macbook Pro.

    Need help with my iPhone 5 and my Macbook Pro.  I was purchased some music on itunes at my mac. Some reason I deleted those music from both on Mac and iPhone 5.  Today, I went to my iPhone iTunes store inside of iCloud to redownload my puchased. But those song won't able to sync back to my iTunes library on my Mac.  Can anyone help me with that ??....
    iPhone 5, iOS 6.0.1

    You've posted to the iTunes Match forum, which your question does not appear to be related to. You'll get better support responses by posting to either the iTunes for Mac or iTunes for Windows forum. Which ever is more appropriate for your situation.

Maybe you are looking for