AddChild + "export in first frame" unchecked

Hi all,
i've got this problem that i can't figured out. i've tried
google and adobe website, but no luck. i guess the people here
could help me
this is about addchild and export in first frame. i wanna
call an object from my library. in its linkage option i:
1. name it "rectangle"
2. give a class name "Rect"
3. have a base class "flash.display.MovieClip"
4. check "export for Actionscript"
5. unchecked "import in first frame"
no problem this far.
but when i tried to call it in main timeline with this
script:
var a:Rect = new Rect();
addChild(a);
i got this error:
1046: Type was not found or was not a compile-time constant:
Rect.
1180: Call to a possibly undefined method Rect.
why is that?
isn't flash automatically generate the class for me?
(a definition of this class could not be found in the
classpath, so one will be automatically generated in the SWF file
upon export.)
can anyone help with my problem...

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.

Similar Messages

  • 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.

  • 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.

  • "Export frame" exporting first frame in clip, not frame at source playhead

    I'm running Premiere Pro CC 7.2.1 on a Retina MacBook Pro with OS 10.8.5.  I'm working from a project on an external drive and I noticed just today that when I go to a frame in the source window and select "export frame", it is now exporting the first frame in the source clip and not the one my playhead is on.  This has never happened before, it wasn't even happening yesterday.  I restarted Premiere and it appears to still be doing this.  Anyone seen this bug before?

    OK.
    Specify them.
    http://dictionary.reference.com/browse/specify

  • Export for actionscript - Not in first frame

    Just a simple question.
    Don't need to know if it works or not I have tested it. What
    I want is to understand. Here it is:
    If I use the Export for actionscript and I unselect the
    Export in first frame, the item that will be linked by the ID in
    the library must appear on the timeline. Normally it must be on a
    frame that has played. IE frame 3 the item is there so I can use it
    from the frame 3 to the last frame. This is how it works for the
    _root. If I'm in a clip, the code can be on the first frame with a
    stop. That means that the Item is on the second frame and has not
    displayed, but it is accessible by the code.
    Why?
    Why on the root the item must appear on the frame where the
    code is or before the code, but if in a clip, the code can works
    even the item reside on a later frame that will never display
    because there is a stop on the first one?
    Tanx for your help to understand!

    I think that this is probably because of how flash streams
    content. In order for flash to play frame 2 on the timeline, it
    COMPLETELY loads all the code and assets for that frame (but not
    frame 3) and then 'plays' that frame. Therefore on the main
    timeline, code on frame 2 can't access exported clips from frame 3.
    However, if your movie clip is (for example) on frame 4,
    flash will stream/load everything (including your complete move
    clip) when the play head reaches that frame, so all assets within
    that frame are available because in order to even 'play' frame 4,
    flash has had to load the entire movie clip contents.

  • Large First Frame???

    This is my first post so first of all, hi all...
    I am currently having a bit of a nightmare trying to optimize
    a flash file for use on the web. My first frame is currently about
    600kb in size even though the only thing on the timeline is the
    preloader, which is no where near this size.
    I have been using the attachmovie method A LOT, but have
    unchecked the export in first frame option for all movieclips that
    are attached in this way, and placed them on the stage in a later
    frame.(the correct way to get around this problem I believe?)
    I know importing classes is taking up about 100Kb of the
    first frame(because when i change the options in the publish
    settings to import them in frame 2 the size dips) but have no idea
    where the rest of this data is coming from, because it is not on
    the timeline. I can only assume that flash is importing something
    here, but I have no idea what it is.
    If anyone has any idea of why this is happening or has come
    across this problem before I would be so greatful because I feel
    like I have hit a brick wall.
    Thanks in advance,
    Ian

    I have used a combo box and button components but have
    definitely unchecked the export in first frame option.
    There is also a video play back in there but the linkage
    property is grayed out. Any way as far as I am aware this is not
    stirctly a component and even so would not be a couple of hundred
    kb right?
    Its very strange, I did think it may have something to do
    with the audio I am using but this is imported from an external
    source using the loadSound method on frame 3. Its getting to the
    point where I have totally run out of ideas, so thanks for any
    suggestions even if they just get me thinking along a different
    line.

  • First frame 51kb if FLVPlayback on frame 2

    How to reproduce:
    Create a new AS3 fla and place an FLVPlayback Component on
    frame 2.
    In the library uncheck export in first frame.
    In the publish settings set the classes to export in frame 2.
    Ctrl+Enter and view the bandwidth profiler to see that 51kb
    are in the first frame.
    Is this avoidable? If so how? If not why?
    Thank you

    Ok...not working for me - prob. b/c I'm missing something again.
    What I did was...
    1)  Renamed the instace of replay button = "replay_btn".
    [not sure if that's correct...guessed b/c you reference it in the code]
    2)  I placed this in the action code on action layer on last keyframe =
    var loopNum:Number;
    loopNum++;
    if(loopNum%3==0){
    stop();
    your_replay_btn._visible=true;
    } else {
    your_replay_btn._visible=false;
    3) I placed this in action code on the replay layer on last keyframe =
    your_replay_btn.onRelease=function(){
    this.gotoAndPlay(1);
    What happens is the replay button still flashes at the end of each loop and the loops just continue...it doesn't stop at 3.
    I also get this error =
    Can you break down what I'm doing wrong and how to fix...need to get this out asap.
    I truly appreciate your help and time so far on this...big thanks kglad!

  • "a component instance must exist in the first frame"

    Hi, it apears that message on frame 6, where i have a
    connection with an XMLconnector.
    What sould i do ?

    Components need to be export on the first frame. Check the
    component's linkage in the library and make sure "Export on first
    frame" is checked.

  • Linkage and Export in first/second frame question

    I just change my publish setting in my file to export classes
    in the 2nd
    frame, so I can have my preloader working in the first frame.
    Then I
    change the linkage to several MCs that I was attaching
    dynamically in
    frame 3. All I did there was unclick the export in frame one
    checkbox.
    After doing these things, my attachMovie does not work
    anymore. Why?
    Shoudn't all the movie linkage get exported in frame 2 and
    then work as
    before in frame three? I had a look at the bandwidth profiler
    and it all
    looks good, with the most of bandwith being used on frame 2.
    Thank you for any help with this!

    Does the same thing happen if you just export to your desktop, and then import to iTunes?
    One solution is to move your entire song over by a beat or a measure or so before you export. For example, have the whole song start on the downbeat of measure 2. If it turns out that that lines things up perfectly in iTunes, problem solved.
    Alternatively, you could export with the extra space in the front and then open up your stereo audio file in a simple audio editor (there are free ones floating around out there), trim off the front so that it precisely triggers at the downbeat, and then import into iTunes.
    Perhaps someone else might know of a better way or a setting or something that avoids the problem in the first place!

  • QT Pro - first frame of exported movie distorted and gray

    Every time I trim a movie and then export it form Quicktime Pro, usually just by doing a "Save as", the first frame is distorted and gray, and looks like it has the Emboss filter applied to it. This happens all the time and I can't figure it out. Driving me nuts...
    Here is an example:
    http://www.youtube.com/watch?v=SZ1cZ8DQL_U

    I'm new to this whole thing and i'm having a very similar problem, but i'm having for the first few seconds (1st transition).

  • EXPORT CLASSES IN FRAME 2 PROBLEM

    Hi to all, i am having a problem trying to do a simple preloader.
    i am making a game, only 2 frames, the first is preloader screen, the second is the game (all in actionscript):
    if i set EXPORT CLASSES IN FRAME 2, after the game is preloaded ( this.loaderInfo.addEventListener(Event.COMPLETE, onComplete)
    i execute gotoAndStop(2).
    all ok.
    but i see that some creatures (movieclips) DOESNT SHOW. those creature are there, all works fine, but simply are not visible!!! this happen also with some textbox......
    i trace (creature.visible)... and // give :    true
    also   trace(creature).... // give:   object[creature]       all ok here...
    also properties works fine      trace(creature.attack); // gives the right value, is all ok.....
    if i set EXPORT CLASSES IN FRAME 1... all works fine (but not the preloader, that doesnt load. simply a white screen of course, until all is loaded, then the frame 1 instantly execute gotoAndStop(2), starting the game)
    i dont understand, what happen to movieclips when i export in frame 2? (not at ALL, something is visible... something not.... ))))

    Yes, are all unchecked
    . only "export in actionscript" is checked, but others are all unchecked.
    i have tried both, checked and unchecked.
    but... if i have Exactly the same creature, added for 2 different players... the first player has all creatures ok.
    the second not.....
    the second will not show his creatures (0 shown, no matter what)
    if i change the Exportclasses in frame 1... then all goes perfect, all players have shown all correct.... i dont understand why.
    i also have prolems with some textbox that doesnt show if i set Exportclasses in frame 2.....

  • Export Quicktime = stalling / frame rate / dropped frames

    Firstly this issue isn't news. It appears it has existed since 2002 at least on these forums and Apple has done nothing.
    Exporting to Quicktime:
    1) Keynote makes up what seem to be consistent random frame rates on export
    - Codec doesn't matter. Photo JPG, Intermediate, 8bit 422, H264
    - You can set the frame rate in export / custom / settings it doesn't matter
    - Having no video on a slide or having video on a slide doesn't change the problem...
    - The last two items do have more information to complete their story
    - If you do have a video on slide at say 25fps and export (at same rate) the random will stabilise
    but it will stabilise to something bizarre, such as 23.69.
    - So Keynote can wreck your frame rate it will drop frames, or even add frames while dropping
    others. It is deeply sophisticated in how it destroys stuff on export.
    Result
    - is a stuttering output if embed video on a slide with a wrecked frame rate
    - and a random frame rate if you don't have a video embed
    2) The video stalls between slides
    - Keynote seems to play a trick by making a single frame span multiple frames
    - At the start of the first slide this seems to vary. The first frame can be between 7 and 33
    frames depending on some strange internal logic only known to Keynote
    - Between slides it will hold the last frame of the exiting slide usually for 7 frames and hold
    the first frame of the entering slide for usually the same amount.
    - No amount of change to settings such as transition delay, adding a transition, self play etc
    will effect this stalling from what I can tell.
    - You can analyse the reality of the issue by dropping the resulting file into Quicktime 7 and
    changing the video window "time code" display to frames by clicking on it and single framing
    through the video. I have Quicktime Pro for the record.
    Notes:
    - I have every update installed and am running 10.6.2
    - I have tried it on two machines, one a clean build, server or client
    - Playing the presentation direct in Keynote does not present any of the noted issues
    - I have spent the better part of two weeks on the issue trying all sorts of combinations
    - Video of different frames rates, sizes, codecs. All useless, don't bother.
    Outcome:
    - Keynote is completely useless unless you just want to play a presentation in it
    - Dropped frames, stuttering video, stalling, mangled frame rates, fake frames
    Solutions that aren't:
    - One suggestion for video embeds is to enter a strange custom frame rate. For example a
    24fps original turns into a 23.69 export, if you up the frame rate to 24.3 the resulting export
    is 24fps.
    This is a truly hit and miss affair and will require a lot of testing to nail it. Unfortunately I
    tested the resulting video frame count in Quicktime against the original video and...
    The amount of frames is not the same. Part of my assumption is that the stalled pad frames
    are being considered by Keynote and it drops some frames to fake the same length, that at
    least -seems- to be part of the result, but it doesn't account for all the lost frames.
    - I have also tried just having one slide and exporting that. The same things happen regardless
    How Al Gore managed to make "inconvenient truth" using Keynote is a complete mystery. Maybe on Tiger with some old version it used to work, yet from the forums it would appear it has never worked. This piece of software is a clear case of "it just doesn't work"
    I hope you find this and stop hurting yourself trying to make this. I might hurt on a bit longer yet.

    I can't answer in detail (I started with version 6, which I haven't used in years, so don't know what v5 did) but... a general comment
    Software that old is very likely going to struggle trying to edit a VOB/MPG file copies from a DVD
    If you are digitizing by playing the DVD through a conversion device you should end up with DV AVI which should edit well
    Just what kind of files are you trying to edit?

  • "Export classes in frame x" in AS3: how does it work?

    My steps:
    1. I have some beefy classes
    2. I want my SWF to show a preload anim while it loads these
    classes
    3. Using the "Export classes in frame: " option, I move my
    classes to frame 10
    4. I put a stop(); on the first frame and test w/ the
    bandwidth profiler visible.
    Desired + expected behavior:
    1. My preloader spins, and I have minimal K on the first
    frame and then the main hit on the chosen export frame.
    Observed behavior:
    1. all of my classes are available on the first frame (ala,
    all of my logic can be performed on the first frame, even though
    the framehead is sitting firmly on frame 1)
    2. there is still a spike in K on the output frame
    Notes:
    - am I just missing the point here? Is this how it always
    worked?
    - why is the Document Class available in the first frame? Is
    this mandatory w/ the new structure?
    Thanks for your time and help-
    cgs

    Thanks, moccamaximum, I believe this did open up a connection and now I have no errors.
    However, my problem still persists.
    Here is what it says in the output of my AS3 flash site:
    _root
    SWFBridge (AS3) connected: host
    SWFBridge (AS2) connected as client
    imgNum: 10
    thumb: images/image1.jpg
    image: images/image1.jpg
    thumb: thumbs/image2.jpg
    image: images/image2.jpg
    thumb: thumbs/image3.jpg
    image: images/image3.jpg
    thumb: thumbs/image4.jpg
    image: images/image4.jpg
    thumb: thumbs/image5.jpg
    image: images/image5.jpg
    thumb: thumbs/image6.jpg
    image: images/image6.jpg
    thumb: thumbs/image7.jpg
    image: images/image7.jpg
    thumb: thumbs/image8.jpg
    image: images/image8.jpg
    thumb: thumbs/image9.jpg
    image: images/image9.jpg
    thumb: thumbs/image10.jpg
    image: images/image10.jpg
    4
    _root
    4
    163
    _root
    163
    67
    _root
    67
    43
    _root
    43
    56
    _root
    56
    20
    _root
    20
    85
    _root
    85
    64
    _root
    64
    3
    _root
    3
    I don't understand how its able to trace that it is getting the images in the path, yet there are no images to be seen in the gallery!
    I found out that my gallery does work (with images and all) when loaded into a movieclip in a blank AS2 file instead of my AS3 site. Am I doomed since even localconnection will not help?

  • Why QT logo when loading, not first frame

    I have had a page up for a month or so. Always, the first frame of the movie shows while it is loading.
    http://web.mac.com/milhug/iWeb/BacktotheLand/Again.html
    Yesterday I made some changes to the movie, and now, there is a QT logo, and when it goes, the movie is fully loaded, ready to play.
    I prefer seeing the first frame, and do not know the difference in the file format I used.
    they were both H.264, exported as full frame DVNTSC from FCP, compressed w/Compressor. I have tried many versions, and don't know the correct combination of streaming, download, fast start, etc. Or is this a new 'feature' of a QT upgrade?
    thanks for any help.
    G5 Dual 2.3   Mac OS X (10.4.8)  

    Thanks so much! that is a very intriguing aspect of QTPro!
    But at which point was the fast start feature added? Is it inherent in the H.264 codec? I did not use the 'export to QT conversion' out of FCP (where the fast start option is available). I did the compression in Compressor, where I selected various speeds in the 'Web Download-QT 6 Compatible' (Mpg4), or 'Web Streaming QT 7 Compatible' (H.264) presets.
    The H.264 versions look so much better, but WindozeXP people are getting a 'QT component not available' message, so I may have to go back to the mpg4

  • Video coming first frame only

    Hi i create a broadcaster in as3.
    Broadcast video is OK.
    NetConnection.Connect.Success is OK
    NetStream.Publish.Start is OK.
    But video coming first frame only in Player, not playing total video in player
    var server = "rtmp://xxxxxx.rtmphost.com/foldername";
    var streamName:String = "testname";
    var nc:NetConnection;
    var ns:NetStream;
    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, ayncErrorHandler);
    nc.client = this;
    nc.connect(server);
    function netStatusHandler(event:NetStatusEvent):void
              switch (event.info.code)
                        case "NetConnection.Connect.Success" :
                                  connectStream();
                        case "NetConnection.Connect.Closed" :
                        default :
    function connectStream():void
              ns = new NetStream(nConnection);
              ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
              ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, ayncErrorHandler);
              ns.client = this;
              ns.attachCamera(webcamera);
    function securityErrorHandler(event:SecurityErrorEvent):void
              trace("securityErrorHandler: " + event);
    function ayncErrorHandler(event: AsyncErrorEvent):void
              trace("AsyncErrorEvent: " + event);
    var webCamera:Camera = Camera.getCamera();
    var video:Video = new Video();
    video.attachCamera(webCamera);
    addChild(video);
    Startbtn.addEventListener(MouseEvent.CLICK, startClick);
    function startClick(event:MouseEvent):void
              if (Startbtn.label == "Start Broadcast")
                   Startbtn.label = "Stop Broadcast";
                   ns.publish(streamName, "test");
              else
                   Startbtn.label = "Start Broadcast";
                   ns.close();

    i got the problem

Maybe you are looking for

  • New final BIOS 1.9 not good for OC!

    Just flashed the final 1.9 although I was perfectly happy with the 1.9B3. With the latter everything ran fine with "Ultra Turbo" mode and 270 MHz FSB (P4 2.6 @ 3.51 GHz) -> rockstable 24/7 with Prime95 and distributed computing etc. Now I had to go b

  • Terms of Payment in not installed language

    Hi experts We only have installed language package DE and EN. But now we would like to maintain terms of payment in Russian (only for print). Therefore I go to SPRO->Sales and Distribution->Master Data->Business partners->Customers->Billing Document-

  • Mail Just Isn't Doing What it Should

    I've been having problems with Mail for the past few months, and I've become so fed up I needed to post here to see if anyone has any suggestions on how to make things better. My original problem was that mail would keep downloading messages I had de

  • All 11g pre-requisites check failed on solaris 10

    During 11g R2 (64 bit) installation on Solaris 10 64 bit, all pre-requisites checks were failed. Like the first one given below: ======================= Physical Memory - This is a prerequisite condition to test whether the system has at least 1GB (1

  • Visual studio cross tab report design problem

    I have visual studio 2008 and its default crystal reports. I have created a cross tab report that has a lot of columns and only 3 rows. So the total number of pages that get printed are 34. (with 12 columns at the top of each page since the xtab is i