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




Works In Flash 6, But Not In Flash 5



Hi,

I have a swf which I published in flash5 and it works with the flash6 plugin, but not with 5.0.43?? It gets that stability error message. It uses loadVariablesNum("http://...abc.swf") to retrieve data from a backend database. It doesn't take more than 3/4 seconds. It doesn't show the 1st frame which displays 4 rows from the database before the problem. Any help would be appreciated. I can send the .fla if needed.

TIA,
pat_itdude2



FlashKit > Flash Help > Flash General Help
Posted on: 01-06-2003, 05:25 PM


View Complete Forum Thread with Replies

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

Flash Button Works In Flash But Not In Dreamweaver Preview?
ive created a button in flash and have followed the correct action script for it to open to a url because it works after ctrl and enter. when i import the flash to dreamweaver and load up the preview the flash button doesnt follow to the url? am i doing anything wrong or missing something?

Flash MX2004 - Flash Not Showing In IE? Works Ok In FireFox Tho.
I have flash in my site that allows you to change the text size but this does not work in IE, it works ok in FireFox, can someone please take a look and suggest a way to tweak the HTML code to allow this to also work in IE.

thanks in advance

Jason

www.roundshaw.co.uk
the flash links are at the header at the top of the window in all pages of the site.

Why Centered Pop-up Window Works In Flash 5 But DOESN'T In Flash 7 ?
Why centered pop-up window works in Flash 5 but DOESN'T in Flash 7 ?
Tutorial for this is here:
www.kirupa.com/developer/mx/centered_popup.htm

My ActionScript Not Working When Published Works In Flash 6 Not In Flash 8~
Hi,

I have this file which I created from http://www.tutorialized.com/tutorial...entation/11499 where the actionscript works in Flash Player 6 but when I publish into Flash player 7 or 8 it does not seem to want to play.

It gets a pop up message stating:
"A script in this movie is causing Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort?"

My purpose to get this working in Flash 8 is because I need to incorporate CSS Stylesheets externally.


Here is the following actionscript:

stop();
numberOfTabs = 3;
for (i=1; i<=numberOfTabs; i++) {
line = eval("tab"+i);
line.onRelease = function() {
for (i=1; i<=numberofTabs; i++) {
otherTabs =
eval("this._parent.tab"+i);
otherTabs.bottomLine._visible =
true;
}
this.bottomLine._visible = false;
contentFrame = Number (this._name.substr(3,
1));
this._parent.contents.gotoAndStop(contentFrame);
}
}
tab1.bottomLine._visible = false;

tab1.onPress = function() {
gotoAndStop("tab1");
};

tab2.onPress = function() {
gotoAndStop("tab2");
};

tab3.onPress = function() {
gotoAndStop("tab3");
};


How does it need to be changed?

Flash 8 And Firefox Problem. Works Fine In Flash 9 Or IE
Here's the site: http://www.nzography.com/

From feedback I've gotten, it appears that under certain circumstances the first image in a set of images does not load properly, although I haven't seen it myself.

I'm told this happens only in Firefox. And I believe only Flash player 8. Works fine with FF and Flash player 9, or IE with 8 or 9 I believe.

Can anyone out there with Firefox and Flash player 8 confirm this?

Any ideas of why this might be happening? The SWF is published at flash 8.

Works When Previewed From Flash, But Not In Browsers/flash Player?
I'm totally confused by this. I do hope it's a newbie error and that there's a simple fix.

FLA source: http://www.arcadexl.com/randomFloor.fla
Browser output: http://img293.imageshack.us/my.php?i...omfloor3xe.swf

I created a Flash file that scrolls a floor across the screen which randomly leaves gaps using ActionScript mainly. However, the only time when you can actually see the floor scrolling across is when you do File -> Preview -> Flash.

This is the method I've used to display the tiles:
Insert -> New Symbol -> Movie Clip (blank, linkage identification as "floorContainer")
Insert -> New Symbol -> Movie Clip (100x30 black rectangle in it, linkage identification as "floorTile")
Used the following code to set up the first bit of floor:
Code:
var z = 5;
var floorTiles = new Array();
var frequencyOfGap = 0;
var antifrequencyOfGap = 100;
var currentFloor = [1, 1, 1, 1, 1, 1];
var floorMoveSpeed = 10; // Divisible into 100
var firstTileId = 0;

_root.attachMovie('floorContainer', 'floorContainer', ++z);
floorContainer = _root.floorContainer;
floorContainer._x = 0;
floorContainer._y = 400;
// Build start map
for(var i=0; i<6; i++) {
if (currentFloor[i] == 1) {
floorContainer.attachMovie('floorTile', 'tile'+i, ++z);
floorContainer['tile'+i]._x = (i-1)*100;
}
}

Then used this in a repeatedly entered frame to move the floor and choose the next random tile:
Code:
// If map needs adding to...
if (floorContainer._x == -100) {
// Delete furthest left tile
removeMovieClip(floorContainer['tile'+(firstTileId++)]);
// Reset position of container
floorContainer._x = 0;
// Move last 5 tiles back one
for (var i=1; i<=5; i++) {
currentFloor[i - 1] = currentFloor[i];
floorContainer['tile'+(firstTileId+(i - 1))]._x -= 100;
}
// Generate a new tile at random
var nextTile = Math.round(Math.random()*antifrequencyOfGap);
nextTile = (nextTile<frequencyOfGap++) ? 0 : 1;
currentFloor[5] = nextTile;
if (nextTile == 1) {
floorContainer.attachMovie('floorTile', 'tile'+(firstTileId + 5), ++z);
floorContainer['tile'+(firstTileId + 5)]._x = i*100;
}
} else {
// Or if we just need to slide the floor along
floorContainer._x -= floorMoveSpeed;
}


Otherwise, nothing appears - in IE, or Flash Player.

Any ideas?

Flash 5 / Flash MX Problem. Works In 5...it Doesn't In MX
Hello,

i have this code which zooms a MC in an elastic way. It works fine in Flash 5 but it doesn't work in Flash Mx. Could someone indicate me what is the problem?

Frame 1:

Movieclip.prototype.elasticScale = function(target, accel, convert) {
xScale = xScale * accel + (target - this._xscale) * convert
yScale = yScale * accel + (target - this._yscale) * convert
this._xscale += xScale
this._yscale += yScale
}

In MC:

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(150, 0.9, 0.1)
} else {
elasticScale(100, 0.9, 0.1)
}
}

Thanks,
Miguel

Pop-up Window From Flash 8 Not Working (but It Works From Flash 6 MX)
Hi!
This sure is a silly thing although I haven't been able to find the solution yet.
I always used this in order to open a Pop-up window from Flash MX, however, this same piece of code does not work when exporting the movie for a Flash 8 player.
code: on (release) {
getURL("javascript:newWindow=window.open('PopIC.ht ml','MYGALLERY','height=550,width=450');newWindow. focus(); void(0);");
}
(NOTE: It's 'MYGALLERY', don't know why it displays 'MYG ALLERY' in this AS code above... )
Any help please?

Thank you very much.
Best regards,
Manare

SendAndLoad With PHP Bug? Flash 6 Works, Flash 7 Fails
I’m using sendAndLoad to send information from a Flash “form” to PHP where an email is sent out. This should be simple, but I’ve reached some odd conclusions.

1) I can’t get it to fail on my machine. By fail I mean, the email does not go through and returns a failed response from PHP back to Flash.
2) It fails randomly for different people, but works most of the time.
3) Testing with HTML, the php script works, so I think it is in the Flash.
4) I have a friend who has tested on Win 2k sp4 w/ IE 6.0.2800 and Win XP sp2 w/IE 6.0.2900 and the script works when I export to Flash 6, fails consistently when I export to Flash 7.
5) One note - I’m using Progressive Video in the same site as this form, so it needs to work when exported to Flash 7.


So- My question is, Does anyone have any idea why this would work on some machines, and then not on others? Also- why would it work on ALL machines when exported to Flash 6, but fail when exported to Flash 7? I'm hoping that someone with fresh eyes has an idea of what I'm missing here or that someone has encountered this problem before and found a solution.


Here’s AS code basics (I’m taking out some of the details to shorten the code)


ActionScript Code:
//mailURL is set above as a string
_global.mailURL = "http://www.server.com/folder/mail.php;"

sendBtn.onRelease = function(){ 


    // there are some tests before this checking for valid input

   
var myVars = new LoadVars();
    myVars.email = email;
    myVars.list = list;
    myVars.message = message;
               
myVars.onLoad = function(success) {
        if (success) {
       
//ty is just a dynamic text field
        ty.text = "thank you, your message has been sent";
        ty.alphaTo(99,1);      
       
//Clear everything in a separate function
        tyReset = setNewTimeout(thankyouReset, 4000);      
                       
        //PHP returns with &response=
        //output is another dynamic text field for testing
output.text += myVars.response;
                                                           
        } else{
       
//tell user there was an error
        ty.text = "your message failed to send";
                       
        output.text += myVars.response;
       
}
    };
               
    //mailURL set above
myVars.sendAndLoad(mailURL, myVars, "POST");
    ty.text = "sending message...";
    ty.alphaTo(99,1);
                               
   
};

The PHP is fairly simple, and I’ve tested it alone successfully, but just in case here is the basics of the PHP that matter:


ActionScript Code:
if(mail($sendTo, "subjectLine", $message, $header)){


    $response = "SUCCESS";

    echo '&response='.urlencode($response);

}else{

    $response= "FAILURE";

    echo '&response='.urlencode($response);
}

LoadMovieNum Works With Flash 6 But Not Flash 5?
I have the following script in the first frame of the level0 movie.
It works in Flash 6 but not Flash 5. In 5 all I get is a blank .swf file.


fscommand("fullscreen", "false");
fscommand("allowscale", "false");
loadMovieNum("home_menu.swf", 1);
loadMovieNum("hype_trans.swf", 10);
loadMovieNum("hype_bio_text.swf", 11);
loadMovieNum("hype_bio.swf", 12);
loadMovieNum("hype_applause_text.swf", 15);
loadMovieNum("hype_applause.swf", 16);
loadMovieNum("contact.swf", 20);
loadMovieNum("contact_trans.swf", 21);
loadMovieNum("contact_rev_trans.swf", 29);
loadMovieNum("photos_trans.swf", 30);
loadMovieNum("photos_on_trans.swf", 40);
loadMovieNum("photos_on.swf", 41);
loadMovieNum("photos_on_bars.swf", 42);
stop();

Any thoughts?

Cheers,
Tim

Works In Flash Player But Not In IE (Flash 5)
This is done in Flash 5.

My flash movie works in Flash Player but not in IE? What i mean is that when I click the buttons in Flash Player (Testing the movie) the buttons work fine (Animation plays). When I publish it and try the buttons in Internet Explorer (IE6) the button s click but no play of the movie?

Has any one ever had this happen to them? If so can you tell me how you went about fixing it....

Thanks,

Styro

Works In Flash 6 Actionscript 1 & 2 But Not In Flash 7 Or 8
I have this bit of script that is a timer that counts down heres the script..
and it works well in flash 6 but not 7 or 8.. can anyone see the problem..
i have attached the timer.fla..

startTimer();
function restartTimer() {
hours = "00";
minutes = "00";
seconds = "00";
milliseconds = "00";
added = "";
buttonPressTime = getTimer()/1000-pauseLength;
pauseTimer();
}
function startTimer() {
unpauseTime = getTimer()/1000;
pauseLength = (unpauseTime-pauseTime)+pauseLength;
StartTime = 11;
timing = true;
}
function addTimer() {
added = added+10;
timing = true;
}
function pauseTimer() {
pauseTime = (getTimer()/1000);
timing = true;
}
//
timer = scoreBoard.onEnterFrame=function () {
scoreBoard.goTime = goTime;
scoreBoard.StartTime = StartTime;
scoreBoard.buttonPressTime = buttonPressTime;
scoreBoard.hours = hours;
scoreBoard.pauseLength = pauseLength;
scoreBoard.minutes = minutes;
scoreBoard.seconds = seconds;
totalTimes = getTimer()/1000-pauseLength;
goTime = (totalTimes-buttonPressTime);
//this is where you set the original amount of time (in seconds)
//StartTime = 12;
runTime = (StartTime-goTime);
//
if (timing == true) {
hours = Math.floor((runTime+added)/3600);
minutes = Math.floor(((runTime+added)/3600-hours)*60);
seconds = Math.floor((((runTime+added)/3600-hours)*60-minutes)*60);
//milliseconds = Math.floor(((runTime+int(added))-(seconds+(minutes*60)+(hours*3600)))*100);
if (seconds<10) {
seconds = "0"+seconds;
}
if (minutes<10) {
minutes = "0"+minutes;
}
if (hours<10) {
hours = "0"+hours;
}
/*if (milliseconds<10) {
milliseconds = "0"+milliseconds;
}*/
if (runtime<=0) {
restartTimer();
timing = false;
delete onEnterFrame;
}
}
};

[F8] This Works In Flash 6 But Not In Flash 8 -- Scripting Help
any help would be greatly appreciated in getting this working in flash 8. thanks.

--------------------------------------------------------------------

onClipEvent (load) {
//trace(_root.car._x);
aF = _root.aF;
rF = _root.rF;
}
onClipEvent (enterFrame) {
if (_root.m<>1) {
x = x*aF+(_root.xF-_x)*rF;
_x += x;
if (Math.abs(_root.xF-_x)<1) {
_x = _root.xF;
}
}
}

Works In Flash IDE, But Not In Flash Player
When I compile my project in the Flash CS3 IDE, it works fine, but when I open the SWF and run it through Flash Player, the program does not work.

If I run it locally, embedded in an HTML page it doesn't work either. I am using the Flash debug player, and not getting any errors. So what could possibly be going on?

This makes it very difficult to debug, since I can see any of my trace statements. Does anyone know what could possibly be causing this?

Flashpaper Using IE 7 With Flash 6 Or 7 Works But Not Flash 8 Or 9
Our app uses ColdFusion 7,0,2,142559 with the lastest FlashPaper component, and is creating a page we want to load with FlashPaper. Everything works fine in FireFox using Flash 6, 7, 8 or 9 but does not work in IE 6 or 7 while using Flash 8 or 9, but does work, when IE is using Flash 6 or 7.

Not sure what I should look for here, but it must be something new or changed since Flash 6 & 7 that is causing IE not to be able to load our page.

Any thoughts?

Code Works In Flash 7 Not Flash 8
I am working on updating an interactive tutorial with navigation buttons. When a person moves back to a certain frame the code below removes the buttons (movie clips). It works in Flash 7 with AS 1, but freezes up in Flash 8 AS 2. Any suggestions









Attach Code

//Removes the screen navigation if existing

for(i=2; i<=totalNumberButtons; i++) {
removeMovieClip("screen"+i+"_mc");
}
for (i=1; i<=totalNumberButtons; i++) {
this["tfNewfield"+i].removeTextField();
}

MovieClipLoader Bug - Works In Flash 8 But Not Flash 7
Hay everyone,

Im having a problem with MovieClipLoader [MCL], and attaching one loader to multiple movieclips. Im developing in Flash MX 2004, exporting it as Flash 7, but it works perfectly in Flash 8 but not in Flash Player 7

Basically this is the way I have it setup:

- Define a MCL and their functions {TargetMCL}
- Have a for loop, which would:
--> Create an empty movieclip
--> Position this movieclip
--> Then load an image using the TargetMCL.loadclip(...);


If anyone can help me out and explain as to why this is doesnt work with Flash Player 7, I would be very grateful; this is the last bug ive had on a project that shouldnt have taken this long to do and its really been buggin me

Thanks in advance!

SWF Exported As Flash 6 Works, As Flash 8 Does Not
Here is some code that I am playing with.
The zip files are located on the Flash 8 version.

The following works when the publish settings are Flash 6 AS1.0:

Here is the final product on the web...click here

Code:

//Create and format the XML object
importXML = new XML();
importXML.ignoreWhite = true;
//Make a handler to manage incoming data
importXML.onLoad = function(success) {
   if (success) {
      // Transfer the xml content into 'xmlContent'
      var xmlContent = this.firstChild;
      //trace(this.firstChild.childNodes.length);
      // Put the content into an array
      menuContent = new Array();
      for (var i = 0; i<this.firstChild.childNodes.length; i++) {
         nextEntry = xmlContent.childNodes[i];
         //trace(nextEntry);
         menuContent[i] = [nextEntry.attributes.name, nextEntry.attributes.value];
      }
      trace(menuContent);
      // Identify the total number of menu items
      menuLength = menuContent.length;
      // Control spacing between each menu item
      elementspacer = 1;
      // Create the menu
      var menuItem, yPosition = 0;
      //To allow flexibility, create an empty movie clip that will contain the menu
      createEmptyMovieClip("clipContainer", 1);
      for (var i = 0; i<menuLength; i++) {
         clipContainer.attachMovie("element", "menuItem"+i, i);
         // Create a shortcut reference to the present movie clip
         thisClip = clipContainer["menuItem"+i];
         thisClip.menuname = menuContent[i][0];
         thisClip.destination = menuContent[i][1];
         // Set the vertical position of each movie clip
         thisClip._y = yPosition;
         yPosition += Math.floor(thisClip._height+elementspacer);
      }
   } else {
      trace("Error loading xml");
   }
};
// Called when a menu item is clicked
function setMenu(value) {
   getURL("http://"+value, "_self");
}
//Load the XML file
importXML.load("menu_working.xml");


The XML file menu_working.xml content:

Code:

<?xml version="1.0"?>
<select>
   <option name="Google" value="www.google.com"/>
   <option name="Go To and Learn" value="www.gotoandlearn.com"/>
   <option name="Yahoo" value="www.yahoo.com"/>
   <option name="Ebay" value="www.ebay.com"/>
</select>



*****************************************
Published as Flash 8 AS 1 or AS2 it didn't work.

I figured that Flash 8 did not like theXML children being referred to as name and value, so I changed them to desc and link, respectively.

In the new Flash 8 SWF the links work, but the text still does not display....why?

Here is how it looks online....click here

Here is the modified AS (changes only to lines 15,41, 42 and the last line):
Code:

//Create and format the XML object
importXML = new XML();
importXML.ignoreWhite = true;
//Make a handler to manage incoming data
importXML.onLoad = function(success) {
   if (success) {
      // Transfer the xml content into 'xmlContent'
      var xmlContent = this.firstChild;
      //trace(this.firstChild.childNodes.length);
      // Put the content into an array
      menuContent = new Array();
      for (var i = 0; i<this.firstChild.childNodes.length; i++) {
         nextEntry = xmlContent.childNodes[i];
         //trace(nextEntry);
         menuContent[i] = [nextEntry.attributes.desc, nextEntry.attributes.link];
      }
      trace(menuContent);
      // Identify the total number of menu items
      menuLength = menuContent.length;
      // Control spacing between each menu item
      elementspacer = 1;
      // Create the menu
      var menuItem, yPosition = 0;
      //To allow flexibility, create an empty movie clip that will contain the menu
      createEmptyMovieClip("clipContainer", 1);
      for (var i = 0; i<menuLength; i++) {
         clipContainer.attachMovie("element", "menuItem"+i, i);
         // Create a shortcut reference to the present movie clip
         thisClip = clipContainer["menuItem"+i];
         thisClip.menuname = menuContent[i][0];
         thisClip.destination = menuContent[i][1];
         // Set the vertical position of each movie clip
         thisClip._y = yPosition;
         yPosition += Math.floor(thisClip._height+elementspacer);
      }
   } else {
      trace("Error loading xml");
   }
};
// Called when a menu item is clicked
function setMenu(link) {
   getURL("http://"+link, "_self");
}
//Load the XML file
importXML.load("menu_not_working.xml");


Here is the modified XML for the file named menu_not_working.xml:
Code:

<?xml version="1.0"?>
<select>
   <option desc="Google" link="www.google.com"/>
   <option desc="Go To and Learn" link="www.gotoandlearn.com"/>
   <option desc="Yahoo" link="www.yahoo.com"/>
   <option desc="Ebay" link="www.ebay.com"/>
</select>

Works In Flash 4 But Not 5...WHY?
can anyone tell me why this loop works only when i export as Flash 4? Exporting as Flash 5 results in nothing being duplicated. "menuItems" and "itemSpacing" are being read in from a text file via "loadVariables". any ideas would be appreciated

for (i=1; i<menuItems; i++) {
duplicateMovieClip ("/genesis", "genesis"+i, i);
genesis._y = genesis._y+itemSpacing;
trace ("genesis"+i add "Y is " add genesis._y);
trace ("itemspacing is " add itemSpacing);
trace ("menu items is " add menuItems);
}

HELP How This Flash Works?
http://www.adverit.com/advert-rise.htm
any body know any tutorial for this??????

Works In Flash 5 - But Not In MX
Hi...

Ive doing a map and found this function code to scale
but it wont run in from MX..

Can anyone help.

FOR THE MAP:

function zoom(amount) {
xoffset = (startWidth*(map._x-startx))/((100/amount)*map._width);
yoffset = (startHeight*(map._y-starty))/((100/amount)*map._height);
map._xscale = map._xscale+amount;
map._yscale = map._yscale+amount;
map._x = map._x+xoffset;
map._y = map._y+yoffset;
scale = int(map._xscale)+"% view";
if (map._xscale <=25) {
map._xscale =25;
map._yscale =25;
scale = int(map._xscale)+"% view";
}
}
stop();





AND THE +

on (keyPress "+") {
zoom(25);
}
on (keyPress "=") {
zoom(25);
}


AND THE -

on (keyPress "-") {
if (map._xscale >25) {
zoom(-25);
}
}
on (keyPress "_") {
if (map._xscale >25) {
zoom(-25);
}
}

REGARDS

PAUK

Why Someone Works In Flash 5 And Not Mx ?
I posted earlier about a template that was missing a movie when it was published in Flash MX. i have just received an email stating that the template will only work fully in flash 5.

can anyone tell me how i can get it to work in mx as well?


everything works perfectly when i open it up in flash mx, except for 1 movie.

i find it strange that this particular movie works only in flash 5 but the rest of the template works perfectly in flash mx.

does this sound strange to you?

thanks in advance


angelus

Flash Works On MAC And Not PC
For some strange reason my flash site works fine on mac both ie and safari, but on pc it doesn't work fully, eg fails to load an swf into a layer, no complex code - running of a local drive so not server related - authored on the Mac ..any ideas???

Works In FLASH Not In SWF
I have a navigation and it works in Flash but when I export it to a swf you can not see it. Only one piece of it is seen. The links are there because if you click you can move around the site but the buttons are missing.

It seems like the person that made this did it on a MAC I have a PC. Also I think maybe the font is causing some problems.

Any thoughts.

Works In Flash, Not On Net....
Help....anyone....

I am having a slight problem when loading jpgs from a directory into a blank mc, which then does the typical endless scrolling routine.
Problem is, all works great in Flash when testing, all images are there, but live out on the net the last 8 jpgs don't show in the scroll lineup, although all images have loaded (using a dynamic field to check while loading).

Any idea what would cause a difference online versus local/in flash ?

thanks...

[F8] Flash Only Works In Ie
i created a flash navigation for this site: www.acgreen.com/index.html
I have a js script pointing to the flash

It works fine in internet explorer, and it also does the rollover actions in firefox and safari, BUT it will not do the onrelease click actions in firefox or safari.

What am I doing wrong?

Thanks so much!

here is the code in the js script, but since the flash shows up and the rollover works, i'm guessing it is a problem in Flash itself...

var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript>
'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next
');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFla sh." & MM_contentVersion)))
');
document.write('</SCR' + 'IPT>
');
}
if ( MM_FlashCanPlay ) {
document.write('<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
document.write(' ID="flash_blackstone" WIDTH="980" HEIGHT="30" ALIGN="" menu="false">');
document.write(' <PARAM NAME=movie VALUE="http://www.acgreen.com/assets/nav/MainNav.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#588A42> <PARAM NAME=menu VALUE=false> <param name="allowScriptAccess" value="always"> ');
document.write(' <EMBED src="http://www.acgreen.com/assets/nav/MainNav.swf" quality=high bgcolor=#588A42 ');
document.write(' swLiveConnect=FALSE WIDTH="980" HEIGHT="30" NAME="homepage_container" ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
}

else{
document.write('<A href="http://www.adobe.com/products/flashplayer/">You must download Flash - click here</a>');
}

/* <param name="allowScriptAccess" value="always"> is what allows it to work in blogger */

Works In Flash 6 Not In 8 - Why?
This xml menu code works in flash 6, but not in flash 8...
what am i missing?

Here is the Actionscript:

Code:
function loadXML(loaded) {
if (loaded) {
var xmlContent = this.firstChild;
menuContent = new Array();
for (var i = 0; i<this.firstChild.childNodes.length; i++) {
nextEntry = xmlContent.childNodes[i];
menuContent[i] = [nextEntry.attributes.name, nextEntry.attributes.value];
}
//trace(menuContent);
menuLength = menuContent.length;
elementspacer = 1;
var menuItem, yPosition = 0;
createEmptyMovieClip("clipContainer", 1);
for (var i = 0; i<menuLength; i++) {
clipContainer.attachMovie("element", "menuItem"+i, i);
thisClip = clipContainer["menuItem"+i];
thisClip.menuname = menuContent[i][0];
thisClip.destination = menuContent[i][1];
thisClip._y = yPosition;
yPosition += Math.floor(thisClip._height+elementspacer);
}
} else {
trace("Error loading xml");
}
}
function setMenu(value) {
getURL("http://"+value, "blank");
}
importXML = new XML();
importXML.ignoreWhite = true;
importXML.onLoad = loadXML;
importXML.load("menu.xml");
Here is the XML:

Code:
<?xml version="1.0"?>
<select>
<option name="Google" value="www.google.com"/>
<option name="Yahoo!" value="www.yahoo.com"/>
<option name="Kirupa" value="www.kirupa.com"/>
</select>

Flash Works Only When Theres No Www
Hi.
I'm working with the flash that downloads images which are specified in xml-file. And shows them on the defined place on the stage. Defined place has also a link on it and rotation effect. This works just fine in firefox.

But in ie(7), when I go direct to http://www.site.com (exsample) flash wont load images or the link wont work. But still the animation keeps rolling and rotating. And when opening http://site.com flash works just fine, also in IE. So the www makes the flash crash somehow in IE. What am I possible doing wrong? All the links are relative, loading the xml, image paths in xml file and the link in flash. Is it still possible that problem has something to with the paths?

Works In Flash 6 But Not 7
I have the following code in a piece of flash I wrote a while ago. It works perfectly well in Flash 5 and 6, but not 7. Can anyone advise me what I need to change to get it working in Flash 9. Iv'e looked for things like loadmovie and cannot see anything that is affected by the changes from Flash 6 to 7. It basically makes a series of movieclips grow when you move over it.


// Main code in root
// Defines Constants
descriptions = new Array();
links = new Array();
descriptions[0] = "Back to home page"
links[0] = "default.htm";
descriptions[1] = "Services we can provide"
links[1] = "services.htm";
descriptions[2] = "Portfolio of work for clients"
links[2] = "portfolio.htm";
descriptions[3] = "The technical skills we possess"
links[3] = "skills.htm";

// Define window functions.
// These will be added to the local window
// object to create the window.methods.
//
// set semaphores
winActive = new Object();
winActive = {state:false, owner:"no-one", fullWindow:false};
bootstrap = true;
//
function scaleMe (me, meActive) {
    trace('scale me');
    // if I am an active window, I need to grow...
    if (meActive) {
      var cs = _root[me]._xscale;
      var cx = _root[me]._x;
      var cy = _root[me]._y;
      var scale = 24;
      var damp = .72; //.72 will give bounce

      xaccel += (_root[me]._x - _root[me]._x)*.2;
      yaccel += (_root[me]._y - _root[me]._y)*.2;
      saccel += (scale - _root[me]._xscale)*.2;

      if (_root[me]._xscale +saccel  <=2){
          _root[me]._xscale = _root[me]._yscale = 2;
      }else{
         _root[me]._yscale += saccel;
         _root[me]._xscale += saccel;
       }

       _root[me]._x += xaccel;
       _root[me]._y += yaccel;


       xaccel *= damp //damp
       yaccel *= damp //damp
       saccel *= damp //damp
       _root.winActive.fullWindow = true
    } else {
        // ... otherwise I am not the active window and need to shrink.
        if (_root[me]._xScale>16) {
            _root[me]._xScale = _root[me]._xScale*0.90;
            _root[me]._yScale = _root[me]._yscale*0.90;
            // if I was previously the active window, I need to relinquish
            // this title to let other windows in.
        } else {
            _root[me]._xScale =16;
            _root[me]._yScale = 16;
        }
        // Because I am not Active I need to shrink
    }
}

// Shows description in top associated with image
function showDescription(i) {
    trace('show description');
   _root.mcDescription.setText(_root.descriptions[i]);
   _root.mcDescription.gotoAndPlay("start");
}

// Gos to the website associated with image
function goToLink() {
   getURL(links[_root.winActive.owner.charAt(4)]);
}

function setOwner(me) {
       trace('setOwner');
       var presentOwner = _root.winActive.owner;
       // Note charAt below takes last character of name - will need to alter if
       // have more than 10 items as only works with single digit
       if (_root.winActive.owner <> me) showDescription(me.charAt(4));
       _root.winActive.state = true;
       _root.winActive.owner = me;
       _root.bootstrap = false;
}

function cursorHit (me) {
    trace('cursorHit');
    // If there is a window currently hit and it is
    // not me, I cannot be hit.
    if (_root.winActive.state && ((_root.winActive.owner<>me) || _root.bootstrap)) {
        return false;
    } else {
        hit = false;
        // if I am currently under the cursor...
        if ((_root[me]._x-_root[me]._width/2)<_root._xMouse) {
            if ((_root[me]._x+_root[me]._width/2)>_root._xMouse) {
                if ((_root[me]._y-_root[me]._height/2)<_root._yMouse) {
                    if ((_root[me]._y+_root[me]._height/2)>_root._yMouse) {
                        // ...set me to hit, and lock other windows out.
                        hit = true;
                        // this is where if cursor over
                        _root.setOwner(me);
                    }
                }
            }
        }
        // ... otherwise I was the last hit window, but I
        // am not anymore, so I should release control...
        if (!hit) {
            _root.winActive.state = false;
            _root.winActive.owner = "non";
        }
    }
    return hit;
}
stop();

//Code in movie clip
onClipEvent (load) {
    // Define my window object and methods.
    window = new Object();
    window.scale = _root.scaleMe;
    window.cursorHit = _root.cursorHit;
    // Initialize my home (new pseudo-property).
    _parent.homeX = _parent._x;
    _parent.homeY = _parent._y;
}
onClipEvent (enterFrame) {
    window.scale(_parent._name, window.cursorHit(_parent._name));
}
onClipEvent(mouseUp) {
    _root.gotoLink();
}

Any help would be appreciated
Thanks
Andy

IRC Server & Flash 5 Works
Hello Everyone,

I've make an IRC client in flash 5 using xml.socket and I'm able to connect to it and all is working fine, the ONLY thing is I can't send command such as /join. I get an error for the IRC server as an invalif command.

Can someone help,

Thanks

A Scrollbar That Works In Flash 5 But Not 6
In reference to this tutorial: http://www.flashkit.com/tutorials/In...40/index.shtml

I used this script, pretty much verbatim except for graphical changes, and it works perfectly in the Flash 5 player. However, when I play it in Flash 6 player, it allows the scroll bar to be drug around outside of it's boundaries in the strangest thing I've seen. I really am not sure why it's doing this, and could use some suggestions. I'm pretty sure that it's a small A/S change, but I don't know enough to figure it out without a bit of help.

-RCM

Flash Works Protection
Hi there

I wonder how can I protect my swf files from being downloaded to the user compuer.

I mean I have a cartoon clip and I don't want anybody to steal it or to see it offline.

I want it to be seen just online from my site..


can I do that?

MX - It Works But Flash Does Not Like My Syntax.
I used this code

for (h=0; h<90; h++) {
this["clip" add h]_alpha = 100;
}

it works but the output window says this when I test

Line 2: ';' expected
this["clip" add h]_alpha = 100;

how should I write that? the comment doesnt help I already have ; at the end, so something else is screwy.

thanks mark

Fire Works And Flash
is it possible to import flash in to macromedia fireworks?

Need Flash MX Auto Run That Works...:D
hi all...

Just wanna ask if there is any development on the Flash Mx auto run...all i really want to do is to have a stable auto run script which is like macromedia director... and if flash already devloped a standalone player like director have?????



TY and more power

Bernols

Flash Detection That Works Everywhere..
Hi, I've searched long and hard and have experimented with many scripts but none that seem to work cross platform/browser.

What I'm trying to do:
I'm looking for detection code within the same page as the flash movie (default page), if the user does not have flash I would like a jpg image in it's place. The client does not want to "redirect" the user to another page to take advantage of default meta tag and search stuff.

Thanks!

FLASH Only Works On Refresh
I have a very strange problem and I have no idea what to do.

I have a FLASH portfolio that opens up with 4 options. The 2nd option works. But if you click on the first or fourth option, instead of going to their respective scenes it goes to then 2nd options scene. Here is the kicker though - if you refresh the page Control+F5 everything works fine How come it only works after you refresh the page? This makes no sense to me and I'm going crazy. Please help, here is link [L=FLASH PORTFOLIO]http://www.jgreenz.com/portfolio/portfolio.html[/L]. Then click on personal portfolio link. Please help thanks.

FLASH Only Works On Refresh
I have a very strange problem and I have no idea what to do.

I have a FLASH portfolio that opens up with 4 options. The 2nd option works. But if you click on the first or fourth option, instead of going to their respective scenes it goes to then 2nd options scene. Here is the kicker though - if you refresh the page Control+F5 everything works fine How come it only works after you refresh the page? This makes no sense to me and I'm going crazy. Please help, here is link [L=FLASH PORTFOLIO]http://www.jgreenz.com/portfolio/portfolio.html[/L]. Then click on personal portfolio link.

Flash And Different Servers...works On One And Not On Another.
I've got the strangest problem. I uploaded a Flash website, all of the swfs and its index page to my server and it worked perfectly.

My client uploaded the same exact swfs and for some reason, one will not work.

Are there any glitches I should be aware of?

Furpants

XML / LoadMovie Works In Flash 6, Not 7
I am adapting a simple xml-based Flash photogallery for a larger application.

The following ActionScript is the
core of the original app, which works
fine:

myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
spacing = 70;
for (i=0; i<numimages; i++) {
picHolder = this.firstChild.childNodes[i];
thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
thumbHolder._x = i*spacing;
thumbLoader = thumbholder.createEmptyMovieClip("thumbnail_image" , 0);
thumbLoader.loadMovie(picHolder.attributes.thmb);
thumbHolder.title = picHolder.attributes.title;
thumbHolder.main = picHolder.attributes.main;
thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
myPhoto.load("xmlphoto.xml");
}
};

And the XML is:

<gallery>
<image title="Balanced Breakfast" main="images/breakfast.jpg" thmb="thumbnails/breakfast.jpg"/>
<image title="Found this Bug" main="images/bug.jpg" thmb="thumbnails/bug.jpg"/>
<image title="Barbeque Lunch" main="images/bbq.jpg" thmb="thumbnails/bbq.jpg"/>
<image title="Evening Boat Ride" main="images/boat.jpg" thmb="thumbnails/boat.jpg"/>
</gallery>

The Flash file built with ActionScript 1.0 and Flash 6 Player settings. If I
change the AS to 2.0, it still works fine. However, when I switch to Flash 7, the thumbnails do not display. Any hints on what is incompatible?

thx,
BR

Flash Only Works If On First Frame?
Hi, i've been working on this game for a few hours now, and i uploaded it to the internet to find it didn't always work in firefox (sometimes when you refresh it works). So i tried adding a play button on the first frame to go to the next one, and it didn't work at all. Any ideas?

I have attached the flash, thanx...

- Aldarn.

Works In Flash, But Not In Browser?
hey,

i made this little ratings application, u know vote 1 - 5 etc.
well it works and submits perfectly in flash preview, but when i open it in a browser it wont submit anything... anyone heard of this or know any possible solution?

its just a simple sendAndLoad with php and txt files.

Same Problem, Works In Flash, Not On Web
this is starting to really piss me off. I have a scroller that works perfectly in Flash, but then when i get it on the web, it doesn't work. I also have an swf that has thumbnails you can scroll through and click and it loads to the right of them. They also work within Flash. They also work when it's up on the web, but just on an HTML page.

Could it be that these two things aren't working b/c they're swf's within swfs?

Oh i want/need to learn so much more!

Script Works As Flash 6 But Not 8
I attempted to use one of my scripts from an older project and it does not work when published as flash 8. Hopefully someone can help me out with this script.

My button script is:

Code:
on (release) {
xpos = -100;
}




My movie clip script is:

Code:
onClipEvent (enterFrame) {
// MOVING SCIPT PART
var speed = 2;
var viscosity = 9;
xpos = xpos;
// X Pos
difference = xpos-this._x;
xvelocity = (xvelocity+(difference)/speed)/viscosity;
this._x += xvelocity;
}



Just to let you know, im just making my movie clip scroll upon request.

Works In Flash But Not In Browsers (as3 Cs3 Mac)
I build this simple snake game from a web tut
it functions correctly in the flash test envrioment
but when it is loaded in a browser (html or swf) (ie firefox safari mac and xp)
some of it works but the keyboard navigation does not work
I contacted the author of the tut
And when I use his fla files I get the same result
it does not make sense to me that the it works when testing but not in the browse
any sugggestions?

SWF Works In Flash But Not In Browser
Hi all,

I have just started programming after a break of 2 years and started working on actionsscript 3.0 3 weeks ago.

I'm building a preloader for a site that is loading 4 objects, counts all those bytes together for the total bytes and with a call to bytesLoaded in the objects I can calculate to total percent that is loaded.

This works fine when I test it in Flash but when I put it on the net it does't get the bytes that are loaded.

It does give me one error though, but I don't think that that can be the problem, when the program is tested in flash and I don't simulate download, the preloaded is not yet loaded so it cannot remove it when all bytes are loaded.


The class uses a timer event and every interval it checks how many bytes are loaded.

Below a snippet of the code that calls the object loaded bytes.
array c1 = hold the object;
array c2 hold the amount of bytes that are loaded;

--------------------------------------------------------------

private function onTimer(e:TimerEvent):void
{
// gets the total bytes that must be loaded
for( var i = 0; i <= c1.length-1; i++ )
{
totalBytes += c1[i].getTotalBytes();
}
// gets the amount of bytes that are loaded now
for( var b = 0; b <= c1.length-1; b++ )
{
loadedPercent = c1[b].getLoadedPercent();
c2[b] = loadedPercent/c1[b].getTotalBytes()*100;
countArray(c2);
if ( totalPerc == 100 ) { b = c1.length }
}


}
private function countArray( a:Array )
{
som = 0;
for( var i = 0; i <= a.length-1; i++ )
{
som +=a[i];
c2[i]=0;
count = i;
}
totalPerc = som;

if( totalPerc == 100 )
{
t.stop();
removeChild(preloader);
//t.removeEventListener( TimerEvent.TIMER, onTimer );
addChilds();
}

------------------------------------------------------------------

Below you find a snippet of the class that has a progressListener to display the amount of bytes loaded.

-------------------------------------------------------------------
private function progressListener( e:ProgressEvent ):void
{
totalBytes = e.bytesTotal;
var loadedTotal:Number = e.bytesLoaded;
loadedPercent = loadedTotal;
}


public function getLoadedPercent():Number
{

return loadedPercent;

}
public function getTotalBytes():Number
{
return totalBytes;
}

------------------------------------------------------------------

Any help is greatly apreciated.

Regards,

Silvio.

Flash 8 On A Linux Box - It Works
I promissed I would get this working one day ! Because Linux is better. Period.


Macromedia Flash 8 Basic and Professional works on any Linux via wine.
You must install it first on any real windows environment (or via vmware) then use a hacked exe (FFF for example).
(Of course: You should own a licensed version !)
Patch the .exe and copy all three folders inside "Program Files/Macromedia":

"Flash 8"
"Flash 8 video Encoder"
"Extension Manager"

Goto to terminal and type:
# wine Flash.exe

That's it. Good luck Folks ! No more Windows needed !!

Flash Only Works For One User
Recently the Adobe Flash player stopped working--I uninstalled and reinstalled the player multiple times. One user has full funtionality, but the other user still recives the message to install the player every time a site uses the flash player (youtube, etc). The player seems to be successfully installed when attempting to install from the adobe site. Any suggestions on why only one user has this problem and any fix suggestions? Thank you!

No Flash In IE7 But Works In Firefox
I am wondering why, when all things seem to have been tried to fix this, flashplayer 9 won't play swf files in IE7 but will in Firefox?? I have serious looked at security levels, firewall restriction on animation and most other methods to fix this such as uninstalling and reinstalling all involved applications, but it is still the same story. Is there an issue with flashplayer and IE7 or am I missing something??

Flash Hyperlink Almost Works
I scoured the forums, so my apologies if this has been answered before.

I have exported my flash file to a .swf, but the hyperlink does not function. The "hand" appears as I mouse over the flash content, but clicking it does not take you to a new webpage.

My Flash file consists of 3 layers.

The third layer has a banner graphic converted into a button symbol for motion tweening (fade in of the banner graphic).

The second has an invisible button with an instance name of inv_btn.

The first layer has an action on frame one that is as follows:

inv_btn.onRelease = function(){
getURL("

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