Keeping Sprite in Different Frames

Hi Guys,
Just after a bit of help when building a "escape the room" game.
I'm creating a game in director where a person is stuck in a room, but can find clues from different parts of the room that will help them escape, included in this is a items bar, where things such as a CD will go once the sprite is clicked. I have managed to get the sprite to move to the items bar once clicked, my problem is, however, is when I view a different part of the room after collecting the sprite, my sprite dissappears. Is there anyway that I can get the sprite to stay in the items bar once it has been collected?
Here is my script at the moment:
on mouseUp
     sprite(8).locH="160"
     sprite(8).locV="565"
     sprite(8).width=62    
     sprite(8).height=61
end
Any help would be hugely appriciated

1. Submit the form in paramFrame.
2. At the server side, the param.jsp (which is the
page in paramFrame) will process the form and set some
properties in session object.
3. The pages in other two frames are refreshed
according the variables value in the session object
accordingly.
So there is two steps. Can I code them in my
JavaScript function? If yes, how to do this to keep
the logical sequence?So the easy way that comes to mind right away is as follows:
Place a onLoad event handler in the body tag of param.jsp (which is the page in paramFrame). Make that onLoad handler call a JavaScript function (which of course resides on that page itself). That Javascript function basically executes 2 lines:
function reloadMyFrames()
parent.frame1name.location.reload();
parent.frame2name.location.reload();
This will ensure that your 2 frames are always refreshed AFTER your main frame (paramFrame) is completely loaded.
Does that work for you?

Similar Messages

  • Different frame rate encoding on tape (24p & 24pa)

    Hi,
    I usually record to tape with my dvx100 using 24pa, but sometimes the quick setup dial was switched accidentally resulting in a different frame encoding, like 24p for example.
    Everything is recorded in 29.97fps on mini-dv, we all know that, making apparently no difference b/w 24p and 24pa.
    But of course, when i'm trying to capture this footage through FCP, i can't always remove the advanced pulldown because there's a few clips that have been recorded with 24p instead of 24pa.
    Questions:
    - How can you detect the different encoding on tape, whether it's 24p or 24pa?
    - Can you get FCP to create a new clip (at least stop) the capture for those sections of the tape where I have something different than 24pa?
    - If nothing like that is possible, how do you solve this problem?
    Thanks!

    the only pulldown pattern that FCP can remove at capture is 24pA (3:2:2:3). Standard 3:2 pulldown can only be reversed using cinema tools. If you open the clip in cinema tools, you'll need to park the playhead on the first frame of the pulldown cadence for it to correctly remove the pulldown. This will create new copies of your clips, which will take up a corresponding amount of space. There is no way for either FCP or CT to reconize the pulldown cadence of standard 3:2 clips, so you'll have to manually find the A frame of the cadence. If you have a huge number of them to do, you may find it quicker to place each clip in a sequence where you can put the A frame of the cadence as the first frame in the sequence. Export these as a batch of reference movies, and you should be able to do a batch inverse telecine on them in Cinema Tools.
    These new clips will no longer match the timecode of your tapes, so if you remove the original 29.97 media, you should at least keep the offline 29.97 clips in your project in case you need to recapture.
    Hope this helps -
    Max Average

  • How can I check the locV of a sprite on every frame?

    I'd like to know how can I tell Director, in Lingo, to check
    the position of a sprite in every frame in order to use that
    position to set the value of a global variable. I want to avoid
    having an on enterFrame script on every frame as I will need to do
    this with various sprites all the time. I tried an on enterFrame
    movie script but when I check the value of the variable with the
    message window it's always 1 (I initialized the variable with that
    value), regardless of wether the condition is being met on that
    specific frame or not. I also placed an on enterFrame script on the
    sprite and it would not work either. According to the
    documentation, on beginSprite only works if the sprite was not on
    the stage previous, and this sprite will always be on the stage,
    just in a different locV when I need it to be.
    Any suggestions please?

    Here's how you could create a single list containing all the
    locV values that you want:
    global gLocVList
    on enterFrame
    if ilk(gLocVList) <> #propList then
    gLocVList = [:]
    end if
    vSpriteList = [2, 3, 5, 7, 11, 13, 17, 19] -- or other
    spriteNums
    repeat with vSpriteNum in vSpriteList
    vLocV = sprite(vSpriteNum).locV
    gLocVList.setaProp(vSpriteNum, vLocV)
    end repeat
    end enterFrame
    However, it seems rather pointless to do this, as it checks
    the locV of every sprite on every frame whether you need that
    information or not. Since the sprite references are globally
    available anyway, you would use fewer CPU cycles if you just asked
    for...
    sprite(x).locV
    ... (where x is a sprite name or spriteNum, or a variable
    holding such information ) whenever you actually require the value
    of the locV.

  • Help with sequence settings in final cut for project with 2 different frame rates.

    I really need help with this one! I finished editing a wedding video and realized after exporting that it was filmed in two different frame rates. This has happened before but I converted the footage to match and fixed the problem. In this case, the footage is part 30fps and part 60fps. The majority of it was filmed in 30fps. I cannot convert the 60 to 30 without the slow motion effect which I do not need so I have to find a way to burn this to a DVD without it looking messed up! The video was shot with two Canon 7ds if that helps anything. The first sequence I set at 29.97 and exported as a quicktime movie and all the footage filmed in 60 looked perfect and the footage in 30 looked jittery. Then I tried the sequence at 59.97 and it switched. The footage filmed at 30 looked good and the 60 was cropped in. I am so confused! Any advice or suggestions would be greatly appreciated!!

    Thanks for your help Michael! The frame rates are 29.97 1920 x 1080 and 59.94 1280 x 720. I did a control click on the clips in final cut and viewed the item properties/format to find this info. The Canon 7d is a DSLR but we use it for video. As for my workflow, the first thing I do is import the footage onto my computer and then drag the clips into mpeg streamclip. I choose apple prores 422 and uncheck the interlaced box. Once this is done I import the .mov files into final cut. The sequence automatically sets itself to whatever clip I drag in first so it originally set as 29.97. When I finished editing wedding video, I export it to a quicktime movie and choose whatever settings match the sequence, in this case apple prores 422 1920 x 1080 30p. Once that is done I use iDVD to burn the discs.
    I knew something was wrong when I watched the quicktime movie and all the 30fps footage was jittery and most of the cross dissolves looked strange. That's when I figured out the footage was at two different frame rates. What I don't understand is why whatever the sequence is set at in final cut, the clips of the opposite frame rate look right but the clips set at the matching frame rate don't???

  • Downloaded new iOS for iPhone 5. Now the handset is running hot, keeps freezing on different screens, won't charge on official charger ( only charges on crap poundland one) and battery is loosing 1% every two minutes!

    Downloaded new iOS for iPhone 5. Now the handset is running hot, keeps freezing on different screens, won't charge on official charger ( only charges on crap poundland one) and battery is loosing 1% every two minutes! I've closed all apps and reset the complete phone but no luck. Any one know what else I can try apart from a new phone?

    I have done a factory reset at 45% battery. After the reset it's still hot and at 35% now

  • Re-connecting media to different frame rate clip

    Hi guys,
    Wondering whether anyone can help me out to solve an error I've made...
    So, I've basically completed an edit (some episodes on Final Cut Pro X, some on Final Cut 7) only to find out that I'd transcoded the media at the incorrect frame rate, 23.98 instead of 25fps. Yup, pretty big error. And now I need to redeliver the projects in the 25fps format.
    I've transcoded a clip to the correct 25fps rate and tried to reconnect that clip to the 23.98fps one in the timeline, but I'm unable to reconnect as the clips are of differing frame rates.
    Has anyone got any ideas how I can reconnect the clips or any suggestions that will make this situation easier to rectify rather than copying out the entire edit which will cause me to spend a week crying into my keyboard.
    Thanks in advance for any suggestions.
    Olly

    Hmmm...
    Tried this but it brings in the media that is 23.98 and there's no way I can tell to link to the new 25fps clips. Unless there's anything else I can do? Any other way to match the clips? (the 25fps clips are that little bit longer in duration) I also have some edits in fcp7. By using cinema tools in that would I be able to change the frame rates and link up to the new 25fps?
    Cheers for the advice though Russ, this way does give me the template of the 23.98 edit so that I can match the new 25fps shots to, but it's gonna be a long process.

  • Relink project clips with different frame rate

    Somehow the clips in my project sequence ended up with a different frame rate (25) than the original media files (23.95), and they are no longer linked -- maybe this happened during import from iMovie.  When I try to relink project files to source media, I get an error message saying they cannot be relinked because they have a different frame rate.  I changed the sequence framerate to 23.95 (by creating a new project with 23.95 as the frame rate, then copying and pasting the other timeline into it), but all the clips remain at 25, so the problem remains. 
    How can I change the clip properties to frame rate 23.95 so I can link to the original media?
    Thanks.

    The media got unlinked importing the project and events from iMovie to Final Cut.
    I've attached screen shots with all the specs.

  • Creating new buttons on different frame labels

    can someone tell me if im doing something wrong or assigning
    the as to the wrong frame?
    first off i have all my buttons on frame 2. im creating a
    real estate site and i have to have a couple links like HOME ABOUT
    BUYING SELLING CONTACT, the thing though is that in the BUYING and
    SELLING frames i want to add more sections and links but only on
    these 2 other parts of my site. when i code it and add new buttons
    to these sections though my movie plays over and over and over non
    stop. heres my coding...
    FRAME 1 preloader
    Frame 2 has a frame label of home and all the buttons on a
    diff layer, and AS3 on a different layer
    Frame 3 has a frame label for about section
    Frame 4 is my contact for example
    so if i create a new button in the about frame label and just
    add the code to the working as3 code on frame 2 my movie just plays
    over and over and over again, and all i want it do do is act like
    the other buttons and go to a different frame label down in the
    time line. the only way i get it to work is if i have ALL my
    buttons on frame 2.
    frame 1
    my preloader
    frame2
    home_btn.addEventListener(MouseEvent.CLICK, onHome)
    function onHome(event.MouseEvent):void
    gotoAndStop("home");
    about_btn.addEventListener(MouseEvent.CLICK, onAbout)
    function onAbout(event.MouseEvent):void
    gotoAndStop("about");
    etc....
    etc...
    i enter my btn code just like this and the buttons on frame 2
    work but any new buttons i try and creat and put into different
    frames othere then frame label "home" aka frame 2 wont work

    correct.
    there are lots of ways around it. but they all require the
    object to exist when the code executes.
    with as3 it's particularly easy to create objects, code for
    them and then add them to the display list later when
    needed.

  • Different frame rate in movie mode? iPhone 4

    I noticed that my iPhone shoots video clips with different frame rate from time to time. I suppose it slows frame rate on dark shots. For now all of my daylight shots are 30 fps, while night or dark ones are 25 and 24. This makes it hard to edit clips in iMovie for example, because difference in frame rate causes strobe motion effect on output.
    !http://pics.livejournal.com/brain_away/pic/000040rc!
    !http://pics.livejournal.com/brain_away/pic/00003s3c!
    Anybody have the same?
    For reliable results I would suggest to shoot two clips: one in sunny daylight conditions, another with ordinary room lightning, maybe a little darker than normal.
    Please let me know of the results. Thanks

    Doesn't seem to be just a Quicktime bug:
    !http://pics.livejournal.com/brain_away/pic/00005gw1!
    +Created on: 12.09.2010 22:42:50 Московское летнее время
    Report for file: IMG_0206.MOV
    General / Container Stream #1
    Total Video Streams for this File.................1
    Total Audio Streams for this File.................1
    Video Codecs Used.................................AVC
    Audio Codecs Used.................................AAC LC-PS
    File Format.......................................MPEG-4
    Play Time.........................................10s 193ms
    Total File Size...................................12.9 MiB
    Total Stream BitRate..............................10.6 Mbps
    Encoded with......................................4.1
    Encoding Library..................................Apple QuickTime
    Video Stream #1
    Codec (Human Name)................................AVC
    Codec (FourCC)....................................avc1
    Codec [email protected]
    Frame Width.......................................1 280 pixels
    Frame Height......................................720 pixels
    Frame Rate........................................24.697 fps
    Total Frames......................................251
    Display Aspect Ratio..............................16:9
    Scan Type.........................................Progressive
    Color Space.......................................YUV
    Codec Settings (Summary)..........................1 Ref Frames
    QF (like Gordian Knot)............................0.465
    Codec Settings (CABAC)............................No
    Codec Settings (Reference Frames).................1
    Video Stream Length...............................10s 163ms
    Video Stream BitRate..............................10.6 Mbps
    Video Stream BitRate Mode.........................VBR
    Bit Depth.........................................8 bits
    Video Stream Size.................................12.8 MiB (99%)
    Video Stream Title................................Core Media Video
    Date of Original Encoding.........................UTC 2010-09-12 04:13:59
    Color Primaries...................................BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer Characteristics..........................BT.709-5, BT.1361
    Matrix Coefficients...............................BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
    Audio Stream #1
    Codec.............................................AAC
    Codec (FourCC)....................................40
    Audio Stream Length...............................10s 193ms
    Audio Stream BitRate..............................64.0 Kbps
    Audio Stream BitRate Mode.........................CBR
    Number of Audio Channels..........................2
    Audio Channel's Positions.........................Front: L R
    Sampling Rate.....................................44.1 KHz
    Audio Stream Size.................................79.4 KiB (1%)
    Audio Stream Title................................Core Media Audio
    Date of Original Encoding.........................UTC 2010-09-12 04:13:59+
    +Created on: 12.09.2010 22:43:06 Московское летнее время
    Report for file: IMG_0194.MOV
    General / Container Stream #1
    Total Video Streams for this File.................1
    Total Audio Streams for this File.................1
    Video Codecs Used.................................AVC
    Audio Codecs Used.................................AAC LC-PS
    File Format.......................................MPEG-4
    Play Time.........................................16s 579ms
    Total File Size...................................21.0 MiB
    Total Stream BitRate..............................10.6 Mbps
    Encoded with......................................4.1
    Encoding Library..................................Apple QuickTime
    Video Stream #1
    Codec (Human Name)................................AVC
    Codec (FourCC)....................................avc1
    Codec [email protected]
    Frame Width.......................................1 280 pixels
    Frame Height......................................720 pixels
    Frame Rate........................................29.970 fps
    Total Frames......................................496
    Display Aspect Ratio..............................16:9
    Scan Type.........................................Progressive
    Color Space.......................................YUV
    Codec Settings (Summary)..........................1 Ref Frames
    QF (like Gordian Knot)............................0.383
    Codec Settings (CABAC)............................No
    Codec Settings (Reference Frames).................1
    Video Stream Length...............................16s 550ms
    Video Stream BitRate..............................10.6 Mbps
    Video Stream BitRate Mode.........................VBR
    Bit Depth.........................................8 bits
    Video Stream Size.................................20.9 MiB (99%)
    Video Stream Title................................Core Media Video
    Date of Original Encoding.........................UTC 2010-09-12 02:45:06
    Color Primaries...................................BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer Characteristics..........................BT.709-5, BT.1361
    Matrix Coefficients...............................BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
    Audio Stream #1
    Codec.............................................AAC
    Codec (FourCC)....................................40
    Audio Stream Length...............................16s 579ms
    Audio Stream BitRate..............................64.0 Kbps
    Audio Stream BitRate Mode.........................CBR
    Number of Audio Channels..........................2
    Audio Channel's Positions.........................Front: L R
    Sampling Rate.....................................44.1 KHz
    Audio Stream Size.................................129 KiB (1%)
    Audio Stream Title................................Core Media Audio
    Date of Original Encoding.........................UTC 2010-09-12 02:45:06+

  • How can I get my ipod touch to properly sync all my songs, when it keeps stalling in different stages and hours later doesn't sync all the songs I checked?

    I can't seem to get all my songs and playlists that are checked to sync to my ipod touch. The ipod has been troublesome since the first round of updates. It was originally set on "itunes match", but it was dropping songs for some reason and since the wifi only operates when I'm in a place where wifi is available, I can't download the songs again while I'm on the road. I turned off itunes match and plugged it in to my computer to sync it that way, and it keeps stalling in different stages of the sync process. After hours and hours of being stuck, it "completes" without syncing any of my playlists that I checked.

    Try a low level reformat of the iPod's hard drive to possibly try and repair some of its damage. Use the instructions in this article to walk you through the process.
    http://www.methodshop.com/gadgets/ipodsupport/erase/
    B-rock

  • How can I interact between two different frames in the same indesign template as well as from one template to another.

    I am looking for the best way (or any way) to interact between two different frames in the same indesign template as well as from one template to another. It's for a DPS app which needs to carry some button initiated data from one page to another and then present it in a table.

    There is no simple way to do it, as itunes wont let you use it on another computer without wiping the contents first.
    However if you really want to transfer songs to another computer then you could try this;
    * make sure that your ipod is accessible as a disk drive (ipod options)
    * when you plug your ipod into the computer you want to transfer to make sure you select "no" or "cancel" when it asks to wipe the contents. Leave the ipod connected and quit from itunes.
    * go to "my computer" and access the ipod directly. You probably have to select "view hidden files" from windows. You will see a lot of folders with odd names like ZX838aff with similar named files inside.
    * copy these files to a folder on your computers hardrive. Now remove the ipod and start itunes.
    * import the files from the folder you made in the last step.
    * Now your music is on itunes, but with unrecogisable names.
    This is the only way I have found to do it, but there may be another way, say with an application to do the hard work for you.
    Generic homebuild PC Windows XP
    Generic homebuild PC   Windows XP  

  • How to load and unload more than one external swf files in different frames?

    I do not have much experience on Adobe Flash or Action Script 3, but I know the basics.
    I am Arabic language teacher, and I design an application to teach Arabic, I just would like to learn how to load and unload more than one external swf files in different frames.
    Thanks

    Look into using the Loader class to load the swf files.  If you want to have it happen in different frames then you can put the code into the different frames.

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

  • Communication between applets that are in different frames

    Hi,
    I have two applets in the same browser page but not in the same Frame, and I'm trying to invoke a method of one of the applets from the other. getApplet("NAME") does not work because both are in different frames.
    I have managed to do the communication with a static method, but the invoked method doesn't have the correct variables values (also defined static), these variables have the default values (i.e. int = 0).
    My program:
    Applet A --> loads the data and waits for Applet B's invocation.
    Later....
    Applet B --> invokes an Applet A's static method, Applet A receives the data, Applet A is supossed to work correctly, but its data is not the previously loaded but the default values.
    What am I doing wrong? Looking at this, it seems that the static method invoked is from a different class.
    Has anyone any working example? Is there another way (not signing)?
    Thanks

    You could do it using javascript. From what it looks like you are describing :
    In Applet A's page, have a javascript function that looks like the following :
    function callAppletB()
         self.parent.frame[1].document.getElementById("insert applet b's id here").methodName();
    }Then, in Applet B's page, make a similar function :
    function callAppletA()
         self.parent.frame[0].document.getElementById("insert applet a's id here").methodName();
    }Just make sure that Applet A's page is the first frame on your frameset page. Hope this helped.
    Ed

  • How can I keep the 4.3 frame in Imovie 10

    How can I keep the old movie frame 4.3, in Imovie 10.

    It's a two steps process:
    1) Keep using the old iMovie 9.0.9
    2) Stop using this garbage that is iMovie 10.0

Maybe you are looking for

  • TS2776 How to switch wifi on and the wifi address N/A?

    How to switch wifi on and the wifi address N/A iPhone 4s?

  • Photoshop CS4 stopped reading CR2 files.  Update failed.

    My Photoshop CS4 quit reading CR2 files from my Canon EOS 5D Mark II.  Photoshop update with new raw version failed.  Please advise. And many thanks!

  • How to configure Adobe LiveCycle designer on my SAP Server?

    Dear friends. I have installed SAP ECC 6.0 and Adobe LiveCycle designer ES 8.2 on my computer. Now I want to use Adobe LiveCycle designer in SAP by TCODE:SFP. Please tell me how to configure Adobe LiveCycle designer on my SAP Server in details.

  • Plz help JWSDP

    Hello , I downloaded the jwsdp and the tomcat container. Their location in the hdd is C:\jwsdp and c:\tomcat . Almost nothing works here. I'm going crazy . The environment variables set are the following: ANT_HOME=C:\tomcat\apache-ant CATALINA_HOME=C

  • User authentication failure: BISystemUser.

    Hello All, Created an AD authentication and faced the above error. Backed out the AD and still getting the above error. in BI Server logs and the Presentation Server does not start. Did you guys face this issue before, if so what was your resolution