1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Images In Flash

Discussion in 'Graphics & Multimedia' started by Ticcaso, Jul 2, 2007.

  1. #1
    hey all
    my problem is that i want to do a flash-only page and i cant seem to put images (in a table) or any kind of table in it
    if someone can help me i would apreciate it
    SEMrush
    my flash action:
    "stop();
    var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
    myStyle.load("zack.css");
    content_txt.styleSheet = myStyle;
    content_txt.multiline= true;
    content_txt.wordWrap = true;
    content_txt.html = true;
    var story:XML = new XML();
    story.ignoreWhite = true;
    story.load("rewards.html");
    story.onLoad = function () {
    content_txt.htmlText = story;
    }
    "

    zack.css

    headline {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 16px;
    font-weight: bold;
    display: block;
    }
    subheadline {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 13px;
    font-weight: bold;
    display: block;
    }
    mainBody {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 10px;
    display: block;
    }
    biline {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 11px;
    font-style: italic;
    display: inline;
    }
    A {
    font-family: Arial,Helvetica,sans-serif;
    color:cccccc;
    font-size: 10px;
    display: inline;
    text-decoration:underline;
    }

    p.s. text works
     
    Ticcaso, Jul 2, 2007 IP
    SEMrush
  2. yugolancer

    yugolancer Well-Known Member

    Messages:
    321
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2

    Does it mean that you have sorted your problem out?
     
    yugolancer, Jul 2, 2007 IP
  3. Mirage

    Mirage Active Member

    Messages:
    204
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I am not sure I am following 100% what you are doing here, but I will point out that you have to remember that Flash's HTML support for certain components is not complete. You should check with the flash Live Docs on the Adobe site to see if embedding of an image for this particular control (content_text) is supported.

    Beyond that, I am a bit confused that you are loading html ("rewards.html" into an XML object and then assigning that XML object to your content object (presumably a text type that you have placed on the Flash stage).

    I am not sure if this is useful, but maybe it will give you some directions to look.

    Good luck.
     
    Mirage, Jul 3, 2007 IP
  4. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    well i am a wannabe
    and yes it is a text type


    rewards.html
    "
    <body>
    <pre class="style1"><span class="style2">Freken testing


    still testing


    done....
    nah i'm messin with yah still testing
    </pre>
    <div align="center">
    <pre class="style1">
    <font color="#FF0000"><strong>will this freken work this time?</strong></font></pre>
    </div>
    </body>
    "


    now what i asked was advice on how can i import images (and swf) from an external file
     
    Ticcaso, Jul 9, 2007 IP
  5. Ticcaso

    Ticcaso Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    anyone ???
     
    Ticcaso, Jul 14, 2007 IP