How do you create an interactive floor plan in flash using AS2?

I am attempting to make an interactive floor plan.  I am sure that I have done it wrong, I am new to flash.  So far I have outlined the rooms that I want to make "hot spots", turned them into buttons. Then I selected all the buttons and turned it into a movie clip called "mcbtns".  I then turned it into a movie clip again, named it "mcbtninside"; this is where I house all of my buttons which have instance names "btn1" thru "btn11".
The images that corrospond with the rooms of floor plan are housed in a movie clip named "mcPhotos".  On the timeline the photos are place at 10 frame increments, and the Action Script time line above them has frame names "img1" thru "img11", which corrospond with the photos every 10 frames.  Frame 1 on the AS line has the code stop();
Now back to Scene 1...
Scene 1 frame 1 on the Action Script line I have in the following script:
mcPhotos._visible = false;
this.mcbtns.onRollOver = function() {
     mcPhotos._visible = true;
this.mcbtns.onRollOut = function() {
     mcPhotos._visible = false;
stop();
In frame 1 on the Action Script line within "mcbtninside" I have the following script:
var frameNum:Number;
function photoChange(){
     _root.photos.gotoAndPlay("img" + frameNum);
btn1.onRollOver = function(){
     frameNum = 1;
     photoChange():
btn2.onRollOver = function(){
     frameNum = 2;
     photoChange():
The code continues thru btn11.
So I am sure that I have gone wrong in many places.  If someone could lead me in the right direction I would greatly appreciate it.

Take all the interactive code off the mcbtns movieclip, and even get rid of that clip if it serves no other purpose than to collect all the rooms.  Assign the code to make the photos appear / disappear to all of the rooms... (what's shown below assumes mcbtns went away and the rooms are on the same timeline as the photos mc)
btn1.onRollOver = function(){
     frameNum = 1;
     photoChange():
     mcPhotos._visible = true;
btn2.onRollOver = function(){
     frameNum = 2;
     photoChange():
     mcPhotos._visible = true;
btn1.onRollOut = btn2.onRollOut = function(){
     mcPhotos._visible = false;
If you keep the mcbtns movieclip, then your button code would have to use a _parent reference to target the mcPhotos... _parent,mcPhotos.visible = etc... actually, I'm not sure where things lie in that aspect, so hopefully you can figure out the correct targeting

Similar Messages

  • How do you create an interactive Keynote PDF on a MacBook Pro that can be downloaded and manipulated on an iPad.

    How do you create an interactive Keynote PDF on a MacBook Pro that can be downloaded and manipulated on an iPad?

    File > Export > PDF

  • How do you create aligned interactive text boxs in a PDF with the same width and height?

    how do you create aligned interactive text boxs in a PDF with the same width and height?
    Without free hand creating the sizing?

    Assuming by "interactive text boxes" you mean form fields; in Acrobat, make a form field, then copy it and paste. (GIve the pasted copy a different name so they don't genetate the same field feedback.) Now you have two fields of the exact same size. Shift-click or marquee-drag to select both, then right-click and choose a command from the Align, Distribute or Center menu.

  • How do you create a still image from a video using IMovies 11?

    How do you create a still image from a video using IMovies 11 on a Pro Mac?

    The simplest way is to do a simple screen capture.  

  • How do I create an interactive rotating model in Flash from a 3D model created in Maya?

    Hi,
    I have never used Flash before!
    I have created a 3D model in Autodesk Maya and I would like to use it to create something a user can interact with i.e. rotate it or zoom in and out using a mouse. I have been told that if I create a 360 degrees rotation animation in Maya and render it into JPEGs I can then import them into Flash. The next part is where I need help! Is there a way of doing this?
    Many thanks.

    Whatever interaction you want to involve will dictate what you need to do internally to make the movieclip react to interaction.  Being that you have never used Flash before, you need to learn how to implement event listeners, for either or both the mouse and the keyboard. 
    Your best bet at finding some help with learning about event listeners would probably be to search Google using terms like "AS3 MouseEvent tutorial".
    As far as exporting goes, what you are most likely to end up doing is to publish an swf.  As far as my experience goes, Flash automatically sets up your Publish Settings to create an swf and an html page to display it in ( including whatever supporting javascript files are needed).  If you wish to tailor the Publish Settings to produce other outputs, or want to change aspects of the defaults, then you need to acxcess the PublishSettings in the same File options where you find the Import command.  The Publish command is also located there.

  • How do you create a kidney bean shape in illustrator using shapes or strokes?

    Is there a way to make a kidney bean shape in illustrator?  There must be an easier way then the way i'm trying to do it.  can you not just create a hot dog shape and some how move a point in the middle to make it go kidney? please help.
    A

    Start off with an ellipse, direct select one of the side anchors and drag.

  • I am trying to create interactive floor plans for my website Is it possible to do this in Flash CS4?

    Is it possible to create interactive floor plans in flash CS4? Are there any tutorials out there to do this?

    I don't see why not. Just create the elements you want to move around as MovieClips or swf's, add event listeners to these items listening for MouseEvent.MOUSE_DOWN, drag and MouseEvent.MOUSE_UP, drop.   writh the drag and drop functions  and you're set.
    function drag(e:MouseEvent):void {
         itemx.removeEventListener(MouseEvent.MOUSE_DOWN, drag);
         e.eurrentTarget.startDrag();
    function drop(e:MouseEvent):void {
         itemx.removeEventListener(MouseEvent.MOUSE_UP, drop);
          e.eurrentTarget.stopDrag();

  • How do I create an interactive PDF file with variable data

    We would like to basically do a 'mail merge' of our list of customers with an interactive PDF file (including videos, menus, etc - not just form fill out and web links) to create a single PDF file that contains multiple mail pieces ... one for each customer ... with each mail piece being customized for that customer.  Customizations would include different greetings (Dear Bob, Dear Dana, etc), as well as different charts based on data unique to the customer, different photographs, etc.
    I've seen that InDesign and Acrobat Professional can be used to create an interactive PDF (such as from http://tv.adobe.com/watch/ask-the-adobe-ones/14-calling-rufus-about-interactive-pdf-making).  However I don't understand how I can insert data from a database, csv file, excel file etc into the PDF file so that each page, or each set of pages, within the PDF can be customized.
    Can anyone point me to a tool to use for this?
    Thanks,
    Bob Kendall

    For that kind of volume and unattended operation, you want InDesign Server – which is the server/high volume edition of INDD.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 3 Nov 2011 06:58:07 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How do I create an interactive PDF file with variable data
    Re: How do I create an interactive PDF file with variable data
    created by Ti26E31DSxxx<http://forums.adobe.com/people/Ti26E31DSxxx> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4005459#4005459

  • Re: How do you create and use "common" type classes?

    Hi,
    You have 2 potential solutions in your case :
    1- Sub-class TextNullable class of Framework and add your methods in the
    sub-class.
    This is the way Domain class work. Only Nullable classes are sub-classable.
    This is usefull for Data Dictionary.
    The code will be located in any partition that uses or references the supplier
    plan.
    2- Put your add on code on a specific class and instanciate it in your user
    classes (client or server).
    You could also use interface for a better conception if needed. The code will
    also be in any partition that uses or references the supplier plan where your
    add on class is located.
    If you don't want that code to be on each partition, you could use libraries :
    configure as library the utility plan where is your add-on class.
    You can find an example of the second case (using a QuickSort class,
    GenericArray add-on) with the "QuickSort & List" sample on my personal site
    http://perso.club-internet.fr/dnguyen/
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    http://perso.club-internet.fr/dnguyen/
    Robinson, Richard a &eacute;crit:
    I'm relatively new to forte and I'd like to know how can you handle utility
    type classes that you want to use through out your application? Ideally
    what I want is a static class with static methods.
    Let's say that I have a StringUtil class that has a bunch of methods for
    manipulating strings.
    My problem is that we have code that runs on the client and code that runs
    on the server. Both areas could use the StringUtil class, but from what I
    understand, I have to create StringUtil in a plan and then create a server
    object of type StringUtil. The server object will eventually get assigned
    to a partition. That's not good since I really want the server object to
    physically reside at the server end and at the client end. (Actually, I
    don't want a server object, I just want to invoke a static method of a
    static class).
    Any clues on how to solve this problem would be appreciated.
    Also, what is the url at Sage-it that has a summary of all emails that have
    been posted to [email protected]? Perhaps this question has been
    answered previously.
    Thanks in advance
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Richard,
    Your question about "utility classes" brings up a number of issues, all of
    which are important to long-term success with Forte.
    There is no such thing as a static method (method that is associated with a
    class but without an implicit object reference - this/self/me "pointer") in
    TOOL, nor is there such thing as a global method (method not associated
    with a class at all). This is in contrast to C++, which has both, and
    Java, which has static methods, but not global classes. Frequently, Forte
    developers will write code like this:
    result, num : double;
    // get initial value for num....
    tmpDoubleData : DoubleData = new;
    tmpDoubleData.DoubleValue = num;
    result = tmpDoubleData.Sqrt().DoubleValue;
    tmpDoubleData = NIL; // send a hint to the garbage collector
    in places where a C++ programmer would write:
    double result, num;
    // get initial value for num....
    result = Math::Sqrt(num);
    or a Java programmer would write:
    double result, num;
    // get initial value for num....
    result = Math.sqrt(num);
    The result of this is that you end up allocating an extra object now and
    then. In practice, this is not a big deal memory-wise. If you have a
    server that is getting a lot of hits, or if you are doing some intense
    processing, then you could pre-allocate and reuse the data object. Note
    that optimization has its own issues, so you should start by allocating
    only when you need the object.
    If you are looking for a StringUtil class, then you will want to use an
    instance of TextData or TextNullable. If you are looking to add methods,
    you could subclass from TextNullable, and add methods. Note that you will
    still have to instantiate an object and call methods on that object.
    The next issue you raise is where the object resides. As long as you do
    not have an anchored object, you will always have a copy of an object on a
    partition. If you do not pass the object in a call to another partition,
    the object never leaves. If you pass the object to another partition, then
    the other partition will have its own copy of the object. This means that
    the client and the server will have their own copies, which is the effect
    you are looking for.
    Some developers new to Forte will try to get around the lack of global
    methods in TOOL by creating a user-visible service object and then calling
    methods on it. If you have a general utility, like string handling, this
    is a bad idea, since a service object can reside only on a single
    partition.
    Summary:
    * You may find everything you want in TextData.
    * Unless you anchor the object, the instance will reside where you
    intuitively expect it.
    * To patch over the lack of static methods in TOOL, simply allocate an
    instance when required.
    Feel free to email me if you have more questions on this.
    At the bottom of each message that goes through the mailing list server,
    the address for the list archive is printed:
    http://pinehurst.sageit.com/listarchive/.
    Good Luck,
    CSB
    -----Original Message-----
    From: Robinson, Richard
    Sent: Tuesday, March 02, 1999 5:44 PM
    To: '[email protected]'
    Subject: How do you create and use "common" type classes?
    I'm relatively new to forte and I'd like to know how can you handle utility
    type classes that you want to use through out your application? Ideally
    what I want is a static class with static methods.
    Let's say that I have a StringUtil class that has a bunch of methods for
    manipulating strings.
    My problem is that we have code that runs on the client and code that runs
    on the server. Both areas could use the StringUtil class, but from what I
    understand, I have to create StringUtil in a plan and then create a server
    object of type StringUtil. The server object will eventually get assigned
    to a partition. That's not good since I really want the server object to
    physically reside at the server end and at the client end. (Actually, I
    don't want a server object, I just want to invoke a static method of a
    static class).
    Any clues on how to solve this problem would be appreciated.
    Also, what is the url at Sage-it that has a summary of all emails that have
    been posted to [email protected]? Perhaps this question has been
    answered previously.
    Thanks in advance

  • How do I create/host interactive articles with embedded video for use in browsers?

    I'm seeking a little guidance -
    How do I create/host interactive articles with embedded video for use in browsers?
    The aim is to bring together video, design, images and writing in one place. A little like Born Presents, but very accessible and user friendly.
    I'm happy using InDesign but want to create interactive articles / magazines that have embeded video files as required. I've been looking at .SWF files but I've come unstuck.
    I want people to view the articles via a blog, ideally with them opening in a lightbox style viewer. It's not intended for tablet viewing and people should be able to view and interact with the files with little effort on their part.
    I think I know how to create these files within InDesign, but I'm not so hot on web design and I'm not sure how to host these online. Does this start coming into the realms of Flash?
    If anyone could point in the right direction I'd really appreciate it - Thank you in advance.

    PDF is one thing. Folios for DPS is another. There is a little bit of
    overlap but not much.
    The interactivity in the folio overlays panel is for DPS only.

  • How do I create an interactive map?

    How do I create an interactive map using digital publishing suite in InDesign? Basically it's an amusement park map and when you click on a button I want a description page of a ride to show that has interactivity on it and then it can be closed and another button on the map can be clicked to show another description page of a different ride. Is that possible?

    Use a multi state object. Depending upon how many point of interest you want on that map it can get pretty involved.

  • How do you create Inspection Characteristics?

    Hello there,
    I had a question.. How do you create Master inspection characeteristics?
    Is there a specific Tcode for this?
    Are any other assignments needed for this?
    Any help would be highly appreciated.
    Sincerely,
    Aji Kurian Mani

    Hi,
    You can create Master Inspection Characteristics ( MIC ) with T-code QS21 or use this path
    SAP Menu-LogisticsQuality ManagementQuality PlanningBasic DataInspection Characteristics--Create(QS21)
    1.Goto T-code QS21
    2.Enter Plant & desired code for MIC,then Enter.
    3. Here tick for Quantitative Characteristic or Qualitative Characteristic.
    4.Maintain control Indicator,catalog,Inspection method,Status,short text,search field.
    Then Assign MIC in inspection plan.
    Regards.
    Raja.

  • How do you create an array without using a shell on the FP?

    I want to be able to read the status of front panel controls (value, control box selection, etc.) and save it to a file, as a "configuration" file -- then be able to load it and have all the controls set to the same states as were saved in the file. I was thinking an array would be a way to do this, as I have done that in VB. (Saving it as a text file, then reading lines back into the array when the file is read and point the control(s) values/states to the corresponding array element.
    So how do I create an array of X dimensions without using a shell on the front panel? Or can someone suggest a better way to accomplish what I am after? (Datalogging doesn't allow for saving the status by a filename, so I
    do not want to go that route.)

    Thanks so much m3nth! This definitely looks like what I was wanting... just not really knowing how to get there.
    I'm not sure I follow all the icons. Is that an array (top left with 0 constant) in the top example? And if so, that gets back to part of my original question of how to create an array without using a shell on the FP. Do I follow your diagram correctly?
    If I seem a tad green... well I am.
    I hope you understand the LabVIEW environment and icons are still very new to me.
    Also, I had a response from an NI app. engineer about this problem. He sent me a couple of VI's that he threw together approaching this by using Keys. (I still think you are pointing to the best solution.) I assume he wouldn't mind m
    e posting his reply and the VI's for the sake of a good, thorough, Roundtable discussion. So here are his comments with VI's attached:
    "I was implementing this exact functionality this morning for an application I'm working on. I only have five controls I want to save, but they are all of different data types. I simply wrote a key for each control, and read back that key on initialization. I simply passed in property node values to the save VI at the end, and passed the values out to property nodes at
    the beginning. I've attached my initialize and save VI's for you to view. If you have so many controls that this would not be feasible, you may want to look into clustering the controls and saving the cluster as a datalog file.
    Attachments:
    Initialize_Settings.vi ‏55 KB
    Save_Settings.vi ‏52 KB

  • How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can"t find in any of the tutorials.

    How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can't find in any of the tutorials.

    The steps would be :
    - Add files from file menu > select pdf > add to site
    - Select the content (rectangle,text etc) and click on hyperlink dropdown > it should show you the added files list
    - Select the file you want to link
    Thanks,
    Sanjit

  • How do you create a new apple id on the iphone

    how do you create a new apple id on the iphone 4?

    Why do you want to do that?

Maybe you are looking for

  • Please Help! Unable to write error whilst trying to synch my ipod to Ext HD

    Hi there, I hope someone out there can help me as I have searched high and low for the answer to my problem without success. I recently copied my music library to an external hard drive (seagate) connected to my pc via usb. I am able to play music fi

  • System settings does not allow changes to be made to object

    Hi,           In one of my test system, when i tried to change the object  its displaying following error message. System settings does not allow changes to made to the object. I have checked the settings in se03, regarding modification objects of so

  • New logic board...now LOUD fans

    hi everyone.. i have a MBP 15". I had my logic board replaced last week due to graphics and power problems that i was experiencing. Ever since, the fans turn on to full blast (6000+ rpm) for the littlest things. If i open itunes, fans on, open word,

  • Error Exception activating module: EJBModule(p13n_ejb.jar) Unable to deploy

    Dears , i'm facing this exception when try to activate changes after portal Ear deployment please help ??? Message icon - Error An error occurred during activation of changes, please see the log for details. Message icon - Error Exception activating

  • Reserve IP Address lease by HW Address

    Need to configure router to reserve an IP address to a MAC address, so that a specific laptop gets the same IP address even after the lease expires. Do not want to set the wirless NIC, on the laptop, with a static IP, so it can acquire an IP when con