Moving frames on MC with if statment

Anyone want to tell me why this MC allways goes to frame 76 once clicked insted of checking the frame its on here is the code...
function goQuestion(e:Event){
if(e.currentTarget.frame <=(60)){
e.currentTarget.gotoAndPlay(60)
}else{
e.currentTarget.gotoAndPlay(76);

var card1:card001 = new card001();
var card2:card002 = new card002();
var card3:card003 = new card003();
var card4:card004 = new card004();
var card5:card005 = new card005();
var card6:card006 = new card006();
var card7:card007 = new card007();
var card8:card008 = new card008();
var card9:card009 = new card009();
var allImages:Array = new Array();
allImages = [card1, card2, card3, card4, card5, card6, card7];
var newImage = allImages[Math.floor(Math.random() * allImages.length)]
addChild(newImage);
trace (newImage)
newImage.x = 8;
newImage.y = 5;

Similar Messages

  • Frame Maker 10 with S1000D - Figure TOC not in format

    I am using Frame Maker 10 with S1000D Application Pack, i have new document from S1000D->New->Crew Modle, inputing the data as per the Elements and updating the TOC S1000D->Update TOCs all works fine, but when i insert the Figure and updated the TOCs its not in the format
    When i checked the sample document which is given in FM 10 S1000D, Once i Insert the Element "Figure Title" it inputs auto number...but not in Crew Modle.
    Please help me how to go with this

    This formatting error is due to a missing text format rule in the Crew Module application. The quickest way to fix this is as follows:
    Locate the S1000D application files within the FrameMaker installation folder.
    Open the EDD for the Crew application: crew_401.edd.fm.
    Also open the EDD for the Description application: description_401.edd.fm.
    In the crew EDD locate the figureTitle element definition which is in the Graphics section. You should see that figureTitle has no formatting rules.
    The Description EDD does include the required formatting rules, so simply copy those rules into the Crew EDD.
    Save the Crew EDD. This may require changing the EDD's file permissions to allow read/write access.
    Open the Crew template: crew_401.tpl.fm.
    Import the EDD into the template using File > Import > Element Definitions...
    Save the Crew template.
    Open the crew data module, the List of Figures will now show the correct formatting.
    Note: Do not import the EDD directly into an open data module as that will overwrite the attribute values as defined by the BREX mapping.
    Regards
    Ian

  • Is the NI 1426 frame grabber compatible with a Line/Linear array scanner?

    Is the NI 1426 frame grabber compatible with a Line/Linear array scanner?
    I am currently doing a feasibility study of project which uses NI 1426 frame grabber and a Linear Array Scanner, and I would like to know if they are compatible with each other.
    Thanks in advance
    Sandeeo
    Solved!
    Go to Solution.

    Hi sandeepchinni,
    I agree with gunnesjr that we need more information about what you mean by Linear Array Scanner.  Like he said if it is a line or area scan camera then yes it will most likely be compatible.  A little correction from what he said.  You do not need to purchase NI Vision if all you need to do is acquire images.  The framegrabber will come with the software that is need to work.  If you need to do any kind of image processing then you will need NI Vision.  The following knowledgebase lists what is installed with driver for the card.  Which Vis are Installed with NI-IMAQ and Vision Acquisition Software?
    Adam H
    National Instruments
    Applications Engineer

  • How to make separate/individual text frame from one parent frame in indesign with javascript

    Hi all,
    Please suugest - how to make separate/individual text frame from one parent frame in indesign with javascript.
    Thanks
    Rohit

    @Larry – ah, your interpretation could be the right one…
    May I rephrase the question:
    "How to split threaded text frames to single ones?"
    "SplitStory.jsx" or "BreakFrame.jsx" under Scripts/Samples indeed could be the answer.
    From the comments in the code of "BreakFrame.jsx":
    //Removes the selected text frame (or text frames) from the
    //story containing the text frame and removes the text contained
    //by the text frame from the story.
    //If you want to split *all* of the text fames in the story, use the
    //SplitStory.jsx script.
    Uwe

  • Yellow flashing on my transparent frame when launched with WebStart

    Hello,
    I am building a mind-map making program, and my app's frame is transparent with two black rectangles on it. When I launch the app through WebStart it blinks yellow on-and-off on my frame for about 3 sec after the frame appears. How can I get rid of this yellow blinking at start-up? Also, when the frame appears a little caution sign is in the top right corner of the frame. Although the yellow blinking quits, this little caution sign still stays. Is there any way to removing the initial yellow blinking and the caution sign? These two "things" really destroy the slick effect I am trying to create with a transparent frame, especially that stupid sign. This happens on both Windows XP and Vista
    Thanks for any help!
    Vance

    If you live near an Apple Store, make a Genius Bar appointment to have the computer tested. Supposedly there is no charge for testing. Use 2nd link if not near an Apple Store or aren’t in the US.
    Genius Bar Reservation US
    Authorized Service Provider

  • Since moving my iPhone 4S with iOS 7.0.4 to straight talk I cannot send or receive mms messages. How can I fix that?

    Help me please... Since moving my iPhone 4S with iOS 7.0.4 to straight talk I cannot send or receive mms messages. How can I fix that?

    Since Straight Talk, using a GSM iPhone is not "officially" supported, you're gonna have to configure the APN settings manually. Go here:
    http://www.unlockit.co.nz/unlockit/
    This site is a collection of APN setting for unsupported GSM carriers. This is a good place to get the correct settings for your phone.

  • Dreamweaver CC crashes when moving a DIV field with the keyboard arrows.

    I'm really fond of the new Dreamweaver CC, but on some occasions, it crashes when moving a DIV field with the keyboard arrows, for example, to move it two or three pixels.
    This is happening on a recent pc (i5 / 16Gb ram / Intel SSD / Bootcamped Windows 8 x64)
    F12 is also really slow when publishing via Chrome. Firefox or Internet Explorer is faster.
    Is there a fix for these issues?
    Thanks,
    D

    Apart from the FluidGrid Layouts feature, DW is not a click and drag app like Photoshop or Muse.   You should be using the CSS panels to align elements with floats, margins and padding.
    Keep Chrome open and refresh browser (F5).
    Nancy O.

  • Picture frame gets moved/resized during preview with iPad

    Hi Guys:
    This happens to a certain type of layout:
    Add a gallery widget to a page
    add only one image to the gallery widget
    Draw a rectangle shape in the page
    Select the rectangle, open the inspector, and add a picture frame decoration to the rectangle.
    Make the rectangle "Not filled" with any color, therefore we get a picture frame
    Put the picture frame on top of the gallery widget
    The gallery widget looks like an ordinary photo, decorated with a picture frame
    The problem:
    The aforementioned layout looks good in iBookAuthor, but when preivewing the book in iPad, the picture frame gets moved (or resizied), therefore it doesn't match the gallery widget.
    after the preview, widgets in the iBookAuthor remains good.
    My question:
    I think it is a bug of either the preview process, or the widgets. if this is the case. I'd deprecate this layout in my book and won't use it anymore.
    Further thoughts:
    I noticed that some type of picture frames are not in high resolution, when previewing the book in iPad, tap to maximize an interactive image with picture frame decorated, it is kind of obverious that the picture frame doesn't have high resolution.
    Any suggestion will be appreciated, thank you.
    Xing Yun

    What happens if you export an .ibooks file, then move it to iTunes and sync to your iPad (delete all previews of that same book first)...?
    Previews are just simplified PDFs and shouldn't be trusted to layout and work the same as a final book.

  • Help on moving frames with new Date()

    I'm a AS beginer and I need help. I trying to move frames accordind to the hour, for example: at 7 am the at frame 1 and at 8 am at frame 10. I have a code that moves the frames every one hour but I need also to move the by the half hour. For instance: at 7 am frame 1, at 7:30 am frame 5, and at 8 am frame 10. This is the code I have so far that moves ever hour:
    // new Date object
    myDate = new Date();
    myHour = myDate.getHours();
    _root.onLoad = function() {
    switch (myHour) {
    //this start at 7 am and end at 6 am
    case 7 :
      trace("It's 7:00 AM");
      switcher_mc.gotoAndStop(1);
      break;
    case 8 :
      trace("It's 8:00 AM");
      switcher_mc.gotoAndStop(3);
      break;
    case 9 :
      trace("It's 9:00 AM");
      switcher_mc.gotoAndStop(5);
      break;
    case 10 :
      trace("It's 10:00 AM");
      switcher_mc.gotoAndStop(7);
      break;
    and so on till 6 am. As you see I need some half hours for some frames.
    I will appreciate any help.
    Thanks in advance
    Pao Pao

    I'm sorry I don't get what you mean. As you see the frame noves when it get to the "case #" like "case 7" it goes to play when is seven am and case 19 goes to play when is 7 pm. what I want is how to get to 7.5 to go and play at 7:30.

  • Frame Hold Problem (with pictures!)

    Hi,
    I'm working with Premiere Pro cc 2014 on a Mac Pro 2011 with a Radeon 5770 card and GPU acceleration.
    I've been trying to do pan-and-scan and dissolves between scenes but it's been really flaky.  In many scenes it just doesn't work./
    Here's the top of a frame hold clip in this sequence. Play head is at the top of the scene with key frames but no effects added.
    Now I've moved the play head to a later point in the scene with a drastically different set of key frame parameters and no change in the image (it should be very zoomed in):
    Even after rendering it's a fail.
    Sometimes if does work, but when  there's a transition, the video loses its effects settings as soon as the transition begins.
    I'm either doing something stupid or I've got a bug.  Suggestions?

    If this is for the photo albums that were transferred from your computer, under the Photos tab for your iPhone sync preferences with iTunes, deselect Sync Photos followed by syncing which will remove all photos on your iPhone that were transferred from your computer. Follow this by reselecting Sync Photos and selecting the photos you want transferred to your iPhone followed by a sync.
    If no change after this, the next step is deleting what is called the iPod Photo Cache from your computer followed by another sync.

  • Premiere adding repeated frames when overwriting with transitions

    Hi,
    Having a bit of a problem (software bug?). I work with groups of clips on a timeline with 5 clips for each group (Intro / segment1 / segment2 / segment3 / outtro) and each week we replace 1 or 2 of each segment so we don't have to do a complete re-edit each week (for example one week we may replace segnemt 2 in each group for the new week and keep 1 & 3 intact)
    I'm replacing clips on a timeline using an Overwrite Edit while keeping the transitions from the previous clips intact (cross dissolve with center alignment). The new clip is IDENTICAL in length to the previous clip I'm replacing (so "handels" are already there) however Premiere is adding repeated frames to the head of the new clip (so the incoming image freezes up until half way thorugh the transition). One way I found to fix this is using the SLIP tool to drag the new clip to the left and line up the in point of the new clip to where it should be. I'd use this as a fix, however I'm replacing over 300 clips in some instances and it's just not time efficient to slip and tweak each one.
    I hope this makes sense.
    Anyways, has anyone else encountered this? Is it a bug? Any workarounds?
    Thanks,
    Phil

    I hear ya, unfortunately in our case we actually don't have a choice deciding where each scene begins and ends because the first frame of the next clip is the next frame in the animation sequence (we have a tile wall floating with moving images over so the flow between the two clips needs to be seemless.) We use a cross dissolve where the overlapping frames match each other during the transition, so the 5 segments stitched together look like one consistant flow). We do this so we can swap out different content segments each week so we can quickly update rather than spending hours re-building the entire segment each week. If you've ever seen the FirstLook conclusion in the movie theaters before the movie starts, that's what I do   Sounds like Ann's solution will work for us in this case.
    Cheers!
    Phil

  • REP-1219 for moved frame

    I'm using Report Builder 6.0.8.25.0 to customize a seeded Oracle report which is being run as a concurrent program in Oracle. I've added a field and moved down a frame and it's enclosed fields to make more room. Now I'm getting the dreaded REP-1219 for the frame I moved:
    REP-1219: 'M_PERIOD_TOTALS1' has no size -- length or width is zero.
    I've gone through the usual efforts to get the error to go away - make sure the frame is fully enclosed by its parent. Delete and recreate. Cut and paste again. But I'm still getting the error.
    I've seen the notes and they suggest to make sure the height and width are not zero - frames don't have these properties in the property palette. And this is not a small frame so there's no way the size is getting rounded down to zero. I also see suggestion to convert the report to or from character to or from bitmapped. I'm thinking this is not the solution since all I did was move the frame.
    Does anyone have a good way to deal with this error? It seems to pop up fairly often and it usually require a good deal of time to fix it.
    RDBMS : 9.2.0.6.0
    Oracle Applications : 11.5.9
    Servers are Redhat Linux
    -Tracy

    Tracey,
    Sorry this is not working for you.
    As I said in my first post, I could not remember if reports 6 can save as a JSP. I went back to an old machine with 6 installed and there is no mention of JSP, the 6 equivalent is a REX file.
    By changing the wd and ht of the problem object to > 0 the error will go away and you can resize it properly in the reports builder.
    Open your broken report (i.e c:\sales.rdf)
    File..Admin..Convert
    Source type = rdf
    Source = c:\sales.rdf
    Dest type = rex
    Dest = c:\sales.rex
    Click OK
    Now open sales.rex and follow my previous post to change the values (I THINK it would be the WD and HT parms of the frame that is causing you trouble.
    After your changes are made
    Save the sales.rex file
    open reports builder
    File..Admin..Convert
    Source type = rex
    Source = c:\sales.rex
    Dest type = rdf
    Dest = c:\sales_2.rdf
    Click OK
    Open c:\sales_2.rdf in reports builder
    Bob.

  • Moving frames

    Feeling a little Tarantino, I was wondering if it is possible to do the following in Adobe Premiere Elements 10.  If I shrink the size of the frame from a specific clip, to about half the size of the window, is there a way to make this smaller frame move from left to right.  Then on a second video track I wanted to so the same but make  it move in the opposite direction, from right to left, passing underneath the frame moving the other way.
    Thanks for your time!

    adobenewbie123
    Today I tried to turn my interpretation of what you described into a split screen video.. The following is the result that I just uploaded to YouTube
    http://youtu.be/JxNkNS_9z1Q
    The approach is to define a way to keep the two halves in sync as the Bottom one moves from right to left and the Top one moves from left to right.
    It took a lot of consideration getting two videos in the screen so that neither was squashed. It took some cropping and viewing area selection to get something reasonable for me.
    Once you have the two halves in place on screen and have Properties Palette/Motion Panel Expanded/Position property opened so that you see the Position values  xxxx.x (for right/left or left/right) and to its right xxxx.x (for up down or down up), our focus is going to be on the value to the left, the right/left or left right one.
    1. Move the Top half to the right out of the way.
    2. Working on the Bottom half, note that the Position values, in this example 360.0, 418.7. That 418.7 is constant for us since you will be working right/left and left right, not up down down up. With the mouse cursor, select and drag the Bottom half to the right to the point where it just disappears off screen. Note the new Position value set. Here it was 1080.0, 418.7. If the 418.7 moved while you were determining the 1080.0 value, just type it back in. Now with the mouse cursor, select and drag the Bottom half to the left to the point where it just disappears off screen. Note the new Position value set. Here it was -360.0, 418.7.
    Again, if the 418.7 moved while you were determining the -360.0 value, just type it back in.
    3. At this time, move the Timeline Indicator to the start of the Timeline. We want the video to move from right to left so.....
    (a) In Motion Panel expanded/Position, type in the set 1080.0, 418.7.
    (b) Click on the Toggle Animation icon to initiate the keyframing process.
    (c) Move the Timeline Indicator to the end of the Bottom half clip. Type in the Position set -360.0, 418.7.
    4. Render the Bottom half. It is done.
    5. Move the Top half back in place directly above the Bottom half. Select the Top half and have its Motion Panel expanded open to view the Position values. Here they were 360, 171.9. We want the video to move from left to right so.....
    (a) Move the Timeline Indicator to the start of the Top half and, for the Motion Panel expanded/Position set, type in -360.0, 171.9
    (b) Click on the Toggle Animation icon to initiate the keyframing process.
    (c) Move the Timeline Indicator to the end of the Top half clip. Type in the Position set 1080.0, 171.9.
    6. Render. It is done.
    Though specific numbers may vary, do you see the scheme in this?
    a. each half will have it characteristic up down down up Position value which will stay constant for its half. In this case Top half has 418.7 and Bottom half has 171.9.
    b. the Bottom half right left position value is going to be the same as that of the top but just reversed because of the different direction that the videos are going in.
    Please check out the above to make sure I have my rights lefts and everything else going in the right direction.
    Please let us know the results. Success or back to the drawing board. For the viewer I am not sure of the effectiveness of such an effect, but you may have the key.
    ATR
    Great precision in the move, but only if that is the effect sought. If not, back to the drawing board.
    The YouTube demo had Time Stretch 300% applied to each half to speed up the movement.

  • Dropping Frames during Playback with AVC Intra 50

    I work in TV News and we recently switched from DVCPROHD 720P 60 to AVC-Intra 50 720p 60.  The DVCPRO HD worked great with Premiere. When video was placed on the timeline the clips had a green line over them and everything played glitch-free, with no dropped frames.  The AVC-Intra 50 is a different story.  On the timeline it comes in with a yellow line over the video, and the drops frames when played in the timeline. Rendering the sequence changes the yellow line to green, but it still drops frames. We feed out via the thunderbolt connection to an AJA i xt breakout box, and I'm getting video and audio glitches when feeding. This was never a problem with the DVCPROHD. The sequence settings are set correctly for AVC.  I tried changing resolution of program monitor to 1/2 and it had no effect.
    I'm editing on
    Macbook Pro OS X Version 10.8.4
    Processor 2.7 GHz Intel i7
    8GB 1600 Mhz DDR3
    Latest Version of Adobe Premiere CC
    These are my sequence settings for video previews

    Wow, lots to think about -
    some quick responses (it's half 1 in the morning!)
    *Not running any other apps at all (no virus software)
    *Really hope there is nothing wrong with £149 brand new drive..!!
    *Energy Saving Options never put HDD or computer to sleep
    *No Camera or deck or anything plugged into drive. Graphic Tablet in USB.
    *Most interesting thing is what Brian Conner said about the actual project file, I will try moving this as when I got the new drive I dragged this .fcp file onto there as well... Where should I put this on my Mac HD? I think the default is in Documents? this is the very small 'pointer file' right?
    J
    PS: As well as the project file - should the Waveform Cache, Thumbnail Cache and Autosave Vault be on the Boot Drive??
    Message was edited by: jfss

  • How can I create a Frame & dialog box with a desired shape & look ?

    Hellow !
    Currently I am writing an application that need your help.
    I need a complete code to create a custom JFrame & JDialog.
    Objective:
    1) The frame & Dialog box might not be in a rectangular shape.
    2) Their visible area [ Title bar(With my new icon),outer edge and iconifying,deiconifying & window closing buttons ]
    would be as I wish.
    As an instance, I mean to say it should looks something like Widows Media Player's(XP version) main window.
    My Operating System: Windows XP

    I think (I have never tried it) that the following link provides the kind of api you are looking for :
    http://www.l2fprod.com/
    As far as I know, it's based on the use of a custom look and feel called SkinLF.
    But due to the nature of your question and based on the assumption that people here are not going to do all the work for you, I would strongly advise you to start with the Swing tutorial :
    http://java.sun.com/docs/books/tutorial/uiswing/

Maybe you are looking for

  • TV@nywhere Duo in MEGA180

    Dear all, I'm using a Tv@nywhere Duo in a MEGA 180. I've installed everything according to the instructions, but get the error messages "Failed to initialize application. Program will be stopped now!" and "DTV card was not found" when I try to run th

  • Tracking with JTextPane

    Hi, does anyone implemented Tracking of characters with a JTextPane? I would like to have something like in illustrator, where i can set the tracking between characters from a max. to a min. value. My idea was to implement my own LabelView, which spl

  • Problems updating Slovenia's E71 to 210.21.006

    OK, I see moderators deleted my previos topic because I posted some URLs. This is the version without them. I have one fairly weird problem... Recently I bought 2 unbranded E71's, one gray code: 0559566, and one white 0561164. Via, NSU, I sucessfully

  • CATT Test case for  ME41 tcode(Multiple items for inventory and service )

    Hello Gurus, Now we are having quotation legacy file for Tcode ME41 for inventory and service items. We are using tcode <b>SCAT</b> for CATT. Every thing going fine at recording in test case. i dont know where should i specify my legacy file path. I

  • Applications are crash

    My hard dri've crashed and I had to start over. Yikes!? I've had my Audigy 2ZS Platinum for two years now (big disapointment). It took me a year just to get the headphones and mic to work. Never mind the SPDIF can't pass the digital to my A/V receive