Saving a movieclip

Hello All,
I 've saved a movieclip which was preloaded with an image, it
works perfect. But when i tried to save another movieclip( i 've
added backcolor, forecolor as well as another movieclip to this
clip) the whole file is getting saved not that particular
movieclip.
I also want to save the movieclip to a jpeg file and i need
to specify path for it.
Is it possible to save the file to a server.
Hope somebody can help me with it.
regards,
jeevm
The code for saving the clip is:--
MMSave(mat,"myfile.swf");

found this thread and a guy answers it at the bottom. tested it and it works exactly how i wanted.
http://www.actionscripts.org/forums/showthread.php3?t=90159

Similar Messages

  • Save as a PDF in Flash

    Hello All,
    I have been searching for a tutorial with no luck on saving a movieclip as a PDF (or jpg, png, tiff, etc). I am using AS2/CS3... I am pretty sure I have seen this done and just really want to figure out how to do it.
    Thanks in advance!

    found this thread and a guy answers it at the bottom. tested it and it works exactly how i wanted.
    http://www.actionscripts.org/forums/showthread.php3?t=90159

  • Question about .scr file while running jcwde ???

    I have a tutorial about java card. it has some information about that tutorial.
    AID: 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x1
    Package ID : 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07
    in .scr file I found this part of script:
    0x80 0xB8 0x00 0x00 0x2e 0x0a 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x0b 0x1 0x22 0x00 0x00 0x00 0x45 0x32 0x37 0x2d 0x30 0x31 0x39 0x33 0x2f 0x30 0x31 0x4d 0x49 0x43 0x48 0x41 0x45 0x4c 0x00 0x00 0x00 0x4b 0x41 0x4d 0x55 0x4e 0x47 0x45 0x00 0x00 0x00 0x7f;
    I guess
    0x80 = CLA
    0xB8 = INS
    0x00 = P1
    0x00 = P2
    0x2e = Lc
    and one of the last of script (0x7f) = Le.
    and the other as DATA.
    there are two part in DATA, namely :
    (I) 0x0a 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x0b 0x1 0x22 0x00 0x00 0x00
    (II) 0x45 0x32 0x37 0x2d 0x30 0x31 0x39 0x33 0x2f 0x30 0x31 0x4d 0x49 0x43 0x48 0x41 0x45 0x4c 0x00 0x00 0x00 0x4b 0x41 0x4d 0x55 0x4e 0x47 0x45 0x00 0x00 0x00 = first name , last name and student ID
    but I confuse on part (I)... what's it ???
    please explain for my confusing..
    thank for u all.

    Thanks for your reply.
    I found the answers by creating and testing a very simple example in inDesign.
    This all applies to inDesign files exported as FLA files and opened in Flash cs5.5.
    My goal was to create a simple but interactive magazines  in inDesign, and bring them into Flash, to compile as an App as described in many of the Adobe.tv videos.
    The page transitions do not port to flash.
    You have to code new page transitions, one for each frame, manually with your own code, as the inDesign pages are each put on a separate page when brought into Flash.
    Video and Sound is not ported into Flash in the FLA file. This is documented by Adobe. You have to re-add it once in Flash.
    Simple animations made on the inDesign page, do port into Flash as separate movie clips and play automatically, when the playhead goes to the frame, where the movieclip lives.
    Page spreads from inDesign, are saved as movieclips on each page frame, in flash. They are named Spread_1, etc.
    You will see them play automatically, if you code the frames, using something like gottoAndStop().
    It seems that this would be good to let people know in inDesign, so they do not spend a lot of time creatng effects or working with video and sound. If their goal is to port it to Flash and save as an Air app. All the video's on the subject, (and I have watched them all), show inDesign files porting into Flash, and then they  just add some animation in Flash and compile and it all works. It is not that simple. You have to basically build again, all the page transitions. And the page curl does not port.
    I thought other beginners with these goals, might find this helpful. I was able to successfully compile the file for an Air App, though  I found some differences in how it works, if compiled for Air vs compiled for SWF. I have created another post, asking about these issues.
    Thanks very much.
    e
    e

  • Error on export from Flash CC to Javascript/HTML5

    I am trying to convert a Flash CC project to HTML5. I continually get this error:
    An unexpected error occurred during export. [NOSYMB (innerWheel)]
    innerWheel is a movieClip that contains 784 frames of frame by frame animation. The elements that animate are the small letters (text saved as movieClips) and background to the small letters. See below - capital letters stay fixed in place.
    I can't find any information on what NOSYMB means. Has anyone else had the same problem?
    When I query the instance:
    console.log(this.innerWheel.visible);
    I get this message in the console (Safari):
    [Error] TypeError: undefined is not an object (evaluating 'this.innerWheel.visible')
    Any help is much appreciated. I'm tearing my hair out.

    I isolated the problem to a particular range of frames, removed those and rebuilt the animation. I can now publish with no errors.
    Still no idea what exactly was causing the error. When I inspected each instance on the stage they looked fine. But at least I'm not getting an error so all good.
    Would still be great to know what NOSYMB refers to though.

  • Exporting a png sequence settings question

    im in CC 2014 I have a few animations saved as movieclips, if I export at 32 bit I get good results with a transparent background. I was trying to cut down on the file size so I tried to go to 24 bit but I loose the transparency. Is there a another way to get the file size down on the exported png sequence?
    RMS

    Not in Flash. You can export the individual images as 32 bit pngs and then open them in Photoshop and optimize there. Flash gives you the export option but doesn't provide much in the way for optimizing the files.

  • Please help how to save a movieclip in flash to svg...and how to retrive the saved svg to movieclip in flash?

    hi all
    please help how to save a movieclip in flash to svg...and how
    to retrive the saved svg to movieclip in flash?
    thanks

    Do you mean from flash in a web page or do you mean
    converting the swf file format (maybe with a decompiler or
    whatever).
    If you're meaning to do it from flash in a web page:
    You can't save a movieclip from flash to svg. You could
    perhaps record drawingAPI commands and create the appropriate svg
    output in an internal xml object which you then send to the server.
    But I don't know of any pre-built classes to do that (disclaimer:
    because I don't know of any doesn't mean they don't exist).
    Going from svg to flash is doing it the other way around.
    Converting the svg paths back to actionscript drawing commands. I
    think I've seen some examples of this online somewhere.

  • Saving MovieClips to SharedObject

    I have a MovieClip subclass called Panel. My swf allows users
    to manipulate Panel instances. It saves their progress to a
    SharedObject so they can pick up where they left off.
    Right now, I use registerClassAlias("Panel", Panel) to allow
    these objects to be serialized to a SharedObject. When they are
    loaded back into Flash, I get a series of runtime errors about
    converting generic Objects to various types of Transform. As long
    as I don't access the built-in transform property, this causes no
    real issues.
    I'd like to use ColorTransform on the Panels.
    registerClassAlias("Transform", Class(Transform)) is giving me a
    security sandbox violation:
    SecurityDomain 'file:///C|/Users/.../mySwf.swf' tried to access
    Player UI context
    There is very little talk of this error on the web. I don't
    understand what it is contesting or why it is a problem. How can I
    save the Transform class to a SharedObject?

    Not sure, but check the help docs for the
    registerClassAlias() function here:
    http://livedocs.adobe.com/flex/3/langref/index.html?flash/net/package.html&flash/net/class -list.html

  • Is there any way to save an image from a nested movieclip as a .png using PNGEncoder

    Hello all,
    I am new to AIR and AS3 and I am developing a small AIR desktop application in Flash CS5 that saves a user generated image locally to their computer. 
    The image is generated from a series of user choices based on .png files that are loaded dynamically into a series of nested movieclips via XML.  The final image is constructed by a series of these "user choices".
    Sourcing alot of code examples from here and there, I have managed to build a "working" example of the application.  I am able to "draw" the parent movieclip to which all the other dynamic movieclips reside and can then encode it using PNGEncoder.  The problem is that the images loaded dynamically into the nested movieclips show as blank in the final .png generated by the user.
    Is there a way to "draw" and encode these nested movieclips or do I need to find another way?  I can provide my clumsy code if required but would like to know if this concept is viable before moving any further.....
    Thanks in advance....

    Thanks for the files.......
    Yeah I'm doing it in Flash but importing the images via an xml document.  The problem isn't in being able to view the eyes (based on the selection of the user) its when I go to save the resulting image as a .png.  When I open up the saved .png the eyes are blank even though they are visible in the swf
    Even when the user clicks on the option to copy the image to the clipboard, it works as intended.
    My only guess is there is an issue with the way my xml is loading (but this appears to work fine) or when the file is converted and saved.....
    As I said I'm still learning but surely there must be a simple answer to this....
    I have included the xml code I am using and also the save code to see if anyone spots an issue..... (I hope I copied it all)
    // XML
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    var xmlRequest:URLRequest = new URLRequest("imageData.xml");
    var xmlLoader:URLLoader = new URLLoader(xmlRequest);
    var imgData:XML;
    var imageLoader:Loader;
    var imgNum:Number = 0;
    var numberOfChildren:Number;
    function packaged():void
    rawImage = imgData.image[imgNum].imgURL;
    numberOfChildren = imgData.*.length();
    imageLoader = new Loader  ;
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadedImage);
    imageLoader.load(new URLRequest(rawImage));
    faceBG_mc.Eyes.addChild(imageLoader);
    function loadedImage(event:Event):void
    imageLoader.x = -186;
    imageLoader.y = -94;
    imageLoader.width = 373;
    imageLoader.height = 186;
    //  Clipboard
    btn_Copy.addEventListener(MouseEvent.CLICK, onCopyClick);
    function onCopyClick(event:MouseEvent):void
    var bd:BitmapData = renderBitmapData();
    Clipboard.generalClipboard.setData(ClipboardFormats.BITMAP_FORMAT, bd);
    function renderBitmapData():BitmapData
    var bd:BitmapData = new BitmapData(faceBG_mc.width,faceBG_mc.height);
    bd.draw(faceBG_mc);
    return bd;
    // Save faceBG_mc as .png 
    var fileRef:FileReference = new FileReference();
    var myBitmapData:BitmapData = new BitmapData (faceBG_mc.width,faceBG_mc.height, true, 0);
    myBitmapData.draw(faceBG_mc);
    var myPNG:ByteArray = PNGEncoder.encode(myBitmapData);
    function onSaveClickPNG(e:Event)
    fileRef.save(myPNG, "myPNG.png");
    So my problem is....
    The final image is copied to the clipboard with the eyes visible - yes
    The eyes appear in the image in the swf as intended - yes
    When the image is saved as a .png and is meant to include the eyes, they are blank (see picture above)
    I hope this helps.....
    Thanks in advance

  • New MovieClips added to existing SWC library not available in Flash Builder

    To be as brief as possible with this...
    I have 2 swc libraries in my Flash Builder Project. One is in a "Common" project and the other one is in a MobilePlayer project. Obviously the "common" project contains UI assets that apply across the board, while the MobilePlayer version contains assets specific to that version of the application.
    Both swc files are in the respective libraries for each project we are referencing. Up until yesterday I could add new MovieClips to the "common.swc" and they would be available across the board instantly.
    Sometime yesterday I could not get new MCs added to my "common.swc" to show up in the intellisense, or become avaialble whatsoever.
    For troubleshooting I am creating a Square, turning it into a MC symbol, exported for AS with a classname of "Fubar"
    whenever I try and create a new instance of :Fubar() to anything anywhere in my applicatioin I get the Call to possibly undefined method Fubar error message. It does not show up in intellisense menus and it is NON EXISTENT.
    HOWEVER — Named movieclips within my .swc library I have already been using such as "CompanyLogo()" etc etc are STILL fully available and can be referenced from anywhere in my application. I can add a new CompanyLogo()  anywhere I want with no problem.
    As ANOTHER test, I REMOVED the movieclips CompanyLogo (and others) from my Library and re-saved the SWC.
    All of a sudden Flash Buider generates a compiler error (undefined method) for each missing referenced MC in the swc file (obviously, because they are no longer there).
    However, those named MCs still show up in intellisense menus etc etc.
    Basically what I can determine is that Flash Builder is not updating and picking up any changes to this SWC library whenever anything is added or removed from it. At some point it became "locked" in memory (for lack of a better term) and it refuses to recognize that the file has been changed.
    When I extract the catalog.xml from the SWC and read through it, I can find nodes for every single NEW mc I've created yet I cannot get them to show up in Flash Builder. I refresh, close and restart Flash Builder and have done everything I can possibly think of to get my updates to register and they refuse.
    On the other hand my "mobile.swc" updates just fine as I make changes to it. If I add a new MC to it, it is instantly available. If I take away a MC it FB instantly recognizes that it is gone.
    Am I doing something wrong here or am I correct in my assumption that for some reason FB refuses to update the contents of my "common.swc" library into memory?
    Any insight would be appreciated as I cannot find a single relevant answer in 3 hours of Google searching.

    OK,
    Now I see what is really going on. I am trying to reference MCs from my "common.swc" lib which is in a different project, and the reason they are showing up and available is because I used them in MXML files within the "common" project that are called upon and loaded before the mobile specific login screen MXML is loaded.
    I just did a quick test to see if the new button I created would be available within the "common" project and it is there, and shows up with intellisense etc etc as expected.
    When I add an instance of my new button to a MXML file being loaded before the mobile specific stuff I can then drop it into my mobile specific screens and it shows up.
    I either need to figure out how to reference MCs within a swc inside of a different project directly, or just declare them when the application first loads.

  • [Q] duplicating movieclip with loaded external jpg file

    Hi, Im trying to make thumbnail and enlarged picture by
    duplication.
    What i tried was using duplication of thumbnail movieclip
    which jpg image is loaded
    However it seems not working as i intended,so I had to make
    empty movieclip and loaded image again!!!
    I am concerning that if I use new movieclip and loading the
    image again..it means users have to download the same image twice.
    Basically, I am trying to make a list of thumbnailed images
    with enlarged picture popes up when mouse rolls over them
    Is there any proper way to make it happen?
    or duplication just doesnt work even thou movieclip is
    already loaded with image?
    Thank you for your time~

    > simple create your movieclip. Now create an empty clip
    inside. You will
    load
    > your JPG in the empty clip. This one can't be
    duplicated, but you will be
    able
    > to duplicate its parent. Like that:
    > myMc.anEmptyClip.loadMovie("blabla.jpg");
    > myMc.duplicateMovieClip("theNameYouWant",
    levelNumYouWant);
    >
    > That will works.
    No, that will not work
    You are partly right - if you create a nested clip and assign
    properties
    (such as an onPress handler) to the parent clip, you can then
    load content
    into the child without overwriting the parent's properties.
    If you load an
    image into the child and then duplicate the parent however,
    the image in the
    child clip *will not be duplicated*. Try it.
    > 2- Also, the way you where going to do, works too. yes
    the user will have
    to
    > load it again, but it is already in the Browser Cache.
    It means that will
    load
    > quickly the second time and after that. Bad side is more
    that you will
    doble
    > the bandwidth of the images loading on your site.
    Again, partly right. Lets take it bit by bit:
    > yes the user will have to
    > load it again, but it is already in the Browser Cache
    The movie will have to load it again, but will probably load
    it from cache.
    > Bad side is more that you will doble
    > the bandwidth of the images loading on your site.
    Not so. If it's in the cache, it doesn't use any bandwidth at
    all - that's
    what caching means! A copy of the image is saved on the
    user's local hard
    drive, so no bandwidth needs to be used when loading from
    cache.
    Basically, for the *majority* of users, loaded images will be
    cached (this
    is dependent on browser settings, but most users will have
    their browsers
    set to cache). This means that after the first load,
    subsequent loads of the
    same image will be quick and carry no bandwidth overheads.
    The real issue here is that dynamic content in movieClips,
    such as loaded
    images, swfs, or graphics created with the drawing API will
    not duplicate
    when the clip is duplicated/ The accepted work around used to
    be simply to
    reload the aimge. Now with Flash 8 though you can use the
    BitmapData class
    to grab a copy of the image and redraw it to the newly
    created clip if you
    so wish.
    Pete
    Remove '_spamkiller_' to mail

  • Flash CS5 crashing when saving

    OK! What's the deal?
    I have just purchased Adobe Master Collection CS5, all $4400 worth! To give the software it's credit, I formatted my HDD and clean installed Win 7 x64 OS. I then clean installed the entire CS5 suite! As I have to somewhat justify the purchase to my boss (who paid for the software), I have gone to continue doing some work, (not even trying out new features!!), I needed to complete a task, so I got onto it.
    I opened up an existing file which was created using CS4, noticed a few bugs that arose when published out using CS5 (mainly around the way that fonts were referred as), fixed those, then all was going well. As we have all done, I got involved with the work, and worked for a long time without saving. I realised this and quickly went to save. The dialog box came up advising that it needed to change versions to CS5 (rather than the original CS4), so I cancelled out and did a file Save As.
    I thought I would create a new file so that if anything went wrong, I would have a backup. BLOODY LUCKY I DID, as when I went to save as, Flash crashed, loosing all the work I did. I did manage to get a screenshot of some of my AS which was lucky, but when I looked into the folder where I tried to save, there was a completley useless *.fla of 1kb in size which was completely corrupted and couldn't open up.
    Resigned to the fact that I lost all my work (nothing new - as we all know it happens every now and then), I thought I would open up Flash, and the very first task would be to save it as CS5 format. Low and behold, flash crashes again, again leaving a corrupted file in it's place. For $4400, you would think you could at least save the work you have done!!
    In other tests, it seems it can save new files, and some simple animations created in CS4, but what the hell do I do with all the existing work that I have spent the last year developing? Can someone please help me, as I really cannot work until this issue is resolved.
    HELP!
    Duncan Buchanan

    I have found the solution to fix my file
    In my case, I had to remove from the XML descriptor of a movieclip a reference to an FLVPlayback component! (don't ask me why)
    I am pasting the XML node I had to remove on the bottom, first the step by step solution in case others may stumble on this.
    It seems that movieclips get corrupt somehow, so, in order to find which ones, we have to proceed this way:
    solution
    1 - if you save your file as CS5 FLA, then rename the corrupt file from xxx.fla to xxx.zip.
    2 - Unzip the file, and you are going to have the same directory structure as if you save in xfl. Now, if you open the xfl file inside the unzipped folder, you get the same error you get opening the fla.
    3 - Go into the LIBRARY folder. This is a hyerarchical representation of your library.
    4 - If like I do, your library is well organized in folders and subfolders, this step will not be too annoying. If you have all library items free in the library, then it could be boring. Anyway... The thing here is to find which library items are causing the problem, so you have to remove them one by one, or in groups, and try to launch the xfl each time. When the xfl gets opened, you have removed the right library item.
    In my case, even for very large projects, I have only 4 folders in library's root. So what I did, I tried removing one of them, till I found the rightt one. Then I went deeper and deeper, and eventually found the **** movieclip causing the crash.
    If its not an important item, you can just happily continue to work and do it again. In my case, it was a vital component, so I went inside the xml definition, and tried to remove nodes untill it finally opened.
    TAHDAH
    The file got opened again, just with a missing reference inside that movieclip.
    I have read that often an empty frame may cause the problem, so you should look for <element/> tag.
    In my case, was a FLVPlayback component.
    Find below the node I had to remove (someone from Adobe may give a look)
    It is advised untill Flash CS5 doesn't get stabilized on file save  (yeah, I know, a detail!) to store your projects as xfl and not as FLA  files. (I don't really know why, since a fla file is just a zipped xfl  folder renamed as .fla)
    Exhausted but happy.
    Filippo
                    <DOMCompiledClipInstance libraryItemName="FLVPlayback" name="_video" selected="true" uniqueID="8">
                      <matrix>
                        <Matrix a="2.45603942871094" d="2.04177856445313"/>
                      </matrix>
                      <transformationPoint>
                        <Point x="160" y="119.95"/>
                      </transformationPoint>
                      <dataBindingXML><![CDATA[<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='HighlightItem' oldCopiedComponentPath=''>
    </component>
    ]]></dataBindingXML>
                      <parametersAsXML><![CDATA[   <property id="align">
          <Inspectable name="align" variable="align" category="" verbose="0" defaultValue="center" enumeration="center,top,left,bottom,right,topLeft,topRight,bottomLeft,bottomRight" type="List"/>
       </property>
       <property id="autoPlay">
          <Inspectable name="autoPlay" variable="autoPlay" category="" verbose="0" defaultValue="false" type="Boolean"/>
       </property>
       <property id="cuePoints">
          <Inspectable name="cuePoints" variable="cuePoints" category="" verbose="0" defaultValue="" type="Video Cue Points"/>
       </property>
       <property id="isLive">
          <Inspectable name="isLive" variable="isLive" category="" verbose="0" defaultValue="false" type="Boolean"/>
       </property>
       <property id="preview">
          <Inspectable name="preview" variable="preview" category="" verbose="0" defaultValue="None" type="Video Preview"/>
       </property>
       <property id="scaleMode">
          <Inspectable name="scaleMode" variable="scaleMode" category="" verbose="0" defaultValue="exactFit" enumeration="maintainAspectRatio,noScale,exactFit" type="List"/>
       </property>
       <property id="skin">
          <Inspectable name="skin" variable="skin" category="" verbose="0" defaultValue="" type="Video Skin"/>
       </property>
       <property id="skinAutoHide">
          <Inspectable name="skinAutoHide" variable="skinAutoHide" category="" verbose="0" defaultValue="false" type="Boolean"/>
       </property>
       <property id="skinBackgroundAlpha">
          <Inspectable name="skinBackgroundAlpha" variable="skinBackgroundAlpha" category="" verbose="0" defaultValue="0.85" type="Number"/>
       </property>
       <property id="skinBackgroundColor">
          <Inspectable name="skinBackgroundColor" variable="skinBackgroundColor" category="" verbose="0" defaultValue="#666666" type="Color"/>
       </property>
       <property id="source">
          <Inspectable name="source" variable="source" category="" verbose="0" defaultValue="" type="Video Content Path"/>
       </property>
       <property id="volume">
          <Inspectable name="volume" variable="volume" category="" verbose="0" defaultValue="1.00" type="Number"/>
       </property>
    ]]></parametersAsXML>
                    </DOMCompiledClipInstance>

  • Converting AS3 to AS2. Some movieclip buttons not working.

    25 movieclip buttons in frame 126 maintimeline. Buttons are on top layer above all other content.
    Buttons 1_1, 2_1, 3_1, 4_1, and 5_1 work. All buttons have correct instance name. The buttons are in a 5x5 grid. Hence the naming convention of column_row. So all row 1 buttons are working. Do not get hand cursor over any of the other buttons. This is totally baffling. I am using Flash CS4. The file is saved as CS3 and the publish settings are AS2, Flash player 8.
    Here is the AS for frame 126.
    stop();
    trace("tScore = "+tScore);
    trace("i = "+i);
    if (i == 0) {
        i++;
    this.podium.signin.unloadMovie();
    videoBtn1_1.onRelease = function() {
        gotoAndStop(127);
        videoBtn1_1.play();
    videoBtn2_1.onRelease = function() {
        gotoAndStop(127);
        videoBtn2_1.play();
    videoBtn3_1.onRelease = function() {
        gotoAndStop(127);
        videoBtn3_1.play();
    videoBtn4_1.onRelease = function() {
        gotoAndStop(127);
        videoBtn4_1.play();
    videoBtn5_1.onRelease = function() {
        gotoAndStop(127);
        videoBtn5_1.play();
    this.videoBtn1_2.onRelease = function() {
        gotoAndStop(127);
        videoBtn1_2.play();
    videoBtn2_2.onRelease = function() {
        gotoAndStop(127);
        videoBtn2_2.play();
    videoBtn3_2.onRelease = function() {
        gotoAndStop(127);
        videoBtn3_2.play();
    videoBtn4_2.onRelease = function() {
        gotoAndStop(127);
        videoBtn4_2.play();
    videoBtn5_2.onRelease = function() {
        gotoAndStop(127);
        videoBtn5_2.play();
    videoBtn1_3.onRelease = function() {
        gotoAndStop(127);
        videoBtn1_3.play();
    videoBtn2_3.onRelease = function() {
        gotoAndStop(127);
        videoBtn2_3.play();
    videoBtn3_3.onRelease = function() {
        gotoAndStop(127);
        videoBtn3_3.play();
    videoBtn4_3.onRelease = function() {
        gotoAndStop(127);
        videoBtn4_3.play();
    videoBtn5_3.onRelease = function() {
        gotoAndStop(127);
        videoBtn5_3.play();
    videoBtn1_4.onRelease = function() {
        gotoAndStop(127);
        videoBtn1_4.play();
    videoBtn2_4.onRelease = function() {
        gotoAndStop(127);
        videoBtn2_4.play();
    videoBtn3_4.onRelease = function() {
        gotoAndStop(127);
        videoBtn3_4.play();
    videoBtn4_4.onRelease = function() {
        gotoAndStop(127);
        videoBtn4_4.play();
    videoBtn5_4.onRelease = function() {
        gotoAndStop(127);
        videoBtn5_4.play();
    videoBtn1_5.onRelease = function() {
        gotoAndStop(127);
        videoBtn1_5.play();
    videoBtn2_5.onRelease = function() {
        gotoAndStop(127);
        videoBtn2_5.play();
    videoBtn3_5.onRelease = function() {
        gotoAndStop(127);
        videoBtn3_5.play();
    videoBtn4_5.onRelease = function() {
        gotoAndStop(127);
        videoBtn4_5.play();
    videoBtn5_5.onRelease = function() {
        gotoAndStop(127);
        videoBtn5_5.play();

    You can probably reduce all that interaction code to a loop...
    for(i=1; i<6; i++){
       for(k=1; k<6; k++){
          this["videoBtn"+i+"_"+k].onRelease = function() {
              gotoAndStop(127);
              this.play();
    As for why movng the buttons to another layer fixed anything, it will not have mattered.  Whatever fixed the problem will remain a mystery.  It could have been an issue with instance names/frames since you are at frame 126 for some reason.  If you transition the buttons into place, that might be related to what the problem was.

  • Button swap image in holder movieclip

    Hello
    I know this might seem like a silly question, but I'm
    struggling to find any help in tutorials already. what I'm trying
    to do is have a row of buttons that when clicked change the image
    held within a holder movieclip. I have a button with instance name
    "adept" and a holder movieclip with instance name "holder". this is
    the code i have so far, i have barely started:
    adept.addEventListener(MouseEvent.CLICK, Click);
    function Click(event:MouseEvent):void {
    eventNotice.text = "MOUSE CLICKED";
    // code here to change contents of holder movieclip
    I literally don't know where to start, and the idea is to
    have about 6 buttons relating to 6 different images that when
    pressed, change the image within the holder movieclip to the one
    relevant to the button pressed.
    any help right now would be greatly appreciated.
    Many thanks

    not to worry, i have cheated slightly by saving all the
    images needed in separate keyframes in the holder movieclip
    timeline and the buttons now tell the movieclip to switch to each
    the frame containing the relevant image. thanks anyway :)

  • Saving and Loading specific properties of an Image

    Hey everyone. I'm currently in the process of developing a game which allows you to customize the color (hue) of your character via a slider. What I would like to happen is: Upon clicking either Accept or Play, it will save the current hue of the image, navigating back to that page will load what was previously saved (hue), as well as when starting the game, it will replace the standard graphic with the previously saved image.
    Below is the code I have right now that pertains to the image with a basic non-functioning properly saving and loading code:
    import flash.events.KeyboardEvent;
    // open a local shared object called "myStuff", if there is no such object - create a new one
    var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
    Accept.addEventListener(MouseEvent.CLICK, SaveData);
    PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
    function SaveData(MouseEvent){
               savedstuff.data.username = Sliders.Dino.MovieClip // changes var username in sharedobject
               savedstuff.flush(); // saves data on hard drive
    function LoadData(event: MouseEvent)
               if(savedstuff.size>0){ // checks if there is something saved
               Sliders.Dino.MovieClip = savedstuff.data.username} // change field text to username variable
    // if something was saved before, show it on start
    if(savedstuff.size>0){
    Sliders.Dino.MovieClip = savedstuff.data.username}
    What I have above is only saving the actual image, which is inside a movie clip names Sliders.
    Below is the Class I am using that associates with the slider that changes the hue of "Dino".
    package
              import flash.display.Sprite;
              import fl.motion.AdjustColor;
              import flash.filters.ColorMatrixFilter;
              import fl.events.SliderEvent;
              public class Main extends Sprite
                        private var color:AdjustColor = new AdjustColor();
                        private var filter:ColorMatrixFilter;
                        public function Main():void
                                  /* Required to create initial Matrix */
                                  color.brightness = 0;
                                  color.contrast = 0;
                                  color.hue = 0;
                                  color.saturation = 0;
                                  /* Add Listeners function */
                                  addListeners();
                        private final function addListeners():void
                                  colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
                        private final function adjustHue(e:SliderEvent):void
                                  color.hue = e.target.value;
                                  update();
                        private final function update():void
                                  filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
                                  Dino.filters = [filter];
    Overall what I'm asking for is: How do I get it to save the current hue of an image by clicking a button, and then having that previously saved image be loaded upon reloading or clicking a button? To me, it doesn't seem like it should be too hard, but for some reason I can not grasp it.
    Thanks in advance for reading this and for any assistance you have to offer!

    This is the Class that you told me to use:
    package
              import flash.display.Sprite;
              import fl.motion.AdjustColor;
              import flash.filters.ColorMatrixFilter;
              import fl.events.SliderEvent;
              import flash.net.SharedObject;
              public class Main extends Sprite
                        private var color:AdjustColor = new AdjustColor();
                        private var filter:ColorMatrixFilter;
                        private var so:SharedObject;
                        public function Main():void
                                  color.brightness = 0;
                                  color.contrast = 0;
                                  color.saturation = 0;
                                  so = SharedObject.getLocal("myStuff");
                                  if (so.data.hue)
                                            color.hue = so.data.hue;
                                  else
                                            color.hue = 0;
                                  update();
                                  addListeners();
                        private final function addListeners():void
                                  colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
                        private final function adjustHue(e:SliderEvent):void
                                  color.hue = e.target.value;
                                  so.data.hue = color.hue;
                                  so.flush();
                                  update();
                        private final function update():void
                                  filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
                                  Dino.filters = [filter];
    And this is the FLA Code:
    import flash.events.KeyboardEvent;
    // open a local shared object called "myStuff", if there is no such object - create a new one
    var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
    Accept.addEventListener(MouseEvent.CLICK, SaveData);
    PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
    function SaveData(MouseEvent)
              savedstuff.data.username = Sliders.Dino.MovieClip;// changes var username in sharedobject
              savedstuff.flush();
              // saves data on hard drive;
    function LoadData(event: MouseEvent)
              if (savedstuff.size > 0)
              {// checks if there is something saved
                        Sliders.Dino.MovieClip = savedstuff.data.username;
              }// change field text to username variable
    // if something was saved before, show it on start
    if (savedstuff.size > 0)
              Sliders.Dino.MovieClip = savedstuff.data.username;

  • Flash Pro CC saved fla project - "Could not load scene into memory. Your document may be damaged."

    Hi all, I've been working on a project in Flash Professional CC in windows 7 that was started in a previous version of Flash Pro and occasionally after I've saved the project and tried to open it the next day I get the "Could not load scene into memory. Your document may be damaged." message and only a blank Scene 2 in the project. I've previously been reverting back to the old saved project file and starting over. Its wasted a lot of time so far.
    I can still open the same exact project in CS6 on another older computer but not in CC. I can also save the fla in CS6, transfer it to the other computer and then it will work again (for now). This isn't going to be an option in the future as CS6 was a trial version that is on its last use today.
    I've tried to create a new flash pro cc project and just copied and pasted the library and scene layout from the old project into the new project. This worked for a couple of saves/ opens but the error has happened again.  I'm scared that now that I've reached the point in the project were my work in the animation/ visual side will start to be more intensive that I will continuosly have to worry about losing all of my work. I'm using a document class so the AS3 code hasn't been an issue thankfully. Any help would be appreciated.

    Thanks for the reply Amy, that is essentially what I am doing already only I'm not using version control software I'm just managing it on my own since its a solo project, though I have been considerring using git anyway. It still doesn't explain why I can open and save the supposedly damaged project (according to CC) in CS6 and only then will it work again in CC. Also I'm not gettting a chance to save as a new version over and over for long. Its only a couple of days max, usually just over one day, and I've primarily been working on the code in Flash Builder with little functional change in the actual fla project. Its primarily changing movieclips instance names, which in this project is tedious and time consuming. Having to revert back to the older working version is exaclty what I'm trying to avoid. I shouldn't have to commit the project to a repository every little change that I make to the fla file.

Maybe you are looking for

  • IIR Filtering and response .vi: Butterwort​h filter magnitude response depends on sampling rate -why?

    Hi folks, I am not expert in filter design, only someone applying them, so please can someone help me with an explanation? I need to filter very low-frequent signals using a buttherwoth filter 2. or 3. order as bandpass 0.1 to 10 Hz . Very relevant a

  • Can you run Photoshop CS4 on an iMac?

        One TechNote I was just pointed to says you need a PowerPC G5 with multicore Intel Processor. HUH?! I've always owned iMacs and run a graphic design business with them. I have a brand new 24" iMac with memory upgrades and a top graphics card, but

  • Hide repeated key values - server wide

    Hello all, does anybody know if there's a setting which sets the "hide repeated key values" query properties server wide, so I don't have to make that setting for each query? Thanks, Tudor

  • Error SCAC 50012

    Buildfile: C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml scac: [scac] Validating composite "C:\JDeveloper\mywork\DairyEvent\DairyEvent\composite.xml" [scac] Setting BPELC option 'classpath' to C:\Oracle\Middleware\jdeveloper\jdev\extensions

  • How to install StorEdge 3510FC arrary?

    Hi experts, My commpany purchased a StorEdge 3510FC and one expansion unit, equiped with a SunFire V490 server with Solaris 10 3/05. I just make DAS connections between server and 3510FC. When it powered on, I checked the result and I found there is