Play a movie in Flash CC

Hi. I'm a beginner in Flash and english is not my native language, but i hope you can understand my question.
I'm trying to create an iPhone app using flash. I have made a flash file containing two scenes. In the first scene there is a button, when you press it you go to the second scene. So far I manage to do it.
When you come to the second scene I want a movie to start playing automatically and when the movie ends you automatically go back to the first scene. This part I cant figure out how to do!?
Also I'm not sure what's the best way to make the movie. I would preffer to make it in Final Cut Pro or Premiere (programs that I am familiar with) but can I export a file that works for this purpose? I DO NOT want a video skin were you can change volume and paus and so on.
All help is appreciated. Thank you!

just navigate to your second scene in the ide, click file>import>video and select the options to play your video in an flvplayback component.
once you navigate to your flv/f4v (which should be moved to the directory with your iphone file, or a subdirectory) and click all the ok/yes, you'll see an flvplayback component on stage in screne 2.  click it (to select it), in the properties panel assign an instance name (eg, flv_pb) and if a skin was used, select none from the flvplayback properties.  then click an empty part of the stage or back stage to de-select it and, in the actions panel use:
flv_pb.autoPlay=true;
flv_pb.addEventListener(Event.COMPLETE,completeF);
function completeF(e:Event):void{
gotoAndStop(1,"Scene 1"); //<-- use your desired frame number and your scene name and use gotoAndPlay, if that's what you want
p.s. when you publish your iphone app make sure you include your flv/f4v in the included files panel in the publish settings.  and if you decide to use an flvplayback skin, add it there too.

Similar Messages

  • HT1498 It took 2 hours to download my rental, then when i go to play the movie it flashes loading and then authorizing.  It stays stuck on authorizing. Anyone experience this?

    It took 2 hours to download my rental, then when i go to play the movie it flashes loading and then authorizing.  It stays stuck on authorizing. Anyone experience this?

    Welcome to the Apple Community.
    The first thing to check would be your internet download speed, you can do this at www.speedtest.net.
    1080p HD movies require a recommended speed of 8 Mbps, 720p HD movies require a recommended speed of 6 Mbps, while SD movies require a recommended speed of 2.5 Mbps.

  • Playing exported movie inside flash crashes app

    We have 3 identical machines running the CS3 Web Premium
    suite, on only one of them hen the programmer exports to a movie
    and play it in a browser it's fine, but when he tries to play it
    within the IDE itself flash completely crashes 30-50% of the time.
    The complexity doesn't seem to matter, and other people can export
    and preview in the app the same movie and they are fine, it's just
    his machine.
    We have tried reinstalling, but he gets the same thing. Could
    this be a memory issue? His machine is an Intel G5 quad core
    running Tiger/Windows XP with 5GB of Ram. This only happens on the
    windows side, but he hates running on the Mac side.

    Actually this is running on windows boot camp, so it's on
    it's own partition on the main hard drive running windowsXP. I've
    seen other people complaining about this problem, but I've never
    seen a solution posted. Some have suggested that it maybe saving on
    remote drives messes it up, but there is only one partition for him
    to work on.
    Is there a prefs file I can delete that will then be
    recreated like on macs?

  • Playing a Movie Clip within a Movie Clip on load

    Hi,
    I'm trying to play a Movie Clip animation that is within a Movie Clip after a button has been pressed in a different Movie Clip.
    The issue is that all Movie Clip animations are playing as soon as the SWF is loaded.
    I have a separate Main.as file that contains all of the coding except for the animation stops:
    package
              import flash.display.MovieClip;
              import flash.events.MouseEvent;
              public class Main extends MovieClip
              var title1:Title1;
              var scene1:Scene1;
              var scene2:Scene2;
              var scene3:Scene3;
              var scene4:Scene4;
              var scene5:Scene5;
              var scene6:Scene6;
              var scene7:Scene7;
              var scene8:Scene8;
              var scene9:Scene9;
              var scene10:Scene10;
              public function Main()
                        title1 = new Title1();
                        scene1 = new Scene1();
                        scene2 = new Scene2();
                        scene3 = new Scene3();
                        scene4 = new Scene4();
                        scene5 = new Scene5();
                        scene6 = new Scene6();
                        scene7 = new Scene7();
                        scene8 = new Scene8();
                        scene9 = new Scene9();
                        scene10 = new Scene10();
                        addChild(title1);
                        title1.buttonStart.addEventListener(MouseEvent.CLICK,onButtonStartClick);
                        scene1.buttonWalkOutside.addEventListener(MouseEvent.CLICK,onButtonWalkOutsideC lick);
              //title
              function onButtonStartClick(event:MouseEvent):void
                        addChild(scene1);
                        removeChild(title1);
                        Scene1(parent).gotoAndPlay("frame1")
              //scene1
              function onButtonWalkOutsideClick(event:MouseEvent):void
                        addChild(scene2);
                        removeChild(scene1);
    So right now, I'm getting this error:
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@46534041 to Scene1.
              at Main/onButtonStartClick()
    Any help is greatly appreciated... I've been grinding at this all night.

    I had been trying a bunch of different methods after searching for clues on Google, so it probably doesn't make sense with the parent.
    I replaced the code with what you wrote, and I am given this error now:
    Main.as, Line 44
    1120: Access of undefined property scene1Text1.
    Is there somewhere I have to declare scene1Text1 in Main.as?

  • Audio not playing in mov format K'08

    Ive seen a lot of threads but none had a solution to this.
    With the slides, I included an mp3 from within itunes
    dragged it from the media window into the documents soundtrack box
    clicked looped
    and played just fine throughout the manual presentation.
    clicked export to .mov
    checked include audio files
    when the mov plays it is silent.
    I tried one workaround, using the newly recorded audio file reimported into keynote 08 and exported again - still silent
    has anyone figured out how to get the audio to play in .mov?
    thanks

    Believe it or not, I've been having this same problem since I bought my Imac G5 a few years ago. It just happened to my MacBook Pro, as well. Along with the fact that mpg audio is gone, so is flash audio. It seems to happen every so often, usually after one of my computers hang while loading a preview for a flash movie. The problem actually seems to correct itself after a few restarts, or loading of some programs.
    In the process of writing this post, I regained support for mpg audio, and flash audio - and in quicktime player for that matter. When I started writing this, it didn't work. I dunno, quicktime is weird that way. The longest time I was without flash or mpg audio was for a period of 3 weeks. After which, it somehow was magically there again. I wish that wouldn't happen, as it usually happens at the most inconvenient times. The whole way flash is not supported through newer versions is rather irritating as well isn't it? Use SAFlash player for mac for those if you can: http://www.adobe.com/support/flashplayer/downloads.html
    (sorry a little off topic there)
    MacbookPro17"   Mac OS X (10.4.7)   Imac G5, PowerMac G3, Mac LC

  • IPhoto will not play portrait movies

    hi all.
    uunfortunately I am unable to play any movie that is in portrait mode. Anyone ever heard of this before? Landscape videos play fine.
    ALso. If I import them into a new library I get an error staying the file is I recognizable.
    Thanks. P

    Hi Toad,
    Thanks for the assistance.  Yes, we definitely can open the video directly.  It seems my iPhoto is having some serious trouble.  As of about two weeks ago I have been unable to load any movies into the software at all.  Usually this all comes directly from my iPhone; which I have never experienced trouble from.  All of a sudden with the new iPhone 6 any video I take will not import.  Any which way I import them, from GoPro flash card, or iPhone 6, or directly from Finder, nothing .... lame
    It turns out now that any video shot in portrait will no longer play.  I have tried everything to resolve this ...
    1. all four options in iPhoto repair
    2. new library
    3. different/new user profile
    4. terminal command to rebuild cache file
    5. upgrade to Yosemite
    6. upgrade to iPhoto 9.6 
    still nothing.  I don't have any QuickTime plugins, no Piran, or anything else .. I'm completely stumped.

  • Actionscript to play a movie?

    I am fairly new to Flash. Can someone provide the AS3 to play
    a movie on
    the stage onClick of a button?
    Thanks!!!!!!

    I also placed a stop action on the first frame of the stage
    in the scene.
    CJ wrote:
    > It is not working for me, here is what I did:
    >
    > 1. Made a movie clip and placed a stop action on the
    first frame of the
    > movie clip. Am I not supposed to do this?
    >
    > 2. Dragged the movie clip to the stage
    >
    > 3. dragged a button to the stage
    >
    > 4. named the button my_btn
    >
    > 5. copied your action script to a the first frame on a
    new layer of the
    > stage
    >
    >
    >
    > How does the action script know to play the specific
    movie clip on the
    > stage that I want it to?
    >
    >
    > Thanks for your help!!!!!!
    >
    >
    >
    > dzedward wrote:
    >> my_btn.addEventListener(MouseEvent.CLICK,
    btnClicked);
    >> function btnClicked(e:MouseEvent):void{
    >> play();
    >> }

  • Quicktime 7.2 will not play Quicktime Movies

    Ironic isn't it.
    I recently purchased Sony's Movie Studio and it required a new(er) verson of Quicktime to import QT movies. So I download 7.2 ( i had 7.01, if I remember correctly) and installed it. I can now import QT into Vegas for editing. Fine. Great.
    BUT, and here is the ironic part, Quicktime will no longer play Quicktime movies! Not .mov, .mp4, nothing. Zip. Zilch. But it will play some old avi files for some reason. All I get is the audio and flashing striped colors. Until 7.2 I could load any .mov, avi, mp4 file and edit them without a problem. (I forgot to mention, I had QT Pro) I was also using Any Video Converter to convert old home movies I'd burned to dvd to the mp4 format, and Quicktime worked flawlessly to open them too. Up until this "update" I've been very happy with the performance of Quicktime.
    Now, nothing but frustation and the online Support hasn't pointed to a solution. And yes, I have updated my Dell PC running XP to all the latest service packs.
    Any ideas? If I delete 7.2 I could probably re-install a version of 6 Pro that always worked, but then Vegas Movie Studio won't work. Kind of a Catch-22. Thank you for any help.

    It has helped some who have had this problem. Try dragging the QuickTime webplugin folder to the desktop in case you need to put it back and see.

  • Can I import Director movies into Flash?

    Hi,
    Can Flash handle Director movies? I am making a presentation
    of my artworks in Flash environment; I have both Flash and Director
    movies. I know that I can import all my swf movies into Director
    MX2004 to create a standalone projector and play both swf an ddir
    movies. Does it work for the reverse?
    Thanks
    Uti

    No, you can't import or display Director movies in Flash in
    any way. Best
    you can do is launch the Director executable from the Flash
    movie, though
    how you do this depends on which version of Flash you are
    using.
    Remove '_spamkiller_' to mail

  • Playing embedded movie backwards

    I am patching together my first flash, which is definitly not
    optimal (lots of redundant code etc.) Since there is a deadline,
    ill go back and learn about how to make it much more optimal after
    this first version is done, so keeping all that in mind:
    Is there any way to play an embedded movie backwards upon
    calling it with a gotoAndPlay() command from the same scene?
    Thanks, a simple solution would definitly save me a lot of
    time, thanks for any tips!!

    projection83 wrote:
    > hi urami, thanks for the reply
    >
    > this seems to half work for me,
    >
    > I say gotoAndPlay(1000), which is the end of the movie
    which starts at 500
    >
    > it goes there, and there is an actionscript at 1000
    saying prevFrame();
    > same for 999, 998 all the way to 500. (start simple:P
    and lonnng code style)
    >
    > The problem is that the code takes me right to 500
    without actually playing
    > the movie - but it does get to its desination - what am
    i missin?
    Not all timelines can reversed their playback. This will work
    on motion/shape tween
    and frame by frame animation, nothing.
    What kind of content do you have on these frames ?
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Black Screen when trying to play iTunes Movies PLEASE HELP

    This is my set up. I have an iMac running OS X (10.5) and a mac mini running (10.6) this mac mini is hooked up to my tv in the living room, it also is fitted with an external hard drive (this is where my itunes media folder is located for my mac mini). I enabled home sharing on both macs and they are both authorized to play my media. I recently downloaded two movies on my iMac and transferred them to my mac mini. Now here is the problem. I can play the movies fine on my iMac but when i try to play them on my mac mini all i get is a black screen with no sound. The movie is playing on the mac mini because i see the time bar moving but nothing is on the screen.
    Please help.

    In an attempt to consolidate numerous threads about video problems with Flash Player 11.2.202.228 I've created a new post where I'd like to have people who are still encountering this issue to either post or link to an existing post with their information.
    Video investigation with Flash Player 11.2.202.228
    We're asking for 4 pieces of information
    1. A brief explanation of the problem
    2. Did disabling hardware acceleration fix the issue
    3. A sample URL
    4. A copy of your dxdiag report
    If you've already provided all 4 answers to us, thank you and please take a minute and copy the URL of your post (right click on the highlighted title of your post as shown in the example screenshot below) and paste it as a reply so your input is not lost.
    If you haven't provided these answers, we ask that you take a few minutes and create a new post with the required information.

  • Embed flash movie into flash site

    I'm sorry if this has been answered elsewhere i searched around a while and couldn't find a solution.
    Basically i have these buttons that I want to link to a movie that would come up in a popup window that has the controller options- to stop play, fastforward, etc. I made one already using flash CS4 and exported it to a .swf file.    how do i link the button to the .swf file to open a pop up window- where i can control the size of the pop up window? also- when i upload the .swf file do i need to upload the encoded .f4v video to my server too?  I'm open to a completely different way of doing this as well!!  any help is appreciated

    Hi thanks for the reply. i had looked through this link before.  the problem is I am not trying  to a website to open in the popup window.  I want to open a .swf file in a popup window....any other suggestions?
    also- i imported a .f4v movie to flash cs4- chose one of their skins and exported is as my .swf file.   will this work?
    thanks a million for any help im rather daft at this!!

  • IE and FireFox crashing when trying to play QuickTime movie

    I'm on a PC running Windows 2000 and QuickTime 7. I'm trying to play some movies of my own within a browser but am experiencing problems with the browsers crashing. Sometimes, they work the first time, but after that the browsers crash. The error messages are:
    Microsoft IE has encountered a problem and needs to close.
    firefox.exe has generated errors and will be closed by Windows.
    I've been trying variations of the HTML code but here is the last one that actually worked the first time in FireFox but not anytime after that:
    <OBJECTCLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"
    HEIGHT=405
    WIDTH=720
    <PARAM NAME="src" VALUE="VideoDetail_720-5K.mov" >
    <PARAM NAME="CONTROLLER" VALUE="False" >
    <PARAM NAME="HREF" VALUE="URL" >
    <PARAM NAME="TARGET" VALUE="QuickTimePlayer" >
    <EMBED SRC="VideoDetail_720-5K.mov"
    HEIGHT=405 WIDTH=720
    TYPE="video/quicktime"
    PLUGINSPAGE="http://www.apple.com/quicktime/download/"
    CONTROLLER="False"
    HREF="URL"
    TARGET="QuickTimePlayer"
    />
    </OBJECT>
    The movie is 8MB is size. I've checked my mime settings and the Flash player is not checked.
    Can anyone tell me what I might be doing wrong?
    Thanks,
    Tana
    PC   Windows 2000  

    You've failed to enter a "source" for your HREF "target".
    Use a complete URL to the QT file you wish the "quicktimeplayer" to "target" and your page should work as you want.

  • Quicktime displays a question mark when trying to play a movie

    hello, i upgraded to the latest version of quicktime for macosx, and since then it hasnt been able to play any movies, not even the ads on the quicktime website, it just displays the question mark. i tried updating the flash plugin but had a wierd problem. when i go to quicktime preferences and try to enable flash, it doesnt save the change, i enable it, the go to a new pane, but when i go back the box is unchecked, any ideas why this is happening. ive tried repairing permissions and restarting, but this does nothing. why cant i watch movies anymore????!!!!?!?? thanks in advance for any feedback.

    Well, unless someone else chips in here to help, your other option is to contact Apple's technical support. Their U.K. phone no. is: (44) 0870 876 0753
    I could be wrong, but as I understand it, if you've never contacted Apple before for the particular Mac you're calling about, then your 90 days of complimentary phone support will begin from your very first call.
    Here is the "Contacting Apple Support and Service" page:
    http://www.apple.com/support/contact/
    ...and the phone numbers are here:
    http://www.apple.com/support/contact/phone_contacts.html
    Meanwhile, you can always send some feedback to Apple about your experience here:
    http://www.apple.com/macosx/feedback/
    MacBook Pro 15"   Mac OS X (10.4.8)  

  • Touch won't work during playing of movies

    My Ipod touch screen works fine except when playing movies. When the movie starts playing, all is fine (the volume bar shows up and I can adjust the volume then) but after the movie plays (and the volume bar disappoears) I can no longer activate the controls for the movie (volume bar, pause/play, etc.). The only way to get out of the movie is to hit the "go back" button at the bottom of the iPod. I've tried shutting it down and restarting it up. I've tried resyncing. I've tried taking off all applications, etc..... and no difference. "touch" won't work during the playing of movies. It works fine for everything else. HEEELLLLLPPPPP.
    ~T

    Windows CD will not work as is, because it does not have drivers for Apple hardware. On the OS X side, run Bootcamp Assistant and use Windows CD to build a bootable USB2 flash drive. Boot from it and it will have the appropriate drivers to allow apple hardware to function.

Maybe you are looking for

  • How to create event for BOR BUS2009 Object ?

    How to create a new event for BOR BUS2009 Object ?

  • Problem with HP Color LaserJet 2840

    Hey guys, first post here woot woot haha Now to business I have a macbook with osx 10.4.11, and an HP Color LaserJet 2840. I can't get it to print through USB. This guy on the HP forum had the exact same problem http://forums13.itrc.hp.com/service/fo

  • BW authorizations in BPS layout

    Dear all, My question may seem basic, but I don't have any experience with authorizations. I need to use already existing BW authorizations in my BPS layouts, so well, I created auth. variables on the needed characteristics and assigned it to my layo

  • Replace AR Credit Memo Request Workflow with a new Custom Workflow

    Hello friends, We have a business requirement to replace the AR Credit Memo Request Workflow with a new Custom Workflow whenever an Invoice is disputed (Oracle Advanced Collections). The Credit Memo Request workflow is being launched within the Oracl

  • Service master i want to define the valuation class

    Dear All, I have one issue, we accounts ppl have given the G/l against each type of expenses which need to be captured as per the service level. i want to ask whether the service master can be made same as the material master in the sense we give the