A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: mediaplayer text overlay

  1. #1
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    mediaplayer text overlay

    Looking to find a way to make the text overlay in the mediaplayer be more transparent.

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Set an alpha value for the "m" movieclip in the "loadSelectedItem" function. Be aware this also sets the alpha value of the text object ("t") as it is a child of "m" unless you go the extra length to separate the two.

  3. #3
    Junior Member
    Join Date
    Dec 2009
    Location
    Florida
    Posts
    7

    Text OVERLAY FONT SIZE // mediaplayer with XML file

    RE: OVERLAY FONT SIZE // mediaplayer with XML file
    --------------------------------------------------------
    Is there a way to set a "larger font SIZE" (for persons with visual impairments),
    when using an external XML file to load images with a TEXT "OVERLAY" with mediaplayer.

    sample:
    ------------------------------
    <item label="menu">
    <still src="http://domain.org/img/img.png" tid="0x00000010" ttime="3" itime="15" scalemode="1" />
    <overlays transition="0" timeframe="0,3,11,14">
    <overlay x="270" y="50" width="210" height="70" text="size 1" link="1.php" />
    <overlay x="270" y="120" width="210" height="70" text="size 2" link="2.php" />
    <overlay x="270" y="200" width="210" height="20" text="size 3" link="3.php" />
    <overlay x="270" y="240" width="210" height="20" text="size 4" link="4.php" />
    </overlays>
    </item>

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

  4. #4
    Super Moderator
    Join Date
    Jun 2000
    Posts
    3,512
    use a frame action
    mediaplayer1.textFormat = new TextFormat('_sans', 20);

  5. #5
    Junior Member
    Join Date
    Dec 2009
    Location
    Florida
    Posts
    7
    thank you kindly Bob... i am loading a second SWF file from a "main.swf"
    file think i have the "font" worked out in AS3 as follows...

    --------------------------------------------------------
    // koolmoves v 7.5.1 // as3 // sub swf 1
    var myFont:TextFormat=new TextFormat();myFont.size="24";
    myFont.font = "Verdana";myFont.align="center"

    var myTextSub:TextField = new TextField();
    myTextSub.width = 175;
    myTextSub.height = 30;
    myTextSub.border = true;
    addChild(myTextSub);

    myTextSub.x = 20;
    myTextSub.y = 20;
    myTextSub.text = myArray[1]; // not arriving...
    myTextSub.setTextFormat(myFont);

    stop();
    --------------------------------------------------------

    however.... the data from the "main" section "myArray[1]" does not arrive to the variable in the "sub" SWF file...

    here are the 2) FUN and SWF files....
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center