Flash CC: Load MovieClip using button

Im here because im really stuck, and i need to finish my job quiclky.
I never used FLash CC, I always used Flash 8... So much easy to load clips etc.
Well, Here is the .FLA in Flash CC format so u guys can give me a little hand (please).http://www.sendspace.com/file/u6mh4p
The thing that i want to do is: When i make click on button History (first button on the left side) "Not the logo" i Want to load MovieClip called History (stopped one).
I really appreciate any help.
Thanks in advance RushWHQ

assign your button an instance name (done same way in cc as flash 8 - eg, history_btn) and assign your library movieclip a class (right click the library symbol >click properties>tick export for actionscript>enter a class name in the class field - eg, HistoryClass).  then in the actions panel, use:
var history_instance:HistoryClass;
history_btn.addEventListener(MouseEvent.CLICK,f);
function f(e:MouseEvent):void{
history_instance=new HistoryClass();
addChild(history_instance);

Similar Messages

  • Flash Profiler Kills Flash, Always Loading After Use, Becomes Unusable

    Hello,
    I have been using the Flash Profiler to fix memory leaks. It seems every time I do two snap shots and looking for lingering objects, as soon as I go back to coding my cursor wont stop loading and Flash Builder is basicly unusable. I have to restart Flash Builder and it works fine. It's a pain because I want to use Flash Profiler to jump to spots of the code and it just will not stop loading whatever it is loading even though I am done with the memory analyis.
    Any suggestions?

    Is wolfenstein a wine game? If so There are a bunch of optional dependencies for wine. You can see them if you do "pacman -Qi wine" (same for any installed program in Arch unless installed without pacman/PKGBUILD).  Some that I have installed are:
    lib32-alsa-lib
    lib32-libpulse
    If the game is a 32 bit windows game running through wine you may need some of these. If that doesn't work you can run it through the pulseaudio wrapper like this: "padsp wine /path/to/game.exe" Where /path/to/game.exe is the path to your wolfenstein executable. You can also check your sound settings with a program called "winecfg" (the defaults work fine for me though). To verify that your game is using pulseaudio there is a program called "pavucontrol" that will tell you all of the programs currently using sound through pulseaudio. Hope that helps.
    Edit: Also found this which may be of interest I don't know: https://aur.archlinux.org/packages/et-sdl-sound/
    Last edited by dodo3773 (2013-05-20 16:10:53)

  • How to open an swf in its own window outside flash using button

    how do I open an swf in its own window outside the flash using button?

    Hi,
    Try this code:
    import mx.containers.Window;
    var my_button:mx.controls.Button;
    var buttonListener:Object = new Object();
    buttonListener.click = function(evt_obj:Object) {
    var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Sample Image", contentPath:"uganda_animation_Scene 1.swf"});
    my_win.setSize(320, 240);
    my_button.addEventListener("click", buttonListener);
    You must drag the window default component and place in to the library.
    Saransoft

  • How to load images using xml in flash

    Hi
    im working on a quiz project where i plan to load images using xml in to flash, can any one help with the script with AS2 or 3

    You'll find a tutorial for what you are after here:
    http://www.gotoandlearn.com/play?id=22

  • How to load other obejects in flash file after intro using ActionScript 3.0

    How to load other obejects in flash file after intro using ActionScript 3.0 or any other method all in same fla file. see blow intro screen shot ,this one playing repeatedly without loading other fla pages .only way to load other pages is click on Skip intro .see second screeshot below .i need that site to load after intro .
    see codes already in
    stop();
    skipintro_b.addEventListener(MouseEvent.CLICK, skipintro_b_clicked);
    function skipintro_b_clicked(e:MouseEvent):void{
    gotoAndStop("whoweare");
    There is another script there
    /* Simple Timer
    Displays a countdown timer in the Output panel until 30 seconds elapse.
    This code is a good place to start for creating timers for your own purposes.
    Instructions:
    1. To change the number of seconds in the timer, change the value 30 in the first line below to the number of seconds you want.
    var fl_TimerInstance:Timer = new Timer(1000, 30);
    fl_TimerInstance.addEventListener(TimerEvent.TIMER, fl_TimerHandler);
    fl_TimerInstance.start();
    var fl_SecondsElapsed:Number = 1;
    function fl_TimerHandler(event:TimerEvent):void
              trace("Seconds elapsed: " + fl_SecondsElapsed);
              fl_SecondsElapsed++;
    i have no knowledge about these thing ,any help really appreciated .

    Ned Murphy Thank you very Much .It is working .Great advice

  • Multiple flash files change when a button click using javascript function

    hi.. am new in flsh...
    i want to multiple flash files change when a button click using a javascript

    <script>
    var count=0;
    function mafunct(newSrc){
        alert("hi");
    var path="a"+count+".swf"; 
    flash+='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="100%" HEIGHT="100%">';         
        flash+='<PARAM NAME=movie VALUE="'+path+'">';         
        flash+='<PARAM NAME="PLAY" VALUE="false">'; 
        flash+='<PARAM NAME="LOOP" VALUE="false">';
        flash+='<PARAM NAME="QUALITY" VALUE="high">';
        flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
        flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
        flash+='</EMBED>';
        flash+='</OBJECT>';    
    count++;
    alert(path+"aa");
    </script>
    <button onclick="mafunct()">next</button>

  • The install now button keeps disappearing so I am unable to update my flash. I am using a Mac.

    The install now button keeps disappearing so I am unable to update my flash. I am using a Mac.

    Hi
    Can you please clear your browser cache and try again.
    --Gaurav

  • Flash component loads slowly or renders slowly

    Hi,
    Does anyone have a problem with flash 8 components loading
    very slowly. I have a mainmovie page that loads other .swf files
    into a movieclip. The sub movie has got flash 8 components,
    basically, 4 buttons, 4 datefields, one combo box, one menu bar and
    one datagrid. When i load the sub movie into the mainmovie, the
    components flashes for a second and then shows the components. I
    use a moviecliploader as well to hide the loaded movie and only
    after it's loaded then show the loaded movie, still the components
    flash.
    Any ideas as i have been trying to solve this for about 5
    hours now. Any help much appreciated.
    Thanks

    Hi clbeech,
    Thanks for replying. Nope, i am not using
    getNextHighestDepth() anywhere in my classes or on the timeline.
    What i have done is use an empty movieclip, named it dropzone, and
    when a menu item is clicked, an external movie loads into that
    movieclip. The external movie is loaded using the moviecliploader
    class.
    Here's the code from the class that might possibly help...
    //The helpful Delegate for UI component event listeners
    import mx.utils.Delegate;
    class loadCenterApps extends MovieClip
    public var menubarObject : Object;
    private var mclListener : Object;
    private var menu;
    private var imageLoader : MovieClipLoader;
    public var root : MovieClip
    // constructor function
    public function loadCenterApps (root : MovieClip)
    this.root = root;
    mclListener = new Object ();
    imageLoader = new MovieClipLoader ();
    mclListener.onLoadProgress = Delegate.create (this,
    this.onMclListenerProgress);
    mclListener.onLoadInit = Delegate.create (this,
    this.onMclListenerInit);
    imageLoader.addListener (mclListener);
    init (root.my_mb);
    private function init (menubarObject)
    root.my_mb = menubarObject;
    menu = root.my_mb.addMenu ("File");
    menu.addMenuItem (
    label : "Save", data : "saveReport.swf"
    menu.addMenuItem (
    label : "Cancelled", data : "cancellationReport.swf"
    menu.addMenuItem (
    label : "Other Details", data : "otherReport.swf"
    menu = root.my_mb.addMenu ("User Management");
    menu.addMenuItem (
    label : "Add, Delete and Change Password", data :
    "addUser.swf"
    root.my_mb.addEventListener ('change', Delegate.create
    (this, menuListener));
    public function menuListener (evt_obj : Object)
    destroy ();
    var someRandom = getTimer () + random (1000000000);
    //var toLoadClip = evt_obj.menuItem.attributes.data + "?=" +
    someRandom;
    var toLoadClip = evt_obj.menuItem.attributes.data;
    imageLoader.loadClip (toLoadClip, root.dropzone);
    public function onMclListenerProgress (target : MovieClip,
    bytesLoaded : Number, bytesTotal : Number) : Void
    if(bytesLoaded >= bytesTotal) {
    target._visible = true;
    else root.dropzone._visible = false;
    public function onMclListenerInit (target : MovieClip) :
    Void
    target._visible = true;
    public function destroy () : Void
    imageLoader.unloadClip (root.dropzone);
    /////////////////////////////////

  • Load movieclip

    Hey, hopefully someone can help me out. I'm having a problem
    getting the load movieclip script to work. Here's my situation, I
    have a swf file that I want to load into another swf, I have this
    test file that I'm working on, I created the swf that I want to
    pull in. no problem. I attach the load movie script to a button I
    pull from the UI Components and when I test the movie it works,
    plays the swf file just right. I create, say a oval for example,
    make that a button and attach the script and test the movie,
    nothing! Not sure what I'm doing wrong. I can attach .fla file if
    need be. Thanks for any help.
    Dt

    Hey no problem. Nothing to apologize for and remember, "There
    are no stupid questions, just stupid people asking question." :)
    (That is totally meant as a joke!) We all have to start someplace.
    First, I don't think there is a click event for movieclips.
    There is for the UI components, but for movie clips or button
    instances you would use Press or Release. I haven't used that kind
    of coding since 2001, so I'm not quite familiar with the exact
    capitalization. See, this is something that without seeing the code
    we would go around for hours on!
    But there is a more important issue – IMHO – and
    this is you are using the old (From Flash 5 days) style of coding
    event handlers. The approach given by _name above is much more
    modern, easier to use and maintain, and just plain better. David
    Stiller who helps out here a lot has a great entry in his blog
    about it. Check this link out:
    http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent

  • Load image using the loader class problem

    Hi, I'm trying to load an image in a movieclip using using the following:
    Load_image_btn.addEventListener(MouseEvent.CLICK,Load_image);
    function Load_image(event:MouseEvent):void
        var my_loader:Loader = new Loader();
        my_loader.load(new URLRequest("C:\Users\Amanda\Desktop\picture1"));
        addChild(my_loader);
    When I enter just "picture1" for the location it works, but like this it is giving me the following error: Error #2000: No active security context.  How can I go about this, as I want to have a picture which in a separate location from that of the flash file?
    I would also like to have the image located in a particular location (x,y) of the movieclip, is this possible? thanks in advance.

    I am using the following code:
    function AddViewDetails(event:ListEvent):void
    var mc:MovieClip=new Additional_Req_Info();  // where Additional_Req_Info is the class name
    addChild(mc);
    var clickedName:String = event.currentTarget.name;
    trace (clickedName);      /////prints Current_Req_List
    var instanceName:String = clickedName + (Current_Req_List.selectedIndex + 1);
    trace (instanceName);  /////prints Current_Req_List1,  Current_Req_List2, etc depending on list item selected
    if(!getChildByName(instanceName)){
    var classRef:Class=Class(getDefinitionByName(instanceName));
    trace (classRef);   ////not printed
    var mc:MovieClip=new classRef();
    mc.name=instanceName;
    trace (mc.name);   ////not printed
    And its giving me the following error:
    ReferenceError: Error #1065: Variable Current_Req_List1 is not defined.
    at global/flash.utils::getDefinitionByName()
    at Websiteversion4_Scene1_fla::MainTimeline/AddViewDetails()[Websiteversion4_Scene1_fla.Main Timeline::frame1:185]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.controls::SelectableList/handleCellRendererDoubleClick()
    How can I define the list items if they are dynamically generated i.e. at runtime? thanks!!!

  • Trying to use Buttons and keep getting an error code

    I am trying to use buttons and I keep getting the error code ReferenceError: Error #1074: Illegal write to read-only property graphics on flash.display.MovieClip.
    There is one button that doesnt appear when I view it live/in browser/ in flash professional
    I have created this button the SAME way, about 36 times, as the other buttons that work fine. What am I doing wrong?
    PLEASE HELP ASAP...

    The error appears to involve trying to assign a value to the graphics property of a MovieClip.  Do you have code that uses something.graphics =

  • New to flash, swf loaded while changing size

    i'm trying to create a button that will replace the current
    swf with another and i want the size to change between the various
    sizes of each page. i'm currently using the following code in the
    action inspector:
    on(release){loadMovieNum("myfilename.swf",0);
    i know there has to be a simple way to do this! a very
    grateful thanks to anyone who tries to help!

A: new to flash, swf loaded while changing size

b3autiful_dizaster wrote:
> i'm trying to create a button that will replace the
current swf with another
> and i want the size to change between the various sizes
of each page. i'm
> currently using the following code in the action
inspector:
>
> on(release){loadMovieNum("myfilename.swf",0);
> }
>
> i know there has to be a simple way to do this! a very
grateful thanks to
> anyone who tries to help!
You can't change size dynamically as it is defined by the
object embed tags.
You could use WMODE transparency which could help you fake it
tho not always best
solution to go with WMODE. It's a very buggy parameter.
WMODE will remove the background color so the flash movie
appear over the html and you
can see the HTML content trough the movie.
You could define some solid shape for the background on
bottom layer to make it look
like SWF background, than change it with the other loaded
movie making it appear as it
changed size while the over all flash size stats the same. As
said above - faking it.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

b3autiful_dizaster wrote:
> i'm trying to create a button that will replace the
current swf with another
> and i want the size to change between the various sizes
of each page. i'm
> currently using the following code in the action
inspector:
>
> on(release){loadMovieNum("myfilename.swf",0);
> }
>
> i know there has to be a simple way to do this! a very
grateful thanks to
> anyone who tries to help!
You can't change size dynamically as it is defined by the
object embed tags.
You could use WMODE transparency which could help you fake it
tho not always best
solution to go with WMODE. It's a very buggy parameter.
WMODE will remove the background color so the flash movie
appear over the html and you
can see the HTML content trough the movie.
You could define some solid shape for the background on
bottom layer to make it look
like SWF background, than change it with the other loaded
movie making it appear as it
changed size while the over all flash size stats the same. As
said above - faking it.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

  • Is it faster to load several separate buttons, or one Nav?

    I'm working on a flash navigation for my site in development. I finished one of my buttons, I originally wanted to have each button as a separate flash object so if I wanted to change the name or what it looked like I could just swap it out rather then having to edit the .fla file. I'm using graphics I made in Photoshop for the button's bg. Also, each button has a sound on mouse-over.
    I'm planning to have five buttons in total. One button is 10KB on the compression settings that I am happy with. Would it be faster for the page loading time though if I combined all the buttons into one flash object consisting of five separate frames?
    Thanks!

    I'm not sure what you mean by independent folders.  You can always organize your Layers to have Layer folders but that is simply to organize the Layers and to collapse them to save real estate when necessary and expand them to see detail when necessary.  It won't make a difference how you structure your FLA because all of your buttons will be embedded in your Library in the single SWF at runtime.  So I guess you would still have all of the buttons externalized in the single SWF?  As opposed to embedding them in your master Site SWF?  Then you can use the load() method to load your buttons.swf file into your master.swf file .  You still might run the risk of your server not responding well to the load() method at times and failing to load your nav buttons as opposed to if you had them embedded in your master swf.  But if you have a reliable server and no bottleneck on your site then you could externalize all of your buttons.  One cool thing is to have your graphical appearance of your buttons embedded into your master.swf file and your button labels externalized into an XML file that is basically like a text HTML file that can be changed and updated using a simple text editor and you would never have to reauthor the FLA file to make changes.  You might even be able to format the font appearance but I'm not entirely sure since I'm still new to using XML to format content.  But I do know that XML can be used to change the content of the text such as what the text actually says.  You would externalize this .xml file the same way you would externalize an .AS actionscript file which would contain packages and classes as opposed to having your actionscript on Frame 1 of your FLA.

  • Flash CS3, Having Problems Creating Button Animation

       I am relatively new to Flash CS3, and don't use action script... I am creating an animation with sound using the button graphic option so it is a clickable button. I have the animation finished, and the sound embeded, and everything is working great, except when I publish it, I have to click and hold over the graphic for the animation to happen... If I click and release, the animation and sound clips stop... What am I doing wrong and how on Earth can I fix it??? Thank you in advance for any suggestions!!

    Yup, that is how it works. You can't control which state a button is in. So when you click on it, it will go to the down state and when you let go it will go back to over (or up if you release outside).
    Not sure exactly what the "fix" is. It depends upon what you are trying to do. Generally you would need to use MovieClips instead of buttons with event handlers to tell you "button" what to do. Very few people I know actually use buttons.

  • Don't want Flash to load or do you? ClickToFlash-plugin

    Discretion from MacUpdate web page:
    DESCRIPTION
    ClickToFlash is a WebKit plug-in that prevents automatic loading of Adobe Flash content. If you want to see the content, you can opt-in by clicking on it or adding an entire site to the whitelist.
    Try control-clicking (or right-clicking) on an unloaded Flash box to access ClickToFlash's contextual menu which allows you to do advanced things like edit its whitelist, specify settings, and load all Flash on the page.
    http://www.macupdate.com/info.php/id/30682
    You can click on the cog icon in the upper left of the Flash bounding box to open a preference box.
    I haven't played with it much. Two things I do like is you can load the h.264 video from youtube and play it in Quicktime instead of Flash player. Web pages full of Flash ads load extremely fast.
    You can also download the video.
    Here's the ClicktoFlash web page.
    http://rentzsch.github.com/clicktoflash/
    Message was edited by: David M Brewer

    The datasource acts as a connection object that has all the
    information your query needs to
    connect to the desired data base. You do a one-time setup in
    the ColdFusion Admin as outlined
    below. After that, all you have to do in your query is point
    to the datasource name in order to
    connect.
    Here are instructions on how to set up a datasource for your
    Access database:
    1. Go to the ColdFusion
    Administrator/Data&Services/DataSources.
    2. In the main frame on the right, under Add New Data Source,
    enter a name for your datasource. NOTE: it must comply with
    ColdFusion
    naming conventions.
    3. For a Driver, select Microsoft Access with Unicode.
    4. Click the Add button.
    5. For Database File, browse to the mdb you are using for a
    database.
    6. If you wish, you can fill in descriptive notes about the
    db under Description.
    7. If you are using a Username and Password, click on
    Advanced Settings and enter them.
    8. If many people are going to hit your Access database,
    check Limit Connections and
    set Restrict Connections to 1 (MS Access is
    single-threaded).
    9. Click the Submit button.
    10.You will be brought back to the main Data Source page.
    Your new data source should be
    there with an OK next to it. This means you can connect to
    your datasource via ColdFusion.
    When using cfquery, you will use the name you gave your
    datasource in step 2 above for the
    datasource attribute.
    <cfquery datasource="datasourcenameFromStep2"
    name="yourQuery">
    SELECT model, make, year
    FROM carTable
    </cfquery>
    As mentioned in other posts, you don't have to use
    Dreamweaver. You can code CFML using a standard text editor like
    Notepad. Dreamweaver does however provide many productivity
    benefits
    for development projects.

  • Maybe you are looking for