The use of video Clips in arrays?

Hello

I am trying to learn how to use arrays. Specifically, I'm trying to use a table to control a set of clips ("box1" - 'box8') contained in a clip parent ('boxes'). I looked on the help pages and tried to apply what I learned in my situation. Here is my code, but I don't know if I'm completely missing the mark. There seems to be a problem with how I'm wearing on the elements of the array in my if/else statement.

Any advice?

(I use AS2 in CS3).

var mouseListener:Object = new Object();
var scale: number;
var scaleBig:Number = 200;
var scaleSmall:Number = 100;

var boxArray:Array = [boxes.box1, boxes.box2, boxes.box3, boxes.box4, boxes.box5, boxes.box6, boxes.box7, boxes.box8];

boxes.onRollOver = function() {}
Mouse.addListener (mouseListener);
}
boxes.onRollOut = function() {}
Mouse.removeListener (mouseListener);
}

mouseListener.onMouseMove = function() {}
for {(var boîte: String en boxArray)}
scale = (scaleBig - (Math.abs (_xmouse - [area] ._x)));
if(Scale > scaleSmall) {}
[box] ._xscale = scale;
} else {}
[box] ._xscale = scaleSmall;
}
}
}

use:

var mouseListener:Object = new Object();
var scale: number;
var scaleBig:Number = 200;
var scaleSmall:Number = 100;

var boxArray:Array = [boxes.box1, boxes.box2, boxes.box3, boxes.box4, boxes.box5, boxes.box6, boxes.box7, boxes.box8];

boxes.onRollOver = function() {}
Mouse.addListener (mouseListener);
}
boxes.onRollOut = function() {}
Mouse.removeListener (mouseListener);
}

mouseListener.onMouseMove = function() {}
for {(var boîte: String en boxArray)}
scale = (scaleBig - (Math.abs (_xmouse - boxArray [box] ._x)));
if(Scale > scaleSmall) {}
._xscale boxArray [box] = scale;
} else {}
boxArray [box] ._xscale = scaleSmall;

}
}
}

Tags: Adobe Animate

Similar Questions

  • How to set the use of video memory on the graphics card to my laptop cq56-110us?

    Hello

    I have a PC Compaq laptop CQ56-110us.  Windows 7 says is has 797 MB video memory shared from the main memory of 2 GB.  I want to reduce the use of video memory, i.e. 256MB.  Is this possible?  If yes how.  I would appreciate help with this.

    Thank you

    Don

    Don, welcome to the forum.

    Built-in memory is allocated by the system.  As more video memory is required, is allocated.  There is no way that you can change.

    If your problem is solved, please click "accept as a Solution.

  • The subscription Plan does Adobe Stock includes the use of video files and photos?

    The monthly package of stock Adobe includes the use of video files or do you pay in addition to authorize video files?

    The videos are distinct from $79 per video. They are not included in the subscription.

  • Removal of the video clips in arrays

    Hello

    I have this code in my Flash file:

    for(bubble in bubbleArray){
         bubbleArray[bubble]._y -= 3;
         if(bubbleArray[bubble]._y < 370){
              bubbleArray[bubble].removeMovieClip();
         }
    }

    I wonder, when I remove the film clips should I also be burst their table?

    I have an onEnterFrame function that attaches the video clips and the drives in the array, so I'm afraid that if I don't pop the table will continue to increase in size and slow down the film. This is the case, or will they be automatically removed from the table by the above removeMovieClip() method?

    They will not be removed from the table, but the table can now point to an undefined object.  So if the intention is not to try to deal with in this code, then you must delete them from the table.

  • Help - I can't use my video clips in moviemaker

    My videos are. MOV files and I can not use apparently on moviemaker.  How can I change the WMV files or MPEG or those that I can use?  I use Windows Vista

    Sam Annabel

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster download)
    (the file you want to download is: > FFSetup280.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag FFSetup280.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • How to use old video clips in more recent projects

    original title: video clips

    Hi all

    There may be someone out there with the same problem...? I used Movie Maker (the original!) for many years... nice program. easy to use.

    Have now updated my JVC HARD drive camcorder I can't use the old tapes of CC of Canon original, compatible with WMM.

    My problem is that I have a lot of old, useful material that I would use in ongoing projects. Be careful (Ha!  (HA!) ... I backed up the old tapes on DVD! Now, it is not possible to get the tapes.

    I still have some old tapes. Could someone advise as to how I could save old tapes that I may be able to use old clips in ongoing projects?

    Thank you very much... Marchenilla

    Hi Marchenilla,

    Thanks for asking!

    You may not use the tapes of the old appliance in the new.

    If you have the original tapes, you can try to re-import them.

    If this isn't the case, you can use the DVD files already made to usable files using a converter.

    You can use you are the favorite search engine to get a converter.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Change in the depths of video clips with button click

    Hi all

    I have a file work on that has 4 different video clips on a layer which, when clicked, will zoom in (made with the Tween span in the timeline panel).

    The question I have, is that when I click on one of them, they are arranged in a way that does not work for what I need. I click on one and it works, but it is hidden by the clip that is above in the hierarchy. Click on another, zooms, but is partially hidden by another.

    My question is: is he still in AS2 to code these so that when it is clicked on, it will be the first place of the heriarchy? While I can encode all like that so that whenever a user clicks on, it goes to the top, so it is not hidden?

    Thank you

    You can also use a number.  for example:

    {mc.onRelease = function ()}

    this.swapDepths (this._parent.getNextHighestDepth ());

    }

  • Can I block the recording of video Clips?

    I have video clips (MOV files) on a website that the icons of a PDF file I built can bind to and open (to clarify: the icons are actually just virtual boxes around the icon images that were in the Word doc where it was built). Generally, the MOV files open in a web page (which is quite good), and the user can right click on them and keep them (that's bad). Note: my default browser is Foxfire.

    However, I notice that if I have MS Internet Explorer open (but only if I actually open), the MOV files open in their own window Quicktime (good!), and the user cannot click on them and save them (great!). Is there a way I can force this desired behavior when I build the PDF?

    (Note that the consumers of the PDF will it reside on their local computer.)

    Thanks for your help!

    The only way to prevent a video to be saved locally is to broadcast using a negotiated protocol and a video streaming software on the server (Adobe Media Server, etc.). Any static file on an http (web) server will be downloaded to the hard disk of the user in order to play, regardless of the format or what application he plays. Whenever you play a video remotely in Acrobat or Adobe Reader, the user will display a security command prompt list the URL of the video file, so it is trivial for the user to copy.

    PDF files created in Acrobat 9 and later versions include the readers that are integrated for videos that are hosted online, including the files delivered through streaming servers (URL starting with rtmp or rtmpe), but the implementation of the server is expensive.

  • How can I list the instances of video clips if the clip that I am referencing is nested?

    Hello world

    It's me again and I am running into a problem. So I have this clip which is nested in several video clips. I mean Flash to perform an action when this clip from movie hits another video clip in the main timeline. It's just a collision for a game detection using the hitTestObject code. I was thinking of using MovieClip (root), but that won't work because it is so nested. Can someone help me? I would like to know if I need to explain more. Thank you!

    -DJ

    I didn't ' think I can help you without having to upload your file to see what you're doing and I don't download and fix the files unless I'm hired.

    Maybe someone else you download your fla and you help.

  • Buttons do not work in the case of video clips?

    Hello, I hope someone can help me here. I am trying to create a portfolio site and I'm running into some problems. I built my main site on the timeline and all my work of fine buttons AS is very simple:

    function goForward(event:MouseEvent):void

    {

    if(currentFrame == totalFrames)

    {

    gotoAndStop (1);

    }

    else

    {

    nextFrame();

    }

    }

    next_btn.addEventListener (MouseEvent.CLICK, goForward);

    But when I do video clips of scenes with buttons in them (kids?) to try and simplify the site, BECAUSE does not recognize the instance name of the button in the Clip. I get an error message:

    1120: access of undefined property next_btn.

    I put an invisible button on the mc and gave it the instance name of next_btn and it works but I want to fix the buttons in the MC properly. I think it has something to do with my children, so I have them knocked all over the place, but it still does not work! (I'm kidding). What the hell are mousechildren?

    Is it better to condense a site in video clips and individual images or I would have just a chronology long steers that spans numerous frames?

    Thank you

    strabismus.

    1009 error basically means that your code is something that he does not frame, is it.  Go to your publication of Flash settings and select the option to enable debugging.  When you run the file again, the error message should include a line number to indicate which line is causing the problem.  Your instance names seem to have changed between the first validation and the second, so make sure that you have things named to be agreed between the code and objects.

  • Advisor about the replacement of video clip

    It is a repost as accidentally, I posted this inquiry under FAQ.

    I'm doing a documentary. As a result, I videod someone presenting part of the documentary subject. I now want to replace (drop) some of the Visual clips with other Visual scenes. However, I don't want to erase the audio that was recorded at the same time and I would like to use as part of the narrative. It's probably pretty simple, but after a few days trying to navigate the tutorials, I guess I might have forgotten how to do these steps of Assembly base in PE8.

    Thanks for the tips! David

    You simply place the 'B roll' images on the video track 2, above your main video. (If your B-roll has an audio track, you can turn down the volume or delete.)

    -->

  • How to ONLY install directx 3 is the use of video games. Without having to install the latest version of directx?

    I have an old video game of cdrom for windows 95, 98, and a message asking me to click here and there to download directx 3A. I'm going to microsoft for this and only the latest version is available and this download does not work. Msg continues to be the same, even after a few tries.

    Windows 7 already comes with the latest version of DirectX installed. Have you tried to install the game in compatibility mode?

    Right click on the executable file / Installer-> properties and select the Compatibility tab. Click the check box before you run this program in compatibility mode for option, and then select Windows 95/98 from the drop-down list. then try to install the game using run as administrator.

    If this does not work, I suggest buy you an old copy of Windows 95 or 98 license off ebay, download for free SUN Virtual Box and install Windows 95 and 98, and run your game in there.

    Releasing it's easy: with Windows | ActiveWin | Laptops | Microsoft MVP

  • the use of videos in muse

    I learned to use videos that are already on you-tube, but how do we use the movies that are stored in our own site?

    Hello Shabtai2015,

    Please click the link below which shows how to do this with codes.

    https://forums.Adobe.com/thread/1686844?start=0&TSTART=0

    You can also try the widgets on the link below

    http://musewidgets.com/search?q=video

    Kind regards

    Vivek

  • How to access the forums / double video clip?

    Hi, I'm new and I always confuse on how to duplicate the movieclip in as3 then access instances. I try to write this code:

    for (var i = 1; i < 5; i ++)

    {

    var mc:MC = new MC();

    MC. Name = String ("mc_" + i);

    addChild (mc);

    MC.x = 20 * i;

    MC.y = 0;

    trace (mc.name);

    }

    When I run the code, I see that I have mc_1, mc_2, mc_3, and mc_4 and I see them in the scene.

    But why I can not manually access by calling their name and put measures in it? for example like this:

    for (var i = 1; i < 5; i ++)

    {

    var mc:MC = new MC();

    MC. Name = String ("mc_" + i);

    addChild (mc);

    MC.x = 20 * i;

    MC.y = 0;

    trace (mc.name);

    }

    mc_1.x-= 3;

    removeChild (mc_2);

    mc_3.y += 3;

    mc_4.x += 2;

    If I run the present, I got "1120: access of undefined property mc_1, 2, 3, 4" error message.

    I want to just call / each case individually outside of the loop / access code. Is this possible?

    Can someone help, please? Thank you

    a reference and are not the same (unless you create an object in the ide).

    use getChildByName() to reference objects with the same reference (mc) and different names:

    this.getChildByName("mc_2").x-= 3;

    etc.

  • The Volume control of the narrative on video Clips in project

    Need some tips on recording the narration for a better playback quality in project with the Audio 1 track and soundtrack in the background.

    What is buffer SIZE in the settings of the Audio hardware, and what size memory buffer should I use to record narration?

    I can record a narration now and it seems OK when I play in the project on the computer.  However, when I burn project to disc and play on TV, narration is much softer and almost inaudible.

    How can I get the best volume of the narration on my project?  At the present time it is being suffocated by the soundtrack of music even if Ihave tried using keyframes, audio mix and same Smartmix to adjust settings.

    I do something wrong, but what?

    Any suggestions you can give me would be much appreciated.

    Thank you very much

    dobiegillis

    The size of the buffer is basically the latency to address with the recording equipment, and the default value of 2048 should be just fine.

    In regards to recording, keeping levels, with a peak in yellow, should be fine...

    If this isn't the case, then this ARTICLE offers several ways to adjust the Volume of the Audio.

    Good luck and hope that helps.

    Hunt

Maybe you are looking for