Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




SWF Not Displaying In Firefox...



So heres my embed code:

<OBJECT codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'height='155' width='766' classid='clsid27CDB6E-AE6D-11cf-96B8-444553540000'>
<PARAM NAME='_cx' VALUE='20267'><PARAM NAME='_cy' VALUE='4101'>
<PARAM NAME='FlashVars' VALUE=''><PARAM NAME='Movie' VALUE='/images/header_mini_nav_03.swf'><PARAM NAME='Src' VALUE='/images/header_mini_nav_03.swf'><PARAM NAME='WMode' VALUE='Window'><PARAM NAME='Play' VALUE='-1'><PARAM NAME='Loop' VALUE='-1'><PARAM NAME='Quality' VALUE='High'><PARAM NAME='SAlign' VALUE=''><PARAM NAME='Menu' VALUE='-1'><PARAM NAME='Base' VALUE=''><PARAM NAME='AllowScriptAccess' VALUE='always'><PARAM NAME='Scale' VALUE='ShowAll'><PARAM NAME='DeviceFont' VALUE='0'><PARAM NAME='EmbedMovie' VALUE='0'><PARAM NAME='BGColor' VALUE=''><PARAM NAME='SWRemote' VALUE=''><PARAM NAME='MovieData' VALUE=''><PARAM NAME='SeamlessTabbing' VALUE='1'><embed src='/images/header_mini_nav_03.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer'type='application/x-shockwave-flash' width='766' height='155'> </embed></OBJECT>

What needs to be added in order for this to display in firefox?

THanks.



FlashKit > Flash Help > Flash Newbies
Posted on: 09-12-2006, 02:08 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Flash Displaying In Firefox
I can't work out why a flash movie can't display at 100% x 100% in the Firefox browser. If place it up the top of the screen it appears all squashed up and if at the bottom it stetches. But it works perfect in Internet explorer.
Below is a screen dump of my property settings in Dreamweaver. This link is my webpage where I'm having the problem with. http://go.hostlite.co.uk/gumleafgames/index.htm

Firefox Not Displaying Correctly
Hi all,

In the website I am trying to build (to teach myself flash) I have put a image gallery. I have a problem however that it won't display properly in firefox, whereas in internet explorer it works fine. I'm not sure whether I'm allowed to post URLs so I won't post the one too it, but my code for the image gallery is:


Code:
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
firstImage();

} else {

content = "file not loaded!";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {

prevImage();

} else if (Key.getCode() == Key.RIGHT) {

nextImage();

}

};
Key.addListener(listen);
previous_btn.onRelease = function() {

prevImage();

};
next_btn.onRelease = function() {

nextImage();

};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {

filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;
if (picture._alpha<100) {

picture._alpha += 10;

}

}

};
function nextImage() {

if (p<(total-1)) {

p++;
if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();

}

}
function picture_num() {

current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}

stop();
The problem is that the images won't load and the dynamic text isn't working showing description/image x of y.

Many thanks

Gareth

FireFox Not Displaying Text
I'm having a VERY weird and agitating problem right now. I have a very simple swf that takes in a string, puts it into some TextFields, and slides those fields in from offstage. It works just fine in every browser except Mac Firefox3, in which the text just doesn't show up. I've testing adding other movieclips, and they show up fine. Just not TextFields. All the events surrounding the animation are fired correctly (I've tested). The REALLY weird thing is, if I use ExternalInterface to fire a Javascript alert before a certain point in the code, the text shows up fine.

Here's the document class constructor for the swf, which is pretty much the only code in there. The ExternalInterface.call has to be at that point or earlier. If it's after the if statement, it doesn't affect the visibility.

The "Field" class is a linkage class for a MovieClip in the fla library, which just has a dynamic TextField (called theText) with the characters I need embedded.


ActionScript Code:
public function Marquee() {
            //// Create text fields
            var fullWord:String = this.loaderInfo.parameters.word.toLowerCase();
            var breakPoint:int = fullWord.lastIndexOf("her");
            partA = new Field();
            partB = new Field();
            var fieldFormat:TextFormat = new TextFormat();
            fieldFormat.letterSpacing = -6;
            partA.theText.defaultTextFormat = fieldFormat;
            partB.theText.defaultTextFormat = fieldFormat;
            partA.theText.autoSize = partB.theText.autoSize = TextFieldAutoSize.LEFT;
            partA.theText.text = fullWord.slice(0, breakPoint).toUpperCase();
            partB.theText.text = fullWord.slice(breakPoint).toUpperCase();
            partA.alpha = partB.alpha = ALPHA;
            var fullWidth:int = partA.width + partB.width + X_ADJUSTMENT;
            ExternalInterface.call("alert", "here");
            if(stage.stageWidth < fullWidth) { // shrink text to fit
                partA.scaleX = partA.scaleY = partB.scaleX = partB.scaleY = stage.stageWidth / fullWidth;
            }
            partA.x = stage.stageWidth;
            partB.x = partA.x + partA.width + (X_ADJUSTMENT * partA.scaleX);
            partA.y = partB.y = stage.stageHeight;
            addChild(partA);
            addChild(partB);
            ////---
            //// Slide fields in
            var finalAnchor:int = stage.stageWidth - (partA.width + partB.width);
            TweenLite.to(partA, 1.5, {x:finalAnchor, ease:Sine.easeOut});
            TweenLite.to(partB, 1.5, {x:finalAnchor + partA.width + (X_ADJUSTMENT * partA.scaleX),
                ease:Sine.easeOut, onComplete:fadeHer});
            ////---
        }

It has nothing to do with the embedding, because if I load the swf by itself, the problem persists. Please help, I'm going insane.

Flash Not Displaying In Firefox Only IE
Hi this is what i'm using:
CODEdocument.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="200" height="360" id="NewCalendar" align="middle">');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="movie" value="NewCalendar.swf" />');
    document.write('<param name="quality" value="high">');
    document.write('<embed src="NewCalendar.swf" width="200" height="360" align="bottom" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">');

[F8]Active Content Not Displaying In FireFox
Hi,

I have applied the Active Content fix using this generator fix.

I used this instead of the solution in the Sticky as i dont have access to all of the SWF files on the server that i am trying to ammend the fix to.

The generator works brilliant for IE7 as all the SWF objects no longer require a click to activate them, however the embedded SWF files do not show up at all in FireFox.

Does anybody know of a solution for this problem of Firefox not displaying the SWf files?

Here is an example of what the Generator does to the code:


Code:
<!-- InstanceBeginEditable name="Diagnostic" -->
<h2>Try this </h2>
<div id="diagnostic" >
<p>

<!--[if gte IE 6]><script language="javascript">document.write("<NOSCRIPT class=clickfix><OBJECT style="display:none">"); </script>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="520">
<param name="movie" value="media/iq_diag_bg_500.swf">
<param name="quality" value="high">
<embed src="media/iq_diag_bg_500.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="520"></embed>

</object>
<!--[if gte IE 6]></OBJECT></NOSCRIPT><![endif]-->
.
..
...
....
.....
//end of file

<script language="JScript" type="text/jscript" src="http://scripts.ediy.co.nz/scripts/ClickFix.js"></script>

Also, i am unable to edit the greyed out areas of the HTML code in Dreamweaver. Is there a way around this too?

thanks very much!

Problems With Flash Displaying In Firefox 1.0
Hey guys,

We've been noticing sometimes that Firefox 1.0 wont display embedded flash movies that work in other browsers, and sometimes in firefox itself.

Is anyone aware of a bug or something that stops flash videos from displaying in Firefox?

Thanks a lot.

ps. I searched the forums for something about this, but to no avail.

Scott

Problem In Displaying Flash In FireFox
Hi all,

I have problem in displaying flash in FireFox 2.0. but it works very fine in IE.

any one please help me....

Shanthi.

Flash Not Displaying Correctly In Firefox
With an image in the top left corner, this page displays the same in IE6/7 and FF:

http://www.simobile.com/hansen/hansen.html

but when Flash of identical dimensions replaces the image, it works in IE6/7 but I get a gap around Flash in FF:

http://www.simobile.com/hansen/hansen-bad-flash.html

I've tested on Windows XP/Vista, and I'm using Flash CS3 to generate AS2 content for Flash Player 9.

I've searched over an hour across the web for a solution, and done all sorts of fiddling with CSS properties and removing whitespace but no joy.

Does anybody have any advice?









Attach Code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>My Hansen</title>
<style type="text/css">
<!--



object {
display:inline;
margin: 0px;
padding: 0px;
}

#header img
{
display:inline;
}



body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0px; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0px;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
background-image: url(bg_img.jpg);
}
.twoColFixLtHdr #container {
width: 720px;
margin: 20px auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px;
text-align: left; /* this overrides the text-align: center on the body element. */
border-style: solid;
background-color: #FFCC00;
}
.twoColFixLtHdr #header {
background: #DDDDDD;
padding: 0px 0px 0px 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.twoColFixLtHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.twoColFixLtHdr #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 200px; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 0px;
margin: 0px;
background-color: #FFFFCC;
}
.twoColFixLtHdr #mainContent {
margin: 0px 0px 0px 200px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
padding: 0px 30px 0px 30px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
background-color: #acc4e8;
}
.twoColFixLtHdr #footer {
padding: 0px 0px 0px 0px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#DDDDDD;
}
.twoColFixLtHdr #footer p {
margin: 0px; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 0px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
-->
</style><!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 0px; }
.twoColFixLtHdr #mainContent { zoom: 0; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body class="twoColFixLtHdr">

<div id="container"><div id="header">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','200','height','120','title','flashstuff','src','header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','header' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="200" height="120" title="flashstuff">
<param name="movie" value="header.swf">
<param name="quality" value="high">
<embed src="header.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="200" height="120"></embed>
</object>
</noscript><img src="slogan_anim.gif" alt="slogan" width="320" height="120" hspace="0" vspace="0"><img src="top_right.jpg" alt="topright" width="200" height="120" hspace="0" vspace="0"><!-- h1>Header</h1 --><!-- end #header --></div>
<div id="sidebar1">sidebar-start<h3>Sidebar1 Content</h3><p>The background color on this div will only show for the length of the content. If you'd like a dividing line instead, place a border on the left side of the #mainContent div if it will always contain more content. </p>sidebar-end<!-- end #sidebar1 --></div><div id="mainContent">maincontent-start<h1> Main Content </h1><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero.</p>maincontent-end<!-- end #mainContent --></div><!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer"><img src="bottom_left.jpg" alt="bottomleft" width="200" height="120"><img src="bottom_wide.jpg" alt="bottomwide" width="520" height="120"><!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>

























Edited: 09/28/2008 at 11:17:13 PM by miner2049er

Problem In Displaying Flash In FireFox
Hi all,

In asp i am loading one flash object.

In IE the flash displays fine.... but in fire fox its not working.

Thank you.....

shanthi.





























Edited: 05/24/2007 at 04:54:45 AM by Shanthi.AL

Firefox Displaying Text Wrong
This is very odd!

We are working on this website for a danish jewelry designer, and i wanted the headlines to be a special font, so i made this flash file with a dynamic text field, displaying a variable.

Everything worked fine, untill we had to use danish chars like æøå. It is very strange, it seems like it works just fine in IE but Firefox is just displaying stupid things like ?? and stuff..

check out this link ( make sure to see it in both IE and Firefox ) and notice the top text saying Sølvringe

http://renderworks.dk/graugaard/inde...dukt&id=4&sp=1
the reason why it is called rw.swf?path=overskrift.swf is because we want it to be xhtml valid.

Flash Items Displaying In Firefox But NOT IE
Hi guys, like to start off by congratulating on forums. clearly a good selection of well versed individuals on here.

This question may have been answered already or something similar, but I really need some specific advice as tweaking it endlessly doesn't seem to help much.

We're experimenting with adding flash buttons to our company website and so as a test we have tried to add a flash object, namely an audio controller, to our homepage.

I've tried embedding the flash buttons onto the website with a transparent background (our background is black, although on some monitors it will display VERY slightly stripy). As a result I am trying to make the buttons lay OVER the background, so the buttons are there, but they have no background. I've managed to get the desired results in Mozilla Firefox 2.0, but Internet Explorer will simply not display the buttons.

the code for the buttons is as follows:

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width=70 height=30 align="absmiddle">
<param name=movie value="mp3ss1d.swf">
<param name=quality value=best>
<param name=wmode value=transparent>
<param name= bgcolor="#FFFFFF">
<param name=loop value=true>

<embed src="mp3ss5d.swf" quality=best wmode=transparent bgcolor=#FFFFFF loop=true width=70 height=30 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" align="absmiddle">
</embed>
</object>

and if you want to see how that actually looks, the page is www.robertspianos.com/index2.php

It displays perfectly fine in Firefox 2, and it can't be a flash player version error as the flash object is made for flash player 4, which all new browsers have as standard. I.E will simply not display the buttons, will have a "click to activate this activeX control" then when you do it does nothing. This seems to be the case on every computer I've tried it on (incase it's just THIS computers ActiveX controller) but it seems to be somewhere else the issue.

I've tried experimenting with the lines -

<param name=wmode value=transparent>
<param name= bgcolor="#FFFFFF">

in various ways but to no avail, and I'm rather stumped. any help or suggestions would be MUCH appreciated.

Many thanks.

Flash Video Not Displaying In Firefox
Now it's not all flash. Youtube works, and another flash object on a website we're maintaining works fine as well. It's just this specific movie a co-worker of mine made will not display on the site.

Please use IE and go to http://www.glennon.org/ where the problem is occurring.

You will see towards the bottom something called Glennon Video Network. The video series displays there just fine.

Now look at the page in firefox and the flash file does not show.

The flash is implemented by using an include file. Any advice you can give is appreciated.

Thank You.

Weird Issue With Site Displaying In Firefox
Here's the situation: I was working on a site, and started doing some browser tests, to make sure everything was working/displaying the way i wanted before I went too far with it. And Firefox is all sorts of screwed up. The swf embedded in the HTML page was published for FP6, is set to noScale and the W and H dimensions are set to 100% (so the background mc stretches to fill the window) There's an onResize function to reposition everything... yada yada yada. The problem with firefox, is that it's only displaying content in the top 1/2 of the browser window!!! the bottom 1/2 is white!!! IT's the strangest thing I have ever seen!!!! The site works fine in Safari and in IE (which surprised the hell outta me) but in Firefox on both a Mac and a Windows machine, I get the same display problem. Anyone ever hear of this, have this problem themselves, or have a suggestion about how to fix it???

Any help would be appreciated!!

HERE'S THE SITE if you want to check it out for yourself (There is no flash player detection for it yet, as i didn't see the need until it actually works and actual content is provided, and i am aware that some sections are not working properly. I'm more concerned with the display problem at the moment)

Thanks

[FCS3] Firefox Not Displaying Loaded Images
BTW this is Flash CS3 Actionscript 2.0 though.
I have created a website, http://www.stephenkiers.com/, for a client and am now testing it live on the server after testing it on my local machines fine. The problem is that for some reason the images (contained in a xml document) won't display in firefox or safari. The flash document seems to load the image, it just won't display it. The more confusing part is it works fine in IE 7 on PC.
the code to load the images is below.
Sorry if it messy, most of it was written by me, and some is modified from anothers work....

Keyframe1

Code:
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {
////////////////////////////////////////////////////////
if (picturenumber == 1) {
picturenumber = numberofpictures;
gotoAndPlay("set_variable");
}
else if (picturenumber != 1) {
picturenumber -= 1;
gotoAndPlay("set_variable");
} ;
////////////////////////////////////////////////////////

} else if (Key.getCode() == Key.RIGHT) {

////////////////////////////////////////////////////////
if (picturenumber != numberofpictures) {
picturenumber += 1;
gotoAndPlay("set_variable");
}
else if (picturenumber == numberofpictures) {
picturenumber = 1;
gotoAndPlay("set_variable");
};
////////////////////////////////////////////////////////

}

};


numberofpictures = 50;
picturenumber = 1;
loadVariables("pictures.asp","");


Keyframe 30- used to confirm how many pictures there are:

Code:
if (picture1caption == "none") {numberofpictures -= 1};
if (picture2caption == "none") {numberofpictures -= 1};
if (picture3caption == "none") {numberofpictures -= 1};
if (picture4caption == "none") {numberofpictures -= 1};
if (picture5caption == "none") {numberofpictures -= 1};
if (picture6caption == "none") {numberofpictures -= 1};
if (picture7caption == "none") {numberofpictures -= 1};
if (picture8caption == "none") {numberofpictures -= 1};
if (picture9caption == "none") {numberofpictures -= 1};
if (picture10caption == "none") {numberofpictures -= 1};
if (picture11caption == "none") {numberofpictures -= 1};
if (picture12caption == "none") {numberofpictures -= 1};
if (picture13caption == "none") {numberofpictures -= 1};
if (picture14caption == "none") {numberofpictures -= 1};
if (picture15caption == "none") {numberofpictures -= 1};
if (picture16caption == "none") {numberofpictures -= 1};
if (picture17caption == "none") {numberofpictures -= 1};
if (picture18caption == "none") {numberofpictures -= 1};
if (picture19caption == "none") {numberofpictures -= 1};
if (picture20caption == "none") {numberofpictures -= 1};
if (picture21caption == "none") {numberofpictures -= 1};
if (picture22caption == "none") {numberofpictures -= 1};
if (picture23caption == "none") {numberofpictures -= 1};
if (picture24caption == "none") {numberofpictures -= 1};
if (picture25caption == "none") {numberofpictures -= 1};
if (picture26caption == "none") {numberofpictures -= 1};
if (picture27caption == "none") {numberofpictures -= 1};
if (picture28caption == "none") {numberofpictures -= 1};
if (picture29caption == "none") {numberofpictures -= 1};
if (picture20caption == "none") {numberofpictures -= 1};
if (picture31caption == "none") {numberofpictures -= 1};
if (picture32caption == "none") {numberofpictures -= 1};
if (picture33caption == "none") {numberofpictures -= 1};
if (picture34caption == "none") {numberofpictures -= 1};
if (picture35caption == "none") {numberofpictures -= 1};
if (picture36caption == "none") {numberofpictures -= 1};
if (picture37caption == "none") {numberofpictures -= 1};
if (picture38caption == "none") {numberofpictures -= 1};
if (picture39caption == "none") {numberofpictures -= 1};
if (picture40caption == "none") {numberofpictures -= 1};
if (picture41caption == "none") {numberofpictures -= 1};
if (picture42caption == "none") {numberofpictures -= 1};
if (picture43caption == "none") {numberofpictures -= 1};
if (picture44caption == "none") {numberofpictures -= 1};
if (picture45caption == "none") {numberofpictures -= 1};
if (picture46caption == "none") {numberofpictures -= 1};
if (picture47caption == "none") {numberofpictures -= 1};
if (picture48caption == "none") {numberofpictures -= 1};
if (picture49caption == "none") {numberofpictures -= 1};
if (picture50caption == "none") {numberofpictures -= 1};


Keyframe 31

Code:
if (picturenumber == 1) {src = picture1;srcname = picture1caption;}
else if (picturenumber == 2) {src = picture2;srcname = picture2caption;}
else if (picturenumber == 3) {src = picture3;srcname = picture3caption;}
else if (picturenumber == 4) {src = picture4;srcname = picture4caption;}
else if (picturenumber == 5) { src = picture5;srcname = picture5caption;}
else if (picturenumber == 6) {src = picture6;srcname = picture6caption;}
else if (picturenumber == 7) {src = picture7;srcname = picture7caption;}
else if (picturenumber == 8) {src = picture8;srcname = picture8caption;}
else if (picturenumber == 9) {src = picture9;srcname = picture9caption;}
else if (picturenumber == 10) {src = picture10;srcname = picture10caption;}
else if (picturenumber == 11) {src = picture11;srcname = picture11caption;}
else if (picturenumber == 12) {src = picture12;srcname = picture12caption;}
else if (picturenumber == 13) {src = picture13;srcname = picture13caption;}
else if (picturenumber == 14) {src = picture14;srcname = picture14caption;}
else if (picturenumber == 15) {src = picture15;srcname = picture15caption;}
else if (picturenumber == 16) {src = picture16;srcname = picture16caption;}
else if (picturenumber == 17) {src = picture17;srcname = picture17caption;}
else if (picturenumber == 18) {src = picture18;srcname = picture18caption;}
else if (picturenumber == 19) {src = picture19;srcname = picture19caption;}
else if (picturenumber == 20) {src = picture20;srcname = picture20caption;}
else if (picturenumber == 21) {src = picture21;srcname = picture21caption;}
else if (picturenumber == 22) {src = picture22;srcname = picture22caption;}
else if (picturenumber == 23) {src = picture23;srcname = picture23caption;}
else if (picturenumber == 24) {src = picture24;srcname = picture24caption;}
else if (picturenumber == 25) {src = picture25;srcname = picture25caption;}
else if (picturenumber == 26) {src = picture26;srcname = picture26caption;}
else if (picturenumber == 27) {src = picture27;srcname = picture27caption;}
else if (picturenumber == 28) {src = picture28;srcname = picture28caption;}
else if (picturenumber == 29) {src = picture29;srcname = picture29caption;}
else if (picturenumber == 30) {src = picture30;srcname = picture30caption;}
else if (picturenumber == 31) {src = picture31;srcname = picture31caption;}
else if (picturenumber == 32) {src = picture32;srcname = picture32caption;}
else if (picturenumber == 33) {src = picture33;srcname = picture33caption;}
else if (picturenumber == 34) {src = picture34;srcname = picture34caption;}
else if (picturenumber == 35) {src = picture35;srcname = picture35caption;}
else if (picturenumber == 36) {src = picture36;srcname = picture36caption;}
else if (picturenumber == 37) {src = picture37;srcname = picture37caption;}
else if (picturenumber == 38) {src = picture38;srcname = picture38caption;}
else if (picturenumber == 39) {src = picture39;srcname = picture39caption;}
else if (picturenumber == 40) {src = picture40;srcname = picture40caption;}
else if (picturenumber == 41) {src = picture41;srcname = picture41caption;}
else if (picturenumber == 42) {src = picture42;srcname = picture42caption;}
else if (picturenumber == 43) {src = picture43;srcname = picture43caption;}
else if (picturenumber == 44) {src = picture44;srcname = picture44caption;}
else if (picturenumber == 45) {src = picture45;srcname = picture45caption;}
else if (picturenumber == 46) {src = picture46;srcname = picture46caption;}
else if (picturenumber == 47) {src = picture47;srcname = picture47caption;}
else if (picturenumber == 48) {src = picture48;srcname = picture48caption;}
else if (picturenumber == 49) {src = picture49;srcname = picture49caption;}
else if (picturenumber == 50) {src = picture50;srcname = picture50caption;}





MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 5;
} else {
delete this.onEnterFrame;
}
};
};

my_mc = new MovieClipLoader();
preload = new Object();

my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
_root.pictures._alpha = 0;
_root.bar._visible = true;
_root.loadtext._visible = true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
_root.bar._width = (lBytes/tBytes) * _root.barwidth;
_root.loadtext.text = Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
//_root.pictures._alpha = 100;
_root.pictures.fadeIn();
_root.bar._visible = false;
_root.loadtext._visible = false;
trace(targetMC+" finished");
};
//default image

my_mc.loadClip(src, "_root.pictures");
_root.desctxt.text = srcname;


Keyframe 45

Code:
stop();


Please ask as many questions as needed, I would love to help you help me find an answer.

Firefox Displaying Full Flash Incorrectly
I didn't know whether to post this in this or the client side forum, but hell.
Anyway, what I did was make a simple flash animation (it's here http://blippo.addr.com/misc/testpr.html , it's just a preloader thingy) and in the publish settings under HTML I set the size to 100%/100% and set it to no scale. It works fine in Opera and IE (displays it in full, doesn't scale it and it centers it) but in Firefox it displays only the bottom of it in the top part of the page. I went throught the HTML source and it seems OK.

MAN I HATE FIREFOX! DIE FIREFOX DIE!

Firefox Displaying Full Flash Incorrectly
I didn't know whether to post this in this or the client side forum, but hell.
Anyway, what I did was make a simple flash animation (it's here http://blippo.addr.com/misc/testpr.html , it's just a preloader thingy) and in the publish settings under HTML I set the size to 100%/100% and set it to no scale. It works fine in Opera and IE (displays it in full, doesn't scale it and it centers it) but in Firefox it displays only the bottom of it in the top part of the page. I went throught the HTML source and it seems OK.

MAN I HATE FIREFOX! DIE FIREFOX DIE!

Firefox Displaying SMALL (100pixel) Version Of My Site?
Hello,.

I have a prefect? working flash site i created, everything is cool...

BUT >

IN the latest firefox, it is scaled waaaaaaaay down.

i have tried 85 different publish settings to rectify the situation, but no luck.

PLEEEEEEEEASE HELP!

Ilya

Flash Not Displaying Correctly On IE, But Works Fine On Firefox.
The site loads perfectly for firefox, but just displays a white box for IE:

Can anyone please advise me on how to fix this? Thank you in advance for your replies.

Update: Moderators feel free to delete this post.

Flash 8 Dynamic Map Displaying XML Data, Problem With Displaying Text
Hello everybody...

I'm working on a project in which viewers can see a map with state parks highlighted as buttons. onRollOver a caption pops up displaying the name of the park, acreage and feet of shoreline. onRelease a movie clip is loaded into a holder. The data is being stored in an XML file integrated with a content management system... The AS for displaying the caption works fine, but I cannot get the XML data to display in the dynamic text fields contained within the caption MC. There are 37 buttons that need to display the popup and I am looking for some advice on how I can effectively navigate the XML nodes and display the data accordingly in the text fields. Below is my current code, I have not yet added the onRelease function because, I'm pretty sure that i'm going to run into the same issue that i'm having with the caption popup... The last obstacle will be that the caption is only displaying 3 of the child nodes, while the MC loaded into the holder will be displaying 7 of the child nodes. I'm guessing that using the attributes property and modifying my XML would be the easiest... but i'm relatively new to integrating XML data into Flash and am trying to minimize the work that I create for myself. If anybody could point me in the right direction, i would be immensly appreciative. Pura Vida. ~Anthony

//1st frame AS for the first button, and loading XML
var xmlPath = ("xml_mapinfo.xml");
/////////////////////////////////////
var locID:Number = 0;
/////////////////////////////////////
startDrag(this.caption, true);
/////////////////////////////////////
btn_1.onRollOver = function (){
set ("locID", 1);
RollOver();
ShowData();
}
btn_1.onRollOut = function (){
RollOut();
}
/////////////////////////////////////
function RollOver (){
trace("rollOver occured");
_root.x = 1;
this.caption.words = "Word!";
trace ("Location ID = " + locID);
}
function RollOut (){
trace("rollOut occured");
set ("locID", 0);
_root.x = 0;
this.caption.words= " ";
trace ("Location ID = " + locID);
}
/////////////////////////////////////
function ShowData(){
this.caption.location_txt.text=contentMain.owner['1'];
this.caption.acreage_txt.text=contentMain.acreage['1'];
this.caption.acreage_txt.text=contentMain.shorelin e['1'];
}
/////////////////////////////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
owner = [];
interest = [];
town = [];
established = [];
acreage = [];
shoreline = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
owner[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
interest[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
town[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
established[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
acreage[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
shoreline[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
thumbnail[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(this.xmlPath);

//AS on actual caption MC
//////////////////////////////
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 80;
} else {
this._alpha = 0;
}
}
_

Flash Displaying Of Html Not Displaying Spans Right
I have a swf that calls a php script. The script outputs html and then the html is displayed in a dynamic text box. The textbox is set to display html.

My problem is this. The
HTML Code:
<b>Concealed Weapon Law </b>
will print bold on the dynamic text field, but
HTML Code:
<span style="font-weight: bold;">Badges</span>
will not display bold on the dynamic text field.

I have an admin section built that allows a user to use a wysiwyg editor (js) to create the text and it does the span style way.....

I have no way of changing that or I would.

Is there a way in flash to recognize that span style info to print out bold?

Displaying Or Not Displaying Lyrics
I am making a music video in Flash and at the beginning of the movie....after it loads....Ill have 2 options: play w/ lyrics or play w/o lyrics

The lyrics will be displayed across the top of the screen.....(like in a sing-a-long) so the viewer can sing a long.

How do I make the lyrics show w/ the movie when the option is desired and how do i make it play w/o the lyrics when the other button is chosen???
plz help.....
thnx

Not Displaying
Recently and somewhat randomly my exported flash movies have been behaving strangely - just now i uploaded several movies (having tested that they worked through control>test movie and viewing them in the standalone flash player) and yet, after having uploaded them to the server and view them from the browser, they tend not to display anything apart from a small part of the loading sequence...

http://www.krisdines.com/testermov.swf

-for the sample

I cant understand why it works fine in the flash environment but not in my browser and other users' browsers.

Thanks for your help!

Confusing stuff

Displaying URL
Ok I have a site, this has 2 frames, one at the top (banner and links) and a MainFrame. When i click a link it loads into the MainFrame, this of course doesn't update the URL displayed in the browser.

What ways can i get round this, so that the user can see the URL of the sites they are viewing?

The banner is flash can i show the URL in there?. If it is possible to change the actual Browsers URL, that would be better.

Thanks,
Turbs.

Displaying Name
I am having problems with a math tutorial I am building for my students. I basically want them to enter their name and after they enter the correct answer I want it to say "Great Job! (student name)"

As an example here is what I have so far

Glenn

on (release) {
if (an3a == 2 and an4a == 7) {
var feedback3= "Great Job!";
gotoAndPlay(11);
} else {
var feedback3= "Try Again";
}
}

Displaying Jpg
Is there a way to detect whether or not the client has flash installed and if they don't to display a .gif or .jpg instead of the flash?

If there is could you post the code or point me in the right direction?


thanks

Displaying Your Name
I'm trying to find a tut on how to display a name that you enter in a text box.

In other words if I enter a name in frame one I want it do show up in a text box in frame 2 after you click a next button.
I have the text boxes set up but I just can't put a code together that will do that.
Thanks.

AS Isn't Displaying Like It Should
ok, I'm making this game called "7th grade RPG". I've been writing the code for a while and then I hit a problem i can't solve. It isn't a syntex error, but it dosn't display like I want it to. The code is for random numbers (1-10) to determine the Intelligence, Strength, and Charm. When I go to the page where it is suppose to display the numebrs it comes up with "_level10.status.Intelligence". I can't figure out what the problem is. Here is the code. And yes there is code before it, but it isn't important.
PLZ HELP ME!

//Set Intelligence, Strength, and Charm
parseInt(_root.intelligence)
parseInt(_root.strength)
parseInt(_root.charm)
_root.intelligence = Math.ceil(Math.random() *10)
_root.strength = Math.ceil(Math.random() *10)
_root.charm = Math.ceil(Math.random() *10)
trace(_root.intelligence)
trace(_root.strength)
trace(_root.charm)
//set outs to ints
parseInt(_root.outIntelligence)
parseInt(_root.outStrength)
parseInt(_root.outCharm)
//Set default vaules
_root.outIntelligence = 0
_root.outStrength = 0
_root.outCharm = 0
//let outs equal stats
_root.outIntelligence = _root.intelligence
_root.outStrength = _root.strength
_root.outCharm = _root.charm
trace(_root.outIntelligence)
trace(_root.outStrength)
trace(_root.outCharm)

[F8] Displaying FPS
Hello everyone,

I was wondering if there was anyway of displaying the fps(not the frame rate) of an swf that was assigned to it when first created that has been imported into a movie clip.

Any ideas or help is much appreciated.

Thank you.

[CS3] Displaying Ads Within SWF
Hi,

A client has inquired into the possibility of us showing ads (both flash and static image) within our games (swf).

Is this possible at all? Can I use javascript at all to call the ad? Has anyone done anything similar?

Cheers!

Why Is This Not Displaying?
In a .fla I have a movieClip with a linkage class of "CollectHome." I have the document class set to "Main"

Then I have two .as files, a main class and a subclass:


ActionScript Code:
//Main.as
package {

    import flash.display.MovieClip;
    import HomeClass;

    public class Main extends MovieClip {

        public function Main() {

            var homeView:HomeClass = new HomeClass();
            addChild(homeView);

        }
    }
}

Then the subclass:


ActionScript Code:
//HomeClass.as
package {

    import flash.display.MovieClip;
    import flash.events.Event;

    public class HomeClass extends Main {
       
        public var _theScene:CollectHome = new CollectHome;

        public function HomeClass() {
            //I've tried setting the variable and adding the child here too
        }
        addChild(_theScene);
    }
}


Why don't I see the movieClip from my .fla? I don't get an error. I don't get anything?

I don't have to have an instance of Main on the stage to have an instance of the subclass do I? I can't make that work either.

Thanks in advance!

Displaying XML
Hello All,

Thanks for your help in advance! As a novice coder, I seemed to have reached an impasse!

ActionScript Code:
stop ();

var placesXML:XML =
<places>
    <place name= "Bengkulu" frame= "63">
        <Data>This is a deliightful place in Sumatra</Data>
    </place>
    <place name= "Yogyakarta" frame= "62">
        <Data>This is a deliightful place in Java</Data>
    </place>
    <place name= "Banda_Aceh" frame= "64">
        <Data>This is a deliightful place in Northern Sumatra</Data>
    </place>
</places>

var placeNo:Number;
var place_mc:Array = [towns.Bengkulu, towns.Yogyakarta, towns.Banda_Aceh];

for each (var place_btn in place_mc){
   
    place_btn.addEventListener(MouseEvent.CLICK, showData);
}

function showData(e:MouseEvent):void{
    for (var i in place_mc){
        if (e.currentTarget.name==place_mc[i].name){
            gotoAndStop(placesXML.place[i].placeNo);
            mc_myMarker.myText = placesXML.place[i].Data;
        }
    }
}

//the script below controls the mc_myMarker movie clip and it currently works...

function removeMarker(event:MouseEvent):void
{
    gotoAndStop(61);
}

mc_myMarker.bt_remove.addEventListener(MouseEvent.CLICK, removeMarker);

function scrollUp (Event:MouseEvent):void {
   
    mc_myMarker.myText.scrollV -= 1;
}

function scrollDown (Event:MouseEvent):void {
   
    mc_myMarker.myText.scrollV += 1;
}

mc_myMarker.bt_up.addEventListener (MouseEvent.CLICK, scrollUp)

mc_myMarker.bt_dn.addEventListener (MouseEvent.CLICK, scrollDown)

The above code currently does not log any compiler errors, however the movie just loops through (does not stop as the first instruction) and displays this is the output panel;

ActionScript Code:
TypeError: Error #1034: Type Coercion failed: cannot convert MapMovieClipJAN09_fla::grc_Towns_3@2d0f1a1 to flash.display.SimpleButton.
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at MapMovieClipJAN09_fla::Towns_grp_1()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at MapMovieClipJAN09_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at MapMovieClipJAN09_fla::MainTimeline/frame61()

What I am trying to acheive is basically;

1. Stop the movie on the frame in which this AS is stored.
2. Store all the movie clips (which I want to act as buttons) in the array at the top.
3. When a user clicks on one of the movie clips (names of which are currently in the array), I want the AS3 to check for a match between the 'name attribute' within the xml and the name of the movie clip just clicked.
4. Once the match is spotted, I want the user to be sent to the corresponding frame number (stored in xml as 'frame attribute') and the corresponding text (stored in the 'Data' element tags) to be displayed in 'mc_myMarker.myText'.

This script was just a smaller version of a larger program - there would be over 200 movie clips acting as buttons in the final version (as oppose to the three above) and there and I would add a little HTML to the xml data and use the 'HTMLText' property.

Thanks for taking the time to read this post!

Cheers

Dan H

NOt Displaying In IE
I’ve never come across a problem quite like this. It appears that one of my latest flash files doesn’t play in IE. How is that possible? I mean flash player is flash player IE, Firefox, Safari, etc. But it’s happening. Anyone encounter anything like this? Here’s my link: http://marcfolio.com/flashden/fullframe_viewer/

Like I said it’s not showing up in IE but every other browser it does. I’ve tried different methods to embed it, but nothing changes.

Please help!

Displaying é, ç, à, Etc....
i'm using mx 2004 prof...

... and i'm loading text via loadVars but special characters like "é" and "ç" aren't coming through... does anybody know what font outlines i have to include?

Displaying XML - Please Help
Hello All,

Thanks for your help in advance! As a novice coder, I seemed to have reached an impasse!

Code:
stop ();

var placesXML:XML =
<places>
<place name= "Bengkulu" frame= "63">
<Data>This is a deliightful place in Sumatra</Data>
</place>
<place name= "Yogyakarta" frame= "62">
<Data>This is a deliightful place in Java</Data>
</place>
<place name= "Banda_Aceh" frame= "64">
<Data>This is a deliightful place in Northern Sumatra</Data>
</place>
</places>

var placeNo:Number;
var place_mc:Array = [towns.Bengkulu, towns.Yogyakarta, towns.Banda_Aceh];

for each (var place_btn in place_mc){

place_btn.addEventListener(MouseEvent.CLICK, showData);
}

function showData(e:MouseEvent):void{
for (var i in place_mc){
if (e.currentTarget.name==place_mc[i].name){
gotoAndStop(placesXML.place[i].placeNo);
mc_myMarker.myText = placesXML.place[i].Data;
}
}
}

//the script below controls the mc_myMarker movie clip and it currently works...

function removeMarker(event:MouseEvent):void
{
gotoAndStop(61);
}

mc_myMarker.bt_remove.addEventListener(MouseEvent.CLICK, removeMarker);

function scrollUp (Event:MouseEvent):void {

mc_myMarker.myText.scrollV -= 1;
}

function scrollDown (Event:MouseEvent):void {

mc_myMarker.myText.scrollV += 1;
}

mc_myMarker.bt_up.addEventListener (MouseEvent.CLICK, scrollUp)

mc_myMarker.bt_dn.addEventListener (MouseEvent.CLICK, scrollDown)
The above code currently does not log any compiler errors, however the movie just loops through (does not stop as the first instruction) and displays this is the output panel;

Code:
TypeError: Error #1034: Type Coercion failed: cannot convert MapMovieClipJAN09_fla::grc_Towns_3@2d0f1a1 to flash.display.SimpleButton.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at MapMovieClipJAN09_fla::Towns_grp_1()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at MapMovieClipJAN09_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MapMovieClipJAN09_fla::MainTimeline/frame61()
What I am trying to acheive is basically;

1. Stop the movie on the frame in which this AS is stored.
2. Store all the movie clips (which I want to act as buttons) in the array at the top.
3. When a user clicks on one of the movie clips (names of which are currently in the array), I want the AS3 to check for a match between the 'name attribute' within the xml and the name of the movie clip just clicked.
4. Once the match is spotted, I want the user to be sent to the corresponding frame number (stored in xml as 'frame attribute') and the corresponding text (stored in the 'Data' element tags) to be displayed in 'mc_myMarker.myText'.

This script was just a smaller version of a larger program - there would be over 200 movie clips acting as buttons in the final version (as oppose to the three above) and there and I would add a little HTML to the xml data and use the 'HTMLText' property.

Thanks for taking the time to read this post!

Cheers

Displaying Milliseconds On Mac
Just wondering fi anyone new how to get the Milliseconds to display on a Mac. I can display them on a PC with the exact same scripting. The script is in a blank movieclip with an onClipEvent(enterFrame). Anyone have any ideas?

Displaying Files
Does anyone know of a way to display the files in a directory within my flash movie? I want to create a list of each directory on my web server? Just looking for some hints so if anyone has ideas please let me know.

Thanks,
D

Displaying Images
I was wondering how i can make my flash movie display images located in a separate folder. I would like to periodically change the images in the separate folder -- and thus the images displayed in the flash movie would be different without having to re-program my flash movie.

Displaying Choices
I have a screen with 5 choices listed, the user can select any combination by clicking a check box, each choice corresponds to a movie clip.

When the user has made their selection they click a next button.

This takes them to a screen where the movie clips corresponding to their choices are displayed.

What is the best way of tackling this.

Help greatly appreciated

Thanks

Displaying Time
What I was doing was,
display = (_currentframe)/12 with a few extras to get the time, but its very inacurate, There is also the getTImer() but I wanted to display the Min, Seconds a movie clip has been playing, can you help ?

I guess I should also add a few more things explain a little better! I'm loading a movie into the main movie into _level1 then I also eval( frame information from that movie, but I would also like to get the length of time it has been playing, rather then the way I have done above! there has got to be an easy way
[Edited by KJintrest on 01-15-2002 at 11:59 PM]

Displaying The Time
I have searched the threads and can't find this but i'm sure it has been covered, if it has i apologise....

It is hopefully quite simple, i have a a script that puts the date and time in a text field....


the problem is this. The time is a twelve hour clock (not too bad)

but the minutes upto 10 don't have a leading zero, so for example if the time is 16.04 i get....


4.4 which doesn't really resemble a time.

I have enclosed the script below. please can someone help.

mydate = new Date();
weekday = new Array("Sunday", "Monday", "Tuesday", "Wendnesday", "Thursday", "Friday", "Saturday");
month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "Octobert", "November", "December");

time = (weekday[mydate.getDay()]+' | '+month[mydate.getMonth()]+' | '+mydate.getDate()+' | '+mydate.getHours()+' . '+mydate.getMinutes()+' . '+mydate.getSeconds());

Displaying Movies
Hello Guys and gals
Iwas wondering if anyone had any ideas if there was a wayin which i can have my flash site always display in 1024 x 768 resolution? I am not sure if this is possible,any ideas would be greatly appreciated.

Also I have a preloader which seems to work fine on high speed cable internet....however I am doing the website for a friend who is on dialup --he sz that the site takes over 5 minutes to load before it will play! Does this sound like a reasonable time to wait for phone line when viewing a Flash site with a fairly simple intro? The flash site main movie consists of about 155 frams total with various MC through out the main movie timeline. The site also has a couple mpeg files for sound. It is for a band and I am going to add about 5 other mpegs for music samples.
My preloader currently uses the following preloader code:

loadedBytes =_root.getBytesLoaded();
totalBytes =_root.getBytesTotal();
if (loadedBytes < totalBytes){
percentageOutput= int((loadedBytes / totalBytes) * 100);
_root.loaderbar._xscale = percentageOutput;
gotoAndPlay("preload_loop");
}
else {
gotoAndPlay("begin_movie");
}
Please tell me if there is a way I can speed things up..or if things seem to be in order for best results??
Thanks guys..

Displaying Xml In A Table
-----------------------------------------------
we have an xml file and need to display the info in a dynamic table. Is there an easy way to generate that table and display the xml data on the fly? is it even possible in flashMX?
-----------------------------------------------

Displaying The & Character
Hi,
I have flashform, where the data is loaded into the movie like

&target1=New York|Washington &target2=NY|WA&TargetCount=2&eof=1

If the database has a value containg '&' e.g. 'Deloitte & Touche' Flash would recognize it as a new string.

How can the '&' sign be displayed?

cheers
Patrick

Displaying Text
I know this is a stupid question, but how do I dispay text in Flash MX using actionscript? I want to put a changing variable in a movie clip.

Displaying Boolean Value
I'm stumped. This used to work in flash 5 is it different now.
Here's the situation:
one input field- numbers only, assigns input to variable in1
one dynamic field- assigned variable in2
one button that has the following script:

on (release, keyPress "<Enter>") {
in2 = (in1<100);
}

Which I believe passes along a boolean value to in2, so that either false or true is written in the dynamic text field. But nothing happens! What am I doing wrong?

Displaying Date
Hello,

Can someone please tell me how to display a date in a flash movie that will change automatically?

Cheers.

Displaying The Date
Hi,

Simple but causing loads of problems: all i want is to display the current date in this format or similar "10 Jan 2003", but i just can't seem to work it out.

Thanks in anticipation

Ada

Displaying X,y Coordinates
hi | i'm in the midst of developing a draggable movie clip that has a display which will show its current x,y coordinates. anyone know how i can get the current x,y coordinates to display?

thanks. fu-meng.

Displaying Date
Hello,

Can someone please tell me how to display the date in a .swf using this method:
http://www.flashkit.com/tutorials/Ac...-808/index.php

But without the time included.. I am trying to disply only (Wed Jan 22)

Cheers,
Mike

Copyright © 2005-08 www.BigResource.com, All rights reserved