Need help with AS3 to play movies

Here is my what I'm working with: Flash CS3, AS3. I have 4
buttons and 4 movies (each button will be asigned to play one of
the 4 movies).
Not sure if this is the best layout but here is what's
included in my file. I have an Actions layer, 4 buttons (on 4
different layers), 4 embedded movies (on 4 different layers...all
about 5-8 seconds long). I'm sure this is simple but figuring out
the code for AS3 is like learning Chinese....I need major help with
this.
Lets say that my buttons have instance names like button1,
button2, button3, button4, and my movies have instance names like
movie1, movie2, movie3 and movie4. Here's the catch. I don't want
the movies viewable (or seen) until the user selects one of the
buttons. So if the user selects button1 the movie will appear (next
to the button without any contols...just a movie with a border) and
play. If the user hovers off or moves the mouse off the button, I'd
like for the movie to disappear.
Can someone please give me the the code needed so that when I
select button1 that it will play movie1, button2 w/ movie2....and
so on.
Thanks for your help!

Here is the link to the fla file.
http://joshhicks.com/flash/flashfile.html
I updated the link to the latest swf
http://joshhicks.com/flash/del2.html
I added stop(); to the 1st frame of each moive and this fixed
the movies from playing in the background unseen. If you can help
me with one last question...then the file will be complete. As of
now when you select one of the movies, it plays once thru and
starts back at frame one (loops) which is the way I want it to
play. But if you hover off one of the buttons while the movie plays
(lets say when the movie is showing the number 2) when you go back
to view the same movie, it will start where you left off (it will
start on the fram showing 2 and not 1). How can this be set up to
play from the beginning of each movie everytime you happen to go
back and click on the button? Thanks

Similar Messages

  • Need help with as3 for popup window

    I am nearing the end of the semester in my Flash Animation class. I have learned very simple AS3 things, code snippets etc. I am trying to find the actionscript for coding a very simple popup window, but have not found a clue.
    Here's what I want to do...I have a white box with some type on the stage. When a person clicks on the white box, I want a popup to open that is larger, that will contain the same type but larger. That box will have an x so it can be dismissed. I don't want to do this in html, only in Flash CS5. I don't want a browser window, I just want a bigger version of the smaller box. I know how to build both boxes, just don't know how to write the code. I know there will be an on-click mouse event listener, and then I am lost.
    Can anyone help with the code I might use? It would be most appreciated.

    It would be something along the lines of... (using instance names relative to your description)...
    popup.visible = false;
    whiteBox.addEventListener(MouseEvent.CLICK, showPopup);
    function showPopup(evt:MouseEvent):void {
         popup.visible = true;
    popup.popupX.addEventListener(MouseEvent.CLICK, hidePopup);
    function hidePopup(evt:MouseEvent):void {
         popup.visible = false;

  • Need help with a finished FCPX movie

    I recently upgraded to Final Cut Pro X from Express and am loving all the new features and capabilities that come with it. I just helped a friend with filming and editing a play at his school. After I finished editing it, the final MOV file is about 11 GB. Pretty big. When I try to put that file into iDVD to try to burn a DVD, my Mac begins to heat up really fast and I'm worried that this might overheat the processor.
    I've tried other means of compressing the file without losing quality, like Handbrake, but to no avail. Is there a way to compress the file down so I can burn it to a disc in a more manageable way?
    I've heard of compressor but am not all that familiar with it. Would that program be applicable to my situation?

    DVD’s can be burned directly from inside FCPX, no need to use Compressor…
    Although, Compressor offers much more flexibility.
    If the movie is played only on the computer, one could convert it to H.264 and burn that
    to a DVD as data-file.
    Otherwise, save your FCPX media as “Master File” and burn that file with Roxio “Toast”.
    Be aware, that DVD’s are standard definition, compressing HD media for a DVD
    converts the media always to standard definition.
    To burn HD media onto a disc one has to create a Blu-Ray or AVCHD-disc.

  • Need Help with Inappropriate Commercials Playing While Watching OnDemand

    My kids and I were watching The Goldbergs TV show via OnDemand and inappropriate commercials have played for the last two times we sat to watch the show. I have a 7 year old girl and last week commercials for the Ouija horror movie played. I can't fast forward the commercial. This week commercials from an ABC show about murder came on.
    I'm angry and frustrated that I am spending $200 a month for my Verizon services and can't fast forward through these commercials which should NOT be playing during a family friendly show.
    I'm trying to find a way to send an email to the Verizon support team to complain. My question is two fold: Can someone help me find out how to send an email complaint to Verizon and is there any way I can fix this issue?
    Thank you.

    Verizon has no control over this (just like the ones that show during regular programming).
    My suggestion would be to post on ABC social media that you are not pleased with their choice of commercials.
    And they are also the one that sets the rules that you can't FF.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Need help with AS3

    Hello. I am building a media browser which will dsiplay all
    my work. I have got it almost done except for one major problem.
    The thumbnail I click on wont show me the full size image.
    Have a look at what I'm doing at
    Http://www.JgcCreations.com
    The thumbnails are doing exactly what I need them to do but
    when I click the thumbnails the pic is suposed to get big and show
    up on the right in the black area.
    The code Im using to call the thumbnails into action is
    supposed to make the full sieze pics invisible on the stage (the
    black area) then as I click them the pictures will become visible.
    That is not working so far. Im not sure why it is not working.
    Anyone have a clue as to why it is not working. I appreciate any
    help. Im no programmer so an error in code to me is like a period
    at the end of a sentence....its all over lol....
    Thanks.

    From what I can tell, the file does exactly what you have it
    designed to do, though it isn't what you've tried to describe it as
    doing.
    Your thumbnails are not coded with a click function that
    might make the big pics visible.
    If the big pic is invisible, you cannot click on it because
    it's essentially not there. If you were to use alpha (0 vs 1)
    instead of visible (false vs true), then you could click on the big
    image to make it appear.
    I would have thought the thumbnails would be used to make the
    big picture appear. That would be the normal expectation of someone
    using this thing... they would be unlikely to click on the big
    black area. But the only code you have for the thumnails only
    addresses their own over and out mouse states.
    That's pretty much why your story about how this is supposed
    to work doesn't tie together and why I assumed your thumbnails were
    named the same as the big pics. It doesn't make sense to have
    something that has to be visible to click on making itself visible
    when you click on it.
    So if you want to make this what I think would make it
    normal, then you should use...
    function Pic(evt:Event):void {
    pic0.visible=true;
    thumb0.addEventListener(MouseEvent.CLICK, Pic);
    pic0.visible=false;

  • Need help with embedded SWF Playing

    I have an embedded SWF file (A 4 photo slide show) created in Flash Professional CS5, Action script 3, flash player 10 selected.
    I have placed this into the flash catalyst CS5 file. The file previews in the browser perfectly.
    The problem is when published it will not start the slideshow until you refresh the browser (Safari and FireFox) the local version runs fine
    the published version does not even when uploaded to the web server. www.ngambaisland.com
    This site was woking properly before I made some changes to the slide show and rebuilt the file to optimize it for loading performance.
    Please help if you can,
    Many Thanks,
    Curtis

    Thanks for looking but I have tested the website on 5 different computers an the slide show only activates after you hit the screen refresh button.
    I am afraid I am a bit limited in flash. You mentioned to check access settings. I used the default action script 3 settings in the publish settings.
    Could you please be more descriptive as what to look for or what settings I would need to change?
    Thanks for your help.
    Curtis

  • Need help with syncing/not playing songs

    when i plug in my ipod to the computer, the computer recognizes the ipod and says that it syncs all my music, after unplugging it, i still have all my old music on it but none of the new songs i wanted. also none of the songs play. the song title only shows, and after showing it for about a second skips to the next song title and so on not playing anything? any ideas on what the problem could be or how to fix it??

    OK so it would appear that it is not connecting to the computer at all yet.
    Is the connector of the cable FULLY seated into the iPod? When you push the plug in it goes in almost all the way in then stops and you then have to give it a pretty firm push to snap it in the rest of the way. A lot of people do not realize it goes in further.
    When fully seated, the barrel of the connector should be completely in the iPod with the white plastic of the connector butting up against the body of the shuffle.
    Patrick

  • I need help with being able to move a GarageBand project from my iMac to my Mac Book

    ...iMac to my MacBookPro, so that I can continue to work on it on the laptop. When I go to 'Save As' Archive the option is greyed out. Then I read something about grabbing blue loops after clicking the eye icon on another forum, but I didn't see anything like that.

    wendy a. wrote:
    When I go to 'Save As' Archive the option is greyed out.
    you only need the Archive function if you don't have the same loops on the other computer, or if you pasted regions between projects.
    that said, here's the description for enabling it:
    http://www.bulletsandbones.com/GB/GBFAQ.html#saveasarchivedisabled
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • NEED HELP with ut2004 patch mu

    HEY,
    GREAT PRODUCT..BUT I GOT ONE QUESTION.
    I RECENTLY INSTALLED THE NEW SOUNDBLASTEER X-FI UT2004 PATCH..WOW ITS AMAZING BUT WHEN EVERYTHING IS INPUTED WITH THE SOUND OPTIONS IN THE GAME.. THE "H/W 3D + EAX"... THE MUSIC DOESNT PLAY BUT WHEN I CHOOSE H/W + audio.. THE MUSIC PLAYS REGULAR BUT THE NEW WEAPON SOUNDS AND MUSIC ENHANCEMENT ISNT THERE.. PLEASE HELP ME TO GET THE MUSIC RUNNING IN THIS NEW PATCH, THE WEAPONS R AMAZING.. I JUST NEED HELP WITH THE MUSIC PLAYING.
    thanks,
    DANNY

    Have you actually read what the patch does? If not, check it out here. http://www.soundblaster.com/products/x-fi/technology/ut2004/ What you are hearing is probably it. The weapon sounds itself don't change. It just sounds more immersi've in that you can hear the rockets flying from one side to another more clearly, or hearing flak scattering when it hits the ground, etc.. It's nothing significant, but it does make it a bit more interesting to play.

  • I just downloaded an album from itunes and 2 of the tracks will not play at all, they cut off. I need help with this??

    I just downloaded an album from itunes and 2 of the tracks will not play at all, they cut off. I need help with this??

    Does the track play correctly in Quicktime Player?  If it does then it is an iTunes issue.  If it doesn't then it is possible the file was not completely downloaded, or is corrupt.
    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Movies currently available in the USA only. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list (e.g., ringtones), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid. 
    If it can be downloaded again, delete the track from iTunes.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.
    If it is corrupt and you cannot download it a second time, contact Apple.  Contact iTunes Store support staff through the report a problem links in your account history or,
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html > Get iTunes support via Express Lane > iTunes > iTunes Store

  • I need help with my videos now that I downloaded the ios6.  It won't play.

    I need help with my videos. I downloaded the ios6 and now they won't play.  Does anyone know how to fix?

    Wanted to let everyone know that after looking at other discussions I did a hard reboot and it is now working.  Love this site!

  • I can't find my serial number and once I do I would like to move my Pro to another computer. Need help with both.

    I can't find my serial number and once I do I would like to move my Pro to another computer. Need help with both.

    Hi Rick ,
    Here is the link that will help you find the serial number for your product quickly .
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html
    You would have to deactivate that software from your older machine first.
    Refer to the following link to deactivate your product .
    https://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    After it is deactivated from the older machine you can use it on your new machine just by entering the serial number of the product .
    Let us know if you need further assistance.
    Regards
    Sukrit Dhingra

  • Need help with my apple tv

    I need help with my I tunes billing

    itunes can play a LOT! more formats then the appletv can unsupported files will not show
    http://www.apple.com/appletv/specs/
    H.264 video up to 1080p, 30 frames per second, High or Main Profile level 4.0 or lower, Baseline Profile level 3.0 or lower with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format

  • Need help with compression rates with Sorenson Squeeze 6, Compressor3.5.2

    Hopefully somebody can help me with this...
    I am running Sorenson Squeeze 6 on a Mac to try and compress some Apple ProRes 422 videos into an MPEG-2 file. The file will be played in a DirectX application, running on a PC with Windows 7. When being played it looks to be heavily compressed, and I need help with some of the compression settings.
    Let me get more into detail...
    So I have received a Quicktime .mov that has been encoded with FCP using Apple ProRes 422 compression at 720x486 , 29.97 fps, 40.29 Mbit/s , and the file size is 515.7mb.
    So, this is the type of file I will have to compress into an MPEG-2, that will be playing on a...
    1.6 GHz Intel Atom 330 Dual Core
    NVIDIA GeForce 9400M Graphics
    1Gb DDR2 800 Ram
    32Gb SATA Solid State Drive
    Windows 7 Home
    Here is what I have done so far on my Mac using Sorenson Squeeze 6 :
    I have brought the original file in and created some presets.
    First off, I am encoding these MPEG-2 videos using an elementary stream type so I can mux the files using MPEG Streamclip...
    Here is a screenshot of the settings I am using in Sorenson :
    - I have changed many of the data rate settings as low as 3000 Kbps, and as high as 15,000 Kbps, and the end result looks essentially the same
    - The audio isn't a problem, so I'm not going to address that.
    - I have used the crop/deinterlace filter and also not used the filter, and it makes a big difference, so obviously it needs to be deinterlaced.
    From there I will get the .m2v file and the .m2a file, and then mux those with MPEG Streamclip.
    So, I have done 8 different Pre-sets all with various settings playing primarily with the data rate, and the method from 2-pass vbr all the way to 1-pass cbr.
    So again, my end result that is playing back on the windows 7 box (the specs that are listed above) looks to be heavily compressed and pixelation occurs.
    - I have also done the exact same with Apple's Compressor, and have gotten better results muxing while compressing, however the end result still tends to be the same, however the end result is much better. I have gone through 8 or so different compression export settings, and just overall still have the same issue.
    Any help would be greatly appreciated!
    Thanks,
    Crawford and Luke
    LKC Creative, LLC.
    [email protected]

    You are using a custom layout so my directions don't make any sense...
    For the future, you can set this up in DVD SP's Preferences:
    Using the Standard window layout the things to play with would be like the screenshot below:

  • I need help with controlling two .swf's from third.

    Hi, thanks for reading!
    I need help with controlling two .swf's from third.
    I have a problem where I need to use a corporate designed
    .swf in a digital signage solution, but have been told by the legal
    department that it can not be modified in any way, I also can't
    have the source file yada yada. I pulled the .swfs from their
    website and I decompiled them to see what I was up against.
    The main swf that I need to control is HCIC.swf and the
    problem is it starts w/ a preloader, which after loading stops on a
    frame that requires user input (button press) on a play button,
    before the movie will proceed and play through.
    What I have done so far is to create a container swf,
    HCIC_container.swf that will act as Target for the HCIC.swf, and
    allow me to send actionscript to the file I'm not allowed to
    modify.
    I managed to get that done with the help of someone on
    another forum. It was my hope that the following script would just
    start HCIC.swf at a frame past the preloader and play button, and
    just play through.
    var container:MovieClip = createEmptyMovieClip("container",
    getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("MCIC.swf", container);
    function onLoadInit(mc:MovieClip) {
    mc.gotoAndPlay(14);
    But unfortunately it didn't solve my problem. Because there
    is a media-controller.swf, that is being loaded by HCIC.swf that
    has the controls including the play button to start HCIC.swf.
    Here's a link to a .zip file with all 3 .swf files, and all 3
    .fla files.
    http://www.axiscc.com/temp/HCIC.zip
    What I need to do is automatically start the HCIC.swf file
    bypassing the pre-loader and play button without editing it or the
    media-controller.swf in anyway. So all the scripting needs to be
    done in HCIC_container.swf.
    I know this is confusing, and its difficult to explain, but
    if you look at the files it should make sense.
    ActionScripting is far from my strong point, so I'm
    definitely over my head here.
    Thanks for your help.

    Got my solution on another forum.
    http://www.actionscript.org/forums/showthread.php3?t=146827

Maybe you are looking for

  • PL/SQL, Java and  Current User

    Hi there, I'm trying to get the following to work : Schema HR Contains : Procedure P_TST_01 ( p_blob blob , p_dir varchar2 AUTHID CURRENT_USER IS LANGUAGE JAVA NAME 'FileUtil.write(p_blob,p_dir)'; Java source FileUtil (also with the AUTHID CURRENT_US

  • IPad 3 with iOS 8.1 worthless

    SInce I "upgraded" from 7.1.2 to 8.1 it is like someone switched my iPad for a first generation model! This means I'm no longer be able to watch HD 1080p movies without stutering and even locking. Also, I used my iPad for music production and spend m

  • Change default date format of reports data source

    Hi all, I need to convert an ugly EBS standard charactermode report (Oracle Reports) into the Xml-Publisher format. I'd like to use the existing report as the xml data source as all data is available in the old report. The problem is that the date fo

  • Simple Java 3D Example

    Where can I find a simple examplecode in Java 3D? Like drawing a simple object like a cube. One with explanation would be great.

  • Re-activate after resetting Ipad 1

    Hi, My Ipad 1 was running slowing few weeks ago, so i did reset it. After resetting process, it's unable to re-activate. Here is the IMEI It's bought in Taiwan or Hongkong by my company La Veranda Resort in Phu Quoc, Vietnam. Please advise me what to