How to Make Flash CS4/Dreamweaver CS4 Website Function on all Latest Mobile Devices

Hello!
I am trying to add code into my Dreamweaver CS4 file and/or Flash CS4 file in order to have the website I have created work across all of the latest mobile devices as well as traditional online systems. My flash file has a transparent stage, and my dreamweaver file has a full-screen background image. I have reviewed various tutorials and articles available online, and some advocate simply adding code, which does not seem to be working for me, while others suggest having a similar separate site created solely for mobile devices. If this is the best option, I don't know how that should be set up. What is the best path to take with this?
This is the collection of various pieces of code I have tried adding to my files:
  <meta name="viewport" content="width=device-width" user-scalable="yes" initial-scale="1.0" /> <!-- iphone,android -->
   <meta name="HandheldFriendly" content="true" /> <!-- blackberry -->
</style>
   <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
        <param name="var params = {          id: "flashID", name: "flashcontent", menu: "false", allowFullScreen: "true", fullScreenOnSelection: "true", scale:"noscale", salign:"middle"};"
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
//or//
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.align = StageAlign.TOP_LEFT;
next_btn.width = 133 * .5;
next_btn.height = 133 * .5;
//flash//
next_btn.width = Capabilities.screenDPI * .5;
next_btn.height = Capabilities.screenDPI * .5;
//flash//
this.stage.addEventListener(Event.RESIZE, doLayout);
//flash://
<initialWindow>
   <width>320</width>
   <height>480</height>
   <!-- several other properties... -->
</initialWindow>
* Convert inches to pixels.
private function inchesToPixels(inches:Number):uint
   return Math.round(Capabilities.screenDPI * inches);
var button:Sprite = new Sprite();
button.x = 20;
button.y = 20;
button.graphics.beginFill(0x 003037);
button.graphics.drawRect(0, 0, this.inchesToPixels(.75),
   this.inchesToPixels(.25));
button.graphics.endFill();
   this.addChild(button);
//hard-code title://
var titleBar:Sprite = new Sprite();
titleBar.x = 0;
titleBar.y = 0;
//stage width determines width of title://
var titleBar:Sprite = new Sprite();
titleBar.x = 0;
titleBar.y = 0;
titleBar.graphics.beginFill(0x003037);
titleBar.graphics.drawRect(0, 0, this.stage.stageWidth,
   this.inchesToPixels(.3));
titleBar.graphics.endFill();
this.addChild(titleBar);
//footer://
var footer:Sprite = new Sprite();
footer.graphics.beginFill(0x003037);
footer.graphics.drawRect(0, 0, this.stage.stageWidth,
   this.inchesToPixels(.3));
footer.graphics.endFill();
footer.x = 0;
footer.y = this.stage.stageHeight - footer.height;
this.addChild(footer);
* Center one DisplayObject relative to another.
private function center(foreground:DisplayObject,
   background:DisplayObject):void
      foreground.x = (background.width / 2) -
         (foreground.width / 2);
      foreground.y = (background.height / 2) +
         (foreground.height / 2);
//cont.//
var title:SimpleLabel = new SimpleLabel("My Application",
   "bold", 0xffffff, "_sans", this.inchesToPixels(.15));
this.center(title, titleBar);
this.addChild(title);
//override width and height getters
public override function get width():Number
   return this.textLine.textWidth;
public override function get height():Number
   return (this.textLine.ascent - 1);
if (Capabilities.manufacturer == "Android Linux" && Capabilities.screenResolutionY == 1024)
next_btn.width = 85;
next_btn.height = 85;
This is the code for my Dreamweaver CS4 file (without the additional erogenous code attempts!):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>My Website Title and Slogan.</title>
<style type="text/css">
<!--
body {
          background-image: url(bground%20_img3.jpg);
          background-repeat: no-repeat;
-->
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<img src ="image.gif"  width=90% height=auto>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<meta name="Keywords" content="keywords…" />
<div align="center"></div>
<div align="center">
  <p> </p>
  <p>
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="630">
      <param name="movie" value="FlashFile.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <param name="swfversion" value="6.0.65.0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="FlashFile.swf" width="900" height="630">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <param name="swfversion" value="6.0.65.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
  </p>
</div>
<div align="center"> </div>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>
I have tried various combinations of the code listed above, but nothing seems to be working. I am not sure as to the correct positioning of the code, and maybe that is the problem, or maybe it is because this code in not for CS4, or not appropriate for my project. I also do not know what code should be inside the Flash file, nor what should should be inside the Dreamweaver file.
Thank you in advance for any assistance!

There is no simple code to add that will display the same on all mobile devices....
you do know that the iProducts (iPhone, iPad, etc) don't display Flash at all, right?
So as a start for "functioning on all latest mobile devices" you should drop any Flash content you have and move on.
Adninjastrator

Similar Messages

  • How to Make Dreamweaver CS4/Flash CS4 Website Function on all Latest Mobile Devices

    Hello!
    I am trying to add code into my Dreamweaver CS4 file and/or Flash CS4 file in order to have the website I have created work across all of the latest mobile devices as well as traditional online systems. My flash file has a transparent stage, and my dreamweaver file has a full-screen background image. I have reviewed various tutorials and articles available online, and some advocate simply adding code, which does not seem to be working for me, while others suggest having a similar separate site created solely for mobile devices. If this is the best option, I don't know how that should be set up. What is the best path to take with this?
    This is the collection of various pieces of code I have tried adding to my files:
      <meta name="viewport" content="width=device-width" user-scalable="yes" initial-scale="1.0" /> <!-- iphone,android -->
       <meta name="HandheldFriendly" content="true" /> <!-- blackberry -->
    </style>
       <param name="allowScriptAccess" value="sameDomain" />
          <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="sameDomain" />
            <param name="allowFullScreen" value="true" />
            <param name="var params = {          id: "flashID", name: "flashcontent", menu: "false", allowFullScreen: "true", fullScreenOnSelection: "true", scale:"noscale", salign:"middle"};"
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    //or//
    this.stage.scaleMode = StageScaleMode.NO_SCALE;
    this.stage.align = StageAlign.TOP_LEFT;
    next_btn.width = 133 * .5;
    next_btn.height = 133 * .5;
    //flash//
    next_btn.width = Capabilities.screenDPI * .5;
    next_btn.height = Capabilities.screenDPI * .5;
    //flash//
    this.stage.addEventListener(Event.RESIZE, doLayout);
    //flash://
    <initialWindow>
       <width>320</width>
       <height>480</height>
       <!-- several other properties... -->
    </initialWindow>
    * Convert inches to pixels.
    private function inchesToPixels(inches:Number):uint
       return Math.round(Capabilities.screenDPI * inches);
    var button:Sprite = new Sprite();
    button.x = 20;
    button.y = 20;
    button.graphics.beginFill(0x 003037);
    button.graphics.drawRect(0, 0, this.inchesToPixels(.75),
       this.inchesToPixels(.25));
    button.graphics.endFill();
       this.addChild(button);
    //hard-code title://
    var titleBar:Sprite = new Sprite();
    titleBar.x = 0;
    titleBar.y = 0;
    //stage width determines width of title://
    var titleBar:Sprite = new Sprite();
    titleBar.x = 0;
    titleBar.y = 0;
    titleBar.graphics.beginFill(0x003037);
    titleBar.graphics.drawRect(0, 0, this.stage.stageWidth,
       this.inchesToPixels(.3));
    titleBar.graphics.endFill();
    this.addChild(titleBar);
    //footer://
    var footer:Sprite = new Sprite();
    footer.graphics.beginFill(0x003037);
    footer.graphics.drawRect(0, 0, this.stage.stageWidth,
       this.inchesToPixels(.3));
    footer.graphics.endFill();
    footer.x = 0;
    footer.y = this.stage.stageHeight - footer.height;
    this.addChild(footer);
    * Center one DisplayObject relative to another.
    private function center(foreground:DisplayObject,
       background:DisplayObject):void
          foreground.x = (background.width / 2) -
             (foreground.width / 2);
          foreground.y = (background.height / 2) +
             (foreground.height / 2);
    //cont.//
    var title:SimpleLabel = new SimpleLabel("My Application",
       "bold", 0xffffff, "_sans", this.inchesToPixels(.15));
    this.center(title, titleBar);
    this.addChild(title);
    //override width and height getters
    public override function get width():Number
       return this.textLine.textWidth;
    public override function get height():Number
       return (this.textLine.ascent - 1);
    if (Capabilities.manufacturer == "Android Linux" && Capabilities.screenResolutionY == 1024)
    next_btn.width = 85;
    next_btn.height = 85;
    This is the code for my Dreamweaver CS4 file (without the additional erogenous code attempts):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>My Website Title and Slogan.</title>
    <style type="text/css">
    <!--
    body {
              background-image: url(bground%20_img3.jpg);
              background-repeat: no-repeat;
    -->
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body>
    <img src ="image.gif"  width=90% height=auto>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <meta name="Keywords" content="keywords…" />
    <div align="center"></div>
    <div align="center">
      <p> </p>
      <p>
        <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="630">
          <param name="movie" value="FlashFile.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="swfversion" value="6.0.65.0" />
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="FlashFile.swf" width="900" height="630">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="transparent" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>
      </p>
    </div>
    <div align="center"> </div>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    swfobject.registerObject("FlashID");
    //-->
    </script>
    </body>
    </html>
    I have tried various combinations of the code listed above, but nothing seems to be working. I am not sure as to the positioning of the code, and maybe that is the problem, or maybe it is because this code in not for CS4, or not appropriate for my project. I also do not know what code should be inside the Flash file, nor what should should be inside the Dreamweaver file.
    Thank you in advance for any assistance!

    Hi
    To add to what Gramps has said, Adobe has ceased developing its flash player for ALL mobile devices so do not use Flash for any mobile device.
    Depending on the complexity of your Flash program you may be able to recreate it using Edge, but the code generated by Edge does not work in IE8 or below.
    For details on Edge, see - http://labs.adobe.com/technologies/edge/
    PZ

  • How to make photoshop cs4 open dng files?

    How to make photoshop cs4 open dng files?

    They are opened by Photoshop through the ACR plug-in you should make sure the ACR 5.7 update is installed for your CS4.
    Adobe - Photoshop : For Macintosh
    Adobe - Photoshop : For Windows

  • Adobe Flash CS4 not functional

    Adobe Flash CS4 is not functional and have installed and reinstalled a number of times on an Intel Core 2 Duo with Mountain Lion. It works perfectly on my laptop with the same operating system so its not requiring an upgrade.

    Apologies for my delayed response; been away and thank you for your help.
    Kind regards,
    Thomas
    On Mon 08/04/13 21:22 , kglad [email protected] sent:
    RE: ADOBE FLASH CS4 NOT FUNCTIONAL
    created by kglad in Flash Pro - General - View the full
    discussion

  • How to make the last line of the textarea visible all the time?

    Hello,
    I am making an online chat application in JSP and XHTML. The chat log and online users� names textareas are refreshed every 5 seconds. When it comes to many messages in the chat log textarea, the scrollbar appears. Then, every time the chat log textarea is refreshed, I need to move the scrollbar down to see the last line of the textarea.
    Are there any ideas how to make the last line of the textarea visible all the time without moving the scrollbar?
    Thanks in advance.
    Dan

    I put the below code on the page, but it didn't work.
    Are there any ideas? Thanks.
    <table border="0" cellspacing="1">
    <tr>
    <th>Chat Log</th>
    <th>Users now online</th>
    </tr>
    <tr>
    <td><textarea rows="20" cols="60" name = "messages" readonly = "readonly"><%= texts %></textarea></td>
    <td><textarea rows="20" cols="20" name = "names" readonly = "readonly"><%= names %></textarea></td>
    </tr>
    </table>
    <script type="text/javascript">
    <!--
    document.messages.scrollIntoView(false);
    //-->
    </script>

  • How to make tcp have establish option's function or reflexive in ASA like icmp have echo reply

    how to make tcp have establish option's function or reflexive in ASA like icmp have echo reply
    rather than permit tcp in both side

    An ASA firewall is stateful.
    The reflexive access for TCP connections (or UDP flows) is allowed by default as the firewall checks for established connections prior to applying an access-list on traffic that arrives at an interface.
    Excerpted from this document (emphasis mine):
    "Here are the individual steps in detail:
    Packet is reached at the ingress interface.
    Once the packet reaches the internal buffer of the interface, the input counter of the interface is incremented by one.
    Cisco ASA will first verify if this is an existing connection by looking at its internal connection table details. If the packet flow matches an existing connection, then the access-control list (ACL) check is bypassed, and the packet is moved forward.
    If packet flow does not match an existing connection, then TCP state is verified. If it is a SYN packet or UDP packet, then the connection counter is incremented by one and the packet is sent for an ACL check. If it is not a SYN packet, the packet is dropped and the event is logged."

  • When will the Adobe flash player return to all Apple mobile devices?

    I think that Apple should very well eliminate these restrictions by reintroducing the Adobe Flash Player back into all Apple mobile devices sometime this spring or summer.
    Kevin Silvestris
    Worcester, MA

    Yeah.
    And everybody should be nice to each other beginning Wednesday.
    And no more taxes beginning next year.
    Oh.. and cheap gas by the end of summer.
    Adobe does not make a flash player for iphone.  They never have.

  • When connecting to Synch how do I fix "The iphone cannot be used because thr Apple Mobile device service is not started"

    When connecting to Synch how do I fix "The iphone cannot be used because thr Apple Mobile device service is not started"

    Refer to this article to restart AMDS:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567

  • How to delete photos that i backed up before in all of my devices?

    How to delete photos that i backed up before in all of my devices?

    Same way they got there, through the iTunes sync process. Your phone connected, iTunes running, under the Photos tab, remove the check marks next to the folders/albums you don't want on your phone, hit the apply/sync button.

  • Make Flash CS4 Mac use CRLF in as files?

    Is there some way I can configure Flash CS4 so it will use
    CRLF for line breaks in as files, instead of only CR (or if it is
    only LF), so that the files are readable on Windows?

    Hi Klaus.
    Try to use HFS path instead.
    ie
    Macintosh HD:Users:klaus:
    Regards
    Bartek

  • Flash swf from Flash CS4 not functioning in Director

    I  am building an app in Shockwave and am using a Flash swf as the navigation bar to change screens etc. I created the initial swf in Flash MX 2004  published for Flash 6.0 and Actionscript 2.0. This worked fine. I then needed to add some more screens and since  I now have Flash CS4 Pro I decide to use this to make the changes published for Flash 6.0 and Actionscript 2.0. I created the changes, tested the movie, everything runs fine in Flash The published swf works fine when executes from the desktop. When I import into Director, the swf does not function. Is there some step that I am missing?
    What am I doing wrong?

    Well nothing is working, no rollover buttons , no changing screens, nada.
    The Code worked when published with Flash MX 2004. I brought the file into
    Flash CS4 Pro, made my additions, published. Tested the swf alone. But when
    I import into Director MX version 9.0 it is not functioning.

  • PDFs on website won't open on mobile devices

    We've a website currently in development mode which has PDFs for download. These open fine from a desktop, but on mobile devices we get "Error opening document, please try again".
    The same PDF has been copied to another website and it does download to mobile devices successfully.
    The links had "target = _blank" which I've since removed to see if the problem was caused by opening a new window. This made no difference. We have the same issue when opening the PDF by entering the full URL in the browser.
    The only thing I have in [ISAPI_Rewrite] is "AddType application/pdf .pdf " to try and force it to download.
    Kind regards

    Mobile devices with what operating system?  Reader version?

  • How do I resolve an MS Windows iTunes update issue with Apple Mobile Device"?

    I am receiving the following error message when updating iTunes to v. 11.1.4:
    Service "Apple Mobile Device" failed to start.  Verify you have sufficient privileges to start service.
    How do I resolve the problem?

    I resolved this myself by uninstalling ALL Apple programs and reinstalling the iTunes software.  No files were lost and account sync worked as before.

  • How do I add flash cs4 game with AS3 to flash cs4 website??

    I have created a game in flash with ActionScript 3 and now want to add it to a website I have created with pages seperated into keyframes. Ideally, I am trying to have the game start when a link on the home page is selected. I would also like the users to be able to download the game themselves??? Any ideas for a flash novice??

    Thank you so much!!! I just added it with a UI Loader Component! Worked really well... although it looks like doing that picked up an issue with some of my code? It's now looping over and over again and the counter within my game (for giving players their score - highlighted in red), is not working?If you are a AS3 guru any help would be greatly appreciated, otherwise thank you so much for your earlier tips
    package
        import flash.display.MovieClip;
        import flash.events.*;
        import flash.utils.Timer;
        import flash.text.*;
        public dynamic class Gift extends MovieClip
            private var dx:Number = Math.random() * 10; // make gift scurry
            private var dy:Number = Math.random() * 10;
            public function Gift ()
                this.gotoAndStop(Math.ceil(Math.random() * 4));
                this.addEventListener(Event.ENTER_FRAME, scurry);   
                stage.addEventListener(MouseEvent.MOUSE_DOWN, kill);
            public function scurry (e:Event)
                if (this.x < 0 || this.x > 550)
                    this.dx *= -1;
                if (this.y < 0 || this.y > 576)
                    this.dy *= -1;
                this.x += this.dx; // make gift scurry
                this.y += this.dy;
            public function die()
                this.removeEventListener(Event.ENTER_FRAME, scurry);
                parent.removeChild(this);
            private function kill (e:MouseEvent):void
                if(e.target is Gift)
                    e.target.die();
                    score += 10;
                    scoreText.text = score.toString();

  • Flash video game. How to make it playable & put onto website, and Indesign PDF file?

    I am making a video game using Adobe Flash 2.0. I need to be able to show what I have through a website (my portfolio) and/or insert it into an interactive Indesign PDF file. The game needs to be able to be played and be used and tested by whoever I send the pdf file to, or whoever is would be view my the site I post it on. I have attempted many different ways to put my game onto my website (cargocollective) and Indesign, but nothing is working! I need help.
    For example I need my game to be placed on the website page, and on the pdf document as an image. When it is clicked on I need it to start so people can play the game. I don't know how to do this and I would really love and need to know how! Thanks.

    You are more likely to get a helpful reply if you ask this in the Flash forum (this is the Flash Player forum).

Maybe you are looking for

  • Why is mouton lions wifi so slow

    Why is mouton lions wifi so slow

  • Creating a blu-ray

    I am looking into purchasing an external blu-ray burner. One thing the company told me whose product I am interested in is If I want the Blu-ray to play back on a normal Blu-ray player connected to a TV, like a typical commercial film on a Blu-ray di

  • Problem in BDC for VA01

    Dear Experts, I have developed a BDC Program for transaction VA01, if there is change in price it shows warning message as 'Condition PR00 has been changed' and loose the control, at that time if click on enter it will regain the control and proceed

  • Yosemite problems on I mac mid 2007 machine

    I Mac mid to late 2007 2.0 GHz Intel 2GB ram running Yosemite 10.10 About 3 months ago my sister (we are a Mac family) upgraded to Yosemite on her 2007 machine that had been running fine.  Did not know that was possible on an old machine.  Anyway she

  • Inspector Levels Adjustment Problem

    All of a sudden, my Aperture Inspector hub will not properly display my histogram in the Levels adjustment. All I can see is the bottom 1/2 of the histogram, but not the top where I can choose the Channel. I can see it fine in the Adjustment panel of