Quick question about looping movie clips

I'm a REAL Flash novice, and I'm trying to get a movie clip to loop 3 times, and then continue on.
Here's the code I've written (I'm sure it's painful to see)
stop();
if (!loopCount) {
  var loopCount:Number = 0;
loopCount++;
if (loopcount < 3) {
gotoAndPlay (1)
if (loopCount = 3) {
  gotoAndPlay(363);
Could someone help me out?
Thanks,
Brandon

use double equal (==) to test for equality:
stop();
if (!loopCount) {
  var loopCount:Number = 0;
loopCount++;
if (loopcount < 3) {
gotoAndPlay (1)
if (loopCount == 3) {
  gotoAndPlay(363);

Similar Messages

  • A quick question about WebDynpro SLD and R/3 with concurrent users

    Hello ,
    I have a very quick question about Webdynpros and SLD connecting to an R/3 system, when you configure a webdynpro to connect to an R/3 system using SLD, you configure a user name and password from the R/3  for the SLD to use. What I would like to know is when I have concurrent users of my webdynpro, how can I know what one user did in R/3 and what another user did? Is there a way for the users of the web dynpro to use their R/3 credentials so SLD can access the R/3? Like dynamically configuring the SLD for each user?
    - I would like to avoid leaving their their passwords open in the code ( configuring two variable to get the users username and password and use these variables as JCO username and password )
    Thanks Ubergeeks,
    Guy

    Hi Guy
    You will have to use Single Sign On to achieve this. In the destination you have defined to connect to R/3 , there is an option to 'useSSO' instead of userid and password. This will ensure that calls to R/3 will be with the userid that has logged into WAS. You wont need to pass any passwords because  a login ticket is generated from WAS and passed on to R/3. The userid is derived from this ticket.
    For this to happen you will have to maintain a trust relation ship between R/3 and your WAS ,there is detailed documentation of this in help files. Configuration is very straight forward and is easy to perform
    Regards
    Pran

  • QUICK QUESTION ABOUT PORTS

    Hi, I have a quick question about port forwarding/mapping. My question, lets say I am running MSN messenger, who's ports are 6880-6900. But lets say I am running a torrent application or something else that requires those ports. If both applications were running at the same time, would this cause interference with them on the same ports or now. Thanks
    Nathan

    Normally, only one application can listen to a specific port number at a time. If MSN is grabbing those 21 ports then your torrent app won't be able to run.
    However, most apps don't work that way - even if they use multiple ports, they don't use them all at the same time, so MSN might use 6880 when it starts up, leaving the others open for other applications to use if needed.
    Only experimentation will answer that one.

  • Dynamic text in looping movie clip

    Hi,
    I am looping a movie clip which has a dynamic text box. I
    need to call data from XML and place the same in the Dynamic text
    box as per the duplicated movie clip. how do i do that.
    Thanks,
    Ayush

    on (release) {
    _parent.frontFields.topTextArch.ph2TopTextBrush._visible =
    false;
    That is the script attached to my button. I can see the text
    flash for a second when I push the button but it does'nt go away
    because the looping movie clip just continually goes back to the
    first frame and makes the ph2TopTextBrush text field visible again.
    I think I know what your saying. Your saying to attach a
    script to the first frame of the looping movie clip that would
    check to see which of the 3 dynamic text fields are visible. That
    would be perfect but I'm not sure how to do it.
    What would the script that I place on my button look like?
    What would the script in the first frame of the looping movie clip
    look like?

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Looping movie clip stops in middle

    I am using a movie clip as part of a game. It's a clip of a
    spaceman walking.
    When the game is being played, the movie seems to loop one
    time (the spaceman walks one cycle), and on the second time around
    the animation seems to stop right in the middle of the cycle. it
    always stops on the same frame.
    What is happening here?
    Thank you

    Okay, great, and what about the last line? What is that for?
    Do i put my keylistener info after that line?
    I'm still a little puzzled about where to put the script that
    you just offered me.
    But before I get to that, let me ask you a question about my
    current code. Below I've pasted the beginning of the code that I
    have for Key Down. My question is: Is this code going to execute
    over and over again? Is this code a "key listener"?
    _root.onKeyDown = function() {
    ///keyDOWN!!!
    whichKey = Key.getAscii();
    if ((whichkey == _root.jumpkey) or (whichkey ==
    _root.jumpkeycaps)) {
    if (_root.mov == "walkleft") {
    _root.mov = "jumpleft";
    _root.vertspeed = 24;
    if (_root.mov == "walkright") {
    _root.mov = "jumpright";
    _root.vertspeed = 24;
    if (mov.toLowerCase().indexOf("stop") != -1) {
    _root.mov = "jumpup";
    _root.vertspeed = 24;
    }

  • Quick Question about Cisco 3560 and the Web Device Manager

    Alright, I have a quick question that I am curious about but I haven't found any information
    about it.
    When I log into my Cisco 3560 using the web portal to get to the Device Manager. Below the
    diagram of the switch, then under the Dashboard there is section called Switch
    Health, Port Utilization.
    Under the Switch Health there is Bandwidth Used, Packet Error. Those two options just sit
    at zero and do not move. The Port tilization graph is also sitting at zero.
    Is there a way to make them functional?

    Anyone notice performance increase or decrease of their HD when using the nVidia IDE SW drivers?  particularly with a 74GB Raptor?  I've also heard of burner issues when installing the IDE SW but have not used my burner yet.

  • IMovie - quick questions about video files when importing and optimizing

    Hi, have some quick questions. I think they are simple.
    1. When I import a video (from say iPhoto), where does it get "Move" or "Copy" to?
    2. Why would I want to do "Copy" instead of "Move", because isn't it then taking up more space?
    3. I'm wondering if after I optimize a video, I can stash away the original (non-optimized video that I either "Move"d or "Copy"d earlier) into an external hd.
    4. By the way, what is the new file name of the optimized video?
    Though things are working fine in iMovie and iPhoto, I'm trying to manage hard disk space, and hope answers to these questions will help.
    Do you guys have a guideline on how to manage hard disk space when it comes to iphoto and imovie?
    Thanks.

    As has been suggested you can encourage people to download QuickTime player by doing something like this...
    http://www.mirroroftheuniverse.com/Songs.html
    You can also present your songs like this...
    http://roddymckay.com/Satellite/JukeBox.html
    This is a SnoCap jukebox and you need an account to use it but you'll get the link to ESnips on the above page.
    A 3 minute song has a file size of about 30 Mb in AIFF format. Converting it to MP3 reduces it to about 3.5 Mb and M4A to about 5.5 Mb.
    iTunes will do these conversions for you and M4A is far superior to MP3 as far as sound quality is concerned.

  • Question about scrolling through clip images

    This may be an iMovie and iDVD question, or more of an iMovie.
    In the scene menu, when I'm making menu buttons and want to use a clip 'photo' rather than a motion clip, I know I uncheck the movie box, and move the cursor to get the picture. That said, it seems there are at least several seconds between these clips, and I can never stop on or find the exact image I want for the chapter. This seems to be the case in iMovie, too, when I'm bookmarking chapters.
    Is there a way to fine-tune the scroll so I can see move seens rather than having the gaps? I've looked all over the place for a way to do this, so sorry if it is something obvious that I missed.
    This is a great forum, and a huge help for a very recent PC to Mac convert.

    Thanks for your reply. I'll try to explain it better. I have a long, vertically scrolling movie clip. This movie clip contains lots of thumbnails. When I click a thumbnail, the full sized image is loaded from the library and displayed within the same movie clip. when I click the full size movie clip, it disappears again, and I can click another thumbnail to display another full size image. So I'm not just adding more and more stuff to the gallery if that's what you were thinking. I'm just clicking thumbnails to display the full size image so I can look at it, closing it, and moving on.
    But the full sized image is fixed at the very top of the scrolling movie clip, so if I click a thumbnail at the very bottom, I have to scroll all the way back up to the top to see the full size image. I just want the full size image to appear on screen no matter how far down I have scrolled to click a thumbnail.
    I made my basic gallery useing this tutorial:
    http://flashexplained.com/actionscript/making-the-ultimate-dynamic-image-gallery-in-flash- 8/
    if you want to take a look at that, to get an idea of what I'm talking about.
    Now I'm just trying to add some scrolling functionality, which wasn't included, but I don't really understand actionscript well enough to do this easily on my own.
    Sorry for the long reply. I hope this is clearer.

  • Quick question concerning "load movie"

    Hi,
    I'm sure this is a dead simple question, but I'm not sure
    about syntax. Basically I have several buttons which when pressed
    load a new swf into a movie clip _root. I want each different
    button to take the viewer to to a different frame in the loaded
    movie. So button 2, would open the new swf at frame 1, button 2,
    would open the new swf at frame 2, etc.
    This is the script I'm using to load the new swf:
    on (release) {
    _root.bigphoto.loadMovie("big photos.swf");
    What should I add to it?
    Many thanks.

    "DaveCunningham" <[email protected]> wrote
    in message news:e5mo6o$5jl$[email protected]..
    > Hi,
    >
    > I'm sure this is a dead simple question, but I'm not
    sure about syntax.
    > Basically I have several buttons which when pressed load
    a new swf into a movie
    > clip _root. I want each different button to take the
    viewer to to a different
    > frame in the loaded movie. So button 2, would open the
    new swf at frame 1,
    > button 2, would open the new swf at frame 2, etc.
    >
    >
    > This is the script I'm using to load the new swf:
    >
    > on (release) {
    > _root.bigphoto.loadMovie("big photos.swf");
    > }
    >
    > What should I add to it?
    >
    > Many thanks.
    //****************** main.swf *******************
    // button to send two.swf to frame 10
    on (release) {
    loadMovieNum("two.swf?vars=10",1);
    // button to send two.swf to frame 30
    on (release) {
    loadMovieNum("two.swf?vars=30",1);
    //****************** two.swf *******************
    // a preloader is required to make sure this movie is fully
    loaded before checking the vars value
    this.onEnterFrame = function()
    var gbt = this.getBytesTotal();
    var gbl = this.getBytesLoaded();
    if( gbt > 20 && (gbl == gbt))
    delete this.onEnterFrame;
    gotoAndStop(vars);// jump to the frame number in vars
    You can also pass frame labels instead of numbers if you want
    to.
    tralfaz

  • Two quick questions about Library after moving beginning on a new computer

    Hi there,
    I just moved from Windows to Mac, meaning I had to move my iTunes library from the old PC to my new MBA.
    Just a couple of quick questions.
    1. When I started iTunes on my new Mac, in the preferences I directed the media folder to the folder with all my itunes music/podcasts etc, and then I imported the Library XML file.  Is this incorrect? Should I have imported a different file? Should I have used the itl file instead? 
    If so, should I delete the library and start again?  (if this is the case, please suggest the best way of doing this without affecting my media)
    - a kind of sub-question to this one:  some of the media files arent showing up in the iTunes library, but they are in the media folder on the ext HDD.  Is there a way I can find out which ones havent been recognized by iTunes?  Whats the best way of getting them in to my library?
    2. Pretty much half of my podcasts have not been loaded in the new iTunes.  The ones that havent were ones that I subscribed to on my iPhone, whereas the ones that show up in iTunes were ones I downloaded from iTunes.  When I connect my iPhone and sync it with iTunes, will those podcasts show up in iTunes?  Or is there a risk that they will be deleted from my iPhone?
    Cheers,

    The .xml is lacking some information such as ratings, date added, and play count.  Using the .itl includes this information but cannot be imported using the method you did.
    A complete library is everything in the iTunes folder.  By using the method you did you left the artwork behind in the artwork folder on the other machine.
    Selecting the media folder in preferences does not get iTunes to recognize the media.  All it does is tell iTunes to start storing new media in that location.
    Using the method I outlined nothing will be missed (with the exception of WMA) because you aren't rebuilding your library, you are using the one that already exists.
    You don't have to re-copy everything as long as you get the stuff you missed and re-assemble it all as it was before except not on the Mac.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • Quick question about iMovie

    I have a question about iMovie. I've used Final Cut Pro before using iMovie, and FCP allowed the user to play two video/images on top of each other. You could play with the opacity and the duration very easily.
    I'm wondering, can you do the same thing with iMovie? I'll be VERY disappointed if you can't do it.
    iBook G4

    Hi
    And You could take a look at the plug-ins to iMovie.
    - Stupendous software http://www.stupendous-software.com
    - GeeThree http://www.geethree.com
    - cf/x. http://www.imovieplugins.com
    and possibly more.
    QT-pro can do this as said above - but You need to be very precise.
    But I would do this in FCP and then export as QT.mov to do the rest in iMovie
    if necessary.
    Yours Bengt W

  • Quick question about RegExp

    Just a quick question.
    In other languages, I can do this...
    while(reg.exec(string)) {
         //loop through results
    And while looping, I can access the current match with something like reg.Match or whatever. 
    Is this possible in AS?

    Look up the RegExp class.

  • Looping movie clips

    I want to loop 5 movie clips so that one clip moves onto the stage, stays there for a certain time, then moves off the stage, then the next one.
    Any help is greatly appreciated!
    Here's what I've got so far:
    var m1_mc = new m1();
    var m2_mc = new m2();
    var m3_mc = new m3();
    var m4_mc = new m4();
    var m5_mc = new m5();
    currentPage = m1_mc;
    var timer:Timer = new Timer(1000);
    timer.addEventListener(TimerEvent.TIMER, onTimer);
    timer.start();
    function onTimer(evt:TimerEvent):void {
    for (var i:Number = 0; i<5; i++){
    prevPage = currentPage;
    var exitTween:Tween = new GCSafeTween(currentPage,"x",Strong.easeOut,currentPage.x,-800,12,false);
    //this is where I am getting stuck. Not sure how to write currentPage + 1 to make the next movie clip play
    exitTween.addEventListener(TweenEvent.MOTION_FINISH, animateOn);
    function animateOn(e:TweenEvent):void{
    var enterTween:Tween = new GCSafeTween(currentPage,"x",Strong.easeOut,-800,0,12,false);

    You should probably step back and rethink things a bit, though not entirely, possibly take it one step at a time.  Get one piece to play properly, then work in having 5 of them.  Using the tween event listeneres amd the timer to trigger things is a good approach.
    Tween-In -> Timer -> Tween-Out -> next Tween-In...
    That for loop inside the function will execute immediately, creating 5 tweens for the currentPage, etc... which is not what I think you want.
    Use a counter variable to keep track of which mc you are dealing with and use it/increment it to define which mc you are dealing with...
    var mcNum:uint = 1;
    var currentPage:MovieClip = this["m"+mcNum+"_mc"];
    and don't forget that you need to add the instances to the movie before you can expect them to be present/visible in any way (addChild())

  • A few quick questions about publishing for iPhone/Android

    I'm currently developing an iPhone/Android game in CS5 and I just have a few quick questions.  If anyone can answer even one or two I'd really appreciate it
    1- I'm developing using a 320 x 480 resolution for the iphone.  When I tested it, the status bar on the top of the screen makes the edges disappear.  How should I turn off the status bar?  And if I can't what resolution should I use?
    2- The performance is a little slow, and the game isn't very intense at all.  What's a good way to improve performance?
    3- For Android, what should I do for the resolution?  Is there a standard resolution or do I have to have multiple resolutions for multiple devices?
    4- Finally, is it worth getting the free trial of CS5.5 before I publish?  Is there anything in there that will be a huge improvement over CS5?
    All help is appreciated

    1. Publish in fullscreen
    2. Use bitmaps, cache all bitmaps, use minimized looping structure etc.
        http://www.yeahbutisitflash.com/?p=986
    3. Android: 480 * 800
    4. Not that much, but you have GUI updates and have a GUI publishing screen for packager for iphone too.

Maybe you are looking for

  • Bullets and Transparent text boxes

    hello, I've checked out the postings already for this issue and appreciate Ricks tip on fixing the font blur issue. However, I have another bug with bullets in transparent text boxes. Upon preview or publish of a project, I see a ghost color (a littl

  • Material valuation at company code level

    Hi, We have the valuation at company code level and when we transfer material from one plant to another (Two step stock transfer) the system dont post  fi document. When the profit center of the material is assign an fi document is posted. Somebody k

  • New GL implemented, problems in F.01 and trail balance report and balance carry forward.

    Dear Friends, One of the my client recently implemented New GL in the Dev system, and getting posted the documents. now we are facing the many problems in the Dev system. 1. F.01 Financial statement report not generating for the year 2008 to till 201

  • Flash Media Server Temp Files

    Hi all, Maybe this topic has been asked and answered before. But I have not found relevant information on this issue. So there it is: I found out that when the FMS service is running, it creates a lot of temporily files in the c:\windows\tempdirector

  • Newbe Q: Where do I find B2B Document Editor documentation?

    Hello. A Newbe Question. I find myself in need of modifying a HL7 ADT A01 Spec file in such a way that PV1 Visit Number field is greater then the 20 characters the spec allows (which is strange since the components of that field are all larger then t