• RELEVANCY SCORE 5.04

    DB:5.04:Make A Movieclip Symbol Of An Entire Fla? 97





    Problem is it all exists on the Scene-1 level. I'd like to
    take the animation (leaving the preloader) and turn it into a
    Movieclip symbol. Possible?

  • RELEVANCY SCORE 3.69

    DB:3.69:Re: Removing Frames sd





    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

    DB:3.69:Re: Removing Frames sd

    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

  • RELEVANCY SCORE 3.69

    DB:3.69:Scale A Movieclip xk





    Does anyone have a sample fla of a movieclip that can be
    scaled larger or smaller by dragging the lower right corner of it?
    AS2 preferably.

    DB:3.69:Scale A Movieclip xk

    Sweet. Thank you so much. I can't tell you how much this
    helps. Thank you.

  • RELEVANCY SCORE 3.69

    DB:3.69:Flash Pro Cs5 Convert To Flex Component And Swc Export 8s



    Hi,

    my question is about the Flash Pro CS5 and Flash Builder 4 (Flex 4) integration.

    My goal is simple - to make a simple graphic in a MovieClip and then export that for use in Flash Builder 4. I found out I have 2 ways of doing that:

    1) - create the MovieClip with the graphic

    - export it for ActionScript with a name of the class

    - select the symbol in the library again and export SWC file. Total size of this SWC in my example is 24kb.

    - put the SWC in the libs folder and use the class/component which should be put inside SpriteVisualContainer or UIMovieClip

    2) - create the MovieClip with the graphic

    - export it for ActionScript with a name of the class

    - select it in the libraly and then select Commands - Convert Symbol to Flex Component

    Now here we can do 2 things:

    - select the symbol in the library and export SWC file. Total size here is 104kb.

    - publish the whole project and use its SWC file.

    And last:

    - put the SWC in the libs folder and use the class/component wherever you want because it's already extending UIMovieClip.

    So My point is that with the first way I need to use just one simple container to put my component into and I save like 80 kb. Why would I want to use the second way, just to be more comfortable or there are other reasons too?

    I was thinking that maybe I could put more flex converted components in the fla file so I would then export the swc with all of them being already flex components and that 80kb will be shared for all of them, which makes sense of using this feature, but if someone could confirm my thinking is right or there was some other better purpose or way of doing things in an optimised way, I will be glad to hear them. Thanks!

    DB:3.69:Flash Pro Cs5 Convert To Flex Component And Swc Export 8s

    Hi,

    I am using the first option while converting from flash to flex. Its easy and it saves lots of memory.

  • RELEVANCY SCORE 3.69

    DB:3.69:Loadmovie Cause Problems With Onenterframe Method Defined On A Class p8


    Hello everyone

    I have just started to work with classes few days ago and i
    found this problem on my way.

    I have defined on a class a method that has to be executed
    every frame (onEnterFrame), but it doesnt works, the reason for the
    error is not on the class nor on the way i define the object of
    that class: its on a loadMovie() statement wich loads a picture on
    a movieClip. That movieClip is the class parameter, and when i use
    the loadMovie it stop the onEnterFrame method. Its very rare. To
    make the example work just put any image on the same folder with
    the name "Pic1". Thats all. (

    Code of an example below
    Copy the first code onto an .as file and save it as
    mySizer.as
    Copy the second code on a .fla and save it on the same folder
    of .as file
    Grab any jpg to that folder and name it as Pic1.jpg

    Any help would be apreciated
    Thanks in advance

  • RELEVANCY SCORE 3.69

    DB:3.69:Is There A Skiptoframe Instead Of Gotoframe? mc


    Hello. I am an architecture student trying to figure out the
    timeline and gotoandplay/gotoandstop scripts. I have a timeline
    about 200 frames long and I have mulitple pages that I want to link
    to buttons from the main frame. Whenever I try to link the buttons
    to a specific frame (on-release-gotoandplay-frame155, for example),
    the flash player runs through the entire 155 frames and finally
    stops. I dont want people to have to go through the entire 155
    frames of animation every time they want to access this one frame.
    Is there a script I can use to skip to a frame without having to
    play through the whole timeline?

    If not, would it be better just to make several FLA documents
    and somehow link them to one main FLA?
    Thanks for any feedback!!

    --A Poor and confused archie

    DB:3.69:Is There A Skiptoframe Instead Of Gotoframe? mc

    One thing you will want to make sure of is that you give your
    button that people click on the label "jump_btn" That should clear
    the error you are getting.

  • RELEVANCY SCORE 3.10

    DB:3.10:Tiling Movieclip In Actionscript 3 8m


    Hi,

    I am wokring on a movie and I want to tile a movieclip
    instead of a bitmap in AS3. I have figured out masking and the
    bitmap tiling in AS3, but am still encountering trouble finding a
    good solution for simply tiling an MC symbol across a set width and
    height in AS3.

    Any help would be greatly appreciated.

    Thanks in advance.

    Justin

    DB:3.10:Tiling Movieclip In Actionscript 3 8m

    you will need to instantiate a 'new' object instance on each
    iteration of the loop so previous to the x and y values being
    adjusted declare:

    var commaTile_mc = new commaTile();

    note the name change above - you cannot use the same name for
    a reference and a Class so you will need to change on or the other.
    since you have commaTile_mc in the rest of your code you could just
    remove the _mc portion from you Class name (in the linkage...
    library window not the 'name' of the library clip)

  • RELEVANCY SCORE 3.07

    DB:3.07:Change Symbol Position On Mouse Rollover, Add Points ma



    Hello,

    I am just starting Flash CS3, and I would like some assistance with a game.

    In my game, a symbol (movieclip?) is inserted somewhere in the stage randomly. If you hover over it, it changes position automatically.

    I converted my target into a MovieClip, and made it possible to export for ActionScript.

    I put this in the ActionScript Class file

    class Target extends MovieClip

    I can't find the code I need to

    1) make target a button, graphic, or movieclip

    2) make the target randomly appear on the screen when frame is loaded

    3) make the target randomly move to a different place when hovered over

    4) make a score variable, and make it go up each time the target is hovered over.

    I have an idea of how to do #4, something like

    {

    var score;

    function OnLoad ()

    score = 0

    function onEnterFrame ()

    score=+1 if {code for hover over symbol}

    I would greatly appreciate any help.

    Thank you,

    Bchandark

    DB:3.07:Change Symbol Position On Mouse Rollover, Add Points ma


    Hello,

    I am just starting Flash CS3, and I would like some assistance with a game.

    In my game, a symbol (movieclip?) is inserted somewhere in the stage randomly. If you hover over it, it changes position automatically.

    I converted my target into a MovieClip, and made it possible to export for ActionScript.

    I put this in the ActionScript Class file

    class Target extends MovieClip

    I can't find the code I need to

    1) make target a button, graphic, or movieclip

    2) make the target randomly appear on the screen when frame is loaded

    3) make the target randomly move to a different place when hovered over

    4) make a score variable, and make it go up each time the target is hovered over.

    I have an idea of how to do #4, something like

    {

    var score;

    function OnLoad ()

    score = 0

    function onEnterFrame ()

    score=+1 if {code for hover over symbol}

    I would greatly appreciate any help.

    Thank you,

    Bchandark

  • RELEVANCY SCORE 3.06

    DB:3.06:Object From Symbol xc


    I create a graphic on the stage, convert it to a Symbol
    (MovieClip) named Sym.

    How then do I create an instance of it?

    var mySym:Sym = new Sym();

    tells me: "1046: Type was not found or was not a compile-time
    constant: Sym."

    DB:3.06:Object From Symbol xc

    Thank you, that solves it.

    In the Linkage Props dialog, when I check "Export for
    ActionScript", the checkbox for "Export in First Frame" is also
    automatically selected.

    Unchecking the latter results in the "type not found" error.
    That leads to a question out of curiosity: if the class definition
    is not exported in the first frame, then when/how can you later
    export it?

    IOW, how can the class be used if it's not exported in the
    first frame?

  • RELEVANCY SCORE 3.00

    DB:3.00:As Works In .Fla But Not .As 1k


    Hello,

    I have "Test.as" with the following. I have "Test.fla" with a
    simple "btn" movie clip with base class of "Test". I have a simple
    rectangle movie clip with base class of MovieClip.

    When clicking "btn", I want to display an instance of "test"
    at specific x y coordinates. It works when I have the code in
    the .fla and have "btn.addEventListener", but not when I have it in
    a separate .as file with this.addEventListener.

    When I make it a class, the x y coordinates are always
    offset in relation to the center of "btn". I can move test anywhere
    on the stage, and/or change the values of x y, but the
    resulting display always is offset from the center of the btn. Can
    anyone help me set the coordinates with reference to the stage, not
    the movie clip with the Test class?

    Thanks!!!

    Test.as:

  • RELEVANCY SCORE 2.97

    DB:2.97:Convert .Fla File To Single Movie Clip - How!!?? 8k


    Hi all!

    I have a website (have a quick look:
    www.thebrightsidedesign.com) which currently uses separate swf
    files for each page. I have decided to convert each swf file into
    single movie clips and use one large swf file instead (to get rid
    of gaps between pages etc etc). I AM VERY NEW TO FLASH SO YOU HAVE
    TO BE A LITTLE PATIENT!

    I'm having trouble converting an entire .fla file to a movie
    clip.

    Here's what I'm doing:

    I select all the frames in the fla file.

    then go to a new document sized correctly and create a movie
    clip symbol.

    then I use "pate in place" and paste what I copied into frame
    1 of this movie clip.

    But this doesn't seem to work - I just get a static image of
    the page rather than the moving movie clip.

    WHAT AM I DOING WRONG!?

    THANKS,

    Liam

    DB:2.97:Convert .Fla File To Single Movie Clip - How!!?? 8k

    See my reply in sitedesign.

    --
    -------------------------------
    Remove '_spamkiller_' to mail
    -------------------------------

  • RELEVANCY SCORE 2.94

    DB:2.94:Referencing A Symbol Outside Of The Current Fla j1



    We have this ui_library.fla that contains a button component (button_action) and a form of proxy of that button component. (A blank symbol at first that now contains "button_action" in it).

    so within the Flash Library you'll see:

    - button_action

    - button_action_proxy

    Our pipeline dictates that when working in a new fla that we should create a new symbol, then under "Source File..." Im supposed to select ui_library.fla, choose "button_action_proxy" and name the new symbol "button_action_import".

    Considering that "button_action_import" doesnt not need any further changes am I safe to use it within another symbol?

    Or do I need to make another blank symbol, open it up and throw "button_action_import" in it, then name that into "button_action_whatever" to work?

    ---using Adobe Flash CS6.5, on a pc with Windows 7-----

  • RELEVANCY SCORE 2.93

    DB:2.93:A More Effective Way To Write This ? f7



    Hi all,

    Lately i've been trying to right in external classfiles to create everything and make everything work instead of stuffing everything in my timeline.

    So now i have made a classfile that first creates all the movieclips i wan't on the stage and then defines what all the buttons do.

    But when i want to acces a variable that has been created in "createMc" from a private function i get an error, so i have fixed this by giving the var's a name and then use getChildByName().

    But i think this looks like a really innificiant way off writing something and was wondering if it was possible to write this in a better, shorter, and thus more effective way. Any ideas ?

    Grts !

    Here's the code:

    package {
    import flash.display.MovieClip;
    import flash.events.*;

    public class createMc extends MovieClip {

    public function createMc() {

    var home:homeMc = new homeMc();
    home.x = 400;
    home.y = 265;
    addChild(home);
    home.name = "homeGeb";

    var contact:contactMc = new contactMc();
    contact.x = 400;
    contact.y = 265;
    addChild(contact);
    contact.visible = false;
    contact.name = "contGeb";

    var info:infoMc = new infoMc();
    info.x = 400;
    info.y = 265;
    addChild(info);
    info.visible = false;
    info.name = "infoGeb";

    var imp:impsMc = new impsMc();
    imp.x = 400;
    imp.y = 265;
    addChild(imp);
    addChild(imp);
    imp.visible = false;
    imp.name = "impGeb";

    var mulKnop:mulKnopMc = new mulKnopMc();
    mulKnop.x = 400;
    mulKnop.y = 50;
    mulKnop.buttonMode = true;
    addChild(mulKnop);

    var homeBtn:homeKnopMc = new homeKnopMc();
    homeBtn.x = 179.15;
    homeBtn.y = 569.5;
    homeBtn.buttonMode = true;
    addChild(homeBtn);

    var impBtn:impsKnopMc = new impsKnopMc();
    impBtn.x = 293.3;
    impBtn.y = 569.5;
    impBtn.buttonMode = true;
    addChild(impBtn);

    var infBtn:infoKnopMc = new infoKnopMc();
    infBtn.x = 452.7;
    infBtn.y = 569.5;
    infBtn.buttonMode = true;
    addChild(infBtn);

    var contBtn:contKnopMc = new contKnopMc();
    contBtn.x = 574.2;
    contBtn.y = 569.5;
    contBtn.buttonMode = true;
    addChild(contBtn);

    homeBtn.addEventListener(MouseEvent.CLICK, homeClick);

    impBtn.addEventListener(MouseEvent.CLICK, impClick);

    infBtn.addEventListener(MouseEvent.CLICK, infClick);

    contBtn.addEventListener(MouseEvent.CLICK, contClick);


    }

    private function homeClick(evt:MouseEvent):void {
    trace("geklikt");

    var home: MovieClip = MovieClip(getChildByName("homeGeb"));
    var imps: MovieClip = MovieClip(getChildByName("impGeb"));
    var info: MovieClip = MovieClip(getChildByName("infoGeb"));
    var contact: MovieClip = MovieClip(getChildByName("contGeb"));

    home.visible = true;
    imps.visible = false;
    info.visible = false;
    contact.visible = false;
    }

    private function impClick(evt:MouseEvent):void {
    trace("geklikt");

    var home: MovieClip = MovieClip(getChildByName("homeGeb"));
    var imps: MovieClip = MovieClip(getChildByName("impGeb"));
    var info: MovieClip = MovieClip(getChildByName("infoGeb"));
    var contact: MovieClip = MovieClip(getChildByName("contGeb"));

    home.visible = false;
    imps.visible = true;
    info.visible = false;
    contact.visible = false;
    }

    private function infClick(evt:MouseEvent):void {
    trace("geklikt");

    var home: MovieClip = MovieClip(getChildByName("homeGeb"));
    var imps: MovieClip = MovieClip(getChildByName("impGeb"));
    var info: MovieClip = MovieClip(getChildByName("infoGeb"));
    var contact: MovieClip = MovieClip(getChildByName("contGeb"));

    home.visible = false;
    imps.visible = false;
    info.visible = true;
    contact.visible = false;
    }

    private function contClick(evt:MouseEvent):void {
    trace("geklikt");

    var home: MovieClip = MovieClip(getChildByName("homeGeb"));
    var imps: MovieClip = MovieClip(getChildByName("impGeb"));
    var info: MovieClip = MovieClip(getChildByName("infoGeb"));
    var contact: MovieClip = MovieClip(getChildByName("contGeb"));

    home.visible = false;
    imps.visible = false;
    info.visible = false;
    contact.visible = true;
    }

    }
    }

  • RELEVANCY SCORE 2.93

    DB:2.93:How To Set Up Authortime Sharing Efficiently? z7



    I have one fla with a lot of library symbols. At some time part of these symbols were copied to another fla, and updated. Rather than copying the modified symbols back to the original movie, I want to use authortime sharing. So I click on one symbol at a time in the original fla, click source, scroll to the other file in the file chooser, wait for the library to open, scroll to an identically named clip inside an identically named folder ....

    Is there any way to make this task less tedious?

    Another related question: the source is shown as a full path - is there a way to make it relative (in fact the two fla files reside in the same folder)?

    DB:2.93:How To Set Up Authortime Sharing Efficiently? z7


    Hi,

    just to answer my own question:

    a) I finally saved both fla files as xfl and had a script add the required attributes to the library symbol.xml files

    b) while flash shows full path when a symbol is just changed to importing, reopening the file will show relative path

  • RELEVANCY SCORE 2.92

    DB:2.92:Symbol Instance Names 8k


    (please tell me if any of this is incorrect)
    In AS3,
    I can create a new MC by
    var myVar:MovieClip = new MovieClip();

    I can add an instance of that MC to the main stage by
    addChild(myVar);

    How do I give that movie clip an instance name using only
    AS3?

    Thanks,

    Wayne

    DB:2.92:Symbol Instance Names 8k

    Okay,

    So the proper way to write this would be

    var myVar:MovieClip = new MovieClip();
    myVar.name = "MC_Name";
    addChild(myVar);

    Thanks,

    Wayne

  • RELEVANCY SCORE 2.92

    DB:2.92:Make Flv Within A Flash Movie Loop (Or Entire Movie Loop?) 37



    I am needing to make the flv loop from my .fla file which contains .flv files. I know there is a piece of AS 3.0 I need in order to make them loop/make the entire movie loop but I am not sure what it is.

    DB:2.92:Make Flv Within A Flash Movie Loop (Or Entire Movie Loop?) 37


    He's using AS3.

    If it's on the timeline as you said then it seems on the last frame or the frame after that you could have code telling it to gotoAndPlay(1) though I'm not sure how you do that in as3.

  • RELEVANCY SCORE 2.91

    DB:2.91:Xml File + Alpha Of This File z7


    Hi,

    I have a movieclip and in this movieclip I have a dynamic
    textfield. In this dynamic textfield I load in an external xml
    file.
    Now I want the movieclip to fade in on the stage. This works
    fine but the dynamic textfield doesn't fade in with the movieclip.
    The textfield is inside the movieclip but still it doesn't
    fade in.

    So when I test the my .fla, the movieclip nicely fades in,
    but the text appears immediately without fade in.

    For the textfield I also use a stylesheet(var
    styles:TextField.Stylesheet = new TextField.Stylesheet();)

    My question is: is it possible to apply _alpha to an external
    loaded xml file?
    (when I embed the font used, the text doesn't show up at all)

    Silky JacK.

    DB:2.91:Xml File + Alpha Of This File z7

    Hi,

    I have a movieclip and in this movieclip I have a dynamic
    textfield. In this dynamic textfield I load in an external xml
    file.
    Now I want the movieclip to fade in on the stage. This works
    fine but the dynamic textfield doesn't fade in with the movieclip.
    The textfield is inside the movieclip but still it doesn't
    fade in.

    So when I test the my .fla, the movieclip nicely fades in,
    but the text appears immediately without fade in.

    For the textfield I also use a stylesheet(var
    styles:TextField.Stylesheet = new TextField.Stylesheet();)

    My question is: is it possible to apply _alpha to an external
    loaded xml file?
    (when I embed the font used, the text doesn't show up at all)

    Silky JacK.

  • RELEVANCY SCORE 2.88

    DB:2.88:Movie Uses Features That Are Not Supported In Flash Player Version 7 m3


    In Flash-8 on Windows-2000 I have imported and AVI file into
    a movieclip,
    yet an attempt to test the resulting FLA resulted in an error
    message:

    Movie uses features that are not supported in Flash Player
    version 7.
    Symbol=m, layer=Layer 1, frame=1:VP6 Codec requires Flash
    Player 8 or higher

    I have Flash Player 8 installed and it shows up in the
    ControlPanel under
    installed programms.
    How do I get round this

    DB:2.88:Movie Uses Features That Are Not Supported In Flash Player Version 7 m3

    Change your publish settings to export for Flash Player 8,
    instead of Flash
    Player 7
    --
    Jeckyl

  • RELEVANCY SCORE 2.86

    DB:2.86:Custom Class Help(Oop) ? fp


    Hey,well in my fla i have a movieclip exported with class name Star and in my Star.as file i have this code:package { public class Star { public function Star() { this.visible = false; } }}i tried putting movieclip on and off stage but didnt work all i want to do is control my class Star in my fla.Im very new to OOP and trying to get the gist of how to control objects like the way you could by instances like i used to :/hope for an answer soon, Thanks.

    DB:2.86:Custom Class Help(Oop) ? fp

    You'r welcome . Mark the thread as answered if it fixed.

  • RELEVANCY SCORE 2.84

    DB:2.84:Streamlining The Code For The Button Group With Individual Links And Rollover Imgs 91



    I am looking for a solution to streamline the code for the array of 20+ buttons located inside the scroll pane.

    I know I can make an array if all the buttons would have a unified code executable change, i.e. they would become larger and brighter.

    My problem is that each button represents an product image in the lights off stage, then of rollover it is a lights on stage so I have to import two images in the on and off stage and play around with the opacity.

    Additional problem is that each button has to ling to a different label.

    My question is: is it possible to unify the code if buttons have that much individuality or I have to make each one of them as in the example below.

    // makes a hand cursor appear over a mc acting as a button for all the buttons inside the scrollpnaeBckgrnd_mc.scrollpaneBckgrnd_btns_mc.

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.buttonMode = true;

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.useHandCursor = true;

    ///////////////INDIVIDUAL BUTTONS

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLyte _btn.FloraLyte_ON.alpha = 0;

    var FloraLyte_btn_Tween:TweenLite = TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.F loraLyte_btn.FloraLyte_ON, .5, {alpha:1, paused:true});

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLyte_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler_FloraLyte_btn);

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLyte_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler_FloraLyte_btn);

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLyte_btn. addEventListener(MouseEvent.CLICK, onClick_floralytePopUp);

    function onClick_floralytePopUp(event:MouseEvent) :void {

    gotoAndPlay("floralytepp");

    }

    function overHandler_FloraLyte_btn(e:MouseEvent):void{

    FloraLyte_btn_Tween.play();

    trace("you rolled over me");

    }

    function outHandler_FloraLyte_btn(e:MouseEvent):void{

    FloraLyte_btn_Tween.reverse();

    trace("you rolled off me");

    }

    //////////////////////////

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLytell_btn .FloraLytell_ON.alpha = 0;

    var myTween:TweenLite = TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.F loraLytell_btn.FloraLytell_ON, .5, {alpha:1, paused:true});

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLytell_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler);

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLytell_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler);

    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLytell_bt n.addEventListener(MouseEvent.CLICK, onClick_floralytellPopUp);

    function onClick_floralytellPopUp(event:MouseEvent) :void {

    gotoAndPlay("floralyte2pp");

    }

    function overHandler(e:MouseEvent):void{

    myTween.play();

    trace("you rolled over me");

    }

    function outHandler(e:MouseEvent):void{

    myTween.reverse();

    trace("you rolled off me");

    }

    ////////////////////////////////////////////////////////////////////////////////////////// /////////////////////

    DB:2.84:Streamlining The Code For The Button Group With Individual Links And Rollover Imgs 91


    as ned suggested, plan your flow and code into it. here is one example:

    //---

    var buttonArray = [someButton, someOtherButton, aDifferentButton];

    for(var i = 0; i buttonArray.length; i++){

    //get reference to county movieclip

    var mc = buttonArray[i];

    //then add listeners

    mc.addEventListener(MouseEvent.ROLL_OVER, overMe);

    }

    //

    function overMe(e:MouseEvent){

    var mc = e.target;

    switch(mc){

    case: someButton:

    someOtherButton: doThis();

    break;

    case: aDifferentButton: doThat();

    break;

    default: //do nothing;

    break;

    }

    }

    function doThis(){

    trace("do this")

    }

    function doThat(){

    trace("do that")

    }

  • RELEVANCY SCORE 2.84

    DB:2.84:Reconstructing A Flash File. 91



    I have a flash file thats been on my comp for a while, think it's AC2 or something. I'm pretty new to flash so I don't understand to much of AC etc. Now the file and its resources are broken/seperated...there's a timeline fla, a action fla. pictures, text etc. It's an animation. What I want to do is to modify the flash, change the pictures. But as everything is on its own I have no idea how to reconstruct edit the fla. How do I...first change the pictures and second make it into one working fla.?

    DB:2.84:Reconstructing A Flash File. 91


    Is there a working version of it anywhere perhaps published to the web? If so you can use that as a reference. If not, try to figure out which is the primary movie that starts first, that was intended to be the starting point.

    To do that, publish each one as is an run the swf - after a bit you'll probably see how it works on a higher level.

    For the next part, it depends on what your current skill level is creating and editing Flash documents. If you're fairly new, I'd suggest some getting started tutorials that explain the basics of Flash, the interface, the timeline, etc and how to import and use graphics. (just to name a few things)

  • RELEVANCY SCORE 2.84

    DB:2.84:Using 1 Movieclip In Multiple Swf's. Possible? mz



    Ls,

    I was wondering if it is possible to have a movieclip that you can like export and then share in multiple .swf files.

    This, without importing them from external libraries in the .fla files afcourse.

    So like i have a movieclip containing different type tile bitmaps (i do that why im asking)

    I use these tiles in the editor and in the game .swf;

    Changing the(adding to) graphics has me importing the mc from from one .fla into the other.

    Is it possible to make mc in a .fla, export it and dynamicly import it?

    Or can I read the library from the other .fla dynamically?

    Regards,

    mac

  • RELEVANCY SCORE 2.84

    DB:2.84:Embedded Swfs Max Number mp


    Is there a maximum number of swf assets I can embed in an fla using this syntax:

    [Embed(source ="../swfs/swf1.swf", symbol = "symb" )] var SWF1:Class; var swf1:MovieClip = new SWF1(); swf1.gotoAndStop(1); [Embed(source ="../swfs/swf2.swf", symbol = "symb" )] var SWF2:Class; var swf2:MovieClip = new SWF2(); swf2.gotoAndStop(1); [Embed(source ="../swfs/swf3.swf", symbol = "symb" )] var SWF3:Class; var swf3:MovieClip = new SWF3(); swf3.gotoAndStop(1);
    I'm doing this in flash cs5 with a bout 20 or 30 swf files and at one point it compiles but some or all movieclips are shrunk down to one blank frame.

    I check using this:
    var allPages:Array = [swf1,swf2,swf3...]; var t:int = 0; for each(var clip:MovieClip in allPages) { var f:int = clip.totalFrames; t+=f; trace(f); } trace(t); trace(this.totalFrames);

    Sometimes this code above does not even get executed and the compiled swf does not respond at all.
    Each swf contains anywhere between 500 and 3500 frames. Sometimes I embed the same swf multiple times to grab different symbols in it.I have had no luck determining the root of the cause:

    -number of embedded swfs?
    -size of the embedded swfs?
    -number fo frames in an embedded swf?
    -total number of frames in the main swf?

    Can anyone help?

    ...

    DB:2.84:Embedded Swfs Max Number mp

    Is there a maximum number of swf assets I can embed in an fla using this syntax:

    [Embed(source ="../swfs/swf1.swf", symbol = "symb" )] var SWF1:Class; var swf1:MovieClip = new SWF1(); swf1.gotoAndStop(1); [Embed(source ="../swfs/swf2.swf", symbol = "symb" )] var SWF2:Class; var swf2:MovieClip = new SWF2(); swf2.gotoAndStop(1); [Embed(source ="../swfs/swf3.swf", symbol = "symb" )] var SWF3:Class; var swf3:MovieClip = new SWF3(); swf3.gotoAndStop(1);
    I'm doing this in flash cs5 with a bout 20 or 30 swf files and at one point it compiles but some or all movieclips are shrunk down to one blank frame.

    I check using this:
    var allPages:Array = [swf1,swf2,swf3...]; var t:int = 0; for each(var clip:MovieClip in allPages) { var f:int = clip.totalFrames; t+=f; trace(f); } trace(t); trace(this.totalFrames);

    Sometimes this code above does not even get executed and the compiled swf does not respond at all.
    Each swf contains anywhere between 500 and 3500 frames. Sometimes I embed the same swf multiple times to grab different symbols in it.I have had no luck determining the root of the cause:

    -number of embedded swfs?
    -size of the embedded swfs?
    -number fo frames in an embedded swf?
    -total number of frames in the main swf?

    Can anyone help?

    ...

  • RELEVANCY SCORE 2.82

    DB:2.82:Workflow Between Flash Professional And Flash Builder xc



    I'm new to using Flash Builder as an AS3 editor for Flash Pro projects. I've followed multiple tutorials on the workflow between the two but keep hitting a snag.

    Linking the .fla and the .as seems to work without any problem...the issue comes in when I try to "export a movieclip for actionscript" in flash, then try to edit that movieclip using flash builder. Flash builder loads up as expected, and the create a new actionscript class dialog shows up. All of the proper data is filled in but the "Finish" button is greyed out. If I browse to set the package to the default and click OK it displays an error at the top of the dialog saying "Super class flash.display.MovieClip cannot be resolved for the selected project." This happens any time I enter "flash.display.MovieClip" in the Superclass field when creating a new Class or attempt to edit the class definition of a MovieClip in the .fla library. Why is it not recognizing references to flash.display.MovieClip? Concidering most of my actionscripting will need to reference movieclips, this is a pretty big issue. Any idea what could be casuing this....a google search proved useless.

    Cheers,

    Matt

    DB:2.82:Workflow Between Flash Professional And Flash Builder xc


    Not sure what caused the issue but it had something to do with the .fla

    After making a new .fla, and moving all of the existing movie clips over, it worked fine.

  • RELEVANCY SCORE 2.82

    DB:2.82:Re: Removing Frames kj


    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

    DB:2.82:Re: Removing Frames kj

    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

  • RELEVANCY SCORE 2.82

    DB:2.82:Loadmovie With Attachmovie 79


    Hi, I don't know if anyone else has had this problem, but i
    can't seem to solve it.
    so i have a .fla and i'm loading an external swf into a
    movieclip that exisits on the first frame of the .fla file using
    movieClip.loadMovie. I want to attach a movieclip from the library
    of the .fla i'm working in to the movieClip that i'm loading the
    external swf into using movieClip.attachMovie. so the movieclip
    should appear on top of the external swf. is this possible?

    DB:2.82:Loadmovie With Attachmovie 79

    Hi, I don't know if anyone else has had this problem, but i
    can't seem to solve it.
    so i have a .fla and i'm loading an external swf into a
    movieclip that exisits on the first frame of the .fla file using
    movieClip.loadMovie. I want to attach a movieclip from the library
    of the .fla i'm working in to the movieClip that i'm loading the
    external swf into using movieClip.attachMovie. so the movieclip
    should appear on top of the external swf. is this possible?

  • RELEVANCY SCORE 2.82

    DB:2.82:Create A Package cj


    Can any one lead me to an example of how to create a package?
    add a Main.as
    package {
    import flash.display.MovieClip;
    import flash.utils.Timer;
    import flash.events.TimerEvent;

    public class Main extends MovieClip {
    /**
    *constructor.
    */
    pulic function Main() {

    }
    public function timerHandler(event:TimerEvent):void {
    preloadElement.rotation+=3;
    }
    }
    }
    [/code]
    so I can begin to learn how to control the fla I created?
    -Steve

    DB:2.82:Create A Package cj

    Never mind I found a link

    http://www.actionscript.org/resources/articles/698/1/Make-your-own-reusable-classes-using- Flash-and-AS3/Page1.html

  • RELEVANCY SCORE 2.80

    DB:2.80:File Problems 33


    How do you make a ".fla" file the scene of another
    one?

    DB:2.80:File Problems 33

    My timeline slims to be set so that only the frames up to a
    specific part shows. How do you make all frames show?

  • RELEVANCY SCORE 2.78

    DB:2.78:Why Does Attachmovie Not Work After A Loadclip? 7x


    Hi, i am trying to attach a movieclip from my library to the
    movieclip that is loaded.
    It does not seem to work. I only can attach it to the _root!

    In this example i have an movieclip with an idintifier link
    of 'round'.

    As you can see i can approach the loaded movieclip, because i
    resized it. I can change it rotation, alpha etc.
    But i can't attach a movieclip to it? It does not make any
    sense.. Is there a fix for it?

    DB:2.78:Why Does Attachmovie Not Work After A Loadclip? 7x

    create a child of loadinme_mc and load your jpg to that child
    target. you can then attach to loadinme_mc.

  • RELEVANCY SCORE 2.78

    DB:2.78:Class Movieclip Extends ..How To Initialize Different Url's? m8


    Hello, I have made this class. And in my fla file i made a
    movieclip and linked this class to it.
    When it's on the stage it automatically initialize the
    funtion that i made in the class.
    But if i make copies of this movieclip i cannot change the
    url of the picture anymore.

    Does anyone know how to do this?

    You can download this example at: (fla + as class file)

    http://www.webdesign-cs.com/vintages/classFoto.zip

    I was thinking of something like this:
    laadmij:laadFoto = new laadFoto("foto1.jpg");
    laadmij2:laadFoto = new laadFoto("foto2.jpg");
    laadmij3:laadFoto = new laadFoto("foto3.jpg");

    But that does not work.

    DB:2.78:Class Movieclip Extends ..How To Initialize Different Url's? m8

    Hello, I have made this class. And in my fla file i made a
    movieclip and linked this class to it.
    When it's on the stage it automatically initialize the
    funtion that i made in the class.
    But if i make copies of this movieclip i cannot change the
    url of the picture anymore.

    Does anyone know how to do this?

    You can download this example at: (fla + as class file)

    http://www.webdesign-cs.com/vintages/classFoto.zip

    I was thinking of something like this:
    laadmij:laadFoto = new laadFoto("foto1.jpg");
    laadmij2:laadFoto = new laadFoto("foto2.jpg");
    laadmij3:laadFoto = new laadFoto("foto3.jpg");

    But that does not work.

  • RELEVANCY SCORE 2.78

    DB:2.78:Preserving Framerate Of An Imported Movieclip k8


    if I have an animation movieclip imported into another
    movieclip with a
    different framerate, how do I force the imported clip to play
    at its
    original framerate?

    DB:2.78:Preserving Framerate Of An Imported Movieclip k8

    "LuigiL" webforumsuser@macromedia.com wrote in
    message news:e3af4v$n7m$1@forums.macromedia.com...
    Come to think of it, is there any difference...
    The framerate you set for the 'motherfla' will be the
    framerate for all mc's,
    imported sfw's included. So, you must use a function to
    set the framerate for a
    particular mc. And kglad kindly posted the following
    code to achieve that.

    Good code but it doesn't affect the frame rate, it just shows
    some frames at odd times using a timer and updateAfterEvent. The
    actual frame rate isn't changed.
    tralfaz

  • RELEVANCY SCORE 2.78

    DB:2.78:Calling Function From Movieclip jz


    hey,

    i'm making an .fla that has a function on the root of the
    first frame called "subOpenen". now i need to call that function
    from a movieclip named "mc_inhoud" that is attached to frame 2.
    is it possible to call that function from that movieclip?

    thanks in advance

    DB:2.78:Calling Function From Movieclip jz

    From inside the movieclip "mc_inhoud" you would use the
    following code:

    this._parent.subOpenen();

    this : refers to the movieclip "mc_inhoud"

    _parent : refers to the movieclip that contains "mc_inhoud",
    in this case the
    main timeline.

    subOpenen() : the function you want to call

    Tim

  • RELEVANCY SCORE 2.77

    DB:2.77:Errors Loading Swf.. 7s


    I'm having trouble loading an swf-file into an movieclip as
    this error occure:

    Error #2044: Unhandled ioError:. text=Error #2032: Stream
    Error. URL: file:///D|/%5FMEDIACOM/PR/Web/MCD/images.xml
    at org.flepstudio::LoadingXML/loadXML()
    at org.flepstudio::LoadingXML()
    at org.flepstudio::Main/loadXML()
    at org.flepstudio::Main/init()

    I've downloaded the swf-file and the fla-file and there's
    three as-files used in those files.
    The file (fla) show that it use an external class (one of the
    as-files) and I think the problem is this class also affect the
    main-movie.

    I may be wrong, but if I'm not.. how do I go around this?

    I'm currently used to have the as written inside the
    swf/fla-files and sometimes including them, but not as a class.

    Thanks for any help I can get on how I should handle classes,
    etc.

    DB:2.77:Errors Loading Swf.. 7s

    This is just a guess but... From this error is looks as
    though there's a problem with loading a file titled "images.xml".
    I'm guessing that the path to the file is incorrect.

  • RELEVANCY SCORE 2.77

    DB:2.77:Manipulating A Movieclip Instance From A Class File d1


    I have as2 code in a class file that is imported into a fla
    file. I've been trying to manipulate the movieClip instance that I
    have on the Stage via just the Class file.

    Example:

    I have a MovieClip on stage with an instance name of box_mc.
    I want this movie clip to turn invisble when I click the mouse
    button on top of it. The key is that I want all mouse press
    functions to only reside in the Class file and not the fla.

    The issue I am having is that when I test the movie in Flash
    and click on the movieClip nothing happens but the test trace()
    command is run.

    Any help would be most appreciated!

    DB:2.77:Manipulating A Movieclip Instance From A Class File d1

    Well looks like I solved my own question. For those that were
    wondering it looks like using 'onPress' eventHandlers inside a
    function places the 'onPress' event out of scope of the class to
    the point where you're unable to access properties and/or methods.

    I rewrote my little test code with this in mind and utilized
    the Delegate class in what can deem as a sort of as3
    addEventListener for as2. I have listed the code below:

  • RELEVANCY SCORE 2.76

    DB:2.76:Acceleration Script Problem m9


    hello everyone,

    I'm making a navigation bar that uses a basic acceleration
    script that gets attached to the movieclip that is being animated.
    Only problem is, after the first bar moves up, i want it to
    disappear then the next one move up and so on. Here is an example:

    EXAMPLE

    here's the FLA to take a look at the script and how it's
    working:

    FLA DOWNLOAD

    I tried using the script in a way that didn't attach to the
    movieclip but it didn't work for some reason! Any help would be
    appreciated!

    Thanks for your time

    Gavin

    DB:2.76:Acceleration Script Problem m9

    Yeah its that kind of thing I need - the elastic ease in and
    out tween thing (which I didn't know about) looks great!

    What it was I wanted to do though, was instead of all 4 bars
    moving at once - i wanted the bottom 4th bar to move up to the next
    one above, disappear, then then the 3rd one move up to the next
    bar, the 2nd then disappear. etc like in steps... simply animated,
    like
    THIS

    If i could use AS it would look a hell of a lot slicker,
    maybe a pause between steps?

    Thanks again for making that FLA for me,

    Gavin

  • RELEVANCY SCORE 2.75

    DB:2.75:Help With Movieclips 88


    I'm fairly new to Flash, but have used Flash MX and have just started using Flash CS4

    I'm sure this is probably just a setting of some sort when I create new movie clips in CS4 - but it's quite frustrating.

    Last year, in Flash MX4, I created movieclips in many of my fla. files.
    When I copied the movieclip from one .fla library to another - only the movieclip was copied in as part of the library items. None of the single graphics from within the fla. were copied into the second fla.library. I assumed was is correct, as the resulting new fla. worked as I wanted. The same happens when I try to copy in an old movieclip created in Flash MX into a new CS4 .fla. Only the movieclip is placed into the library. So again, I assume this is correct.

    My problem is after I create a new movieclip in CS4, and then to use it in another CS4 .fla, the movie clip and all of the graphic files used to create the movieclip are copied into the second .fla as part of the library items - which, I assume is what I don't want.

    Is there a setting I am missing when creating a movieclip? I really don't want the graphics of the movieclip as additional items in my new library.

    Thanks, in advance for any suggestions.

    DB:2.75:Help With Movieclips 88

    I'm fairly new to Flash, but have used Flash MX and have just started using Flash CS4

    I'm sure this is probably just a setting of some sort when I create new movie clips in CS4 - but it's quite frustrating.

    Last year, in Flash MX4, I created movieclips in many of my fla. files.
    When I copied the movieclip from one .fla library to another - only the movieclip was copied in as part of the library items. None of the single graphics from within the fla. were copied into the second fla.library. I assumed was is correct, as the resulting new fla. worked as I wanted. The same happens when I try to copy in an old movieclip created in Flash MX into a new CS4 .fla. Only the movieclip is placed into the library. So again, I assume this is correct.

    My problem is after I create a new movieclip in CS4, and then to use it in another CS4 .fla, the movie clip and all of the graphic files used to create the movieclip are copied into the second .fla as part of the library items - which, I assume is what I don't want.

    Is there a setting I am missing when creating a movieclip? I really don't want the graphics of the movieclip as additional items in my new library.

    Thanks, in advance for any suggestions.

  • RELEVANCY SCORE 2.74

    DB:2.74:Append One Movieclip To Another? 1j


    In my FLA file I have two movieclips. each made of a number
    of frames.
    Is it possible to append or prepend one movieclip to the
    other?

    DB:2.74:Append One Movieclip To Another? 1j

    you can't change parentage that already exists. but you can
    create a child/parent etc relationship by using attachMovie().

    and if you want to create a 3rd movieclip that consists of a
    concatenation of the frames of both, you can use copy and paste to
    copy the frames from each and paste them into a 3rd
    movieclip.

  • RELEVANCY SCORE 2.73

    DB:2.73:Button That Begins An Animation Once Clicked jk



    Hi there,

    I don't have much experience with buttons and barely any with action script. I am trying to make a button that is a non-animated symbol on up, a glowing version of the symbol on over, and on down the symbol swaps to an animated symbol that moves across the screen.

    But, on the down state, the symbol does not animate like it is supposed to. When I hold the mouse button down, the glow goes away, but the symbol just does not animate as specified in the symbol that appears during the down state.

    I tried experimenting with making the button move on the main timeline, adding a stop() command in one of the layers of the up-state symbol, and then adding a play() command to one of the layers of the down state symbol, but nothing seems to work.

    Am I doing this completely wrong?

    I have done a good deal of animating in flash before, but nothing interactive like this.

    I've uploaded my CS4 .fla file if my explanation doesn't do justice.

    DB:2.73:Button That Begins An Animation Once Clicked jk


    O.K I see the changes that you have made, and even though I do not fully understand the actionscript, I have figured out how to work with the onEf function; but before I mark this question as solved, I have a few questions:

    First, is the 'bugs' reference referring to the name of the layer 'bugs'?

    Also, since I know some of other programming laguages, I have figured out how to add to this function like so:

    function onEf(event:Event):void { if(isRunning) { if (bugs.x 300) { bugs.x += 5; } if( bugs.x 600) { bugs.x += 1; } }}

    But, one of the criteria for this animation is for bugs to stop for a specified ammount of time, and then continue moving. I could probably do this:

    if (_______) {

    bugs.x += 0;

    }

    but how would I ask it to wait until a certain amount of time has passed?

  • RELEVANCY SCORE 2.72

    DB:2.72:Access The Timeline Of An .Fla From A Different .Fla s9


    Hello: below is a function (belonging to file1.fla) that plays, starting at a specific frame when a button is clicked.

    function goToFuncMLR(eventMLR:MouseEvent):void

    {gotoAndPlay(11);}

    Instead, what I want to do is play, starting at a specific frame in a different .fla file.

    If the external .fla file is named file2.fla, what do I need to do to access the timeline of file2.fla from file1.fla ?

    I have a feeling the solution involves a loader method inside file2.fla.

    Thank-You, MLR

    DB:2.72:Access The Timeline Of An .Fla From A Different .Fla s9


    Your welcome, although as it turns out you know exactly what your doing... best of luck

  • RELEVANCY SCORE 2.72

    DB:2.72:Urgent Help Please! Combining Two Scenes With The Same Code p1



    hello everyone , im working on an interactive application on flash cs6 - actionscript 3

    im supposed to make the same application with 2 languages

    so basically i created two different FLA files ... one in english and the other one in foreign language

    when i try to add the scenes to be combined in one FLA , it gives me errors of duplication of the actionscript

    my project contains a carousel... i thought of saving one of the FLA as a movie and add it somehow to the second fla , but i didnt know how to combine them with a button..

    PLEASE HELP!

    when i try to give unique names it gives errors.. ( im not a proffessional in actionscript 3 ) i hope i made myself clear...!

    the code of the english fla is

    import com.ccanvas.carousel.*;

    var centerX:Number = stage.stageWidth/4;var centerY:Number = stage.stageHeight/4;var carc:Carousel = new Carousel(centerX, centerY, 256, 75, "icons.xml");carc.addTooltip(new tooltip); addChild(carc);

    function down(event:MouseEvent):void { trace(event.currentTarget.toolText);}

    function destroyCarousel(event:MouseEvent):void { carc.destroy();}

    function removeNextItem(event:MouseEvent):void { if(carc.numOfItems 2) { carc.removeItem(2); }}create.addEventListener("mouseDown", createCarousel);

    function createCarousel(event:MouseEvent):void { if(carc.CREATED == false) { carc = new Carousel(centerX, centerY, 256, 75, "icons.xml"); carc.addTooltip(new tooltip); addChild(carc); }}

    Tools_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);

    function fl_ClickToGoToScene(event:MouseEvent):void{ MovieClip(this.root).gotoAndPlay(1, "Toolse");}

    games_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToGames);

    function fl_ClickToGoToGames(event:MouseEvent):void{ MovieClip(this.root).gotoAndPlay(1, "Gamese");}

    Identity_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToIdentity);

    function fl_ClickToGoToIdentity(event:MouseEvent):void{ MovieClip(this.root).gotoAndPlay(1, "Identitye");}

    Reviews_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_13);

    function fl_ClickToGoToScene_13(event:MouseEvent):void{ MovieClip(this.root).gotoAndPlay(1, "Reviewse");}

    Facts_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_20);

    function fl_ClickToGoToScene_20(event:MouseEvent):void{ MovieClip(this.root).gotoAndPlay(1, "Factse");}

    DB:2.72:Urgent Help Please! Combining Two Scenes With The Same Code p1


    you don't need a loadercontext. just use:

    var loader:Loader = new Loader();

    addChild(loader);

    var urlR:URLRequest = new URLRequest();

    english_btn.addEventListener(MouseEvent.CLICK,englishF);

    french_btn.addEventListener(MouseEvent.CLICK,frenchF);

    function englishF(e:MouseEvent):void{

    urlR.url = "englishformFIN.swf";

    loader.load(urlR);

    }

    function englishF(e:MouseEvent):void{

    urlR.url = "frenchformFIN.swf";

    loader.load(urlR);

    }

  • RELEVANCY SCORE 2.71

    DB:2.71:Best As2 Resizing Scrollbar Code (Movieclip) 1z


    I need some good functioning dynamically resizing scrollbar
    code for actionscript2 for a movieclip. I need it to dynamically
    adjust itself based on the content of the movieclip. I have some
    scrollbars, but if you need to adjust the height of the scrollbar
    for a particular interface, it requires that you edit some numbers
    manually - and at this point its behaving quite buggy for me. I
    would prefer if there was some code that managed that itself (or
    was very clear how to edit). I would also prefer if I could
    customize the graphics. Could some please link me to either a great
    tutorial (or preferably an FLA) so I can get past this frustration.
    i would really appreciate it

    DB:2.71:Best As2 Resizing Scrollbar Code (Movieclip) 1z

    I need some good functioning dynamically resizing scrollbar
    code for actionscript2 for a movieclip. I need it to dynamically
    adjust itself based on the content of the movieclip. I have some
    scrollbars, but if you need to adjust the height of the scrollbar
    for a particular interface, it requires that you edit some numbers
    manually - and at this point its behaving quite buggy for me. I
    would prefer if there was some code that managed that itself (or
    was very clear how to edit). I would also prefer if I could
    customize the graphics. Could some please link me to either a great
    tutorial (or preferably an FLA) so I can get past this frustration.
    i would really appreciate it

  • RELEVANCY SCORE 2.71

    DB:2.71:Need Help With Adding A Preloader To An Existing .Fla File zz


    I have a 9-layer .fla file that needs a preloader. How can I
    shift all of the layers to make room for a preloader? Thanks

    DB:2.71:Need Help With Adding A Preloader To An Existing .Fla File zz

    Visit gotoandlearn.com and find a tutorial there for creating
    a preloader.

  • RELEVANCY SCORE 2.71

    DB:2.71:[Bug] Flash Generated Swcs Not Updating In Package Explorer j8



    Hi,

    I am testing FB4 with an AS-only project (no flex SDK). The goal is to create assets in an FLA using Flash CS4, export them as a SWC and have the SWC Library Symbols show in the FB Package Explorer by adding the SWC to the project library path. This works great, however there seems to be a bug where the SWCs are not updating in some cases.

    To reproduce:

    Create an AS project in FB.

    Create an FLA and have it publish to "assets.swc".

    Add the SWC into the FB project's library path.

    Add a library symbol in the FLA with linkage class "assets.MySymbol".

    Add a movieclip in the new symbol called "myMC"

    Publish FLA to SWC.

    Browse the FB Package Explorer - Referenced Libraries - assets.swc

    Verify that the 'assets -MySymbol.abc - MySymbol - myMC' item shows up

    In CS4, change the name of the movielcip to "myMC2"

    Re-Publish SWC

    Recompile FB project

    Do a right-click refresh on FB project

    New MC name is not reflected in package explorer.

    DB:2.71:[Bug] Flash Generated Swcs Not Updating In Package Explorer j8


    felixturner,

    Can you please file a bug in the public bugbase at http://bugs.adobe.com/flex/ and attach your test case?

    Thanks,

    Peter deHaan

    Flex SDK Team | Adobe Systems Inc.

  • RELEVANCY SCORE 2.71

    DB:2.71:Flash Pro Cc To Cs6 Fla Issue - Bad Library Items And New Library Items With Unicode Names z9



    I've noticed a strange issue when opening fla files in Flash Pro CS6 that have been edited in Flash Pro CC. If there are library items in the fla with names that include symbols such as "" or ".", unicode named symbols are created and the original symobls are unuseable. There are many symbols that cause the issue and the symbols just have to be a part of the name.

    Steps to reproduce:

    1) Create an fla file in Flash Pro CC.

    2) Add a single movieclip to the library with a symbol name of "".

    3) Save the file.

    4) Open the file in Flash Pro CS6.

    Results:

    Library contains 2 symbols, one named "" and one named "#062".

    Expected:

    There's one library symbol named "".

    After that double clicking the symbol named "" will do nothing and instances of the symbol will have all their content removed.

    This issue is breaking a JSFL script I wrote that loops the library items. When the script attempts to access item.layerCount the script errors out. My team is blocked from using Flash Pro CC in combination with Flash Pro CS6 because of this issue. The only good solution I can think of is to all switch to CC at the same time to avoid converting our fla files to CS6 from CC.

    Any info on a fix for this issue would be appreciated.

    DB:2.71:Flash Pro Cc To Cs6 Fla Issue - Bad Library Items And New Library Items With Unicode Names z9


    The dialog you get when you open the FLA in CS6 is that new features may not be available in CS6 so you should save it to a new file to avoid corruption. There's no "save down" from CC to CS6 (yet). So opening the file in CS6 isn't advisable in the first place.

    That said, library items are supported between them both so to your point, yes, I get the same exact behavior. A single symbol named "" in CC produces 2 library items in CS6 named "" and "#062", and the original item is lost. Although I'm not sure where I'd classify this issue being you shouldn't be opening a newer version file from an older version of the application. I did also try XFL, same issue. If they decide to create a save-down to CS6 and this still exists, I'd consider it a bug.

    As for a fix, I think about the only thing that comes to mind is identify the characters causing issues and run a JSFL in CC to rename the library item temporarily to something you know will work fine. Then once back in CS6, run the JSFL opposite to convert them back to what you want. e.g. "this that" to "this XYZ that" in CC, then "this XYZ that" to "this that" in CS6. Shouldn't be too hard to map as long as the replacement is unique.

  • RELEVANCY SCORE 2.71

    DB:2.71:Swapping Symbols 8k


    hello
    i have an instance of a movieclip and i wanted to know how
    can i swap its symbol using actionscript.
    or in other words it should look like swapping images...
    i guess it's simple and should look like item._symbol = ....
    but of course it should be something other than "symbol".

    thx

    DB:2.71:Swapping Symbols 8k

    hello
    i have an instance of a movieclip and i wanted to know how
    can i swap its symbol using actionscript.
    or in other words it should look like swapping images...
    i guess it's simple and should look like item._symbol = ....
    but of course it should be something other than "symbol".

    thx

  • RELEVANCY SCORE 2.71

    DB:2.71:How Do I Access Movieclip Children In Flex ?? cd



    I am embedding a movieclip from swf file into my flex app. This movieclip has children.

    [Embed(source="kworld_countries.swf", symbol="kworld_countries_mc")]

    [Bindable]

    public var Kw:Class;

    var _kw:MovieClipAsset = MovieClipAsset(new Kw());

    _kw.gotoAndStop(1);

    _kw.move(-500,-200);

    _kw.visible=true;

    Now, I want to add it to the stage, and for this I am using an Image:

    var kwImage:Image = new Image();

    kwImage.source = _kw;

    kwImage.x = -250;

    kwImage.y = -115;

    All this works ok. Except now I want to add event handlers to the children of _kw.

    I can reference them as _kw.child1, _kw.child2 etc, except I am now forced to use the image symbol kwImage, from which I cannot , as

    far as I understand, access children....

    All the examples I found, had MovieClipAssets, but with out referencing the movieclip children ??

    Help ??

    Thanks

    Eli7

    DB:2.71:How Do I Access Movieclip Children In Flex ?? cd


    I am embedding a movieclip from swf file into my flex app. This movieclip has children.

    [Embed(source="kworld_countries.swf", symbol="kworld_countries_mc")]

    [Bindable]

    public var Kw:Class;

    var _kw:MovieClipAsset = MovieClipAsset(new Kw());

    _kw.gotoAndStop(1);

    _kw.move(-500,-200);

    _kw.visible=true;

    Now, I want to add it to the stage, and for this I am using an Image:

    var kwImage:Image = new Image();

    kwImage.source = _kw;

    kwImage.x = -250;

    kwImage.y = -115;

    All this works ok. Except now I want to add event handlers to the children of _kw.

    I can reference them as _kw.child1, _kw.child2 etc, except I am now forced to use the image symbol kwImage, from which I cannot , as

    far as I understand, access children....

    All the examples I found, had MovieClipAssets, but with out referencing the movieclip children ??

    Help ??

    Thanks

    Eli7

  • RELEVANCY SCORE 2.71

    DB:2.71:Problem With Stage And Error #1034 1a


    Hi!

    Well I'm newbie in AS, writing it only for a 5 days and I've come across error which gives me a lot headache. I was searching for solution to it for quite some time now and didnt understand what I suppose to do with solution.

    So, here is my problem if someone is willing to take a look at it.

    Error:
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@ef6fb51 to flash.display.MovieClip. at Association_fla::MainTimeline/frame30() at flash.display::MovieClip/gotoAndStop() at Association_fla::Association_12/prikazi() at MethodInfo-32()
    I have a lot of layers and movieclips inside my fla and so pasting all of my code isn' t an option, cause there is a lot of newb, memory wasting programming it could take hours for someone to look into it.

    Problem here is, if I understood it right, that my stage isn't a movieclip as I referenced it, most probably in this section of code:

    MovieClip(parent).gotoAndPlay("result"); // in stage / association_mc

    Didn't have that error while doing same thing in other movieclips like:

    MovieClip(parent).gotoAndPlay("home"); // in stage / instructions_mc

    And last question is: How can reference my main stage? I'm using MovieClip(parent) to get to it, but I see that everyone using just stage object from Stage class
    :/

    Thank you in advance!

    Mario

    DB:2.71:Problem With Stage And Error #1034 1a

    also reports call to undefined method :/
    1061: Call to a possibly undefined method gotoAndPlay through a reference with static type flash.display:DisplayObjectContainer.

    edit:
    After numerous checking code all over again and testing and tracing everything i found out that problem occurs when going to result label at Frame 31 when playing the result_mc movie.
    going from different movieclip to it gives this errors

    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@ea9fb51 to flash.display.MovieClip.at Association_fla::MainTimeline/frame30()at flash.display::MovieClip/gotoAndPlay()at Association_fla::Association_12/prikazi()at MethodInfo-32()
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@1fc76b51 to flash.display.MovieClip.at Association_fla::MainTimeline/frame30()at flash.display::MovieClip/gotoAndStop()at Association_fla::Home_2/gotoA()
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@1fc59b51 to flash.display.MovieClip.at Association_fla::MainTimeline/frame30()at flash.display::MovieClip/gotoAndPlay()at Association_fla::Highscorescopy_36/gotoM()

    edit2:

    resolved !

    found on one forum this answer, maybe it will help someone else

    I've just had the same problem myself. A bit of detective work revealed that it has nothing to do with the code, but occurs when:The swf is being run from a remote server. You have a custom class on the stage which has an instance name. The class is NOT declared as "Export in first frame". An instance of the class doesn't appear on the first frame of the movie. So the solution, in my case, was just to tick "Export in first frame" in the library symbol linkage options. This made everything work fine, but if anyone knows why this is then I'd be interested to know.

  • RELEVANCY SCORE 2.70

    DB:2.70:Re: Removing Frames kc


    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

    DB:2.70:Re: Removing Frames kc

    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

  • RELEVANCY SCORE 2.70

    DB:2.70:Flash Cs5 Is Destroying My Movie! j3



    Hi,

    sometimes when I import pngs from a Photoshop document and try to make a movieclip with them (F8 ...) Flash is just crashing.

    And sometimes it gives me an error message that there is not enough memory.I think this happens when trying to put a png from a Photoshop import and a text or vector object from different layers into a MovieClip.

    Today I had the memory error. And after that, flash is creating a mess in my movie. It is just duplicating alles layers in a Clip and also duplicating all labels along my timeline, when I try to work on it. I tried restart but this bug apears again.

    Is there a way to heal my fla so I can deliver my project soon?

    TIA

    DB:2.70:Flash Cs5 Is Destroying My Movie! j3


    Okay, then maybe Standby mode isn't the "trigger".

    I also used Photoshop 64bit a lot. Maybe that there is a problem running 64bit and 32bit Adobe applications at the same time. Maybe that could be part of the bug... that if you start Photoshop64 (or flash does start parts of it when importing assets), the system doesn't work anymore as expected, because there are minor incompatibilities between the 64bit and 32bit applications.

    There WERE such problems when working with Bridge, though, if you mixed 32Bit and 64Bit Photoshop.

    That will be the next thing I'll be watching. It's just fishing in the dark.

  • RELEVANCY SCORE 2.70

    DB:2.70:Trouble With Loaded Jpg And Hittest 9c


    I've successfully loaded an external jpg into my swf, and I
    loaded the jpg into a nested movieclip so I could drag the jpg
    around. Everything is okay except for this: I want to use a hitTest
    so that when the movieclip with the nested jpg hits another
    movieclip, I want the jpg to take on the other movieclip's x and y
    properties on the stage. It's not working. When the movieclip with
    the nested jpg hits the other movieclip the hit occurs, but instead
    of taking on the other movieclip's x and y, it appears to be
    centering itself on the other movieclip. Oh and yes - I did check
    to make sure that the movieclip's (the one that is being hit) has
    its registration point in the upper left corner. Why is this
    happening and what can I do about it?

    Any help is much appreciated. This one's got me perplexed.

    Michael

    DB:2.70:Trouble With Loaded Jpg And Hittest 9c

    I've successfully loaded an external jpg into my swf, and I
    loaded the jpg into a nested movieclip so I could drag the jpg
    around. Everything is okay except for this: I want to use a hitTest
    so that when the movieclip with the nested jpg hits another
    movieclip, I want the jpg to take on the other movieclip's x and y
    properties on the stage. It's not working. When the movieclip with
    the nested jpg hits the other movieclip the hit occurs, but instead
    of taking on the other movieclip's x and y, it appears to be
    centering itself on the other movieclip. Oh and yes - I did check
    to make sure that the movieclip's (the one that is being hit) has
    its registration point in the upper left corner. Why is this
    happening and what can I do about it?

    Any help is much appreciated. This one's got me perplexed.

    Michael

  • RELEVANCY SCORE 2.70

    DB:2.70:Fla To Qt f7


    Can I convert an FLA to a QT?

    Jeff

    DB:2.70:Fla To Qt f7

    But be aware the AS etc will be ignored. It'll just be a linear output type deal.

  • RELEVANCY SCORE 2.69

    DB:2.69:Re: Removing Frames mz


    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

    DB:2.69:Re: Removing Frames mz

    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

  • RELEVANCY SCORE 2.69

    DB:2.69:Class 2 Fla 9s


    I found a script of a class and I would like to make a fla of
    it. unfortunatelly I haven't got any idea. Need help

    DB:2.69:Class 2 Fla 9s

    I found a script of a class and I would like to make a fla of
    it. unfortunatelly I haven't got any idea. Need help

  • RELEVANCY SCORE 2.69

    DB:2.69:Pixel Position, Based On Its Color - Attaching A Movieclip Along A Path 7p



    Hi.

    How could I find, a pixels position, based on its color?

    Lets say:

    We have a red path drawn on stage, we make it a movieclip, we make a bitmapdata of that movieclip.

    Then, I want to find the position (x and y coordenate) of a given red pixel, within the bitmapdata.

    I have a movieclip, called 'footstep';

    I have a red path movieclip, called 'path'.

    How could I attach, the 'footstep' movieclip, a number of times, within an interval, along that 'path' movieclip?

    And also, calculate the 'footstep' rotation, based on the path direction.

    Thanks.

    DB:2.69:Pixel Position, Based On Its Color - Attaching A Movieclip Along A Path 7p


    you have a black bitmapdata so there shouldn't be any match. it looks like you missed a draw() method that you might want to use:

    marcelozepgames wrote:

    Ive tried this:

    [code]

    package

    {

    import flash.display.BitmapData;

    import flash.display.Bitmap

    import flash.geom.Point

    import flash.geom.Rectangle

    import flash.display.MovieClip;

    import flash.events.*

    public class Test2 extends MovieClip

    {

    var red_bmpd:BitmapData

    var red_bmp:Bitmap

    public function Test2()

    {

    red_bmpd = new BitmapData(red_mc.width, red_mc.height, false, 0);

    red_bmpd.draw(red_mc);

    red_bmp = new Bitmap(red_bmpd)

    var targetColor:uint = 0xff0000

    var coords:Point = null;

    var color = null

    for (var i:int = red_bmpd.rect.x; i red_bmpd.rect.width; i++)

    {

    for (var j:int = red_bmpd.rect.y; j red_bmpd.rect.height; j++)

    {

    if( red_bmpd.getPixel(i, j) == targetColor ){

    trace("ok")

    color =red_bmpd.getPixel(i, j)

    coords = new Point(i, j)

    trace(coords, color)

    break

    }

    }

    }

    }

    }

    }

    [/code]

  • RELEVANCY SCORE 2.68

    DB:2.68:Importing A .Swf File Into Cs4 xp



    I have a ,swf file of about 60 frames which I wish to import into an .fla file. Every time I try to import it , I get a graphic symbol not a movie clip which is what I want. unfortunately I deleted the original .fla file it was created in. I now wish to use it. I feel a bit brain dead at the mo, so what am I doing wrong?

    Aged student.

  • RELEVANCY SCORE 2.68

    DB:2.68:Flash 8: Update Runtime Shared Asset In Authortime Environment? mk


    I have a Component that is based on an AS2.0 class (Symbol
    Properties - Linkage - AS 2.0 class) and it is exported for
    runtime sharing, ActionScript and in the first frame. In another
    .fla I have imported that MovieClip (drag and drop it from one
    library to the other) and everything works as expected.

    The problem occurs when I make changes to the class
    (specifically the [Inspectable] meta tags) those changes do not
    appear in the .fla that imports the Component.

    If I go to the shared library, right click on the component
    in the library and select "Component Definition" I see the
    new/modified parameter in the Parameters list.

    If I go to the .fla that imports the component and
    right-click on it in the library and select "Component Definition"
    I see the new/modified parameter in the Parameters list.

    If I select an instance of the component on the stage and
    view the parameters (Window-Properties-Parameters) I
    DO NOT see the new/modified parameter in the Parameters
    list.

    What do I have to do in order for all the instances of this
    shared asset to update?

  • RELEVANCY SCORE 2.68

    DB:2.68:Flash Cs4 Bug: Set Movieclip Width/Height To 1 3d


    1). Where can I submit bug reports?

    2). I have a symbol in my library which contains an 11x11
    bitmap. I drag an instance of this symbol onto the stage (inside
    another symbol). If I set the width or height of this symbol to 1,
    the width/height parameter turns grey and I can no longer edit it.
    Help?

    Thanks

    DB:2.68:Flash Cs4 Bug: Set Movieclip Width/Height To 1 3d

    Sorry about this issue - it is recorded and we're looking
    into why the text is dimming at that particular size setting. You
    can re-enable the text by using the Transform panel scale (and then
    set it to 2x2 instead). This is just a quick initial finding to fix
    your instance, there could be a more efficient way.

  • RELEVANCY SCORE 2.68

    DB:2.68:How To Access An Instance In A Different .Fla? ca



    Hi

    I am trying to add a LOAD EXTERNAL MOVIE CLIP behaviour to a button sitting in a .FLA called SERVICESMENU. I want to load a .swf titled MULTIMEDIA.SWF into an instance of an empty symbol called PAGE LOADER on a different .FLA called MAIN.FLA.

    The problem is when I am in the SERVICEMENU.FLA file, I cannot see the instances that I created in the MAIN.FLA when following the behaviours wizard so I cannot choose the PAGELOADER instance that was created in and resides in the MAIN.FLA file.

    How do i get around this?

    Hope this makes sense.

    cheers

    Angus

    DB:2.68:How To Access An Instance In A Different .Fla? ca


    Hi

    Thanks for the reply. your email went to my spam folder so just noticed it now.

    actually i think i may have solved my dilemma. i am setting up the navigation differently by using the timeline instead of trying to load external swf's. seems to be working. i will let you know how i progress. am busy watching total training dvds on this

  • RELEVANCY SCORE 2.67

    DB:2.67:Access Movieclip On Stage From Class? x7



    Hi all,

    Is it possible to access a movieclip which has been dragged onto the main stage in my FLA from an external class that i've written? Can i create a variable that refers to the object on the stage? Or does it have to be added dynamically to be accessible?

    Many Thanks

    Matt

    DB:2.67:Access Movieclip On Stage From Class? x7


    All objects that are on the stage in Frame 1 are available in the constructor to the Class. If you want to use code completion to refer to the object turn off "declare stage instances automatically" and declare the instances in the file. You can declare them as a getter/setter pair, which will allow you to know when the instance has been populated by Flash even if it is not on Frame 1.

    However, given your particular situation, you only need to break out your data and service Classes into Classes that do not extend MovieClip or Sprite. I'd suggest extending EventDispatcher, so that you can dispatch events when changes occur, such as when the load completes. When the main document Class or some other suitable Class hears that event, it can populate the variables accordingly.

    I'd suggest that you not hard code the path to the XML in importXML. Note that static functions like you're using are really bad practice, especially in combination with the hard-coded path.

  • RELEVANCY SCORE 2.67

    DB:2.67:Shared Graphics At Runtime - Won't Work s9


    Hello.

    I use Flash to produce CD content Navigators.

    I have a source fla with a library of graphics that I want to
    share. I've published the fla as a swf. The graphics properties
    have Export for runtime sharing ticked.

    In the same folder I have a destination fla that uses the
    graphic in my source fla. I've published the destination fla as an
    swf.

    My problem is that when I change a graphic in the source fla
    (and re-publish) the change isn't picked up when I run my
    destination swf.

    If I go into my destination fla and update the graphic, it
    updates from the source so I know the linkage is ok.

    I simply want my destination swf to pick up any changes at
    runtime rather than having to go into the destination fla and
    update and re-publish. Reason being I have over 50 destination
    fla's and I don't want to have to have to update and re-publish
    them all every time I make a small change via the source fla/swf.

    I've also tried this when publishing as an exe as that is the
    ultimate goal.

    Can anyone help please? Thank you, Wes John

    DB:2.67:Shared Graphics At Runtime - Won't Work s9

    Hi, thanks for the quick respone.

    I do have 'import for runtime sharing' ticked but no joy.

    I do wonder whether its the URL (in that same window). If you
    leave it blank, a message appears saying that you must specify the
    URL to import for runtime sharing. It says the URL should be the
    http:// path to the SWF file. I'm not putting in
    an
    http:// path. The source SWF is in the same
    folder as the destination so for the URL I put ./name.swf

  • RELEVANCY SCORE 2.67

    DB:2.67:Stopping A Movieclip On Rollover, But Letting The Movie Clips Inside Play 97


    I have a movie clip that bounces back and forth on the stage,
    and I need it to stop on rollover. I can do this easily with an on
    rollover action. The problem is, inside of this movie clip I have
    more movieclips that need to have on rollover animations. The stop
    action does not let these movie clips play when the mouse rolls
    over. Here is an example .fla:

    thank you in advance for your help

    Example .Fla

    DB:2.67:Stopping A Movieclip On Rollover, But Letting The Movie Clips Inside Play 97

    I have a movie clip that bounces back and forth on the stage,
    and I need it to stop on rollover. I can do this easily with an on
    rollover action. The problem is, inside of this movie clip I have
    more movieclips that need to have on rollover animations. The stop
    action does not let these movie clips play when the mouse rolls
    over. Here is an example .fla:

    thank you in advance for your help

    Example .Fla

  • RELEVANCY SCORE 2.67

    DB:2.67:Movieclip Hit Problem. jc


    MovieClip Hit area doesn't work properly. I have two
    movieclip's next to each other, one is button mode true, but the
    hit area isn't correct.
    Here is my .fla file (just an example, very simple) -
    http://www.speedyshare.com/831305914.html
    , just open and test the movie, you see it (then you roll over it
    should fade in into blue and at mouse roll out it should fade out
    back to white, but on "o" and a lit of bit on "m" hit area is
    wrong).
    How to fix this?

  • RELEVANCY SCORE 2.67

    DB:2.67:Embedding Swf Not Working Right? (Fb 4.7 Issue?) pd



    Hey guys, I recently downloaded FB 4.7 and noticed something changed when compiling and running my project.

    I have the following code in one of my classes. It simply embeds a symbol from a SWF and adds it to the stage as a MovieClip:

    [Embed(source="/../lib/swfs/splash_screens.swf", symbol="Splash1")]

    private static const Splash1:Class;

    ...

    _splash1 = new Splash1();

    addChild(_Splash1);

    _splash1.play();

    Now, in this MovieClip in the FLA there are two layers, one layer is a bunch of vector animation and the second layer is the background (as an imported Bitmap) - no animation.

    The problem is that second layer with the background doesn't show up in my project after I've embedded and added the MovieClip to the stage, it's as if the MovieClip has a transparent background with just the first layer with all of the vector animation showing up.

    Things I've tried/noted:
    The background layer is not a guide and is visible if I play the raw SWF to just see what it looks likeIf I add other layers and just draw nonsense on them, etc - they do show upIf I trace the background Bitmap (turns it into vector art) it will show upIf I convert the background Bitmap to a Graphic or MovieClip and then put it on the stage, it still doesn't show upIt seems FB 4.7 is grabbing the correct symbol from the library, it's just not grabbing the background (which is also in the library, as an imported Bitmap) which I feel it should, since it's included in the MovieClip symbol

    Now I understand there are workarounds that I can always use as a last resort (embedding the background JPG and adding it to the stage as a Bitmap separately at runtime), but I'd prefer to have this working correctly so if things change visually in the future, it's less work for me.

    I'm pretty sure when I originally coded this when using FB 4.6 I did not have this issue (and since then nothing has changed at all, not the code or the SWF file). This is why I'm led to believe it's either a FB 4.7 issue or maybe there's something extra I need to do to the FLA before exporting the SWF file.

    Any help appreciated!

    DB:2.67:Embedding Swf Not Working Right? (Fb 4.7 Issue?) pd


    I had this problem yesterday and I spent about 2 hours to find out. It's another bug of Flash Builder 4.7, it seems:

    Bitmaps need an alpha channel! I found out, because all bitmaps with alpha were showing right and just the background was invisible (but it was there, the size of the containing movie clip was correct). So I cleared a little part of the background with the "rubber" and then it worked...

  • RELEVANCY SCORE 2.66

    DB:2.66:Running A Function On A Different Movieclip 3f


    Here's how I've got my stuff laid out:

    main_mc (movieclip)
    - maincode(movieclip)
    - text1(movieclip)

    I've got a bunch of code on the maincode movieclip. On there
    I have a function called "enablebuttons", which enables buttons
    that are on that movieclip.

    On the text1 movieclip, I've got a button on which I would
    like to run the function "enablebuttons" on the maincode movieclip.

    Is this possible to do? Or will I have to make another
    function on the text1 movieclip and specifically enable the buttons
    on the maincode movieclip?

    DB:2.66:Running A Function On A Different Movieclip 3f

    Josh,

    That isn't working... I can't even seem to just try
    and enable a single button with code from the
    button.

    It sounds like you're just groping in the dark, is all.

    back.onRelease = function() {
    _parent.maincode.enablebuttons();
    play();
    }
    This still doesn't enable the buttons, which it seems
    like it should..

    That depends entirely on the structure of your objects.
    Let's say back
    is a button. If so, it may be a button symbol. If so, it's an
    instance of
    the Button class. Look up the Button class -- does it have an
    onRelease
    event? Yes. :) Cool. So far, so good. Now we're in a function
    literal
    assigned to that event. The _parent property is invoked, so
    now we're
    looking at the timeline in which this button resides. If this
    parent
    timeline contains an object (a movie clip, say) with the
    instance name
    maincode, then that object will be checked for a function
    named
    enablebuttons().

    Is that your set up? Is that function inside maincode
    properly pathed
    back to this button? These paths are essentially the same as
    foldersn your
    hard drive. Thing of the hierarchy in terms of that analogy.

    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • RELEVANCY SCORE 2.66

    DB:2.66:Error #1009 When Loading Swf !!! xj



    i create an swf ( game )

    i want to load it to another fla

    but every swf work fine

    except this game

    code of the game

    stop();

    import flash.events.MouseEvent;

    var circleStartPoints: Array = new Array(new Point(r1.x,r1.y),new Point(y1.x,y1.y),new Point(g1.x,g1.y));

    var lines:Array = new Array(line, line2, line33);

    var dragtargets:Array = new Array(r1,y1,g1);

    var droptargets:Array = new Array(r2,y2,g2);

    //this is to indicate whether any dragtarget is active ; -1 stands for all are non-active

    var currentDropIndex:int = -1;

    var winSound:heeh = new heeh();

    stage.addEventListener(Event.ENTER_FRAME, followMouse);

    function _hide(_arr:Array):void

    {

    for (var i:int = 0; i _arr.length; i++)

    {

    _arr[i].alpha = 0;

    }

    }

    function _makeInteractiv(_arr:Array):void

    {

    for (var i:int = 0; i _arr.length; i++)

    {

    _arr[i].buttonMode = true;

    _arr[i].addEventListener(MouseEvent.CLICK,dragClickHandler);

    }

    }

    function dragClickHandler(e:MouseEvent):void

    {

    e.currentTarget.alpha = 1;

    e.currentTarget.addEventListener(MouseEvent.MOUSE_MOVE,followMouse);

    //the pairing matches have to be in the same order in dragtargets as in droptargets for this to work and also the corresponding lines

    currentDropIndex = dragtargets.indexOf(e.currentTarget);

    trace("currentDropIndex:"+currentDropIndex);

    }

    function checkCollision(_drag:MovieClip,_drop:MovieClip):Boolean{

    if(_drag.hitTestObject(_drop)){

    trace("TRUE");

    return true;

    }

    else{

    trace("FALSE");

    return false;

    }

    }

    function followMouse(e:Event):void{

    if(currentDropIndex!=-1){

    MovieClip(dragtargets[currentDropIndex]).x = mouseX;

    MovieClip(dragtargets[currentDropIndex]).y = mouseY;

    if(checkCollision(MovieClip(dragtargets[currentDropIndex]),MovieClip( droptargets[currentDropIndex]))){

    trace("COLLIDES");

    //when collision with right target happens remove MovieClip from stage

    e.currentTarget.alpha = 0;

    lines[currentDropIndex].alpha = 1;

    currentDropIndex = -1;

    if(testIfAllValid()){

    winSound.play();

    reset_bt.alpha = 1;

    }

    }

    }

    }

    function testIfAllValid():Boolean

    {

    var counter:int = 0;

    for (var i:int; i lines.length; i++)

    {

    if (lines[i].alpha == 1)

    {

    counter++;

    }

    }

    if (counter == lines.length)

    {

    counter = 0;

    return true;

    }

    else

    {

    return false;

    }

    }

    //this code executes in the beginning of the game

    _hide(lines);

    _hide(dragtargets);

    _makeInteractiv(dragtargets);

    /* Mouse Click Event

    Clicking on the specified symbol instance executes a function in which you can add your own custom code.

    Instructions:

    1. Add your custom code on a new line after the line that says "// Start your custom code" below.

    The code will execute when the symbol instance is clicked.

    */

    reset_bt.addEventListener(MouseEvent.CLICK, resetCircles);

    function resetCircles(event:MouseEvent):void

    {

    r1.x=circleStartPoints[0].x;

    r1.y=circleStartPoints[0].y;

    y1.x=circleStartPoints[1].x;

    y1.y=circleStartPoints[1].y;

    g1.x=circleStartPoints[2].x;

    g1.y=circleStartPoints[2].y;

    //same code as at the start

    _hide(lines);

    _hide(dragtargets);

    _makeInteractiv(dragtargets);

    currentDropIndex= -1;

    }

    why i cant load this ?

    DB:2.66:Error #1009 When Loading Swf !!! xj


    it's not an erroneous error if a loaded swf has runtime errors.

    this is an excerpt from a book i wrote:

    With file loading (asynchronous) errors, there will only be one line in the error message and despite ticking "Permit debugging", there won't be any information that will help you pinpoint the load method that triggered the error. Fortunately, because that error message will occur shortly after your problematic load method, it is usually easy to determine which (if you have more than one) load method triggered the error.

    If you have a number of load methods and it is not quick and easy to determine which load method triggered the error, you can use the trace() function. Because run-time errors only stop code execution in the scope (defined in chapter 2) of the problematic code and only stop the code that runs after the error, trace() function output just before the problematic line of code will work and trace() function output just after the problematic line of code will fail. Using that information will always allow you to pinpoint the line of code that triggers a load error.

  • RELEVANCY SCORE 2.66

    DB:2.66:Passing Variable With Function In As3 sj


    This is a function on the first frame of a .fla updated to AS3 from an old AS2 file:

    function initialize() {

    MovieClip(root).stage_target_mc.max_messages = 600;

    }

    When the function is called it should set "max_messages" to 600 in AS3, right?

    Thanks

    DB:2.66:Passing Variable With Function In As3 sj


    Only if the function is called. If this is going to be a set value that applies any time, then you don't need that line in a function, and if it's on the main timeline, you don't need the root reference.

  • RELEVANCY SCORE 2.66

    DB:2.66:Skinning A Component With As s9


    Hi all,

    I'm trying to change the graphics on the UIScrollBar
    component (which is attached to a scrollpane). Problem is, any that
    I specify an alternate movieclip (skin) for are not showing up. For
    example, if I specify the mouse over clip for the scrollbars
    arrows, they disappear.

    I opened the standard and halo theme provided FLA files and
    copied the entire ScrollBar Assets folder over to my project. I
    altered the graphics and just tried it like this (making sure asset
    MCs were export in first frame). That had no effect. I then
    specified some changes in the init portion of my
    createClassObject() (e.g. {ScrollUpArrowOver:"SomeValidLinkageID"})
    but the clip just keeps disappearing. Since the change is global to
    my whole project I started adding it to the prototype (e.g.
    mx.controls.UIScrollBar.prototype.upArrowOverName =
    "SomeValidLinkageID";), and that does (you guessed it), the same
    thing.. disappears!

    How can I change the graphics on a scrollpane components
    scrollbar that I'm dynamically adding via createClassObject()??

    Thanks for any info!

    edit:

    I should note that if I comment out the prototype lines or
    the init object declarations and such, the scrollpanes scrollbar
    goes back to normal. So I'm sure I'm affecting the right scrollpane
    with the code. I copied the assets from the FLAs flash comes with
    (via open external library and dragging into my project) so I'm
    sure the movieclips I'm using are good (I didn't make 'em). I
    didn't make any drastic changes to the movieclips, I literally
    changed the themeColor of the clips, just to see if I could do it
    so it can't be some wacky movieclip issue. I also tried enabling
    export on first frame for each clip I'm using as a skin (and tried
    with export in first frame disabled) and neither have any
    effect.

    DB:2.66:Skinning A Component With As s9

    Hi all,

    I'm trying to change the graphics on the UIScrollBar
    component (which is attached to a scrollpane). Problem is, any that
    I specify an alternate movieclip (skin) for are not showing up. For
    example, if I specify the mouse over clip for the scrollbars
    arrows, they disappear.

    I opened the standard and halo theme provided FLA files and
    copied the entire ScrollBar Assets folder over to my project. I
    altered the graphics and just tried it like this (making sure asset
    MCs were export in first frame). That had no effect. I then
    specified some changes in the init portion of my
    createClassObject() (e.g. {ScrollUpArrowOver:"SomeValidLinkageID"})
    but the clip just keeps disappearing. Since the change is global to
    my whole project I started adding it to the prototype (e.g.
    mx.controls.UIScrollBar.prototype.upArrowOverName =
    "SomeValidLinkageID";), and that does (you guessed it), the same
    thing.. disappears!

    How can I change the graphics on a scrollpane components
    scrollbar that I'm dynamically adding via createClassObject()??

    Thanks for any info!

    edit:

    I should note that if I comment out the prototype lines or
    the init object declarations and such, the scrollpanes scrollbar
    goes back to normal. So I'm sure I'm affecting the right scrollpane
    with the code. I copied the assets from the FLAs flash comes with
    (via open external library and dragging into my project) so I'm
    sure the movieclips I'm using are good (I didn't make 'em). I
    didn't make any drastic changes to the movieclips, I literally
    changed the themeColor of the clips, just to see if I could do it
    so it can't be some wacky movieclip issue. I also tried enabling
    export on first frame for each clip I'm using as a skin (and tried
    with export in first frame disabled) and neither have any
    effect.

  • RELEVANCY SCORE 2.65

    DB:2.65:Stopping A Movieclip On Rollover, But Letting The Movie Clips Inside Play fk


    I have a movie clip that bounces back and forth on the stage,
    and I need it to stop on rollover. I can do this easily with an on
    rollover action. The problem is, inside of this movie clip I have
    more movieclips that need to have on rollover animations. The stop
    action does not let these movie clips play when the mouse rolls
    over. Here is an example .fla:

    thank you in advance for your help

    Example .Fla

    DB:2.65:Stopping A Movieclip On Rollover, But Letting The Movie Clips Inside Play fk

    Only the top level object will receive the event, the
    rollover. You can send a command to an encapsulated object from the
    parent object.

    You need to name your movie clip instances and then write
    your actionscript to those objects in a frame actions space rather
    than attaching your code directly to the object. This will allow
    you to address those interior objects and get them to do what you
    want.

  • RELEVANCY SCORE 2.65

    DB:2.65:Can Someone Please Help Me Code Scrollbars To Scroll A Movieclip? d8


    Hi guys,

    Thanks for the interest in my post...

    I've created a scrollbar with up and down buttons for a site
    in Flash 8 but the up button was behaving very oddly even though
    there were no syntax errors.

    Because of this I have decided to start again as nobody could
    find what was going wrong.

    I've created an fla (www.spindriftmedia.com/scroll.fla) with
    all all the elements that will be used but would really appreciate
    it if you wouldn't mind taking a few moments to add the code to the
    buttons and dragger to make it work if that's alright please. I've
    looked all over for tutorials but just can't find anything relevant
    other than the one I used originally.

    Thank you very much and I hope to hear from you.

    Take care,

    Mark

    DB:2.65:Can Someone Please Help Me Code Scrollbars To Scroll A Movieclip? d8

    Hi guys,

    Thanks for the interest in my post...

    I've created a scrollbar with up and down buttons for a site
    in Flash 8 but the up button was behaving very oddly even though
    there were no syntax errors.

    Because of this I have decided to start again as nobody could
    find what was going wrong.

    I've created an fla (www.spindriftmedia.com/scroll.fla) with
    all all the elements that will be used but would really appreciate
    it if you wouldn't mind taking a few moments to add the code to the
    buttons and dragger to make it work if that's alright please. I've
    looked all over for tutorials but just can't find anything relevant
    other than the one I used originally.

    Thank you very much and I hope to hear from you.

    Take care,

    Mark

  • RELEVANCY SCORE 2.65

    DB:2.65:Error Trying To Change Linkage Of An Object xp


    I was trying to change the linkage of an object from a .fla already created and with some linkages. Here are the steps to reproduce:

    1. Create a new ActionScript 3.0 .fla file
    2. Create a 2 Symbols (as MovieClip), name it and put some linkage.
    3. Save Close the file.
    4. Open the saved file.
    5. Try to change the linkage (by elimination or rename) -- YOU CAN'T!

    This is a disgusting error, I can't work with these.

    Please. Help!

    DB:2.65:Error Trying To Change Linkage Of An Object xp


    Tried to reproduce the error,didnt get it

    what is the exact error u get.

    I was able to change the linkage name.

  • RELEVANCY SCORE 2.64

    DB:2.64:Bug: Cannot Attach After Failed Loadclip 9m


    Hi, this is sort of a bug report unless somebody in this forum can prove me wrong. I've stumbled several times across this problem in my project always scratching my head of this undesirable behavior until i finally decided to create a simpler script to reproduce the problem. Here it goes. If you attempt to load an image into a movie clip and the load fails, you are unable to attach a library movie clip to it. The code below is from the fla file i attached herewith. All you need is a movieclip in your library with linkage name "Attach_MC" and this script in a 1-frame fla file. Or just download the fla file. What i am trying to do is attach a movieclip with a graphic that says "loading failed" if the load fails, so that it won't be blank but i can't do it unless perhaps by a workaround by placing a reserve clip in the same place (i.e. under a mask).

    import mx.utils.Delegate;

    var mcGlobal:MovieClip = this.createEmptyMovieClip("Stage_MC", 0);

    var cLoader:MovieClipLoader = new MovieClipLoader();

    var oListener:Object = new Object();

    oListener.onLoadInit = Delgate.create(this, onLoadSuccess);

    oListener.onLoadError = Delegate.create(this, onErrLoad);

    cLoader.addListener(oListener);

    cLoader.loadClip("intentional_wrong_path", mcGlobal);

    function onLoadSuccess(fSuccess:Boolean):Void {}

    function onErrLoad(mcClip:MovieClip):Void

    {

    trace("Clip: " + mcClip); //Exists = mcGlobal

    var mcNested:MovieClip = mcClip.createEmptyMovieClip("Empty_MC",0);

    trace("Empty_MC: " + mcNested); //Creating Empty MC works

    //But attaching does not work!!! Undefined!!

    var mcAtt1:MovieClip = mcNested.attachMovie("Attach_MC", "Att_MC", 10);

    var mcAtt2:MovieClip = mcClip.attachMovie("Attach_MC", "Att_MC", 10);

    trace("Att1_MC: " + mcAtt1);

    trace("Att2_MC: " + mcAtt2);

    }

    Any responses pertaining to this problem are highly appreciated.

    DB:2.64:Bug: Cannot Attach After Failed Loadclip 9m


    Hi,

    Can we find the name of wrong file? If yes, please sugguest me the code.

  • RELEVANCY SCORE 2.64

    DB:2.64:Re: Removing Frames 93


    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

    DB:2.64:Re: Removing Frames 93

    Are you trying to remove frames from Video file ?

    In my FLA file I have a movieclip created by using
    Insert---New
    Symbol---movieclip
    Then I import an AVI file onto the stage of that movieclip.
    As a result I
    have about 250 frames created in the movieclip timeline. Now
    I wanted to
    remove some of them

  • RELEVANCY SCORE 2.64

    DB:2.64:As2 Equivalent Of Document Class? 8m



    Is there a way in AS2 to approxmiate the functionality of assigning a document class to a FLA/published swf?

    I would like to publish a swf that is an instance of a Topic class (extends movieclip). For various reasons I can't use AS3, but I would really like to emulate that part. Any ideas?

    DB:2.64:As2 Equivalent Of Document Class? 8m


    Found this. I think it will work!

    http://www.bit-101.com/blog/?p=857

  • RELEVANCY SCORE 2.64

    DB:2.64:Change Textfield On Button At Runtime jz


    I have a movieclip in my symbol library named "sButton",
    inside this symbol there is a textfield named "tLabel".
    when I attach this clip at runtime...
    this.attachMovie("sButton", "mcNew",
    this.getNextHighestDepth());
    ... I am able to change the label inside the movieclip
    with...
    this.mcNew.tLabel.text = "some new label text";

    Now when I change the symbol type from 'movieclip' to
    'button', I can't change the textfield contents anymore... the
    compiler accepts the code, but at runtiime the textfield is not
    changed. Is there a way to address the elements of a button symbol
    at runtime

    Thanks,

    P

    DB:2.64:Change Textfield On Button At Runtime jz

    I have a movieclip in my symbol library named "sButton",
    inside this symbol there is a textfield named "tLabel".
    when I attach this clip at runtime...
    this.attachMovie("sButton", "mcNew",
    this.getNextHighestDepth());
    ... I am able to change the label inside the movieclip
    with...
    this.mcNew.tLabel.text = "some new label text";

    Now when I change the symbol type from 'movieclip' to
    'button', I can't change the textfield contents anymore... the
    compiler accepts the code, but at runtiime the textfield is not
    changed. Is there a way to address the elements of a button symbol
    at runtime

    Thanks,

    P

  • RELEVANCY SCORE 2.63

    DB:2.63:Duplicate Movieclip In As3 8d



    I am developing an iOS app within Flash Builder 4.5.

    My application loads a library of graphics. The library of graphics is composed of a bunch of movieclips sitting on the main timeline which has only a single frame.

    I then parse through all the children and in correlation with an XML structure, i determine whether :

    1 - i will draw the child as a bitmapData and save it in memory to later on reinstantiate it as often as possible

    2 - keep the childs constructor class to later reinstantiate it as a movieClip object.

    Unfortunately, i can't put linkage classes in a loaded SWF. therefore the constructor class of #2 is always movieclip. When i try to recreate it, i always get an empty movieClip.

    Is there a way to copy the entire timeline of a loaded movieClip that doesn't have a linkage identifier?

    Thanks in advance.

    DB:2.63:Duplicate Movieclip In As3 8d


    then you won't be able to load and use classes in an external swf.

  • RELEVANCY SCORE 2.63

    DB:2.63:Flash Hangs Because Of Too Many Nested Symbols zj


    I am trying to create an Flash application where areas expand
    when the user pushes a button which pushes the rest of the GUI down
    as it expands. To accomplish this, I have every line of the GUI (it
    is a chart-looking interface) nested in the symbol above it,
    creating nested movieclip, inside of nested movieclip, etc. This
    way when the user clicks to expand the section to view more
    details, it will move down all the symbols. Eventually this causes
    my Mac g5 to hang indefinitely when trying to put the last groups
    together.

    Do you think it is the many nested symbols that are causing
    this? They go as far as 9 deep sometimes. My 400KB fla file will
    end up taking 1 GB of memory and spiking the CPU at 100%, and, of
    course, is not responding. Thank you.

    DB:2.63:Flash Hangs Because Of Too Many Nested Symbols zj

    Make an official bug report on this. I and a few others have
    experienced the identical problem, using PCs, but are unable to
    supply sample files for Adobe to test due to confidentiality
    restrictions. If you can supply Adobe with your sample file, maybe
    they can figure out the problem and fix it.

    By the way, the problem never occurred for me in previous
    versions of Flash.

    Please report it here ASAP:

    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • RELEVANCY SCORE 2.63

    DB:2.63:Movieclip Transitions Onrelease 1c


    Hi Folks!

    I have a Flash movie containing three Movieclips and three
    Buttons, one for each clip. As you might imagine, when you click on
    each button, it unloads the previous clip and plays the new
    selected movie clip in the centre of the page. See the following
    FLA file I created (with assistance from Flash built in help):

    http://www.amplexus.com.au/source/photo-slideshow-allen04.fla


    What I would like to be able to do is make it so that each
    movieclip transitions into the next one a little nicer when the
    button is clicked. To be more precise; on the click of a button I
    would like a black-square to slide down over the currently playing
    movieclip and when it slides back up to the top again, it reveals
    the new movieclip playing underneath.

    Q: WHAT IS THE BEST WAY TO DO THIS?

    I have tried two approaches.
    1) The button feeds the appropriate data into the variables
    in frame1 of the main timeline (on button release). The
    black-square then slides down in the main movie timeline. At the
    point where it is totally covering the current movieclip it
    populates the new attachmovie data and in theory, should be playing
    the new clip as the black-square returns to the top. See the FLA
    file below to see what I mean:


    2) The main timeline is only one frame long and on button
    release, a movieclip of the black-square is played over the top of
    the currently playing movieclip. The black-square movie clip, as
    with the approach above, has the new clip populated at the same
    halfway-point and it's covering the movie below it.

    http://www.amplexus.com.au/source/photo-slideshow-allen06.fla

    I couldn't get either to work!!


    Can somebody show me how to do this? Or otherwise, tell me
    the best approach to take (not necessarily one of the two
    approaches above!). Any help is very much appreciated!!!

    Cheers,

    Stanbridge
    csjacks (AT) hotmail (DOT) com

    PS: I searched these forums and found a couple of useful
    fadein/out transitions but nothing explaining exactly what I'm
    after. If I missed one, let me know!

    DB:2.63:Movieclip Transitions Onrelease 1c

    ======================================
    For people searching for the same thing I was....

    TWO ANSWERS:

    Glazer's Solution:

    http://www.go-commonwealth.com/flash/source/photo-slideshow-allen04a.fla

    Kirupa Solution:

    http://www.kirupa.com/developer/mx/preloader_transition.htm
    ======================================

    Cheers Glazer!

    That's brilliant! Exactly what I'm after! It's clearer too
    and I can follow it!

    About 5 MINUTES before I got your reply I found another
    workable example at the following location:

    http://www.kirupa.com/developer/mx/preloader_transition.htm
    The above example preloads each movieclip after the
    respective button is clicked.

    Your version is more what am after though as I'm going to be
    preloading everything in one hit at the start of the movie.

    Many many thanks for your time and effort! VERY much
    appreciated!

    Cheers mate!

    Stanbridge
    csjacks (AT) hotmail (DOT) com

  • RELEVANCY SCORE 2.62

    DB:2.62:Starting A Flash Movie From The End kj


    Hi all, this is my first post on this forum, so happy new
    year!

    I'm very confused and very stuck with something in a flash
    project im constructing at work. My flash movie is made up of a
    container movie (Shell.swf) and several other movies which are
    loaded into a movieclip called Contents when they are needed.

    I've made a simple mockup of some files containing the code I
    have implemented already.

    http://www.sigraham.com/Rewind/Shell.swf

    What I am trying to achieve is the following...

    After clicking on the section3 button, I want to then be able
    to press the rewind button and watch the ball track backwards, then
    load section 2 and play the ball from right to left and again for
    section 1.

    Basically, playing the entire movie in reverse.

    Here are the .FLA files....

    www.sigraham.com/Rewind/Shell.fla
    www.sigraham.com/Rewind/Section1.fla
    www.sigraham.com/Rewind/Section2.fla
    www.sigraham.com/Rewind/Section3.fla

    If someone could have a quick look at my code and tell me
    where I'm going wrong, it would be much appreciated.

    Many thanks.

    Si.

    DB:2.62:Starting A Flash Movie From The End kj

    Stopping on last frame of a MovieClip:
    movieClip_mc.stop();

    Going to and stopping on last frame of a MovieClip:
    movieClip_mc.gotoAndStop(movieClip_mc._totalframes);

    If you are loading external swfs and need to control them,
    then use the MovieClipLoader class and you can apply the methods to
    the container MovieClip. You would use the onLoadStart to stop on
    frame 1. That first frame can be blank or you could make the clip's
    _visible property false at that method. You would use the
    onLoadComplete to gotoAndStop on the _totalframes value.

  • RELEVANCY SCORE 2.62

    DB:2.62:Typeerror: Error #1010: A Term Is Undefined And Has No Properties 1d



    Hi guys sorry to be an absolute noob im struggling with this problem as I see a few others have experienced this too. Ive searched high and low online for answers and I just cant figure out what the problem is!

    Here is the error I get when I debug:-

    TypeError: Error #1010: A term is undefined and has no properties. at main_cs3_fla::Animationcontentstart_30/frame76()[main_cs3_fla.Animationcontentstart_30::f rame76:7]

    and it points me to this line of code:-

    if (MovieClip(root).linkPage==1) { gotoAndPlay("s3"); } MovieClip(root).slide_show.stop(); MovieClip(root).slide_show_flag=0; MovieClip(root).footer.slide_control.txt.gotoAndStop(2); MovieClip(root).animation =false;

    Im struggling to work out what the problem is and if anyone could be so kind to help me out here I would be truly grateful - I can also send you a link to the .fla for anyone to have a quick look at. Thanks in advance guys!

    LT

    DB:2.62:Typeerror: Error #1010: A Term Is Undefined And Has No Properties 1d


    That is several lines of code that you show, so for starters you need to break it up into separate lines so that you can isolate the problemed line more easily.

    When you get the one line determined, use the trace command to see what element of that line is causing the problem.

  • RELEVANCY SCORE 2.62

    DB:2.62:Dumb Question About Using Interfaces pj


    I'm sure this is a dumb question, but was hoping someone
    could educate me a bit. I have a class (MyClass) which is a
    subclass of MovieClip. That class implements a couple methods that
    I have defined in an interface (MyInterface) so MyClass extends
    MovieClip implements IMyInterface. Then I have some symbols in a
    library which each have a linkage class name assigned. Each of
    these different classes are subclasses of MyClass.

    I have another .fla which loads the .swf and then
    instantiates the classes in the library and then adds the symbol to
    the display list.

    var classRef:Class = swfAppDomain.getDefinition("MySubclass")
    as Class;
    var class:MyClass = new classRef() as MyClass;
    addChild(class);

    All of this works just fine. My question is I thought it
    would be better to do something like
    var class:IMyInterface = new classRef() as IMyInterface.

    However, I get compiler complaints that class is not a
    DisplayObject so it doesn't want to do the addClass() and later I
    get complaints about addEventListener and removeEventListener being
    undefined methods on my IMyInterface type.

    I understand why that is true, since being a DisplayObject
    and having those methods is a result of MyClass being a subclass of
    MovieClip and none of that is defined in IMyInterface. So is my
    current method of saying
    var class:MyClass = new classRef() as MyClass;
    the best/only way to do what I want, or is there a better
    practice way to use interfaces intelligently.

    Thanks very much in advance for help from you pros out
    there.

    DB:2.62:Dumb Question About Using Interfaces pj

    I'm sure this is a dumb question, but was hoping someone
    could educate me a bit. I have a class (MyClass) which is a
    subclass of MovieClip. That class implements a couple methods that
    I have defined in an interface (MyInterface) so MyClass extends
    MovieClip implements IMyInterface. Then I have some symbols in a
    library which each have a linkage class name assigned. Each of
    these different classes are subclasses of MyClass.

    I have another .fla which loads the .swf and then
    instantiates the classes in the library and then adds the symbol to
    the display list.

    var classRef:Class = swfAppDomain.getDefinition("MySubclass")
    as Class;
    var class:MyClass = new classRef() as MyClass;
    addChild(class);

    All of this works just fine. My question is I thought it
    would be better to do something like
    var class:IMyInterface = new classRef() as IMyInterface.

    However, I get compiler complaints that class is not a
    DisplayObject so it doesn't want to do the addClass() and later I
    get complaints about addEventListener and removeEventListener being
    undefined methods on my IMyInterface type.

    I understand why that is true, since being a DisplayObject
    and having those methods is a result of MyClass being a subclass of
    MovieClip and none of that is defined in IMyInterface. So is my
    current method of saying
    var class:MyClass = new classRef() as MyClass;
    the best/only way to do what I want, or is there a better
    practice way to use interfaces intelligently.

    Thanks very much in advance for help from you pros out
    there.

  • RELEVANCY SCORE 2.62

    DB:2.62:Inconsistent Printing From An Fla sk


    I am Using Flash MX and Flash 2004.

    When I insert jpgs into a keyframe and then try to print out
    that page while I am editing the FLA, I get strange results.

    Sometimes the jpg prints blank sometimes it is solid blackand
    sometimes it prints perfectly. This is true if it is a jpg, broken
    apart, a graphic, or a movieclip.

    any ideas?

    Thanks,

    DB:2.62:Inconsistent Printing From An Fla sk

    I am Using Flash MX and Flash 2004.

    When I insert jpgs into a keyframe and then try to print out
    that page while I am editing the FLA, I get strange results.

    Sometimes the jpg prints blank sometimes it is solid blackand
    sometimes it prints perfectly. This is true if it is a jpg, broken
    apart, a graphic, or a movieclip.

    any ideas?

    Thanks,

  • RELEVANCY SCORE 2.62

    DB:2.62:Buttons Breaking When Embedding Movie Clips (Cs4). What The?! f1



    This is KILLING me. Its the most trivial problem ever, but I can't for the life of me figure out WHY its happening.

    First frame with button named "play_btn":

    stop();play_btn.addEventListener(MouseEvent.CLICK, playGame);function playGame(evt:MouseEvent):void{ gotoAndPlay(2);}

    Second frame with button named "ball_btn" (this button has the embedded movieclip):
    stop();ball_btn.addEventListener(MouseEvent.CLICK, selBall);function selBall(evt:MouseEvent):void{ trace("Ball!");}

    Basically, In a game i'm making, I have a bunch of buttons with embedded movieclips to create shine effects. They all worked fine, untill I created a main menu with buttons on a new frame. Then it gives me this error:

    TypeError: Error #1009: Cannot access a property or method of a null object reference. at buttonGimp_fla::MainTimeline/frame2() at flash.display::MovieClip/gotoAndPlay() at buttonGimp_fla::MainTimeline/playGame()

    I've tried re-creating the buttons from scratch and everything. What really bothers me is that its only a bug when the buttons are on the second frame, and only with an embedded movieclip with alpha. What an obscure problem!

    You can download a .fla here with everything scrapped away except for the absoulte basics (50kb):

    http://drop.io/b031ndu

    If you delete the first frame, you'll find the button starts working!

    You should be able to host your own new versions of the .fla here by clicking "add"

    WHAT THE HECK GUYS?! What am I doing wrong?!

  • RELEVANCY SCORE 2.62

    DB:2.62:Adding A Child xs


    Help!
    I'm not understanding how to add a child to a MovieClip. When
    I put in

    Oregon.addChild(Baker);

    where Oregon is a MovieClip converted to a symbol and
    Baker is also a MovieClip converted to a symbol and on the
    flash timeline, I get the following error:

    1017: The definition of base class MovieClip was not
    found.�

    Any ideas for this clueless newbie?

    DB:2.62:Adding A Child xs

    I typed:
    var miniMultnomah:MovieClip = new multnomah();
    where multnomah is an instance name of a county Multnomah
    and got the following error:
    1180 call to a possibly undefined method multnomah

  • RELEVANCY SCORE 2.61

    DB:2.61:Quick Problem / Error 1067 3f



    Real simple program. Basically plots a dot wherever you click. Getting the error 1067: Implicit coercion of a value of type Class to an unrelated type Function.

    package { import flash.display.MovieClip; import flash.events.MouseEvent;

    public class particle extends MovieClip { //private var _xmouse:Number; //private var _ymouse:Number; private var mc1:MovieClip = new MovieClip(); private var mc2:MovieClip = new MovieClip(); private var mc3:MovieClip = new MovieClip(); private var mc4:MovieClip = new MovieClip(); private var mc5:MovieClip = new MovieClip(); public function particle() { // mc1.graphics.beginFill(0xFF0000, .2); mc1.graphics.drawCircle(mouseX,mouseY,5); this.addChild(mc1); // mc2.graphics.beginFill(0xFF0000, .2); mc2.graphics.drawCircle(mouseX,mouseY,4); this.addChild(mc2); // mc3.graphics.beginFill(0xFF0000, .4); mc3.graphics.drawCircle(mouseX,mouseY,3); this.addChild(mc3); // mc4.graphics.beginFill(0xFF0000, .6); mc4.graphics.drawCircle(mouseX,mouseY,2); this.addChild(mc4); // mc5.graphics.beginFill(0xFF0000, 1); mc5.graphics.drawCircle(mouseX,mouseY,1); this.addChild(mc5); addEventListener (MouseEvent.CLICK, particle); } }}

    Thanks a ton

    DB:2.61:Quick Problem / Error 1067 3f


    My hero.

    I was trying to use root. Duh. Thank you so much, I really appreciate it.

  • RELEVANCY SCORE 2.61

    DB:2.61:Copying Frames Between Fla's Freezes Program dp



    Flash newb. Trying to make a news flash ad banner. I have constructed the rectangle now I need to make the cube, hopefully with the same timing of animations and tweens. I have made this first .fla AS 2.0, player 6 and imported a large number of elements directly from Illustrator so that I have a number of folders in my lib such as "flash0.ai_1"

    First fla is fine. When I select a layer and copy frames and paste them into a fla.2 with same settings I experience almost a complete freeze of the program. The new pasted frames do not show up. I have to minimize and restore the program to see the pasted tween/symbol/frames. Then whichever fla I'm in, I cannot select or do anything - or rather I am selecting things, it's just not showing me doing anything. I have to min/restore to see anything that I've done.

    I assume that in copying a tweened symbol based off a simple/complex .ai import there is some issue?

    I'd just as soon not have to build this thing from scratch when I already have a fine fla ready to be resized. Any suggestions? Lord have I tried to avoid this program lo these many years.

    DB:2.61:Copying Frames Between Fla's Freezes Program dp


    Flash newb. Trying to make a news flash ad banner. I have constructed the rectangle now I need to make the cube, hopefully with the same timing of animations and tweens. I have made this first .fla AS 2.0, player 6 and imported a large number of elements directly from Illustrator so that I have a number of folders in my lib such as "flash0.ai_1"

    First fla is fine. When I select a layer and copy frames and paste them into a fla.2 with same settings I experience almost a complete freeze of the program. The new pasted frames do not show up. I have to minimize and restore the program to see the pasted tween/symbol/frames. Then whichever fla I'm in, I cannot select or do anything - or rather I am selecting things, it's just not showing me doing anything. I have to min/restore to see anything that I've done.

    I assume that in copying a tweened symbol based off a simple/complex .ai import there is some issue?

    I'd just as soon not have to build this thing from scratch when I already have a fine fla ready to be resized. Any suggestions? Lord have I tried to avoid this program lo these many years.

  • RELEVANCY SCORE 2.61

    DB:2.61:Fix The Position Of The Movieclip j9



    Hello all,

    yesterday i got solution from murphy that to load the xml value in a duplocate movie clip.

    Thanks you murphy... now i have done a math class to make it xml value in best fit in my screen.

    1. now i want o make my moviClip in fixed postion...

    please help me

    for the referance i have attached the source files 1.fla 2. xml and 3. uiDesign image

    Thanks for the advance help

    DB:2.61:Fix The Position Of The Movieclip j9


    Again the same thing happens again, if we change the xml it will not in the work...

    i will give you another xml to check

  • RELEVANCY SCORE 2.60

    DB:2.60:Linking Objects 3k


    Hi all, lm having a little problem with replicating linked
    movieclip objects on the stage.

    I am using the .attachMovie() method to add the first
    instance of the movieclip(the movieclip is linked to an external
    actionscript class) but when l try to make an additional instance
    of the movieclip using the .attachMovie() method, the second
    instance does not appear on the screen. When l removed the linked
    actionscript file the second did appear, but l need the actionscipt
    linked to the movieclip for the class to be used. Can anyone help
    me on this?

    DB:2.60:Linking Objects 3k

    Can you post what your code looks like? It might be as simple
    as a syntax issue but we can't tell you without seeing the code.

    Tim

  • RELEVANCY SCORE 2.60

    DB:2.60:Filter Clears Blendmode 8f


    I have tested this bug without Fuse and it seems to be a
    general Flash issue.
    Possibly a bug?

    I tried to tween a blur filter for my MovieClip.
    Inside my MovieClip I have 2 MovieClips.
    One of these MovieClips (img) has an "overlay" blendMode.
    There is a textfield in this same MovieClip (img).

    When I rollover the main MovieClip, I want it to tween a blur
    in and then onRollOut, tween to no blur.

    The problem is that the blur on the parent MovieClip is
    deleting the blendMode on the MovieClip inside it.

    Is there a way I can work around this?
    I have tried every way I could think of and it seems the Fuse
    (or perhaps just Flash in general) is designed to clear the
    blendMode?

    I thought I could at least place the BlendMode on the
    MovieClip when the blur had stopped, but for some reason it wont
    work. Only if I delete the filter, will it show the overlay.

    That's obviously pointless though as I still have 2 issues:

    1. The blendMode is lost during the blur animation.
    2. The TextField goes crazy during the blur animation.

    :x man this is killing me. I can't believe it won't work.

    I've created an example FLA to show the above issues.
    It's on as.org forums
    here

    DB:2.60:Filter Clears Blendmode 8f

    I have tested this bug without Fuse and it seems to be a
    general Flash issue.
    Possibly a bug?

    I tried to tween a blur filter for my MovieClip.
    Inside my MovieClip I have 2 MovieClips.
    One of these MovieClips (img) has an "overlay" blendMode.
    There is a textfield in this same MovieClip (img).

    When I rollover the main MovieClip, I want it to tween a blur
    in and then onRollOut, tween to no blur.

    The problem is that the blur on the parent MovieClip is
    deleting the blendMode on the MovieClip inside it.

    Is there a way I can work around this?
    I have tried every way I could think of and it seems the Fuse
    (or perhaps just Flash in general) is designed to clear the
    blendMode?

    I thought I could at least place the BlendMode on the
    MovieClip when the blur had stopped, but for some reason it wont
    work. Only if I delete the filter, will it show the overlay.

    That's obviously pointless though as I still have 2 issues:

    1. The blendMode is lost during the blur animation.
    2. The TextField goes crazy during the blur animation.

    :x man this is killing me. I can't believe it won't work.

    I've created an example FLA to show the above issues.
    It's on as.org forums
    here

  • RELEVANCY SCORE 2.60

    DB:2.60:Drop-Down Menu kc


    Hi,

    I'm a beginner in actionScript...and I need some clues on one
    of my project..

    I want to make a drop-down menu that will rewind when the
    mouse is no longer over it...Not just go back to the first frame
    but really rewind the animation of the menu dropping-down..

    It working pretty well but my problem is with the menu
    buttons; they are in a movieClip and it looks like they are
    completly inactives...

    Here is how my FLA is builded:

    The movie clip containing the drop-down menu is on the first
    frame on Scene 1....Ther is script on this movieClip:

    on (rollOver) {
    this.onEnterFrame = function () {
    delete this.onEnterFrame ;
    this.play(1);
    }
    }

    on (rollOut) {
    this.onEnterFrame = function () {
    var position = this._currentframe - 1 ;
    if (position == 0 ) {
    delete this.onEnterFrame ;
    } else {
    this.gotoAndStop (position) ;
    }
    }
    }

    inside this movieClip there is 4 buttons...the main one (with
    all the other ones below it) and 3 buttons/menu with motion tween..
    When I export the movie, the Over state of those buttons
    doesn't show....probably because of the movieClip??

    anyway..on the first frame of this movieClip there is also
    code for the 3 buttons/menu:

    btn1.onPress = function () {
    getURL("
    http://www.google.com", "_self");
    };

    btn2.onPress = function () {
    getURL("
    http://www.hotmail.com/",
    "_self");
    };

    btn3.onPress = function () {
    getURL("
    http://www.adobe.com", "_self");
    };

    If anyone as a solution for this or another way to create
    what I need it would be very helpful...

    thanks!

    (can we post a FLA on this forum??)

    DB:2.60:Drop-Down Menu kc

    Don't post same thread to multiple forums, it's consider
    spamming.
    Post to one and stick to it.

  • RELEVANCY SCORE 2.60

    DB:2.60:Convert .Fla File To Single Movie Clip - How!!?? xm


    Hi all!

    I have a website (have a quick look:
    www.thebrightsidedesign.com) which currently uses separate swf
    files for each page. I have decided to convert each swf file into
    single movie clips and use one large swf file instead (to get rid
    of gaps between pages etc etc). I AM VERY NEW TO FLASH SO YOU HAVE
    TO BE A LITTLE PATIENT!

    I'm having trouble converting an entire .fla file to a movie
    clip.

    Here's what I'm doing:

    I select all the frames in the fla file.

    then go to a new document sized correctly and create a movie
    clip symbol.

    then I use "pate in place" and paste what I copied into frame
    1 of this movie clip.

    But this doesn't seem to work - I just get a static image of
    the page rather than the moving movie clip.

    WHAT AM I DOING WRONG!?

    THANKS,

    Liam

    DB:2.60:Convert .Fla File To Single Movie Clip - How!!?? xm

    did you paste the frames inside the newly created
    movieclip?

  • RELEVANCY SCORE 2.60

    DB:2.60:As3 Xml Slideshow Embed Help 77


    II have a site that was done in AS3, I have to add an xml
    slideshow. The slideshow needs to be in the form of a movieclip
    which is inserted in the timeline of the fla. My problem is the
    slideshow I have uses the loadMovie function and the show is in
    AS2. I just started poking around AS3 so any help here as I need to
    do this? The AS2 slideshow has thumbs and photos which load from an
    xml file.
    You will see in the fla the show needs to be loaded as a
    movieclip, first of all can you load an xml slideshow from the
    timeline? If so it looks like I'm going to have to find a decent
    one with thumbs. Can anybody out there help me out?
    rderd

    the main fla is
    here

    DB:2.60:As3 Xml Slideshow Embed Help 77

    II have a site that was done in AS3, I have to add an xml
    slideshow. The slideshow needs to be in the form of a movieclip
    which is inserted in the timeline of the fla. My problem is the
    slideshow I have uses the loadMovie function and the show is in
    AS2. I just started poking around AS3 so any help here as I need to
    do this? The AS2 slideshow has thumbs and photos which load from an
    xml file.
    You will see in the fla the show needs to be loaded as a
    movieclip, first of all can you load an xml slideshow from the
    timeline? If so it looks like I'm going to have to find a decent
    one with thumbs. Can anybody out there help me out?
    rderd

    the main fla is
    here

  • RELEVANCY SCORE 2.60

    DB:2.60:Export As Movieclip From Indesign jm


    I am trying to export an InDesign document to .fla file. But all the objects are treated as an individual movieclip. Is it possible to export each word as individual movie clips, so that the .fla file contain movie clips for each word.

    DB:2.60:Export As Movieclip From Indesign jm


    convert you objects to buttons in indesign. export as fla and change the type of symbols in flash. you can select all the buttons in Flash Library and change the type of them to movieClips at once.....

  • RELEVANCY SCORE 2.60

    DB:2.60:Update Mx 2004 .Fla To Flash 8 .Fla? 3a


    Can I somehow automatically copy the Screens in an existing
    MX 2004 Pro .fla and paste them into a Flash 8 Pro .fla template?

    Then I would like to close the old MX 2004 .fla and save the
    new v8 .fla with the same name as the old .fla?
    (Of course all the MX 2004 files are backed up elsewhere!)

    I don't know anything about Projects, but could one help with
    this? Sort of like a macro?

    I would like to get this help as quickly as possible because
    I NEEDED this capability yesterday! ...Like maybe get help today?

    Thanks, Steven

    DB:2.60:Update Mx 2004 .Fla To Flash 8 .Fla? 3a

    Can I somehow automatically copy the Screens in an existing
    MX 2004 Pro .fla and paste them into a Flash 8 Pro .fla template?

    Then I would like to close the old MX 2004 .fla and save the
    new v8 .fla with the same name as the old .fla?
    (Of course all the MX 2004 files are backed up elsewhere!)

    I don't know anything about Projects, but could one help with
    this? Sort of like a macro?

    I would like to get this help as quickly as possible because
    I NEEDED this capability yesterday! ...Like maybe get help today?

    Thanks, Steven

  • RELEVANCY SCORE 2.60

    DB:2.60:Swap Graphic Symbol Bitmap Dynamically With Actionscript zc


    I have a Graphic symbol that contains a Bitmap, and I would
    like to swap the Bitmap inside the Graphic symbol with an external
    image file at runtime using actionscript. The Graphic symbol is
    used in a tween, and I would like to dynamically change which image
    is used in the tween.

    The Graphic symbol is part of a MovieClip, so I'm thinking
    that I need to use the loadMovie method of the MovieClip. But, how
    do I access the Graphic symbol, and thus the Bitmap inside the
    Graphic symbol.

    Hope I'm making sense here. I've searched quit a bit, and no
    seems to have an answer for this.

    Thanks!

  • RELEVANCY SCORE 2.60

    DB:2.60:Removeeventlistener Function Targetting A Button On Root kj



    Hi,

    I could spend 5 minutes trying to explain to you why I'm targetting root and using frames etc. but it's irrelevant - I HAVE to. In a nutshell, I have to make an .fla that's easily updatable for somebody who knows nothing about AS. I don't know a huge amount myself!

    I'm basically making a flick through Flash presentation. Each page/section is on it's own frame on the root timeline. Each page has the same nav, with a button called b_next and b_prev.

    On each page an eventListener is added to b_next and b_prev telling it to go to either the next frame of previous frame respectively. The function's that have nextFrame(); and prevFrame(); also have removeEventListeners so that I can add a new eventListener when it gets to the next/prev frame. If I don't do this, then I get "Error #1009: Cannot access a property or method of a null object reference" when I arrive on the next frame.

    The problem arises when I have to control b_next and b_prev from within a movieclip on stage. b_next and b_prev are still sitting on the root. Suddenly I get Error #1009 again.

    So within the movieclip on stage I have the following code for the buttons:

    MovieClip(root).b_next.addEventListener(MouseEvent.CLICK, FR1stFrameNext);

    MovieClip(root).b_prev.addEventListener(MouseEvent.CLICK, FR1stFramePrev);

    function FR1stFrameNext(event:MouseEvent): void {

    nextFrame();

    trace("********")

    MovieClip(root).b_next.removeEventListener(MouseEvent.CLICK, FR1stFrameNext);

    MovieClip(root).b_prev.removeEventListener(MouseEvent.CLICK, FR1stFramePrev);

    mc_fashionrocksvideo.ns.close();

    }

    function FR1stFramePrev(event:MouseEvent): void {

    TweenMax.to(MovieClip(root).mc_content, .5, {alpha:0, onComplete:MovieClip(root).prev_frame});

    mc_fashionrocksvideo.ns.close();

    MovieClip(root).b_next.removeEventListener(MouseEvent.CLICK, FR1stFrameNext);

    MovieClip(root).b_prev.removeEventListener(MouseEvent.CLICK, FR1stFramePrev);

    }

    On b_next: nextFrame(); seems to work, trace seems to work and mc_fashionrocksvideo.ns.close(); seems to work. But I don't think the removal of the eventListeners is working as I get Error #1009 - like I used to on my other pages where all of this code was done on the root.

    Any ideas?

    Thanks,

    Gristy

    DB:2.60:Removeeventlistener Function Targetting A Button On Root kj


    I think I've worked this out.

    It wasn't removing the eventListener that was the problem throwing back the 1009 error.

    It was the closure of the NetStream. It couldn't find mc_fashionrocksvideo.ns.close();

    But placing the ns on the root seems to have fixed it.

    Thanks for your time DarshanRane

  • RELEVANCY SCORE 2.60

    DB:2.60:Targeting An Object/Frame In A Symbol Movieclip From Another Symbol Movieclip am


    I have a base flash file within it are 2 symbolmovieClips
    I did it this way so that i can coltrol my animations more
    effectively, but I am trying to have one of these access the other,
    IE one is a menu the other is a main "page"(set up as a frame. so
    as I click on something in hte menu I want it to load the correct
    page/frame from the other movieClip
    here is a sample of what I've written:

    Zachary Bobo

    DB:2.60:Targeting An Object/Frame In A Symbol Movieclip From Another Symbol Movieclip am

    I have a base flash file within it are 2 symbolmovieClips
    I did it this way so that i can coltrol my animations more
    effectively, but I am trying to have one of these access the other,
    IE one is a menu the other is a main "page"(set up as a frame. so
    as I click on something in hte menu I want it to load the correct
    page/frame from the other movieClip
    here is a sample of what I've written:

    Zachary Bobo

  • RELEVANCY SCORE 2.59

    DB:2.59:Dragging Movieclip Symbol 8z


    Hi all,

    I refer to some source code available online and so far got
    to this stage and the problem exist. Currently at work so cant
    provide the detail AS but roughly the problem is this.

    I had the stage with other items. The flash made box is
    suppose to appear after a user click on a button symbol. there are
    2 symbol buttons which will be clicked and show the 2 flash made
    box one at a time.

    I made a symbol movieclip that covers the entire stage with
    alpha set to 0. A transparent movieclip. went into the movieclip
    and created the 1st flash made window with 3 frames on each layer
    on a total of 6 layers which are bg, headers, header, upbtn,
    dwnbtn, dynamic textfield. 1st frame of each layer is empty frames.
    2nd frame of each layer contains the above mentioned stuff.

    the 2nd flash made window is the same order as above but they
    reside on 3rd frame of each layer instead of 2nd frame. so
    therefore, 1st to 2nd frame on this 2nd flash made window is empty.
    that means that these 2 flash made windows reside in the same
    movieclip but at different layers and different frames.

    Hopefully all can get the picture that I am trying to paint
    here.

    After publishing, I click on the btn symbol, ONLY the dynamic
    textfield came out. the rest of the upbtn, dwonbtn, headers,
    header, bg are all invisible. BUT, when i placed my cursor on the
    position where the above items are suppose to be, the items work. I
    can drag it, close it, scroll the textfield up and down using the
    btns. It happen for the other btn symbol as well.

    How is it that they are invisible? I try to place the layer
    of the transparent movieclip symbol on the bottom of the folder, it
    still does not work. If the problem lies with the transparent
    movieclip, then why does the textfield appear? i shifted the
    textfield to the bottom layer in the movieclip while the rest of
    the layers such as bg, headers, header, upbtn, downbtn are on top
    of it. but it still doesn't work.

    I don't think is the code issue but more on the layers and
    frames issue as the dragging and closing works. so does the
    scrolling of the dynamic textfield using the upbtn and downbtn.

    Please help me. Thanks in advance.

    DB:2.59:Dragging Movieclip Symbol 8z


    I want to drag pieces around on checker board

    Help

  • RELEVANCY SCORE 2.59

    DB:2.59:Static Text Dificulty mc



    Hi there! If you are able to help me with this I would greatly appreciate it!

    I have created a static text in my FLA file and for some reason when I convert it to a movieclip symbol, my setting of the text - such as the letter spacing - are no longer. It scrunches together and looks pixelated.

    Any knowledge as to why? It was not doing this a while ago but I have not changed anything I am aware of! Thanks for any help!

    O

    PS: I have the font embeded

    DB:2.59:Static Text Dificulty mc


    What an odd thing... Well let me attach them here.

  • RELEVANCY SCORE 2.59

    DB:2.59:How Can Central Regis Cross Be Moved In Movieclip ? j7



    Hi,

    Flash CS5

    I have a stage W 255 and H 100 and layers including guide layers that feature png's converted to symbol/graphic that are classic tweened and that make up an animation. saved as fla file.

    I need this as a MovieClip to take into another fla.

    I go Insert/new symbol MovieClip name it and it appears in lib.

    I select all the frames with r/c select all frames then go r/click copy frames.

    I d/click the MC in the lib, select the first frame in timeline and go paste frames, all the layers appear as do tweens.

    I test scene and see only a quarter of my animation, visible in the upper left quadrant of the MC. Revert back to the MC and I see the regis cross is sitting in the middle of my artwork.

    How do I get my animation to be in the middle of the MC ?

    I have tried selecting all artwork, grouping then dragging south east but some parts (artwork on the clasic tween layers) are left behind yet all layers are unlocked. Mathematically I could alter the x and y values but half of 255 will be a half pixel value and the top left corner surely should be a whole figure, and anyway drag or mathematical placement still wont shift the classic tweens.

    Oddly enough though I have looked at another MC, its of a car (plan view), the cross is at rear offside corner, test scene and I only see front two thirds of car. In the scene where I use this MC, the central regis circle is there and it plays fine, snapped to a motion guide with orient to path. How become the regis cross is where it needs to be to see all the vehicle yet test scene doesnt show all.

    Cheers

    Envirographics

    DB:2.59:How Can Central Regis Cross Be Moved In Movieclip ? j7


    Hi,

    I am for example creating a movieClip of a car (plan view), I have its brake lights to come on at the latter part of its travel, Open the MC and I have two layers one car and one brake lights. Test Scene and the tail end of the car is out of view so I cant see the brakes lights show. Drag drop from lib to stage and run it along a guide and I see the entire car, its circular 'seed point' is central.

    I cant understand why when designing within the Movieclip, adjusting when the brakes come on etc on the MovieClip timeline, siting the glow in the MC stage, that test scene doesnt show the entire car. On stage as you say, the cross is at the top left of the graphic, my car (plan view) points downwards and the cross is just off its rear offside.

    If I run test movie I dont just see the car, I see it in the final scene and cannot study it so carefully given its speed.

    I need to see all the car in test scene. Should test scene show the entire artwork in a MovieClip ?

    Envirographics

  • RELEVANCY SCORE 2.59

    DB:2.59:Symbols Sometimes Don't Export In Swc xc



    I reported this as a bug in CC, but maybe I'm not the only one with this problem or someone can tell me what I'm doing to trigger it.

    Steps to reproduce bug:

    1. Open my complex SWF with a single exported MovieClip symbol

    2. change something

    3. set publish to SWC only

    4. publish

    5. include the SWC in a FlashDevelop project

    Results:

    About a third of the time, the new SWC contains no exported symbols.

    Expected results:

    SWC should contain my one large exported symbol.

    Workaround:

    Immediately publish a second time. Usually the exported symbol will appear in the SWC the second time.

    If not, create a new dummy exported symbol in the same FLA and publish again. Changing the list of exported symbols seems to reset something.

    Deleting the SWC before creating it, unhooking it from FlashDevelop, or closing FlashDevelop do nothing.

    DB:2.59:Symbols Sometimes Don't Export In Swc xc


    Thanks Nipun, this was it! No idea how it got set in the first place, but that does result in a pretty funny (and fully understandable) recursive reference.

  • RELEVANCY SCORE 2.59

    DB:2.59:Graphics In As3 8z



    Hello Forum

    I'm thinking of creating a visual template of a movieClips in an .fla file for the designer to adjust and tweak. Then in flex builder 3 (actionscript project) I load in that .swf file and use the references to the movieClips to adjust location, size and color of objects... Hope that made sense...

    Along those lines... is it possible to grab the graphic information of an entire movieClip? Let's say there's a movieClip with a red 4 pixel line on the top then 2 pixels further down there's a grey rectangle that's 400 pixels high. These were drawn with vectors in the flash environment. Does as3 have any way of reading this information?

    I guess I'm looking for something like the old duplicate movieClip functionality in as1.

    Any insight would be much appreciated.

    Thank you.

    sk

    DB:2.59:Graphics In As3 8z


    Hello again...

    I have a follow up question regarding the infoPanel example in the previous answer.

    What if the infoPanel contains a few movieClips, let's say headerText1, headerText2 and headerText3.

    Before the infoPanel gets drawn to the stage I'd like to turn off headerText2 and 3.

    Now I could do this the following way (this works):

    -----------------------------------------------------

    var aPanel:InfoPanel = new InfoPanel();

    aPanel.headerText2.alpha = 0;

    aPanel.headerText3.alpha = 0;

    addChild(aPanel);

    -----------------------------------------------------

    But the problem is that my inititation process is slightly more cumbersome. Is it possible to wrap all this initiation into the InfoPanel class?

    I created manually a InfoPanel.as class but the problem is InfoPanel.as doesn't know of the existence of the headerTxt movieClips...

    -----------------------------------------------------

    package{ import flash.display.MovieClip;

    public class InfoPanel extends MovieClip { public var headerTxt1: MovieClip; public var headerTxt2: MovieClip; public var headerTxt3: MovieClip; public function InfoPanel() { this.headerTxt2.alpha = 0; //this doesn't work since these MovieClips have been created manually in Flash... this.headerTxt3.alpha = 0; } }}

    -----------------------------------------------------

  • RELEVANCY SCORE 2.59

    DB:2.59:Library Mess When Copying xf


    I've noticed that if you copy a MovieClip from one library to
    another there can be many duplicate folders that are generated.

    For instance, lets say I have a library with 2 folders:
    Buttons and Movieclips.
    And I have a MovieClip symbol in the Movieclips folder named
    "interface". Interface contains several buttons from the Buttons
    folder on it's timeline.

    Let's say I have another FLA with the same library(Buttons
    folder and Movieclips folder), with some of the same symbols. I
    want to update it with the symbols from the former library.

    Specifically, I want to update the "interface" MovieClip
    symbol. So I drag it from the the former library into the latter
    library. I get the dialog that some symbols already exist by the
    same name, do I want to overwrite existing symbols or not. I choose
    to overwrite. However, while the "interface" MovieClip gets
    properly updated(overwritten), the buttons do not; rather than
    putting all the buttons in the corresponding Buttons folder, it
    puts in a new folder called Buttons within the Movieclips folder.
    If I repeat the process, I get a 'Buttons copy' within the
    Movieclips folder. Again, I get 'Buttons copy 2', and so forth.

    That may have been hard to follow, so here's a simplified
    version:
    - Library 1 and Library 2, contains folder "Buttons" and
    folder "MovieClips"
    - Folder MovieClips contains symbol "interface" - interface
    contains several button instances from Buttons folder
    - Copying "interface" from Library 1 to Library 2 in
    "MovieClips" folders creates a "Button" folder inside "MovieClips"
    folder.

    Isn't there a way to cleanly update symbols from one
    library/FLA to another library/FLA?

    DB:2.59:Library Mess When Copying xf

    thanks Chris. I agree, maybe you can pull some strings and
    get some decent library tools :-)

    It's easy to duplicate my problem, if you want to see what I
    mean real quick.
    1) create doc 1, create two folders
    2) create shape on stage, convert to symbol
    3) move that symbol in the library into one folder
    4) reselect symbol on stage, convert to symbol again
    5) this time move the library item into the other folder
    Now you have a symbol which exist in the library in one
    folder, but the symbol contains an instance of another symbol which
    exists in a different folder in the library, and they are "sibling"
    folders. ie one is not inside the other.
    6) create another document, create *exact* same two folders
    7) drag the second symbol you made from one library to the
    other, in the same folder.

    I've been playing around a bit. Seems that if you copy/paste
    on the stage from one FLA to the another, it respects the folders
    and doesn't create duplicates -- except for the actual symbols you
    pasted, they all end up on top level of the library.

    If you drag the whole folder, the embedded clip (in my cases
    the button) gets dumped on the library top level.

    And occasionally I run into an odd message: "One or more
    library items were not replaced in the destination". Hm, that's
    great! ;-)

    cheers