How to build a custom Flash CS3 component

I just googled in the hope to find some resources about how
to build custom Flash CS3 components, but nothing turned up. I also
couldn't find any info on Adobe's Flash developers center.
Do you know of any resource that sheds some light on this
subject?
If not then I'll have to try to find my way around custom
components by learning from the ones that came with Flash CS3 I
guess.

Flash CS3 has been out for a few weeks. At this point, your
best bet is Amazon books or Barnes & Noble. I've read a few
books that should shed light on the subject. Otherwise, you'll need
to wait a few more weeks while people start hashing it out and
posting it to blogs and other sites.

Similar Messages

  • Comunication and events: Flex Builder 2 with Flash CS3

    Hey hello...well, my question is: how can i comunicate Flex
    Builder 2 with Flash CS3?
    this is my code on Flex Builder 2:
    <mx:Script>
    <![CDATA[
    import mx.controls.*;
    import mx.events.*;
    public function CargaCompleta(e:Event):void
    try
    e.target.content.objeto_salida.addEventListener(Event.COMPLETE,uno);
    catch(er:Error) { Alert.show(er.message,"Error"); }
    public function uno(e:Event):void
    try
    s1.content["objeto_salida"].removeEventListener(MouseEvent.CLICK,s1.content["Finaliza"]);
    s1.source = null;
    s1.source = "recursos/reactivos/208M-1R.swf";
    catch(er:Error) { Alert.show(er.message,"Error"); }
    ]]>
    </mx:Script>
    <mx:SWFLoader id="s1" width="278" height="251"
    complete="CargaCompleta(event)"
    source="recursos/interactivos/208M-1I.swf">
    </mx:SWFLoader>
    and when it change from one file to another, on the event
    "Complete" for the SWFLodar, an error happend
    TypeError: Error #1009: No se puede acceder a una propiedad o
    a un método de una referencia a un objeto nulo.
    at 208M_fla::MainTimeline/frame1()
    Hope somebody can help me...for your time thanks...

    "Jorge EdOardo" <[email protected]> wrote in
    message
    news:gfcfcr$9s2$[email protected]..
    > Hey hello...well, my question is: how can i comunicate
    Flex Builder 2 with
    > Flash CS3?
    >
    > this is my code on Flex Builder 2:
    > <mx:Script>
    > <![CDATA[
    > import mx.controls.*;
    > import mx.events.*;
    > public function CargaCompleta(e:Event):void
    > {
    > try
    > {
    >
    e.target.content.objeto_salida.addEventListener(Event.COMPLETE,uno);
    > }
    > catch(er:Error) { Alert.show(er.message,"Error"); }
    > }
    > public function uno(e:Event):void
    > {
    > try
    > {
    >
    >
    s1.content["objeto_salida"].removeEventListener(MouseEvent.CLICK,s1.content["Fin
    > aliza"]);
    > s1.source = null;
    > s1.source = "recursos/reactivos/208M-1R.swf";
    > }
    > catch(er:Error) { Alert.show(er.message,"Error"); }
    > }
    > ]]>
    > </mx:Script>
    > <mx:SWFLoader id="s1" width="278" height="251"
    > complete="CargaCompleta(event)"
    > source="recursos/interactivos/208M-1I.swf">
    > </mx:SWFLoader>
    >
    > and when it change from one file to another, on the
    event "Complete" for
    > the
    > SWFLodar, an error happend
    >
    > TypeError: Error #1009: No se puede acceder a una
    propiedad o a un m?todo
    > de
    > una referencia a un objeto nulo.
    > at 208M_fla::MainTimeline/frame1()
    >
    > Hope somebody can help me...for your time thanks...
    http://weblogs.macromedia.com/pent/archives/2007/04/using_actionscr_1.html

  • Problem: Custom Flash Professional Component

    Hi,
    I just installed a copy of Flash Builder 4.5, and am attempting to create a custom "flash professional component" in the Design mode of an mxml project. The documentations mentioned that in order to create this component, I have to press on the 'Create in Flash Professional' button in the properties window.
    Here's the problem: clicking on the button brings up a window to name the component, then clicking 'create' brings up Flash Pro, but that's about it. I was told an edit window will show up in Flash Pro, but it doesn't happen. Flash Pro just initializes into the start page and does nothing else.
    Am I doing anything wrong? Please help, thanks in advance!

    As far as I know, it is only Windows or Mac
    MINIMUM System requirements for Cloud Programs... scroll down and check each program
    -http://helpx.adobe.com/creative-cloud/system-requirements.html

  • I want to build a custom flash player for my desktop

    I want to build a custom flash player for my desktop, using C# and Visual Studio 2008. Where do I start? I just want a real simple one to play swf files. Play, stop, loop, full screen, normal size. I'll start there. Where do I go? I've searched the web for an answer, and found several example projects that don't compile, or are incomplete. It's very frustrating. This shouldn't be that difficult.

    I think you started the right way - looking for example programs.
    If they won't compile, then they probably contain errors.  Fix the errors until they compile.  Then develop your own extensions.
    This is one way of developing applications, the other way is starting from scratch.

  • Creating flash cs3 component

    Hi,
    There is great and easy way to create flash based component
    in flash cs3 using action script 3.0.
    I am going to make a simple My button component which will
    behave likely same as flash native button component.
    You can modify this according your requirement this is just
    you give an idea about how we can go for creating a component in
    flash cs3.
    Follow these steps…
    1. Create a fla file and save this file with any name
    2. Create a movieClip and draw a rectangle shape on first
    frame.
    3. Right click on movieclip in library, select linkage
    4. Provide class name in text field area [MyButton] (you can
    use any name here which should matched with your class)
    5. Click Ok button
    6. Write class [MyButton]
    (you can copy and use this)
    * author @ sanjeev rajput
    * [email protected]
    * A flash action script 3.0 based component without extending
    UIComponent class
    package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import fl.motion.Color;
    public class MyButton extends Sprite{
    private var _tf:TextField;
    private var _Label:String="My Button";
    private var _bgColor:uint=0xCCCCCC;
    private var _rollOverColor:uint=0xFFCCCC;
    private var _borderColor:uint=0x000000;
    private var _borderThickness:int=1;
    private var _width:Number = 100;
    private var _height:Number =100;
    private var _background:Sprite;
    public function MyButton() {
    init();
    createChildren();
    initEventListeners();
    draw();
    //-------------property section [Start]
    [Inspectable]
    public function set Label(lbl:String){
    _Label=lbl;
    draw();
    public function get Label(){
    return _Label
    [Inspectable]
    public function set bgColor(color:uint):void{
    _bgColor=color;
    draw();
    [Inspectable]
    public function set borderColor(color:uint):void{
    _borderColor=color;
    draw();
    [Inspectable]
    public function set borderThickness(thickness:int):void{
    _borderThickness=thickness;
    [Inspectable]
    public function set rollOverColor(color:uint):void{
    _rollOverColor=color;
    //-------------property section [End]
    private function init():void {
    trace('welcome');
    _width = width;
    _height = height;
    scaleX = 1;
    scaleY = 1;
    removeChildAt(0);
    private function initEventListeners():void{
    addEventListener(MouseEvent.MOUSE_OVER, eventHandler);
    addEventListener(MouseEvent.MOUSE_OUT, eventHandler);
    private function eventHandler(event:Event):void{
    if(event.type == MouseEvent.MOUSE_OVER){
    toggleColor(_rollOverColor);
    if(event.type == MouseEvent.MOUSE_OUT){
    toggleColor(_bgColor)
    private function createChildren():void {
    _background = new Sprite();
    _tf = new TextField();
    _tf.autoSize = "center";
    _tf.selectable=false;
    addChild(_background);
    addChild(_tf);
    protected function draw():void {
    toggleColor(_bgColor);
    _tf.text = _Label;
    _tf.x = Math.floor((_width - _tf.width)/2);
    _tf.y = Math.floor((_height - _tf.height)/2);
    //width = _tf.width;
    private function toggleColor(color:uint):void{
    _background.graphics.clear();
    _background.graphics.beginFill(color, 1);
    _background.graphics.lineStyle(_borderThickness,
    _borderColor, 1);
    _background.graphics.drawRoundRect(0, 0, _width, _height,
    10, 10);
    _background.graphics.endFill();
    public function setSize(w:Number, h:Number):void {
    _width = w;
    _height = h;
    draw();
    7. Now right click again on your movieclip in library and
    select component definition.
    8. In class name text field provide same class name
    [MyButton]
    9. Click on ok button
    10. Right click again on movieClip in library and select
    Export SWC file.
    11. Same your exported SWC file in (For window only)
    [c:\Documents and Settings\$user\Local Settings\Application
    Data\Adobe\Flash CS3\en\Configuration\Commands\
    12. Now just open another new flash file open component
    panel/window reload component you will your component in component
    panel with MyButton name.
    13. Drag your custom component on stage provide inputs form
    property window and text it.
    Enjoy!

    Lt.CYX[UGA] wrote:
    > if anyone is using Flash CS3, try creating a flash
    movie, using the FLVPlayer
    > component to play an flv video and make it an executable
    projector. Run it
    > fullscreen and watch how the screen just stays black
    when the video should
    > appear. If you stay windowed, it works fine.
    >
    >
    steps to reproduce:
    > 1. create flash movie
    > 2. put an FLVPlayer component on a frame that's not the
    first (for testing
    > purposes)
    > 3. before the projector reaches the frame with the
    FLVPlayer component, change
    > it to fullscreen (by script or CTRL+F)
    >
    >
    observed behaviour:
    > not only the video doesn't play, but the whole screen is
    black until the
    > player goes back to windowed mode
    >
    >
    expected behaviour:
    > video should play
    >
    >
    remarks:
    > if you skip step 3, video plays correctly
    >
    Works just fine.
    Made new movie, on frame 2 places Full screen action, on
    frame 5 placed video component
    and stop(); action attached to frame. Projector pops large
    following by video playing
    just fine.
    I tried variety, first frame, many frames, all on one. Not
    able to reproduce your problem.
    Works on first go.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Flash CS3 Component Help?

    I have a menu component I've created in Flash CS3. I'm
    running into a small problem. Currently, in Flash, I create an
    array in the first frame of the movie and then assign a
    "menu_items" property (an array) on my menu object as that array.
    The array is an array of specialized menu item objects that is
    defined in a separate class. In Flex, I would like to do this:
    <mxml:macMenu>
    <mxml:macMenuItem image="btn1.png" click="{clickHandler}"
    />
    <mxml:macMenuItem image="btn2.png" click="{clickHandler}"
    />
    .....etc
    </mxml:macMenu>
    I'm not quite sure how I can get my object to realize the
    children should be part of the array inside of macMenu called
    "menu_item" and at the same time make sure they are an instance of
    my menu item class.
    I have posted the full AS3/Flash CS3 source of my menu at
    http://www.adambergman.com/as3/macMenu.html
    Any help or ideas are appreciated!!!

    Hi Rajesh,
    I've seen your query all over the internet, so I should warn you I don't believe it's possible to disable a List Item.
    For that you should use Josh Tynjala's open source Advanced List (http://code.google.com/p/flextoolbox/downloads/list).
    Best Regards,
    Filipe.

  • Use Flash CS3 component in Flex

    As a bit of a n00b, this may be a stupid question...
    If I were to get a component made for use with "Flash CS3",
    once it's compiled to a swf & fla, is it entirely usable in
    Flex [Builder] 3 ? Say I didn't want to re-skin it, and it was
    fully programable via AS?
    Is this a "it depends"? Is it a "absolutely, you just need
    CS3 to compile it first"?
    Thanks in advance,
    AJ

    "GuinnessIsGoodness" <[email protected]>
    wrote in message
    news:gbe131$c20$[email protected]..
    > As a bit of a n00b, this may be a stupid question...
    >
    > If I were to get a component made for use with "Flash
    CS3", once it's
    > compiled
    > to a swf & fla, is it entirely usable in Flex
    [Builder] 3 ? Say I didn't
    > want
    > to re-skin it, and it was fully programable via AS?
    >
    > Is this a "it depends"? Is it a "absolutely, you just
    need CS3 to compile
    > it
    > first"?
    I think you need to either use it as an as file or compile it
    as a swc,
    unless you want to load it into a swfloader.
    HTH;
    Amy

  • How do I access Adobe Flash CS3 or CS4?

    I want to animate and most of my favorite animators use Adobe Flash CS3 or CS4. I have Adobe Creative Cloud installed and Flash Professional CC demo, but I have no idea what to do from then.

    You find an honest place to buy the programs
    Old or Used Software http://www.emsps.com/oldtools/
    http://forums.adobe.com/message/1636890 warns about buying from eBay

  • URGENT: How to build composite custom component with a valuechangelistener?

    Hi there!
    I already posted regarding this issue before but unfortunately there wasn't any answer. But I don't think what I am trying to achieve is something unusual.
    I am trying to build a composite custom component, that consists of some UISelectOne components and some UIInputText fields. Now I need to fill the combo boxes depending on the selected values of the other boxes. Therefore I added a value change listener. But when it fires I get an index out of bounds exception on the page.
    The problem seems to be that the child components are being added twice to the component: Once in the constructor (which I am doing and which is called everytime the component is built) and once as part of the Restore View Phase (which JSF is doing).
    So my question is: How and where do I correctly initialize my component's children?
    A full code example can be found under http://forum.java.sun.com/thread.jspa?threadID=586301&tstart=150
    Thanks a lot in advance!

    #2 sounds utterly strange to me. How would I utilize the phase id?The code below shows my idea whereas I never validate it in any real projects:
    public class MyPhaseListener implements PhaseListener {
         private static final String IDKEY = "PHASEID";
         public static PhaseId getCurrentPhaseId() {
              return (PhaseId) FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get(IDKEY);
         public void beforePhase(PhaseEvent event) {
    event.getFacesContext().getExternalContext().getRequestMap().put(IDKEY,event.getPhaseId());
         public PhaseId getPhaseId() {
              return PhaseId.ANY_PHASE;
    }You can write your constructor like as:
    if (MyPhaseListener.getCurrentPhaseId().equals(PhaseId.RENDER_RESPONSE ) {
         /* create children because this is the first time to create the component */
    }

  • Skinning Flash CS3 component

    I posted this in General but haven't gotten a reply, and now
    I'm beginning to wonder if this must be accomplised with
    ActionScript.
    It's great that you can double click a component, open it up,
    and put your own artwork right in there and set the 9-slice scaling
    guides so it behaves properly. Lightyears better than trying to
    skin in any previous version of Flash.
    But, the rendered SWF does not seem to respect my artwork
    dimensions. For instance, I have a Slider component for which the
    default track is about 3px tall. I have my own artwork which is
    about 6px tall. While I can put my artwork in the skin and it
    scales perfectly, it squashes it down to 3px tall when rendered.
    Likewise, my 9x12 thumb gets scaled when rendered to 13x13(which is
    the default skin's thumb size) when rendered. Although the graphics
    appear the right size in Flash authoring, it appears to get scaled
    at runtime.
    How do I avoid this? How do I define the base dimensions for
    the skin graphics?
    Thanks for any advice.
    Post in General forum:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=194&threadid=1324684

    Changing the avatar size doesn't seem to have any affect. Do
    you know what the Avatar is for? It appears to be a bounding box of
    some sort, but resizing it doesn't seem to change anything.
    Actually, I notice that if I open the avatar, it says it is
    22x80, although the scaled version in the Slider is 3x80. It seems
    to be some sort of shared component. If I resize the contents of
    the avatar, all my buttons change, but the sliders don't actually
    change. Sadly, it seems like "3" is a hard coded value somewhere in
    the source. Blah.

  • Urgent HELP! How to Build a Podcast Dreamweaver CS3?

    I currently have a podcast running through blogspot.com, I
    got my RSS feed using FeedBurner. I am now building a website for
    my campus ministry using Dreamweaver CS3, and I want to import, or
    build my Podcast into my Dreamweaver site....how do I do it? The
    web site is for a Campus Ministry program at a local college, and
    we would like to have a web page within the web site where to
    students can go to not only listen to the streaming audio of the
    homily directly from the web page, but can subscribe to the podcast
    of the homilies as well. How do we do this? Thank you for your
    help!

    Here is the solution, I think that you are looking for.
    -Jim
    Attachments:
    Help_build_tab.vi ‏35 KB

  • How to use as3 in flash cs3 to add dynamic text from a text file into a flash file

    let me start out by saying today is my first day of scripting
    in flash.
    I have a text file text.txt
    it contains
    text1=hello world
    can someone please show me how to display this text in a
    flash file
    i have been searching for this for hours and there are
    solutions with flash mx and actionscript 2.0 but i would like to
    see how to do this in as3.
    just a simple frame that loads that file and displays it when
    you test run the program
    much apreciated
    RC

    I'm not up on AS3 yet, but many things are still similar. You
    need to use the LoadVars class to accomplish this, You can find
    information this in Flahs Help>Actionscript>Actionscript
    Language Reference>Actionscript classes.
    rem: the text.txt file and the text.fla file must be in the
    same directory.
    The code will look something like this:

  • How to build a custom movie clip that will be used as a cell renderer for column in a grid ?

    i want to build a datagrid that shows a picture and underneath it a name.
    the problem is i dont want to see all of the pictures, but all the pictures that have certain requirements, so i cant just make one movie clip that includes all the pictures and names.
    so my question is how do i build a movie clip that contains photo and text?.

    You do not create movieclips on the timeline using code, though you can create them and add them as children of something that has been manually placed in the timeline.
    To create a MovieClip using code you use: 
        var mc:MovieClip = new MovieClip();
    If you need to add an image, then however you intend to acquire the image, after it has been acquired, you add it to the MovieClip using:  
        mc.addChild(img); 
    where img is the instance of whatever form of object the image takes (Bitmap, Loader)
    If you need to add a TextField to the MovieClip then you use: 
        var tf:TextField = new TextField();
        mc.addChild(tf);
    and you can set up properties for the textfield such as the font and color and position as well after it has been instantiated (the first line).

  • How to build a custom waveform

    Hi , I have an array cluster that contain value, time, time tol+ and time tol-, these values should make a waveform as attached to this email. Could you please help me to implement this in LabVIEW .
    In the attached picture.
    value 1: 3  
    Time 1: 2
    Tol+ = 0.5
    Tol -=0.5
    value 2: 3.5  
    Time 1: 5
    Tol+ = 1
    Tol -=1
    Thanks
    Attachments:
    question.jpg ‏15 KB

    Hi tintin,
    you have to calculate all time values (t-dt, t+dt) to set Y values at the correct X mark.
    When you really need a waveform (in the LabVIEW definition of a Waveform) you have to choose a waveform-dt, that is the GCD of your t-tolerance values...
    Instead of begging for help you should have started to code and you should have provided your current state of VI...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Problems With List Component Flash Cs3

    Hello Friends,
    I am working in Flash Cs3.
    I am having a List component in my application.
    I added 10 items into my list component. Now out of those 10 items, i want to disable particular list items like Item 4, Item 8, Item 9. How to do this using flash cs3 or flash 8.0.
    Item1   --  Enabled state
    Item2   --  Enabled state
    Item3   --  Enabled state
    Item4   --  Disabled state
    Item5   --  Enabled state
    Item6   --  Enabled state
    Item7   --  Enabled state
    Item8   --  Disabled state
    Item9   --  Disabled state
    Item10 --  Enabled state
    Any suggestions/ideas would be really appreciated.
    Regards,
    Rajesh

    Hello Friends,
    I got a partial solution for this. Now i can able to disable a particular list item using flash cs3. I achived this. But it was happening only after clicking the item values....
    But i need in a diff way like, as soon as you run the flash file it has to disable. how is this possible in flash cs3.
    this is the code :
        import fl.controls.List;
        import fl.controls.listClasses.CellRenderer;
        import fl.controls.listClasses.ListData;
        import fl.events.ListEvent;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.text.TextField;
            var sampleItem1:Object = { label:"John Alpha" };
            var sampleItem2:Object = { label:"Mary Bravo" };
            var sampleItem3:Object = { label:"Trevor Gamma" };
            var sampleItem4:Object = { label:"Susan Delta" };       
            var myList:List;
            var tf:TextField;
      ListDataExample()
             function ListDataExample() {
                createList();
                tf = new TextField();
                tf.x = 10;
                tf.y = 125;
                addChild(tf);
             function createList():void {
                myList = new List();
                myList.move(10,10);
                myList.addItem(sampleItem1);
                myList.addItem(sampleItem2);
                myList.addItem(sampleItem3);
                myList.addItem(sampleItem4);
                myList.rowCount = 4;
                myList.addEventListener(ListEvent.ITEM_CLICK,listItemSelected);
                addChild(myList);
             function listItemSelected(e:ListEvent):void {
                var cr:CellRenderer = myList.itemToCellRenderer(e.item) as CellRenderer;
                var listData:ListData = cr.listData;
       if(cr.listData.row == 2) {
        cr.enabled  = false
                tf.text = "Row selected: " + listData.row;
    waiting for your replies.
    Regards,
    Rajesh

Maybe you are looking for