Connecting a Flash that already has a class inside the Document class

I'm working on this little project to demonstrate how flash works in a few friends and I'm doing a small avatar have some animation and mouse grow of the reversal and after having removed the mouse the avatar will decrease. It is believed also to be a message displayed on the avatar and clicking on the avatar, the message changes. I have the shrinkage/growth avatar thing done and his works well and I also have the message that will be displayed, but I can't seem to link the two in a single actionscript file so that both appear at the same time.

Here are the codes:

(i) for the avatar narrowing/culture

package {}
import flash.display.MovieClip;
import flash.events.MouseEvent;
SerializableAttribute public class U1A3_Stickman extends MovieClip {}
private var _origXScale:Number;
private var _origYScale:Number;
public void U1A3_Stickman() {}
_origXScale = This.ScaleX;
_origYScale = This.ScaleY;
this.addEventListener (MouseEvent.ROLL_OVER, grow);
this.addEventListener (MouseEvent.ROLL_OUT, shrink);
}
private void grow(event:MouseEvent):void {}
this.scaleX * = 1.5;
this.scaleY * = 1.5;
}
private void shrink(event:MouseEvent):void {}
this.scaleX = _origXScale;
this.scaleY = _origYScale;
}
}
}

(II) for the message:

package {}
import flash.display. *;
import flash.text. *;
SerializableAttribute public class U1A3_HelloWorld extends MovieClip {}
public void U1A3_HelloWorld() {}
var myMessage:TextField = new TextField();
var myFormat:TextFormat = new TextFormat();
myFormat.font = "Arial";
myFormat.size = 30;
myFormat.bold = true;
myFormat.color = 0xFF0000;
myMessage.x = 100;
myMessage.y = 50;
myMessage.autoSize = TextFieldAutoSize.LEFT;
myMessage.border = true;
myMessage.defaultTextFormat = myFormat;
myMessage.text = "What upward! \n I'm so hostage! « ;
addChild (myMessage);
}
}
}

I tried to simply insert the document class in flash with the code of reduction/increase of avatar, but it does not work. Any help would be appreciated!

Assuming you have three U1A3_Stickman.fla files (with the rsp as file as a document class), U1A3_HelloWorld.fla (with the rsp as file as a document class) and a main.fla in one folder. Publish the first two FLAS under swf, then use a charger in the main.fla to load both on stage.

Tags: Adobe Animate

Similar Questions

  • I need to add bullets to a list that already has a class of p associated with it and they are just what I try mess it all links

    Okay, so I hate lists at this point! I have a set of links that have a class associated with them are, so that they become blue over bearing. Now, I need to add these red balls in front of the links. I have the following css:

    .links a: link {}
    text-decoration: none;
    Color: #333333;
    text-align: left;
    }
    .links a: visited {}
    text-decoration: none;
    Color: #000000;
    text-align: left;
    }
    has .links: hover {}
    text-decoration: underline;
    color: #003399;
    text-align: left;
    }
    .links a: active {}
    text-decoration: none;
    Color: #333333;
    text-align: left;
    }

    I then for fleas:

    {.classol}
    text-align: left;
    color: Red;
    list-style-position: inside;
    }

    It's the list on the links page:

    "< class p = 'links' > < a href ="http://www.cslb.ca.gov "> California State Board of licensing contractors < /a > < class p = 'links'" > < a href = "http://www.goodbuilders.org/index.asp" > El Dorado Builders Exchange < /a > < /p >
    "< class p = 'links' > < a href ="http://www.video.dot.ca.gov "> Cal Trans Live streaming video traffic < /a > < /p >"
    "< class p = 'links' > < a href ="http://www.dgs.ca.gov/default.htm "> California Department of General Services < /a > < /p > h"

    THE PROBLEM:

    If I add the < class li = "classol" > in front of the links, it messes up the alignment and the link turns red. I'm sure it's something simple, but I'm baffled by this thing the entire list. I tried all possible arrangement between these two and that you are unable to watch and 'Act' correctly.

    As always, any help is appreciated.

    Thank you!

    Your code has several errors in violation, run your pages through this tool of online validation: http://validator.w3.org/

    Also, you have a novice common mistake which is division - it is.  Try to simplify your page layout using some divisions keys for items that will be used once as the header, content, menu, footer.  Then use the classes of division for the elements that you can use more than once per page. Finally, you should not try to insert content on a large background image.  Read why here: http://alt-web.com/Backgrounds.shtml

    To answer your questions on the lists, try this:

    CSS

    ---------

    HTML

    ----------

  • http://www.CPUC.ca.gov/PUC"> California Public Utilities Commission.
  • http://www.coldwatersaloon.com"> Coldwater Saloon.
  • ------

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/

  • I can I burn a slideshow of my office on a RW dvd that already has data on it?  I want to erase the old data in the dvd

    I can I burn a slideshow of my office on a dvd + RW that already has data on it?  I want to erase the old data on the dvd and replace it with new content.

    Try to read the manual of your DVD - has nothing to do with iPHoto for Mac.

    LN

  • Windows 3.1 can be made to run on a machine that already has Windows XP OS on it?

    I have a legacy written in FORTRAN 77 program. I am trying to load MS FORTRAN Profession Workbench on my computer that has the Windows XP operating system.  But Ms. FORTRAN Professional Workbench runs under Windows 3.1, but I don't know if or how it is possible to run on a computer that already has OS XP.  Any guidance is greatly appreciated it.  Thank you.

    Hello

    Try to run it in DosBox: http://www.dosbox.com/

    And here is some other information I found:

    http://www.techrepublic.com/forums/questions/Fortran/#.

    See you soon.

  • disc CD - r - is possible to burn on a cd - r disc that already has something on this subject?

    y at - it all possiable way to burn on a cd - r disc that already has something on it

    Yes, but only to the following condition: If the CD was written as a multi-session and has not yet been finalized.

    However, it is rare that these days most CD writing software assumes that you want to finalize a disc and is the default option. See you soon,.

    See you soon,.

    Jerry

  • The place most frequent that I need to connect to a BT hotspot has a problem with the nearest hotspot. Although many sites come they are security protected.

    Access to the BT hotspots.

    The place most frequent that I need to connect to a BT hotspot has a problem with the nearest hotspot. Although many sites come they are protected from security and only the nearest BT hotspot is displayed. There are many others, but they are invisible. I think that there is a software that allows you to see several hot spots the. BT are unable to give me the details.

    This is probably a function of the driver for your wireless card.  I would check with the manufacturer of the computer or adapter.

    Good luck.

  • How to create a Unique constraint on a column that already has duplicates. Only future duplicates should be avoided

    Hi all

    Can someone let me know how to create a Unique constraint on a column that already has duplicates. Only future duplicates must be avoided.

    Any help will be greatly appreciated.

    Best regards

    gt1942

    ALTER table Add constraint unique (column_name) may be deferred novalidate;

  • When I try to open the Task Manager, I got an error message that says that it has been disabled by the administrator. How to enable Task Manager?

    original title: whenever I try to open the Task Manager, I get an error message that says that it has been disabled by the administrator.  But I never turned it off.  How to enable Task Manager?

    How to enable Task Manager?

    Try the solution in one of these KB articles:

    "Task manager has been disabled by your administrator error.
      <>http://support.Microsoft.com/kb/555546 >
      <>http://support.Microsoft.com/kb/555480 >

    HTH,
    JW

  • I can't change my PDF even if I pay for the plan of creative cloud. It seems that it has stopped working over the weekend.  Someone knows why?

    I can't change my PDF even if I pay for the plan of creative cloud. It seems that it has stopped working over the weekend.  Someone knows why?

    I worked on it. For some reason, he opened my PDF in Adobe Reader DC and DC Pro not Adobe.  Once I have it open as a Pro it works beautifully and I could edit.

  • Interactive PDF, asking for signature, without GIS has been implemented in the document

    Note: I also posted this in the Indesign forum because I do not know the source of the problem.

    I exported a PDF interactive SC.5 InDesign which works exactly how it is supposed to. All right, except that anyone using Adobe Reader (Adobe Acrobat Pro vs) becomes a message that they are supposed to sign the document. Only problem is I have not implemented a signature field in InDesign or Acrobat. I have attached a screenshot. When I did this project last year, Reader X wasn't yet and everything worked perfectly without this problem in Reader 9.

    I went into my preferences and removed and unchecked anything having to do with certificates or signatures digital in Acrobat and re-registered with no luck. Anyone know how to get rid of this message/request?Screen shot 2012-06-15 at 3.59.15 PM.png

    In addition, the real signature box is grayed out.

    Screen shot 2012-06-15 at 2.59.33 PM.png

    My client is not happy and I need to find a way to make the paper stop asking for this signature.

    Thank you.

    I think it has something to do with the new feature of EchoSign. If you have only the buttons, as opposed to text fields, check boxes, etc., try to set up security standard password so that the filling is prohibited. The buttons still work, but the message may disappear. I can't test it at the moment, but I'd be interested to know if it works.

  • Message appears that rundll32 has stopped working, close the program

    Original title: Rundll32

    Message that rundll32 has stopped working, close message program - every day when I open.   Instead of doing a "clean boot" if I just close program and treat it as a disadvantage I do damage?   The other to my frustrations?

    Hello

    Perform a clean boot to determine what third party app can be the cause of the issue.

    http://www.SevenForums.com/tutorials/179159-troubleshoot-application-conflicts-performing-clean-startup.html

  • Can I install on a computer that already has photoshop CS 6 without damaging SC 6.

    I have photoshop CS 6 for students and teachers on my computer already. I felt optimistic about the time and attention that I would have to learn all the complications of a full version.  I used only items in the past and do not have a user experienced and to whom.  I need to quickly edit a few photos of the school.  I can't install the version of the items that I already have without damaging version CS 6?  My installation for CS 6 disc has a small crack in the Center, and I don't know if it will work again.

    Yes, all versions of the Adobe software install in their own separate files on your hard drive and will coexist with happiness.

    If you can install components without interfering with the CS6.

    My installation for CS 6 disc has a small crack in the Center, and I don't know if it will work again.

    Is not serious. You don't really need still other than a coaster of drink. It contains probably obsolete software in any case.

    You can always download the CS6 Installer on Adobe's site when you need to re - install CS6.

    http://helpx.Adobe.com/x-productkb/policy-pricing/CS6-product-downloads.html

  • How can I get Firefox to open a new URL when you enter a URL that already has an open tab?

    When you enter a URL that you have already opened, Firefox instead of opening a new tab back to this tab where the URL was already open. If you cannot open duplicates.

    How can I disable this feature?

    Thank you!

    I have already installed Omnibar, but now also installed Omnibar. This seems to have taken the trouble of having the switch so that the first variant.

    I recommend so these two addons that also makes the top address bar! Like the excellence of Google Chrome.

  • I can restore time capsule backup to another computer that already has a user

    Looking for help, my laptop was stolen, thankfully I have a time capsule backup. I could buy a new laptop, but I was wondering if there is anyway I can just restore my backup on the laptop of my wife, or if that's too difficult/impossible.  Currently laptop my wife not a as user, so my question is could I myself set him up as an additional user and then use my backup time capsule of my laptop now flown to restore everything on your computer? Just a question because I don't think we need 2 notebooks more, so would be nice to not have to buy one additional laptop just to get my time capsule backup. Any help much appreciated.

    The Finder, choose utilities go to menu and use the Migration Wizard to restore.

    (139740)

  • How can I add a family member to another computer that already has safety for the family?

    I have Family Safety running on 2 PCs at home, but for some reason, I'm not monitored on our laptop? I tried to find out how to change it in case someone is using my account. I can not get this information. Anyone know how to make this change? I want that all family members watched on two PCs.

    Hello

    Are you trying to follow your own account? If this is what you want to do and that you are the parent (family safety management) or the administrator of the computer, followed by your own account are impossible. Only the standard users can be added to family safety and parental controls.

    For additional help on how to configure Windows Live Family Safety in a computer, please see the link below:

    Protect your kids with parental controls

    If you have any other questions, please let us know.

    Thank you!

Maybe you are looking for

  • Closing tabs creates a gap between the tabs.

    Hello. I'm trying to customize the look of FF by editing the userChrome.css. I almost had, but there is a problem that I can't solve. After closing a tab with a higher number 40, there are still vacant place between the tabs to the left. See the imag

  • can I restore or reset my iPhone 4 without upgrading to the most recent iOS?

    I need eliminate some storage, have backed up using iTunes. Given that my device is an iPhone 4 and cannot move to end iOS, will be I stopped to restore my apps once I reset to purge the storage? Or is there a better way to serve the storage? Thank y

  • 2nd hard drive

    I hope someone can help me before I go back to the computer. I just bought a HP Envy 700-074 from best Buy and I wanted to add a second hard drive.  I've been putting computers together for 30 years and have never had a problem until now.  I called H

  • Cannot start in normal mode.

    my computer will only work when its on safe mode or safe mode with networking, it does not work or crashes in normal mode, why?

  • OfficeJet Pro 8500 stuck on every print job

    Hello I have an OfficeJet 8500 Pro directly connected via USB (not via the USB hub) to a 2013 running 10.8.4 iMac The printer is recognized (if I remove and re-add). But will only print one document at a time and must be rebooted between each print.