?
Solved

fullscreen on aspx of an swf, param height/with 100% doesn´t work on firefox...

Posted on 2008-10-17
1
Medium Priority
?
1,141 Views
Last Modified: 2011-10-19
i´ve  been working on a swf file that mnust fit the entire screen, when i export from flash it works with the html file that generates flash, but embedding the swf file into a aspx makes the page show only widh on 100% not height... this is how it looks on firefox explorer...

http://test.universalmusica.com/ecards/makano/home.aspx

it should be 100% on height...

what can i do?

i´am attaching the code that i´am using an also the html code that generate flash and preview images that shows the error view(ecard-view.jpg ) and how it should look (good-preview-ecard.jpg).
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 
public partial class Makano : System.Web.UI.Page
{
    private string player;
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["yourMail"]!=null)
            yourMail = Request["yourMail"].ToString();
        if (Request["yourName"] != null)
            yourName = Request["yourName"].ToString();
        if (Request["nameFriend"] != null)
            nameFriend = Request["nameFriend"].ToString();
        if (Request["mailFriend"] != null)
            mailFriend = Request["mailFriend"].ToString();
        if (Request["message"] != null)
            message = Request["message"].ToString();
        if (Request["marco"] != null)
            marco = Request["marco"].ToString();
        if (Request["fondo"] != null)
            fondo = Request["fondo"].ToString();
 
        StringBuilder sb = new StringBuilder();
        string url = this.Page.ResolveUrl("~/ecards/arecard.swf");
 
        player += "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"100%\" height=\"100%\" id=\"TrackPlayer\" align=\"middle\">";
        player += "    <param name=\"allowScriptAccess\" value=\"sameDomain\" />";
        player += "    <param name=\"allowFullScreen\" value=\"true\" />";
        player += "    <param name=\"movie\" value=\"" + url + "\" />";
        player += "    <param name=\"quality\" value=\"high\" />";
        player += "    <param name=\"bgcolor\" value=\"#000000\" />";
        player += "    <param name=\"FlashVars\" value=\"yourMail=" + yourMail + "&yourName=" + yourName + "&nameFriend=" + nameFriend + 
            "&mailFriend=" + mailFriend + "&message=" + message + "&fondo=" + fondo + "&marco=" + marco + "&\" />";
        player += "    <embed src=\"" + url + "\" quality=\"high\" bgcolor=\"#000000\" width=\"100%\" height=\"100%\" name=\"TrackPlayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
        player += "</object>";
 
        sb.Append(player);
 
        this.lt_eCard.Text = sb.ToString();
 
    }
 
    private string yourMail
    {
        set
        {
            Session["yourMail"] = value;
        }
        get
        {
            if (Session["yourMail"] == null)
                return "";
            else
                return Session["yourMail"].ToString();
        }
    }
 
 
    private string yourName
    {
        set
        {
            Session["yourName"] = value;
        }
        get
        {
            if (Session["yourName"] == null)
                return "";
            else
                return Session["yourName"].ToString();
        }
    }
 
    private string nameFriend
    {
        set
        {
            Session["nameFriend"] = value;
        }
        get
        {
            if (Session["nameFriend"] == null)
                return "";
            else
                return Session["nameFriend"].ToString();
        }
    }
 
    private string mailFriend
    {
        set
        {
            Session["mailFriend"] = value;
        }
        get
        {
            if (Session["mailFriend"] == null)
                return "";
            else
                return Session["mailFriend"].ToString();
        }
    }
 
 
    private string message
    {
        set
        {
            Session["message"] = value;
        }
        get
        {
            if (Session["message"] == null)
                return "";
            else
                return Session["message"].ToString();
        }
    }
 
    private string marco
    {
        set
        {
            Session["marco"] = value;
        }
        get
        {
            if (Session["marco"] == null)
                return "";
            else
                return Session["marco"].ToString();
        }
    }
 
    private string fondo
    {
        set
        {
            Session["fondo"] = value;
        }
        get
        {
            if (Session["fondo"] == null)
                return "";
            else
                return Session["fondo"].ToString();
        }
    }
 
}

Open in new window

index.txt
good-preview-ecard.jpg
ecard-view.jpg
0
Comment
Question by:danielnp20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
JunkMan earned 2000 total points
ID: 22746472
This should point you in the right direction http://blog.deconcept.com/2005/01/02/100-height-and-100-width-xhtml-flash-embed/

Use swfObject instead of the embed and object html tags and also because your using .net add the following with you new CSS
form {
  height: 100%;
  margin: 0;
  padding: 0;
}

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question