Binding in first frame?

I'm trying to make a simple application with buttons to jump
between frames and in each frame there are components such as
comboboxes and checkboxes which values should come from .xml via
xml connector.
Now, when I try to bind for example a combobox to the xml
connector, it says in the component inspector: "A Component
instance must exist in the first frame to edit its bindings". ???
How is it possible to make even a simplest application with
navigation if all the components must be in the first frame??? Is
there a solution for this?
I tried to put the components and xml connector in a
movieclip of their own so that the components would be in the first
frame of THAT timeline, but then it don't even find the xml
connector in the component inspector when I'm trying to bind it???
Am I doing something wrong or are the components just so
"infantile" that you can't create anything a bit more complex
application with them?
Please help :(

Barney,
> The syntax error in navigateToURL was preventing stop
from
> working (thistop(); is a typo ? it was stop();).
stop(), alone, would certainly do it, but the expression
this.stop() is
also just fine. The key is to separate the terms "this" and
"stop()" with a
period. I also noticed a possible issue with another line. In
this
snippet:
navigateToURL(new URLRequest(here.html),_self);
... the HTML page "here.html" needs to be in quotes when
passed to the new
URLRequest constructor.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design."

Similar Messages

  • How do I loop back from the first frame to the last frame?

    Hi there,
    I'm currently working on the framework for a product viewer.
    I have:
    a movie clip called 'viewer_mc' which contains the images take from different angles of the product. The actionscript generates a script on the last frame of this that returns it to frame 1.
    a button instance called 'autoplay_btn' which plays through the movie clip from whatever the current frame is, and stops on frame 1.
    a left and right button which serve to move the movie clip frame, to give the appearance that the product is rotating.
    I have succeeded in getting it to:
    have the movie clip play through once, return to frame 1 and stop.
    have the buttons return functions when held down, that move the frame in the movie clip using nextFrame and prevFrame commands. The right button successfully loops round to frame 1 and continues functioning to give the appearance of continual rotation.
    The last problem I am experiencing is getting the left button to act in the corresponding manner, going from the first frame to the last and continuing to function.
    Here is my actionscript so far:
    import flash.events.MouseEvent;
    var lastFrame:Number = viewer_mc.totalFrames;
    var thisFrame:Number = viewer_mc.currentFrame;
    var backFrame:Number = viewer_mc.currentFrame-1;
    1. This is the part that gets it to play through once before returning to the first frame. I think perhaps the problem I am experiencing is because of the 'viewer_mc.addFrameScript(lastFrame-1, toStart)' part i.e. although I'm holding the left button, its returning to this script and therefor getting bounced back immediately to the first frame. However, there is no flicker on the screen which you might expect if this were the case
    Note - as this is a generic product viewer which I can use as a template I am using lastFrame etc. as opposed to typing the value in
    function toStart (){
              viewer_mc.gotoAndStop(1);
    viewer_mc.addFrameScript(lastFrame-1, toStart);
    2. This is the functionality for the autoplay_btn that will play through a rotation / return the viewer to the initial (frontal) view of the product (frame 1).
    autoplay_btn.addEventListener(MouseEvent.MOUSE_DOWN, autoplay);
    function autoplay (ev:MouseEvent):void{
              var startFrame:Number = viewer_mc.currentFrame;
              viewer_mc.gotoAndPlay(startFrame);
    3. This is the functionality of the right button, which when held, moves the movie clip to the next frame via the 'rotateRight' function based on the 'nextFrame' command. It loops back round to the first frame due to the 'viewer_mc.addFrameScript(lastFrame-1, toStart)' script generated on the last frame of the movie clip, as is desired.
    right_btn.addEventListener(MouseEvent.MOUSE_DOWN, rightDown);
    function rightDown(e:Event){
        stage.addEventListener(MouseEvent.MOUSE_UP,stoprightDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
        addEventListener(Event.ENTER_FRAME,rotateRight); //while the mouse is down, run the tick function once every frame as per the project frame rate
    function stoprightDown(e:Event):void {
        removeEventListener(Event.ENTER_FRAME,rotateRight);  //stop running the tick function every frame now that the mouse is up
        stage.removeEventListener(MouseEvent.MOUSE_UP,stoprightDown); //remove the listener for mouse up
    function rotateRight(e:Event):void {
        viewer_mc.nextFrame();
    4. This is the functionality of the left button, which when held, moves the movie clip to the prev frame via the 'rotateRight' function based on the 'prevFrame' command. And this is where the problem lies, as although it works for getting the movieclip back to frame 1, it does not loop round to the last frame and continue functioning, as is wanted.
    left_btn.addEventListener(MouseEvent.MOUSE_DOWN, leftDown);
    function leftDown(e:Event){
        stage.addEventListener(MouseEvent.MOUSE_UP,stopleftDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
        addEventListener(Event.ENTER_FRAME,rotateLeft); //while the mouse is down, run the tick function once every frame as per the project frame rate
    function stopleftDown(e:Event):void {
        removeEventListener(Event.ENTER_FRAME,rotateLeft);  //stop running the tick function every frame now that the mouse is up
        stage.removeEventListener(MouseEvent.MOUSE_UP,stopleftDown); //remove the listener for mouse up
    I'd imagine it is probably my logic for this part that is really letting me down - I can do a similar function in actionscript 2, but am trying to learn actionscript 3 just to move with the times as it were, and struggling a bit. Still this is only a few days in!
    function rotateLeft(e:Event):void{
              if(thisFrame==1){
                        gotoAndStop(viewer_mc.totalFrames-1);
              } else{
              viewer_mc.prevFrame();
    Any help you can give me would be gratefully received. For an example of the effect I am trying to achieve with the autoplay button etc. I recommend:
    http://www.fender.com/basses/precision-bass/american-standard-precision-bass

    Thanks for getting back to me.
    Here's the code without my comments / explanations:
    import flash.events.MouseEvent;
    import flash.events.Event;
    var lastFrame:Number = viewer_mc.totalFrames;
    var thisFrame:Number = viewer_mc.currentFrame;
    var backFrame:Number = viewer_mc.currentFrame-1;
    function toStart (){
              viewer_mc.gotoAndStop(1);
    viewer_mc.addFrameScript(lastFrame-1, toStart);
    //last image of viewer_mc = first image of viewer_mc
    autoplay_btn.addEventListener(MouseEvent.MOUSE_DOWN, autoplay);
    function autoplay (ev:MouseEvent):void{
              var startFrame:Number = viewer_mc.currentFrame;
              viewer_mc.gotoAndPlay(startFrame);
    right_btn.addEventListener(MouseEvent.MOUSE_DOWN, rightDown);
    function rightDown(e:Event){
        stage.addEventListener(MouseEvent.MOUSE_UP,stoprightDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
        addEventListener(Event.ENTER_FRAME,rotateRight); //while the mouse is down, run the tick function once every frame as per the project frame rate
    function stoprightDown(e:Event):void {
        removeEventListener(Event.ENTER_FRAME,rotateRight);  //stop running the tick function every frame now that the mouse is up
        stage.removeEventListener(MouseEvent.MOUSE_UP,stoprightDown); //remove the listener for mouse up
    function rotateRight(e:Event):void {
        viewer_mc.nextFrame();
    left_btn.addEventListener(MouseEvent.MOUSE_DOWN, leftDown);
    function leftDown(e:Event){
        stage.addEventListener(MouseEvent.MOUSE_UP,stopleftDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
        addEventListener(Event.ENTER_FRAME,rotateLeft);//while the mouse is down, run the tick function once every frame as per the project frame rate
    function stopleftDown(e:Event):void {
        removeEventListener(Event.ENTER_FRAME,rotateLeft);  //stop running the tick function every frame now that the mouse is up
        stage.removeEventListener(MouseEvent.MOUSE_UP,stopleftDown); //remove the listener for mouse up
    function rotateLeft(e:Event):void{
              viewer_mc.prevFrame();
    The definition of the rotateLeft function is where the problem lies I think - I've taken out my poor attempts at doing the logic from the previous post. If I were to write it out long-hand the statement I want to write is: 'If you get to frame 1 and function rotateLeft is called go to the end of the movie clip'.
    The reason I have to use the viewer_mc.totalFrames-1 definition in the addFrameScript call is the addFrameScript function is 0 based i.e. if you want to call frame 1 of the movieclip you have to return a value of 0 in the addFrameScript (or such is my understanding of it anyway). As such, the last image in the movie clip will need to be the view obtained at 360 degree rotation, which is of course the same view as at 0 degree rotation. As a consequence, the last frame in the movie clip is superfluous for the user, but necessary for the overall effect to be achieved. And, in addition, to keep up the effect of a 360 degree view when the rotateLeft function is called it needs to skip that last frame to go to the lastFrame-1 (or totalframes-1), or in other words, the view of the image prior to completing the full 360 rotation.
    the variables thisFrame and lastFrame are defined at the very top of the script. Like you said they might need to be defined or called on again elsewhere.

  • Projector stuck on first frame on iMac

    Hi,
    I'm having a really weird problem. My projector version 11.5 and 12 gets stuck on an iMac with osx 10.8.2 on the first frame. Only way to make it progress is to disable the "run on background" and repeatedly deactivate and activate the projector window. Every activation progresses the movie for one frame. I tried this with a really simple movie with just two pics. On my MacBook Pro with same osx version everything works fine. And my old well tested projector works everywhere else.
    Does anyone have any idea why this might be happening?
    Best Regards,
    Lassi

    Thanks for the quick response and sorry for taking so long to answer.
    In the end, after lots of testing, I installed Director on the specific computer. Surprisingly the movie didn't progress on frames even in the author mode. At that point I decided to reboot the iMac, and that fixed the problem
    So anyone who's having Macintosh and Os X with the projector not starting, being stuck or not progressing in the movie, try restarting the machine.

  • I am having the problem when trying to take a panorama picture.   It may only take the first frame or doesn't even start at all when I press the shutter button. even though when i  hold the phone straight up and down, so that camera is at the top

    I am having the problem when trying to take a panorama picture. 
    It may only take the first frame or doesn't even start at all when I press the shutter button.
    even though when i  hold the phone straight up and down, so that camera is at the top on the back and the home button is on the bottom on the front.
    This problem is irritating me....?

    To take panorama
    - ensure that the panorama option is on
    - press the shutter button once
    - you will see a line with an arrow
    - move around in a circle  ( I keep the camera steady and turn myself around in a circle)
    - as you do this you will see the arrow moving across the screen as it captures pictures
    - at the end of the capture, you will be able to see your panorama picture
    I hope that this helps, do report back.

  • Is there a way to directly connect/group a chapter marker to the first frame of a clip?

    I have over 6 hours of SD clips on my timeline.   I ended up having to add more clips throughout the timeline.   I was able to "group" the titles to their respecttive clips so I don't have to deal with moving them when I move their clip.   Now I am curious to know if there is a way to link the Chapter Markers to the first frame of their respective clips so that when I move the clip, so the Chapter Marker moves with it?
    BTW, I know it is best to put the Chapter Markers in last b4 I go on to Encore.   While I was working in Encore I realized it would be more meaningfull to create and add several After Effects "AVI" files between several of my clips.   This work in progress would be a lot easier if I did not have to keep re-adjusting the Chapter Markers everytime I modified the timeline.
    Thanks in advance for your help.
    Duane  

    Thanks for your suggestion about using the clip markers.   I tried them on a test clip.   They did not come down to the timeline.  Besides, I would want them labeled.   Right now all my clips have a marker that is labeled with the date and location.   The chapter markers are labeled the same way.   I have a spread sheet that list the dates of all the Chapter Markers which connect to the dates on the menu.     This seems like an old fashion way to do things for such a sophisticated software.   Maybe I should put in a feature suggestion to Adobe.   I would do that, but I am afraid that I may embarrass myself as being the only one that ever asked for something like that.   Or they would accuse me of misusing their software.  
    Again, thanks for your suggestion.
    Duane

  • Export in first frame

    I have some large movie clips that I don't want to load in
    the first frame. So in my publish settings I set my classes to load
    in frame 3. Then I've turned off "Export in first frame" for my
    large movie clips and place them on the stage in frame 2. I've
    placed a simple "loading" message in frame 1 and 2. This worked in
    AS2, but in AS3 my movie clips are invisible when I turn off
    "Export in first frame". I think they are invisible because I'm
    making a game and there are bullets being fired from the x and x
    coordinates of were the enemies should be.
    Does anyone have any suggestions?
    Thanks!

    because you haven't done anything to export your class.
    if you're not going to let flash take care of exporting your
    class in the first frame, you have to do something to export it
    later. and you're not and flash won't do that automatically
    becauese it doesn't know what you want to do.

  • I used a code i got with my moive to download the itunes version and i was watching the itunes extras, but now when i click on "play itunes extras" it plays the audio but the only thing it displays is the first frame (the movie is catching fire)

    i used a code i got with my moive to download the itunes version and i was watching the itunes extras, but now when i click on "play itunes extras" it plays the audio but the only thing it displays is the first frame (the movie is catching fire) i deleted the movie and reinstalled from my icloud backup and it still does the same thing. The actual movie works fine, its just the itunes extras

    Hi there MickeyDresaj,
    You may find the troubleshooting steps in the article below helpful.
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    -Griff W. 

  • AS3.0 Slider to slide timeline is duplicating first frame. Why?

    I have made a slider that I am having issues with. This slider is to control the timeline of a movie clip when dragged. My problem with this is that It seems to be duplicating the first frame. When I slide the slider to the right it will hit first tick and still display what is in frame 1 .. then on the next ticks it will continue with the rest of the timeline. Any Ideas how to prevent / over come my slider from doing this with the first frame? I have dificulty explaining so I have atached an example.
    Thanks In advance.

    I have tried to upload the .fla but server wont let me.
    here is the code I am using for the slider. It controls numbers_mc that contains frames 1-16 all numbered 1-16 These numbers will be replaced later with images. Thanks
    s.setSize(240,1);
    s.maximum=numbers_mc.totalFrames;
    s.liveDragging=true;
    s.addEventListener(Event.CHANGE,updatemc);
    function updatemc(e:Event)
        numbers_mc.gotoAndStop(s.value);

  • Get first frame of an flv video into a jpg image

    I am creating an app with flex for recording a video and i want to capture the first image of the video recorded, by now i use the following function in order to capture the
    first image but its rather slow
    private function capture():void
                                            var bitmapData:BitmapData = new BitmapData(videoDisplay.width, videoDisplay.height);
                                            bitmapData.draw(videoDisplay);
                                            var jpg:JPEGEncoder = new JPEGEncoder();
                                            var ba:ByteArray           = jpg.encode(bitmapData);
                                            var base64_enc: Base64Encoder = new Base64Encoder();
                                            base64_enc.encodeBytes(ba,0,ba.length);
                                            imgEncoded = base64_enc.toString();
    and i would like to get the first frame of the recorded video as a thumb after it is recorded
    is there any idea on how to achieve that?
    Thanks in advance!

    Define slow. What you're doing is pretty basic. Converting a display object into a bitmapdata so you can jpeg encode it. The copy to the bitmap will be lightning quick. The encode to JPEG is probably the slowest part of the process and on any modern cpu that will be a fraction of a second. Then the base64encode might take about the same amount of time. How is that slow?

  • Exporting movies in iPhoto using 'Current' Setting, exports the first frame only

    Hi,
    When I export my iPhoto library into separate events using the 'Current' Setting, it exports all video / movie files as the original file type with a single frame in it. 
    I don't want to go through each event and drag and drop each video to the exported folder as that would be an enormous pain.  Does anyone have ideas to fix this?  I have edited some photos, so I don't want to export as 'original' if possible
    Thanks!
    iPhoto has the latest updates installed and the original videos play perfectly in iPhoto.

    Yeah, I have upgraded from previous iPhoto versions, some videos are a few years old (.MOV iPhone format) and some are only a few months old (Canon EOS .MOV format), both export only first frame.  I might have to recreate my iPhoto library and start fresh!  Currently I am exporting as 'Original' and 'Current' to two different folders, and just grabbing the videos from the original and replacing the videos in the 'Current' folder.
    LarryHN's solution works well, but when I add a second condition to select a specific event, I can't choose from a list of specific events (unlike albums).  Entering in the event title (in the Event condition) sometimes adds videos from silmilar titled events.

  • Ram preview not playing from first frame

    Anyone else having problems with Ram preview playing back from a different spot in the timeline OTHER than the first frame? I have seen this happening consistently since the latest update (2014.2). I checked my preferences, and made sure nothing is accidentally selected to play from the last keyframe or something odd. But no. I am on a Mac Pro, running Yosemite, I googled this, and haven't seen anything. I haven't trashed my preferences yet, because I'm not sure it's a preference issue, and god...if I have to rebuild my render setting one more time...
    So to give you more detail.
    - I hit "0" on my number pad to launch a ram preview
    - It LOOKS like it's rendering each frame in order
    - When I hit "0" again to playback, it starts from a random location usually about 2 - 5 seconds from the beginning of the timeline.
    - It will loop back and then play from the start of the timeline.
    It's not using the current time indicator line or anything that would make sense. It's random, but near the start. I suspect it's pulling keyframe information from a nested pre-comp and using that, but there is not a keyframe in the comp I'm previewing.
    I also do not have the "From Current Time" checked box in the Ram Preview options, and there are 0 skip frames in that setting as well.
    If anyone has any ideas what this may be...I'd appreciate it.

    Here's the page with the known Yosemite issues:
    After Effects with Mac OSX v10.10 (Yosemite)

  • Erase Imperfection in First Frame -  Carry through Rest of Video ???

    I just imported into Photoshop a 4 minute video clip of me talking before a group of people. the video was shot from the back of the room and my hair is sticking up in the back, which is noticeable and distracting every time I lean my head forward as I am talking. Is there a tool in After Effects where I can erase this clump of hair sticking up in the first frame of the video and then have this deletion/correction carry over the rest of the video clip without having to erase it each time it happens in the rest of the video? This will be the first time I have used Photoshop and After Effects. Thanks!

    If the distraction is moving then you'll have to track it and either mask it or use the clone tool to remove it. You should not be doing this kind of video modification in Photoshop, you should use After Effects to clean up the shot then edit it in Premiere Pro or if you just have the one shot, render in AE. There are only a few instances when Photoshop would be the right tool to use to modify a video. A very few.

  • Rotoscoping - it only roto's the first frame

    What I have done:
    Created a video clip with my Canon GL2 featuring a person against a bright background.
    I then used Adobe Premier CS5 to create an AVI of the sequence. (called it ROTO4.avi)
    I then opened CS5 After Effects, imported the clip into the composition timeline.
    I then changed the framerate of the composition to 59.94 (cause a previous attempt told me to do so).
    I then went under LAYER and Open New Layer.
    I then clicked the TOP rotobrush icon (can't find another one anywhere) and began outlining my subject and de-outlining the background. I have a perfect pink line around my subject (on frame1).
    I then drag the timeline bar and it creates the (mask?) on the first frame only and no subsequent frames.
    I switch to composition view and sure enough the first frame is beautiful (subject complete, background now a black screen), but no other frames are generated rotoscooped.
    Arghhh, I've been at this for about an hour and only first frame is ROTO'd.
    Help?
    Montie

    Montie - this is the line that I have the most suspicion about:
    I then drag the timeline bar.
    What exactly are you dragging?
    The recommended way to engage Rotobrush at this point is to press Page Down to move forward a frame, or press the spacebar to begin preview, not to jump to the end of your footage. Rotobrush only analyzes frames under the playhead, and only frames that are inside a span of time near the base frame you drew the strokes on. So if you move the playhead beyond the span it won't have any frames to analyze.
    This is what a Rotobrush span looks like. The span is the gray area with < and > arrows, the base frame is the yellow mark, and the analyzed frames are the green marks extending from the base frame mark.
    Read here about base frames and spans.
    To me it sounds like you are expecting Rotobrush to do all the work magically when you go to the end of your footage, and that's not the case. It needs to analyze each frame, and you need to keep an eye on the analysis because Rotobrush isn't actually magic, it's just some very cool math.
    Note the part in that document about the default span length: 20 frames forward and 20 frames backward. The reason for the short length is because the farther you get from a base frame the larger the probability for inaccuracies. As you move forward through each frame, check for inaccuracies and draw new strokes as necessary. Each time you draw a stroke, a new base frame is created and the span is extended. If you happen to have a sequence of 20 frames that don't need corrections, you can extend the length of the span and continue. (You could extend the span to the entire length of your clip, but you still need to pay attention to the analysis and make corrections.)
    I hope that helps.
    -=TimK

  • Can Compressor create an image of first frame?

    I need to create a 320x240 jpg of the first frame of every movie I produce.
    Up until recently I was using Cleaner which produced the single frame jpg plus 2 x QT files and 2 x WMV files, but I don't see how I can do this from within compressor 2.
    I'd have thought this was an important part of producing video for the web, having a jpg so people know what the video is about without having to read a description below the movie!

    I'm thinking the Applescript idea may work best for my situation because I need a small (15k) .jpg to display in a window that cold fusion generates dynamically when a link to specific movie comes in.
    Generating a tiff, then having to convert it into a jpg, would require one more step in an already rapidly inflating production system thanks to a couple of shortcomings with Compressor 2 that I'm discovering.
    Thanks for the feedback.

  • Edit to Tape - First frame freezes for 2 frames

    Hi all, I'm new with a MacPro and I'm experiencing a little problem with an Edit to Tape.
    I have a PAL-DV-48Hz video in FCP6, which needs be put on a DVCAM tape. No problem if I use Firewire but when I use SDI (through an AJA IoHD) I see that the first frame of the video is repeated 3 times on the tape (two more than needed).
    Any of you have had the same problem ?
    Please let me know.
    TIA
    Best Michele

    Using a capture card no doubt, right?
    I've done this more than a few times. I can even insert edit when I need to. Didn't have an issue. Because the IN point in FCP is set, and the IN point on the tape is set. And the card handles the duration conversion.
    Darn reliable. I only had one hiccup in 24 outputs.
    Shane

Maybe you are looking for

  • Records validation at the block level

    Block A multi record block Product code Unit No E3056             W039708002607 E3056             W039708002721 E3056             W039708002754 Block B multi record block Product Code Unit No E3056               W029708002607 E3056               W039

  • Why can I no longer view video?

    I am running 64-bit windows 7.  Since this week's AR 9 update, I can no longer view Flip videos. Msg says there is no 64-bit support for the flash player.  Last week, it worked OK.  ???????????

  • Restore my itunes purchases to new hard drive after crash

    My hard drive on my dell crashed. I am replacing it with a new one, maybe should've gotten a MAC. Will all of my Digital copies and purchased music from my itunes account come back to my new account once I sign on? Please Help

  • Migration of DB400 to Oracle 10g R2, not working in Step 1 of 4 (capture)

    Hello, I have performed the steps mentioned in the documentation and read me file, and started the C:\omwb\bin\omwb.bat In the step 1 of the wizard, i am supposed to enter: user name, password and host. I do so, but nothing happens. Is there any way

  • Host Down Messages

    We are running GroupWise 7.0.2. All mail seems to be going in and out just fine, but we receive hundreds of the following messages every day. MSG ##### Detected error on SMTP command MSG ##### Command: sacog.org MSG ##### Response: 450 Host down (sac