A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: <title></title> - HTML to Flash

  1. #1
    Musical chair sumwungye's Avatar
    Join Date
    Jan 2008
    Location
    Planet Earth, third planet from the Sun
    Posts
    287

    Question <title></title> - HTML to Flash

    I've noticed that every time I have a .swf file open in the browser window, it has a really ugly title tag.

    (application_x-shockwave-flash Object)
    Is there any code/not code that can make it say anything I want, and not "(application_x-shockwave-flash Object)?"
    --SumWunGye

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    your not supposed to target/open a .swf DIRECTLY in a browser.. it is SUPOPSED to be housed/embedded into a container/shell..like an HTML page.

  3. #3
    Musical chair sumwungye's Avatar
    Join Date
    Jan 2008
    Location
    Planet Earth, third planet from the Sun
    Posts
    287
    Quote Originally Posted by whispers
    your not supposed to target/open a .swf DIRECTLY in a browser.. it is SUPOPSED to be housed/embedded into a container/shell..like an HTML page.
    Well, how can I make it fullscreen, then?
    --SumWunGye

  4. #4
    Musical chair sumwungye's Avatar
    Join Date
    Jan 2008
    Location
    Planet Earth, third planet from the Sun
    Posts
    287
    Well, not fullscreen, but covering all of the browser window...
    --SumWunGye

  5. #5
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    using 100% in the HTML embed code..

    I guess it depends on yoru needs.. in my footer in a link called full screen... that may be of some help to you.

  6. #6
    Musical chair sumwungye's Avatar
    Join Date
    Jan 2008
    Location
    Planet Earth, third planet from the Sun
    Posts
    287

    well...

    What I'm trying to do is something like in the uploaded diagram...

    So when the browser window isn't maximized, and, therefore, is restored and resized, I want the flash animation to resize and stretch to fit the browser window always. Which it already does, but I also need it to show a title in the top other than "(application_x-shockwave-flash Object)" so I can control it.

    Hope this clarifies.
    Attached Images Attached Images
    --SumWunGye

  7. #7
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    did you check out the link in my footer?

    although it moves/aligns content on screen re-size... it can easily be changed to scale instead.


    this has also been asked and answered many time here before.. have you tried a search?

    its a mixture of 100% in the HTML code..and Stage.onResize().. etc..etc

    the onResize is the key here..

  8. #8
    Musical chair sumwungye's Avatar
    Join Date
    Jan 2008
    Location
    Planet Earth, third planet from the Sun
    Posts
    287
    Okay, so I looked up "100% html" in google, and nothing useful came up.

    Then, I looked up "stage onresize" in google, and found the actionscript dictionary. So, I saw this:

    Code:
    myListener   = new Object(); 
     myListener  .onResize = function () { ... } 
     Stage.addListener(  myListener  ); 
     // later ... 
     Stage.removeListener(  myListener  );
    and this:
    Callback method; indicates that the Flash movie was resized. You can use this event to write a function that lays out the objects on the Stage when a movie is resized.
    I understand this code, minus the part where I actually "lay out the objects on the stage."

    I also clicked the fullscreen link on your footer, and couldn't find anything either.

    I could use some idea as to how to embed swf files in html so it fits the browser window, then I'll see what kind of actionscript I need then.

    Thanks.
    --SumWunGye

  9. #9
    Musical chair sumwungye's Avatar
    Join Date
    Jan 2008
    Location
    Planet Earth, third planet from the Sun
    Posts
    287
    So, anyway, how is this "100% Html" thing done, anyways?
    --SumWunGye

  10. #10
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    did you check out the attached .zip file in that link I told you check out? it shows you how..

    if you need to learn how to embed a .swf into an HTML page..

    google 'SWF Object'.. IMHO that is the best method out. (its also stickied at the top of most of the Flash help forums here)

    and use 100% for both height & width for the dimensions instead of a pixel/number

  11. #11
    Musical chair sumwungye's Avatar
    Join Date
    Jan 2008
    Location
    Planet Earth, third planet from the Sun
    Posts
    287
    I checked out the .zip file in your fullScreen footer link...and it didn't really cover what I wanted. In fact, I don't even know what it was supposed to do.

    All I need is either (a), a way to embed flash in html to it fills up the entire window, no more, no less, or (b), a way to open flash directly in a browser and be able to control the title of the page... or, in html terms, use <title></title> in flash.
    --SumWunGye

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