New movieclip from external swf

Hi everybody!
I have an externally loaded swf with several keyframes on it´s own timeline. I would like to duplicate content of current (stopped) keyframe to new movieClip. There is no duplicateMovieClip in AS3 anymore.... how could I do that. Now I´m using draw and bitmapData to create new bitmap from stage, but quality is not very good (I also print that bitmap). It would be better if I could create it as movieClip and retain vectors and text unrasterized...

how come? When I print that bitmap screenshot of a stage to letter size paper with fit to page, small text is very blurry and hard to read. If I print same view normally, it´s very sharp... is there a way to lift up resolution/size of generated bitmap?

Similar Messages

  • Loading font from external *.swf

    So!
    I have 3 movies.
    1)Main movie - index.swf
    2)Movie with created & checked in linkadge "Export for
    runtime sharing" fonts in library - fonts.swf
    3)movie with text fields which need embeded fonts to work in
    a proper way. Fonts in the library checked in linkage as "import
    for runtime sharing" - content.swf
    What happens:
    I strike CTRL+ENTER and run movie index.swf.
    on the (for ex.) 10 frame it loads fonts.swf with
    movieClipLoader class..
    then in the same way on (for ex.) 100 frame, i load content
    swf
    BUT!!! before it starts loading process IT DOWNLOADS FONT.swf
    again
    SO HOW DO I PRELOAD fonts from external *.swf..
    maybe there is yhe way without using runtime sharing..
    but i've heard that loaded whith movieClipLoader movies don't
    adds objects from their library to main movie liblary...
    HOW DO I SOLVE THIS PROBLEM!

    can you give your erroe source code,and then i will give you the success code.
    in the function
    private function onLoadComplete(e:Event):void {}
    ApplicationDomain.currentDomain.getDefinition("com.scottgmorgan.ExternalMovie") ;
    use like this:
    var EMClass:Class=loader.contentLoaderInfo.applicationDomain.getDefinition("com.scottgmorgan.ExternalMovie") ;
    then you can new a instance :
    var emInstance:Object=new EMClass();
    emInstance.alert("hello word");
    and we also can use other method. so email me  [email protected]

  • Constructing a new Document from External Nodes

    Constructing a new Document from External Nodes
    I have a situation where:
    1.     I have an existing XML Document
    2.     I need to parse for specific Nodes under varying conditions
    3.     Once the Node is identified -- I would like to append this node as a new Node in a new Document
    Is this possible? The methods in the API do not lend themselves to attaching a Node that was not explicitly created by the target Document.

    Hummm�
    That works, sort of; it does allow the node to be imported, but at the Document level only. I will need to apply this at various Node (Element) points, which the API does not permit.
    Thanks for the info.

  • Loading library movie symbol from external swf

    Hi, I have a Flex/Air Application and I want this application
    to load in an external SWF and display a particular asset from the
    SWF library (just like attachMovie in AS2). I dont want to embed
    the SWF into the Air application. For the life of me I can't find
    any tangible info on how to do this. My second problem is that the
    assets sit in an SWF published for AS2 (is that an issue?). All
    content resides locally.
    Can anyone help or point me in the right direction?

    I see now how to import and display a library class object
    using:
    var MovieClipClass:Class =
    Class(loader.contentLoaderInfo.applicationDomain.getDefinition("myLibraryAsset"))
    var movieClip:Sprite = new MovieClipClass();
    addChild(movieClip)
    But this seems to only work for SWF's published for AS3 Flash
    Player 9.
    I need to do the same for SWF's published with AS2 Flash
    Player 7.
    Any ideas?

  • Screenshots from external swfs

    How can i draw a movieclip that contains an external swf onto
    a BitmapData variable?
    I'm loading the movieclip with:
    moviecontainer=_root.createEmptyMovieClip("moviecontainer",10);
    moviecontainer.loadMovie("pacman.swf",0);
    Then i initialise the BitmapData var with:
    var snap:BitmapData = new BitmapData(Math.floor(nwidth),
    Math.floor(nheight),false);
    When a button is pressed i try this:
    snap.draw(moviecontainer,new Matrix());
    I expected the BitmapData snap to contain a screenshot from
    the external swf pacman.swf, but it doesn't.
    Does anyone know what i'm doing wrong?

    Thanks! I was close to giving up, but this really works
    great.
    The code for the php script is:
    <?php
    $data=explode(",",$_POST["img"]);
    $im=imagecreatetruecolor(max(1,$_POST["iwidth"]),max(1,$_POST["iheight"]));
    imagefill($im,0,0,imagecolorallocate($im,255,255,255));
    $i=0;
    for($x=0;$x<$_POST["iwidth"];$x++){
    for($y=0;$y<$_POST["iheight"];$y++){
    $r=hexdec(substr($data[$i],0,2));
    $g=hexdec(substr($data[$i],2,2));
    $b=hexdec(substr($data[$i],4,2));
    $color=imagecolorallocate($im,$r,$g,$b);
    imagesetpixel($im,$x,$y,$color);
    $i++;
    imagepng($im);
    ?>
    i changed the code inside the two for-loops in the .fla to:
    tmp = snap.getPixel(a, b).toString(16);
    pixels.push(tmp);

  • Sound from External swf

    I have a main movie (index.swf) that preloads my external SWF
    that is a menu button 4.swf
    My index.swf has background music (song1) that plays on load.
    I also have background music (song2) that plays on my 4.swf
    It works fine when I test 4.swf directly however when I load
    my main index.swf I do not hear the song2.
    I used stopAllSounds(); in my4.swf to stop the background
    music (song1) and then load my song2
    stopAllSounds();
    my_sound = new Sound(sound_loop);
    my_sound.loadSound("4.mp3",true);
    my_sound.start(0,100);
    This has gotten me to get both songs to play when the site is
    loaded and when I click on my menu for 4 button all the sound stops
    and my song2 never plays.
    My actionscript is not very good so any details you can give
    would be greatly appreciated.
    Thanks much!

    here is frame 3 of my loader in index.fla
    var movie:MovieClip =
    _root.StoredActions.Holder.Movies.Holder2.CMovie.duplicateMovieClip("CMovie"
    + n,n);
    loadMovie(n+".swf",_root.StoredActions.Holder.Movies.Holder2["CMovie"+n]);
    if(n>1){
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n]._x =
    3000;
    var MovieLoaded = 0;
    percent = 0;
    frame4
    MovieLoaded =
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n].getBytesLoaded();
    loadTotal =
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n].getBytesTotal();
    percent = int(MovieLoaded/loadTotal*100);
    Bar.gotoAndStop(percent);
    loadingName = ("Loading... " + percent+ "%" + " of "+ n);
    Loadtext_txt.text = loadingName;
    if (loadTotal>10) {
    if (MovieLoaded>=loadTotal) {
    gotoAndPlay(6);
    frame6
    if (n < _root.StoredActions.nMenus) {
    n++;
    gotoAndPlay(3);
    } else {
    gotoAndStop("Stopload");
    _root.gotoAndPlay("Play");
    I know that the above code is loading all the external swf
    and causing the music to start after load. Is there a way to stop
    it from loading the sound?

  • Loading library assets from external .swf

    Ok, so here's what I want to do. I'm creating an application
    that has optional classes that it can instantiate based on what the
    needs are. These classes operate things like Session Logging
    utilities, etc. These items obviously have assets that they need
    available such as movieclips and buttons. For example, the Session
    Logger has a sessionLog_mc clip that has a log window with buttons
    and the log display. I want to be able to have my class load the
    external .swf that contains the assets for the Session Logger and
    then use attachMovie(), once the .swf is loaded, to attach the
    sessionLog_mc from the library of the loaded external .swf file.
    This does NOT seem to work at all. This seems like it has to be
    possible. I don't want to be forced to put all my code into
    external .swf's too. I just want some external asset .swf's (or
    maybe just one large one) that I can load. Is this possible? I am
    wanting to have the ability to show the progress of loading each of
    these components while the application is starting up and loading
    the asset files. Thanks so much!
    Here is an example of what I'm trying: (the attachMovie does
    NOT work at all)

    I see now how to import and display a library class object
    using:
    var MovieClipClass:Class =
    Class(loader.contentLoaderInfo.applicationDomain.getDefinition("myLibraryAsset"))
    var movieClip:Sprite = new MovieClipClass();
    addChild(movieClip)
    But this seems to only work for SWF's published for AS3 Flash
    Player 9.
    I need to do the same for SWF's published with AS2 Flash
    Player 7.
    Any ideas?

  • How do I transfer imovie projects and events to new mac from external hard drive

    bought a  macbook pro retina.  backed up 3yr old macbook pro to external hard drive.  how do I transfer imovie projects and events to new mac?  thanks!

    Hi dalbatross,
    Welcome to the Support Communities!
    Did you set up your new computer by creating a Time Machine backup and restoring from it?
    If so, the Events and Projects that were on your internal Macintosh HD would copied to your new computer.
    Here is another way to copy the events & projects to the new computer from the external drive:
    iMovie Help: Work with multiple libraries
    http://help.apple.com/imovie/mac/10.0/#mov3fa25bae7
    Copy or move projects, events, or clips between libraries or hard disks
    Connect a hard disk that contains the target library to your computer, or copy the target library to your computer.
    Choose File > Open Library, and choose an option from the submenu.You can choose from recently opened libraries at the top of the submenu, locate an existing library on your computer, or create a new library.
    The selected library is opened in the Libraries list, with the first event selected and its contents displayed in the browser.
    In the Libraries list, select the event that contains the item you want to move or copy.
    In the browser, select the item you want to move or copy.Note:  To select multiple items, hold down the Command key as you click the items you want to select, or drag a selection rectangle around the items.
    Do one of the following:
    To move items between events or libraries: Drag the clip or project to another event or library.
    To copy items between events or libraries: Option-drag the clip or project to another event or library by first starting to drag and then holding down the Option key as you drag.
    Cheers,
    - Judy

  • Transferring playlist to new laptop from external hard drive and old laptop

    I've seen similar topics before but none exactly describing my situation. I currently have itunes installed on my work laptop, but have the majority of my music on my external 120GB hard drive. When I add songs to itunes, I add them from the music folder on my external hard drive, thus the external hard drive must be plugged in to be able to play my music. However, if I import a cd it gets saved to my C drive on my work laptop under the itunes music folder and gets played from here.
    I recently purchased a new personal laptop and would like to export my entire music library and all playlists from my current work laptop and external hard drive so that I would be able to have all my music in itunes on my new laptop without having to manually adding songs and changing the song info again. I worried that if I copy my itunes music folder to my new laptop it will look for the E drive (external hard drive) to play them rather than my new laptop hard drive. What's the easiest way to accomplish this task?? Please advise.
    Thanks..

    Hi dalbatross,
    Welcome to the Support Communities!
    Did you set up your new computer by creating a Time Machine backup and restoring from it?
    If so, the Events and Projects that were on your internal Macintosh HD would copied to your new computer.
    Here is another way to copy the events & projects to the new computer from the external drive:
    iMovie Help: Work with multiple libraries
    http://help.apple.com/imovie/mac/10.0/#mov3fa25bae7
    Copy or move projects, events, or clips between libraries or hard disks
    Connect a hard disk that contains the target library to your computer, or copy the target library to your computer.
    Choose File > Open Library, and choose an option from the submenu.You can choose from recently opened libraries at the top of the submenu, locate an existing library on your computer, or create a new library.
    The selected library is opened in the Libraries list, with the first event selected and its contents displayed in the browser.
    In the Libraries list, select the event that contains the item you want to move or copy.
    In the browser, select the item you want to move or copy.Note:  To select multiple items, hold down the Command key as you click the items you want to select, or drag a selection rectangle around the items.
    Do one of the following:
    To move items between events or libraries: Drag the clip or project to another event or library.
    To copy items between events or libraries: Option-drag the clip or project to another event or library by first starting to drag and then holding down the Option key as you drag.
    Cheers,
    - Judy

  • Button from External SWF to Play Movie in Main SWF

    Hi Guys,
    Ok I'm working in Flash 8, Action Script 2;
    I'm building a website, in which the 'Gallery Page' has a link to an external swf file, which is a scrolling clip of thumbnails.
    What I want to do, is create each thumbnail into a button, which will then play a Movie Clip from a frame located in the Main swf file.
    (So basically, each thumbnail button is a small photo, will play that photo in a large scale as a movie)
    eg.
    thumbnail1_btn  needs to go to main swf and play movieclip1.mc, frame 1
    thumbnail2_btn nends to go to main swf and play movieclip1.mc, frame 2
    I'm unsure of the code for this? Or if I've built this up wrong?
    If someone could help me out, that would be great!

    If you haven't set _lockroot on the loaded SWF, than a simple _root call from the loaded SWF will talk to the main SWF.
    IE:
    on(release){
    _root.gotoAndPlay(1);
    If you did set the lockroot, then call the level directly, via:
    on(release){
    _level0.gotoAndPlay(1);
    Once on the root level, you can access a movie clip as normal.
    So:
    on(release){
    _level0.movieClip1.gotoAndPlay(1);
    will call the movie clip "movieClip1" which resides on the timeline of _level0 (which is main.swf in your instance), and tell it to jump to the first frame and start playing.

  • Import objects from external swf file

    How i can import linkaged items of library of an external swf file im my project?

    check the applicationdomain class.

  • Open swf in new window from parent swf

    I'm making a gallery for some flash banners that I had
    created in AS3. When I click on a "launch" button, I wanted the
    flash banner swf to open in a new window separate from the parent
    swf (the gallery). I also wanted the parent swf to remain open.
    Is this possible and what would the code look like for
    something like this?

    ok, I should've also mentioned this, the flash gallery I'm
    making is not for the web, it's more for just opening in a flash
    player. So I don't really want it to open in a new browser window,
    but rather a new swf window, if there is such a thing.

  • How do I upload songs onto my new computer from external hard drive

    Hello!  I purchased a new computer and I am trying to upload my Itunes libraries onto it.  I was able to download all the files/songs/apps from my old winodws XP computer to an external hardrive.  I can open the exterenal hard drive on the new computer (Windows 7) but I do not know how to upload all info on the hard-drive into Itunes.  I found a way to click one folder at a time an upload one song at a time but that would require 4 or 5 clicks per song and it would take forever to do it this way.  Is there a way to transfer everything (files/folders/playlists/apps etc) all at one time?  I have reaad posts about authorizing new computers etc but have no idea what that means or how to do it.  I am new to Itunes so if you could walk me through the steps I would appreciate it greatly.  I have 5 Iipods sharing music on one computer so I really don't want to have to start my library from scratch.  Thank you for your help. 

    Normally all you need do is copy the entire iTunes folder from the music folder in your profile on the old computer into the music folder in your profile on the new one. If the library and media folders were split into separate locations then it is much the same, but the media folder should be restored to the same absolute path it previously occupied.
    tt2

  • How do I import music files to new computer from external hard drive containing them

    Have an older computer(G5 iMac) with Tiger 10.4.11 and iTunes that crashed.  Have that computer and older version of iTunes residing on an external hard drive.  I want to import music to new comptuer with newer version of iTunes.  External hard drive is partitioned with just iTunes section.  Any one done this before?

    If you want to use the old iTunes library that you have from the ext HD then just drag the iTunes folder to the new Mac.
    By default the iTunes folder Is Located - HD>Users>Your Account>Music>iTunes - if the internal HD has no iTunes library then just replace the iTunes folder with the one from the ext HD.
    Launch iTunes with the 'option' key down and point iTunes to the iTunes Library that you want to open. It will remember the next time.
    MJ

  • Transfereing new music from external to PC and getting it into Library

    I just added music to my itunes file from my old external hard drive. It went from 4.5GB to 17.8GB. But, when I go into Itunes it doesnt show any of the new music I put in there. Is there any way other than going each song one by one and playing them on Itunes to get them in my library?

    Drag the iTunes file into the open iTunes application window.
    (50953)

Maybe you are looking for

  • Mountain Lion 10.8.2. - such a dissappointment

    When I bought a mid-2010 21,5" iMac in March 2011, I thought all problems with computers are past. So they were, I had no problems with pre-installet Snow Leopard, which I ketp up-to date continuously. All updates were installed, and I never had any

  • Drag and drop feature not working after updating to iPhoto 6

    I just purchased the new iMac with the dual core processor. I transfered files from my old iMac using firewire as prompted. But in iPhoto 6 I can't drag photos which prevents me from creating photo albums, books, etc. I have read through the postings

  • Upgrading Broadband

    Hi, I have been trying to get my broadband upgraded to unlimited since November and it still isn't done.  I have phoned every week and keep getting lied to, keep being told it will be done within 24 hours, keep getting promised phone calls back and I

  • Images disappearing in 2.01

    Since 2.01, I have had numerous problems. One problem is that the cropping ratio is not working intermittently and now images are disappearing. If I set it to crop a 19 x 13 ratio, it will only crop something like a 1 x 4 ratio. An "X" shows up in th

  • Having Trouble With Stuffit 10.0

    I have downloaded the installer for Windows Media Player for Mac OS X, and it is in .sitx format. I had trouble opening it with Stuffit Expander, so when I went to the web to try and find the problem, I found that I needed to download Stuffit 10. Whe