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




Flash Doesnt Work In IE



i have this flash site iv been working on, and its been fine, and im ready to get paid. (the site looks bad but shes changed it so much she likes it...) but i use a mac so i test everthing in safari, and firefox. but when she looks at it, she uses internet explorer, and it doesnt show up. it shows the box u have to click to activate object. but its blank, and when u click its still blank.why would this be? im publishing in flash 8, it works fine in all browsers except IE.www.promptservicemd.com is her site please dont critique it I know it sux.



Adobe > ActionScript 1 and 2
Posted on: 07/12/2007 10:57:47 AM


View Complete Forum Thread with Replies

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

Button Works, Doesnt Work, Works, Doesnt Work With Each Click
I have this code on a button

on (release) {
gotoAndPlay("smokeleft");
}

that obviously takes the viewer to a frame labled "smokeleft". At that frame there is a stop action and a MC with an instance name of "smokeleftmc"

I've followed this procedure with two more buttons and MC's, smoke and smokeright.

If a button is clicked once, it works perfect. However, if the button is clicked a second time, BEFORE one of the other two buttons is clicked, the play head will not trigger the MC again, rather it will move forward one frame (I assume it would move forward more if there wasn't a stop action).

If the button is clicked once, then a second button is clicked, then the first button is clicked a second time, it works exactly as designed. The only time there is a problem is if one button is clicked twice in a row.

How do I solve this? Thanks

Flash Fullscreen Doesnt Work HELP
Hi,

I want my flash to open fullscreen, but I get scrollbars in 800x600. My flash is exactly 800x600, and I mention in the open.window action not to get scrollbars...Here is my script:

<script>
<!--
function winopen(){
newwin=window.open("Menu_FR.html","","scrollbars=n o,fullscreen")
}
//-->
</script>

It opens by:

<form>
<input type="button" onClick="winopen()" value="Open window">
</form>


And in my Menu_FR.html file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Datahex D&eacute;mo</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body bgcolor="#d3d3d3">
<!--url's used in the movie-->
<!--text used in the movie-->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="600">
<param name="movie" value="menu_FR.swf">
<param name="quality" value="high">
<embed src="menu_FR.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="600"></embed></object></td>
</tr>
</table>
</body>
</html>

I tried with a smaller version of my flash, but i still get scrollbars....
But on a larger resolution, on don't get scrollbars...

Please help!!!

Flash Player 7 Doesnt Work ?
howdy all~

I'm coding and testing some features on AS2 and surprisingly found the swf published was still with flash player 6 not 7. i tried to locate the swf to 7 but failed, and I install fp7 at Macromedia.com and reboot computer as request, but finally that swf was with fp 6 yet, how can i fix it ???

3D In Flash, HitTest Doesnt Work...
I created this test room but I cant seem to keep the camera class from walking through the polygon class. I tried using a hit test, but that doesnt work, I've seen this done before, but I cant figure this one out....

http://www.ill-conceived.com/media/3d/3dengine-roomtst.html

Flash Player Doesnt Work
i updated my flash player and after that my video wouldnt play for example youtube videos now i try reinstalling the player i try checking if my javascripts are ebalbed and it was so is there anything alse i can do to make it start workign again?

Mail Flash/PHP Doesnt Work...
Hi guys, im trying to make another mailer code using flash and php[, for a contact us page on a site im working on..
The code i was using before used to work great, but now it doesnt work anymore and i have no idea why.. I am using it on a different server, but the server accepts php...

anyway, i was soo frustrated that it doesnt work, i went ahead and made a new one... but this one doesnt work either... I need some help from you guys...

I will kick my self sooo hard if it's something simple that im forgetting...

heres the PHP code:







Attach Code

<?php

$name=$_POST['name'];
$email=$_POST['email'];
$number=$_POST['number'];
$subject = 'Comments From WebSite';
$message=$_POST['message'];

$name=trim($name);
$email=trim($email);
$number=trim($number);
$subject=StripSlashes($subject);
$message=StripSlashes($message);


$toaddress='seul_kof@yahoo.com';



mail($toaddress,$subject,$message,"From: $name <$email>");


$name='';
$email='';
$number='';
$subject='';
$message='';
echo "passed";

?>

Mail Flash/PHP Doesnt Work...
Hi guys, im trying to make another mailer code using flash and php[, for a
contact us page on a site im working on..
The code i was using before used to work great, but now it doesnt work anymore
and i have no idea why.. I am using it on a different server, but the server
accepts php...

anyway, i was soo frustrated that it doesnt work, i went ahead and made a new
one... but this one doesnt work either... I need some help from you guys...

I will kick my self sooo hard if it's something simple that im forgetting...

heres the PHP code:

<?php

$name=$_POST['name'];
$email=$_POST['email'];
$number=$_POST['number'];
$subject = 'Comments From WebSite';
$message=$_POST['message'];

$name=trim($name);
$email=trim($email);
$number=trim($number);
$subject=StripSlashes($subject);
$message=StripSlashes($message);


$toaddress='seul_kof@yahoo.com';



mail($toaddress,$subject,$message,"From: $name <$email>");


$name='';
$email='';
$number='';
$subject='';
$message='';
echo "passed";

?>

HTML Doesnt Work In FLASH MX 04
Hi!
I have the following html code in a dynamic textfield in flash but it doesnt show anything (like there is no text), how come?

PHP Code:



<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="11" COLOR="#000000"><B>tjocka boksträver</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="RIGHT"><FONT FACE="_sans" SIZE="21" COLOR="#003399"><B>högershiftade!</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="_sans" SIZE="16" COLOR="#339933"><B><U>understruket</U></B></FONT></P></TEXTFORMAT> 




/Thanx for answering, Ayaz

HTML Doesnt Work In FLASH MX 04
Hi!
I have the following html code in a dynamic textfield in flash but it doesnt show anything (like there is no text), how come?

PHP Code:



<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="11" COLOR="#000000"><B>tjocka boksträver</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="RIGHT"><FONT FACE="_sans" SIZE="21" COLOR="#003399"><B>högershiftade!</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="_sans" SIZE="16" COLOR="#339933"><B><U>understruket</U></B></FONT></P></TEXTFORMAT> 




/Thanx for answering, Ayaz

Flash Player 10 Doesnt Seem To Work With Ff 3
Im running xp with firefox's latest v3 version. Im having issues installing flash player 10.

I download it, close my browser, install it, the installer runs and lets you close it, seems to have worked. Returning to firefox, you get the same screen, prompting you to download the player again. I see the flash player in my list of installed programs and removed it, and did the process again.. but still no flash content.

edit - oops.. seems to be only a site specific issue. the flash player works on adobes site, but not on thedailyshow where I was having the problem..

Flash Doesnt Work In Firefox
Hi all,

Just wondering if you can help, the flash in my homepage doesnt seem to work in firefox and im wondering if someone can tell me why.......

url is http://www.peteromoore.com

and the code i have used to embed the flash is

<object type="application/x-shockwave-flash" data="flash/index.swf" width="404" height="404">
<param name="movie" value="flash/index.swf" />
<param name="quality" value="high" />
</object>

Thanks in advance

Making Php And Flash Actually Work? It Works....but It Doesnt
okees, here's what am trying to do!

i have a main swf file. and i want to load another swf file in the main one. the one the i want to load is a php driven blog. well when i test just the blog...it works. but when i test the main swf, that loads the blog, it doesnt show the php.

whys?whys?whys?
is this stupidity happening

thanks

LoadMovie Doesnt Work In Flash Email - Help
Hi

I am trying to send an html email that contains a swf that uses several loadMovie commands. The page works fine if viewed as a webpage in a normal browser but for some reason the movies dont load when the email is viewed in Outlook (the original movie loads but in frame one a new swf is called and this doesnt appear, nor do buttons work which also call movies).

Is there any solution to this? I have tried making the references to the swfs absolute but makes no difference.

All swfs have been built in Flash 5.

Thanks for any advice at all.

sonia

HTML-code Doesnt Work In Flash Mx 04
Hi!
I have the following html code in a dynamic textfield in flash but it doesnt show anything (like there is no text), how come?

PHP Code:




<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="11" COLOR="#000000"><B>tjocka boksträver</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="RIGHT"><FONT FACE="_sans" SIZE="21" COLOR="#003399"><B>högershiftade!</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="_sans" SIZE="16" COLOR="#339933"><B><U>understruket</U></B></FONT></P></TEXTFORMAT>







/Thanx for answering, Ayaz

I Swear Flash Doesnt Work Properly
How do I move to a certain scene using action script.
Heres my current code
onClipEvent (enterFrame) {
if (_parent.health<=0) {
tellTarget ("_parent._parent.") {
gotoAndStop("Death",1)

}
but that doesnt send me to the right frame, AND I need to remove the
duplicates that I create in my game. Please I need help I will be ever so greatful
AND I will mention you in the credits

Flash Background Doesnt Work Firefox Bug In Mac?
I have a site that has a flash background sized 100% in a position:absolute div . All major browsers including FF 2.0 even 3.0 beta works fine in Windows.

But in Mac... I don't know why it does not show in FF 2.0 and 3 beta !!! its like the entire flash is not there and the div above it disappears?!

Anyone can help? please...this is driving me crazy.

Thank you so much!

Flash ActiveX For IE6 Doesnt Work Anymore?
hi its a bit off topic but I dont know what to do
I was cleaning some prgrams on my comp and after that I cantplay flash movies on the webpages if I open them with IE6, however firefox works fine

I triet to instal player from Adobe homepage and it says installed successully but when i go to the page that has fllash movie it doent work well it works with flash versions 8 but those who are using flash 9 it doesnt work ...

Maybe my Macromedia Player still works but adobe Player doesnt?

I have disabled Adobe LM service but that was long time ago nd player was working fine...

any ideas?

Tnx!

I Have A Flash Form That Doesnt Seem To Work Properly
Basically i need someone to help in getting a flash form within a flash site to work properly by going over the action script with me.

Why Doesnt Exported Flash .eps Files Work In Freehand?
Hiya there.

I have a problem with exporting images from Flash MX to Freehand 10. So in short - I just need a way to export things from Flash to Freehand in a way that if i print the document in Freehand the images i've exported from Flash would be in _high_ proper printing resolution and look good?

Any tips and hints to make this work proper...im too lazy to all the images AGAIN in freehand to have a good quality printing.

With glee.

Titiu

Transparency In Flash - Doesnt Work In Macs, Any Solution?
Ok, so <PARAM NAME=wmode VALUE=transparent> makes the flash file transparenton a pc, but it doesnt work on Macs. Is there a piece of code to make it work on Macs?

Macromedia Flash Window Compoenent DOESNT WORK
Wow, very frustrated now... the macromedia windowpane compoenent simply doesnt work...

i made a converted a textInput component (dyanmic name "myText" to moveclip and name it testMC, then added linkage.

Added it as a contentPath to a window.

put this code in main timeline:

_root.myWin.content.myText.text = "test";

everytime the textbox is blank, wtf?

~All names case sensitive and everything is correct!~

HELP!!!

Flash MX Quiz Template Doesnt Work When Loaded Into Another Movie
The shockwave file for the quiz template works allright when its a standalone, but when you load it into another flash movie (using loadMovie) it doesnt work. The number of questions defaults to the frames in your movie you are loading into, and the next question button doesnt work.

Any ideas

luke@cinchinteractive.com

Client Side Flash To Javascript Calls Doesnt Work On IE (on Most Machines)
For some reason, i cant get flash to talk to javascript client side via the flash integration kit or getURL in Internet Explorer.

Strange thing is when i upload it, it works fine. On some IE machines client side, it works fine but most of them dont seem to work.

Calling flash functions from javascript seems to work fine, but just not the other way around.

This is the ActionScript code im using for flash -> javascript:


Code:
//set up proxy calls from javascript
import com.macromedia.javascript.JavaScriptProxy;
var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);

printPage = function(){
_root.proxy.call("PrintIframe","content");
}
And this is the Javascript in the html:


Code:
<script type="text/javascript" src="./scripts/JavaScriptFlashGateway.js"></script>
<script type="text/javascript">
var uid = new Date().getTime();
var flashProxy = new FlashProxy(uid, './scripts/JavaScriptFlashGateway.swf'); //change to where the swf you have is located

//call this when you want to call the AS
function callAS(x)
{
//CALL ACTIONSCRIPT
flashProxy.call('eLink', x); //call the doStuff method and send following parameter(s).
}

function PrintIframe(content)
{
frames[content].focus();
frames[content].print();
}

function closeWindow(){
parent.window.close();
}
</script>

Simple Flash Form Doesnt Work In IE Or FF But Does In Flash?
hey, I have made a small flash form that inputs a postcode into a string url jobbie, the code works, because when it is tested in flash the link works and a new window pops up, but if tested in html it just doesnt work!! The code is within a movie clip that rocks on to the stage when selected. any ideas?? thanks

Help Needed, "password" Doesnt Work (FLASH MX)
i have a box similar to a credit card scanning box. to enter the site, it requires the user to enter "566404663" (that is "long_gone" on the numerical/alphabetical keypad) then click the enter key. when the user clicks on the enter key, it takes him to the site.

PROBLEM: when the user clicks enter, reguardless of what the user entered, it takes him to the site. i want it to only go to the site if the user enters "566404663" and clicks enter.

this is my actionscript for the button:
on (release) {
if (display = "566404663") {
getURL("http://www.geocities.com/taikobou_20/index.htm", "_blank");
} else {
displayStatus ="0";
}
}


can you please help me re-write this actionscript so that when the user clicks "566404663" and clicks on enter that it takes the user to the site and if the user enters anything other than "566404663" and clicks on enter that it would reset the display to 0?

check out the link to see the credit card scanning box:
http://www.geocities.com/taikobou_20/creditbox.swf

thanks so much for your time.
Alex

Help Needed, "password" Doesnt Work (FLASH MX)
i have a box similar to a credit card scanning box. to enter the site, it requires the user to enter "566404663" (that is "long_gone" on the numerical/alphabetical keypad) then click the enter key. when the user clicks on the enter key, it takes him to the site.

PROBLEM: when the user clicks enter, reguardless of what the user entered, it takes him to the site. i want it to only go to the site if the user enters "566404663" and clicks enter.

this is my actionscript for the button:
on (release) {
if (display = "566404663") {
getURL("http://www.geocities.com/taikobou_20/index.htm", "_blank");
} else {
displayStatus ="0";
}
}


can you please help me re-write this actionscript so that when the user clicks "566404663" and clicks on enter that it takes the user to the site and if the user enters anything other than "566404663" and clicks on enter that it would reset the display to 0?

check out the link to see the credit card scanning box:
http://www.geocities.com/taikobou_20/creditbox.swf

thanks so much for your time.
Alex

Why Doesnt This Work ?
onClipEvent (mouseMove) {
if (_root.test._xmouse <= 0 or _root.test._xmouse >= 601) {
_root.gotoAndPlay("close");
} else {
_root.gotoAndPlay("open");
}
}
onClipEvent (mouseMove) {
if (_root.test._ymouse <= 0 or _root.test._ymouse >= 201) {
_root.gotoAndPlay("close");
} else {
_root.gotoAndPlay("open");
}
}



? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

Still Doesnt Work
I have this code in a empty mc on the stage.... but it does not work!!!! argh. why?

onClipEvent (enterFrame) {
if (_root.MoviClipSlide._x == 300) {
_root.empty.attachMovie("MoviClipText", "MoviClipText_1", "3");
trace("**** ****");
}
}

Why Doesnt This Work In MX
Ok i have this working when i pulblish to flash 5 player but when i do it for the flash 6 player it doesnt work.


Code:
onClipEvent (mouseUp) {
if (Selection.getFocus() == "_level0.input1") {
_root.input1 = "";
} else if (Selection.getFocus() == "_level0.input2") {
_root.input2 = "";
} else if (Selection.getFocus() == "_level0.input3") {
_root.input3 = "";
} else if (Selection.getFocus() == "_level0.input4") {
_root.input4 = "";
} else if (Selection.getFocus() == "_level0.input5") {
_root.input5 = "";
} else if (Selection.getFocus() == "_level0.input6") {
_root.input6 = "";
}
}
Its part off my mail form so that when u click the text field it clears it automaticly for u and the code is on a blank MC but as i said it doesnt work when publishing to flash 6 player anyone got any ideas as to why ??

Thanks, Mental

Ok..why Doesnt This Work? Help Please
I have an swf movie that loads another swf movie in it. The loaded movie has buttons and everything but when I click on them nothing happens. When I open the file by itself and then click on the buttons it actually works. Any reason why this is happening??

Why Doesnt This WORK
this should work!..

Why Doesnt This Work..?
i have followed the directions of this preloader
and it is still not working..

i am doing this to learn
and so far...im not having any luck

i have attached the fla. in a zip. along with the
preloader tutorial.

can someone tell me what im doing wrong..

it would be a huge help to me..
on my quest to becoming as good as some of you

Y Doesnt This Work?
im trying to make a simple fade, for an image contained in placeholder_mc, here is the code im using, but i cant see why it is not working:

while (picalpha <100) {
setProperty(placeholder_mc, _alpha, picalpha + 5);
continue;
}
i initially use a getproperty line and set that as the picalpha,
shouldnt that just increment the alpha value by 5 until it reaches 100??
If u have any idea, please let me know, or another way i can make a simple alpha fade, thanks
Lee

Why Doesnt This Work
button1.onRollOver = function() {
toolstart();
_root.tooltip.bubble = Title1;
};

why doesnt this work from within a movie within another movie.

title1 is the text to appear inside a speech bubble called bubble.
tooltip is the movie that the bubble movie is inside.

any ideas apply within

Why Doesnt This Work?
if (shooting =True || Key.isDown(Key.SPACE)) {
_root.man.arms.gotoAndPlay("attack");
}

i have it set so that shooting = true and on the first frame of "attack" shooting = false so you can not double shoot.

Why Doesnt This Work?
I have a small flash movie that preloads and plays a sound loop.
But when the user goes to the next page the music plays even when they have turned it off. Ive tried using shared objects to drop a cookies to remember the volume setting but with no luck any help would be apprieciated

Here is the code im using in mx 04 pro

Frame 1


mySound = new Sound();
mySound.attachSound("0659");

// open and/or create a cookie
_global.cookie = SharedObject.getLocal("volume");



// off button

on (release) {
mySound.setVolume(0);

_global.cookie.data.volume = mySound.getVolume();
_global.cookie.flush();
}


thanks

Why Doesnt This Work?
I have a preloader function which reports the progress of a movieclip which is loading. In Internet explorer it works fine, however in mozilla firefox it doesnt. the number is reported back as NAN.

Can be seen at MI-7

my preloader function does this:

code: //create a new movieclip to load
//the external movie into
//check the download status of the external
//movie once every frame
function loaderFunction() {
_root.holderMc.hldMc.unloadMovie()
_root.holderMc.hldMc.removeMovieClip();
if (movieToLoad=="intro1.swf") { _root.opener_mc.gotoAndPlay(2) }
_root.holderMc.createEmptyMovieClip("hldMc", _root.holderMc.getNextHighestDepth())
//load the external movie into the new movieclip
_root.holderMc.hldMc.loadMovie(_global.serverAddre ss+_root.movieToLoad);
this.onEnterFrame = function() {
//trace the percentage of the movie that has loaded
percent = (_root.holderMc.hldMc.getBytesLoaded()/_root.holderMc.hldMc.getBytesTotal())*100;
if (!isNan(percent)) {
trace(percent+"% loaded");
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent)+"% LOADED.";
}
this.loadbar._visible = true;
this.loadbar._xscale = percent;
if (percent>1) {
this.reelmc._visible = true;
}
} else {
trace("0% loaded");
}
if (percent == 100) {
_root.holderMc.hldMc.play();
delete this.onEnterFrame;
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
this.mi7Logo._visible = false;
}

}
}

thanks

This Doesnt Work
this isnt working

PHP Code:




stop();
if (place = 0) {
    gotoAndPlay(22);
}
if (place > 0) {
    gotoAndPlay(3);
}
if (place < 0) {
    gotoAndPlay(3);
}






could ne one help me?

It DOESNT WORK
I have a movie and within that movie i have other nested movies, maybe one or two.
I am trying to load pictures into the lowest movie clip.

the code is as follows:
stop();
my_mcl = new MovieClipLoader();
my_mcl.onLoadComplete = function(movieClip) {
trace("Loading is done for the movie clip "+ movieClip);
};
my_mcl.onLoadError = function(movieClip) {
trace("Error: " + movieClip+ " did not load.");
trace("Your load failed for the movie clip "+ movieClip);
};

// Set up button actions
next_btn.onRelease = function(){
nextFrame();
}
prev_btn.onRelease = function(){
prevFrame();
}

my_mcl.loadClip("photos/me-illustrated.jpg","jpgHolder");
name = "bright blue water";


Its simple and its from a tutorials you can find anywhere on the web, but it doesnt seem to work when i try and put it into my movie. Whats the problem anyone know?

Why Doesnt This Work
Should be simple.

I am sending data from flash to an asp page that sends mail. The mail sends but has nothing in the body. It seems like my varuables are not being sent. Any help would be great.

code:
stop ();

function sendForm () {
my_lv = new LoadVars ();
my_lv.fcontact = _parent.contact_txt.text;
my_lv.fcompany = _parent.company_txt.text;
my_lv.fphone = _parent.phone_txt.text;
my_lv.fsender = _parent.sender_txt.text;
my_lv.finquiry = _parent.inquiry_txt.text;
my_lv.send ("http://www.tm-g.com/forminfo.asp", "POST");
gotoAndPlay(23);
}

send_btn.onRelease = function () {
if (contact_txt.text == "" || company_txt.text == "" || phone_txt.text == "" || sender_txt.text == "" || inquiry_txt.text == "") {
gotoAndStop(22);
} else {
sendForm ();
}
};

DOESnT WORK
i copied the given html that i was given, i pasted it onto my site, but it doesnt work!!!!!!!!!! i dont get it

Why Doesnt This Work
im having a MC work sometime and not others check it out. click on a link such as "info" sometimes it goes to the info label and stops other time it glitches and goes to "info" and keeps going thru all the other sections.

http://www.rocketinnovations.ca/Karl/test.html

the code im using is
on (release) {
_root.gotoAndStop("info");
}
on (rollOver) {
_root.button2.gotoAndStop(2)
}
on (rollOut) {
_root.button2.gotoAndStop(1)
}

Anyone Know Why This Doesnt Work?
pretty simple AS but I cant get the tween to work


PHP Code:



//Tweens//----------------
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
import mx.transitions.easing.Elastic;

function dupMovie(){
for(i=0; i<20; i++){
var mc = ["smoke"+i];
duplicateMovieClip(smoke, mc, i);
setProperty(mc, _x, Math.random()*550);
setProperty(mc, _y, Math.random()*400);
setProperty(mc, _alpha, Math.random()*50);
var moveSmokeX:Tween = new Tween(mc, "_x", Elastic.easeOut, mc._x, Math.random()*550, 4, true);
var moveSmokeY:Tween = new Tween(mc, "_Y", Elastic.easeOut, mc._Y, Math.random()*550, 4, true);
}
}
    
smoke.onPress = dupMovie;

Why Doesnt This Work?
Code:
on (release) {
gotoAndPlay(nextFrame);
}
but this works fine

Code:
on (release) {
gotoAndPlay(5);
}
Is it a Flash 8 thing?

Thanks

I Just Don't Get Why This Doesnt Work?
i need a code that will make the frame change if the variables value falls to 0 or below, this is the current code that dont work

remaining = 1000;

if (remaining =< 1) {gotoAndStop(101);
}

could someone plz fix it
thanks

For Doesnt Work?
hi guys can anybody tell me why this doesnt work?
I try to display a text in a textfield, depending on which button is klicked.
The script creates as much buttons as the number of the xml Elements.

But i get this error each time I click a button:

TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-539()

can anybody help me? if I use a number instead of the "i" here:

ActionScript Code:
trace(dieXML.Sorte[i].Name);
textfield.text = dieXML.Sorte[i].Name;

it works.

Thanks a lot


ActionScript Code:
stop();
var myRequest:URLRequest = new URLRequest("Sorten.xml");
var myLoader:URLLoader = new URLLoader();
var dieXML:XML = new XML();
myLoader.addEventListener(Event.COMPLETE, fertigGeladen);
myLoader.addEventListener(IOErrorEvent.IO_ERROR, EIOError);
myLoader.load(myRequest);


    function EIOError(myEvent:IOErrorEvent):void {
    trace("feehler");
    }

        function fertigGeladen(event:Event):void{
        dieXML = new XML(event.target.data);
        var SortenAnzahl:Number = dieXML.Sorte.length();
        trace(SortenAnzahl);
       
       
       
        var i:Number = 0;
       
            for(i=0; i<SortenAnzahl; i++){
            var knoepfle:SortenButton = new SortenButton();
            knoepfle.x = 10;
            knoepfle.y = i*22+20;
            knoepfle.buttonMode = true;
            this.addChild(knoepfle);
           
            knoepfle.addEventListener(MouseEvent.CLICK, actions);
            knoepfle.id = i;
                function actions(event:Event):void{
                trace(dieXML.Sorte[i].Name);
                textfield.text = dieXML.Sorte[i].Name;
                }
                }
       
       
}

Why..why..why.. It Doesnt Work?
Hi everyone

can any one figure out what am I doing wrong, I have been working on this simple thing for 2 days now and I am getting nuts: what I am trying to do is to make paperblock appear when I press button1. when I press button 2 make paperblock2 appear and paperblock1 disappear


the stage : 2 buttons, 2 paper blocks (paperblock1 and paperblock2movie clips as ), movie clip called actions (off the stage for initialization purposes only).


I start by intializing (I created a special movie clip, named actions, that contains the code):

onClipEvent (load) {
_root.paperblock1._visible=false;
_root.paperblock2._visible=false;
var changer;
}
(Changes the paperblocks to invisible + define a variable named changer)


then I put inside button 1


on (release) {
_root.actions.changer = 1;
}


and inside button2

on (release) {
_root.actions.changer = 2;
}


then I put in paperblock1

onClipEvent (load) {
if (_root.actions.changer=1) {
_root.paperblock1._visible = true;
} else {
_root.paperblock1._visible = false;
}
}


and in paperblock2

onClipEvent (load) {
if (_root.actions.changer=2) {
_root.paperblock2._visible=true;
} else {
_root.paperblock2._visible=false;
}
}

Thanks
Yoram

Why Doesnt This Work Right
this is just a button.

on (press) {
_target._x = _xmouse
_target._y = _ymouse

}

im trying to make it where you can drag

Why Doesnt This Work?
This is a pretty complex code, but i could really use some help.







Attach Code

function finished_loading(e:Event) {
var externalMovie = MovieClip(loader.content);
view14.addChild(externalMovie);

ExA.addEventListener(MouseEvent.MOUSE_DOWN,TRANSA);
function TRANSA(e:MouseEvent):void {
Control14DWN_animator.play(); [B]Activates an animation[/B]
ExDWNA_animator.play();[B]Activates an animation[/B]
Manual1DWN_animator.play();[B]Activates an animation[/B]
TextDWNA_animator.play();[B]Activates an animation[/B]
view14.removeChild(externalMovie);[B]Should remove an external SWF, but it doesnt[/B]
setTimeout(RESET,0001);[B] activates the following script [/B]
}
}


function RESET():void {
var request:URLRequest = new URLRequest("[L=http://www.jawilsonarchitects.biz/PreviewPORT.swf");]http://www.jawilsonarchitects.biz/PreviewPORT.swf");[/L]
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, finished_loading);
loader.load(request);
}

























Edited: 08/23/2007 at 07:09:06 PM by J.Rocker

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