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




Why Doesnt It Work With GetUrl When I Publish HTML?



In the Firefox Browser it´s working but not in Internet Explorer. I´m using flash 8.

Why doesnt it work with getUrl when i publish HTML?

It´s working when i publish in the swf format.
-------------------------------------------------------
The code:
on (release) {
getURL("http://www.msn.se/", "_blank");
}



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-16-2006, 07:17 AM


View Complete Forum Thread with Replies

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

GetURL Doesnt Work
I have a swf with a button that should start the download of a .fla which is in the same directory.
what is wrong with this?

on (release) {
getURL("rows_of_squares.fla");
}

thanks mark

GetURL Popup Doesnt Work Locally
I am having a problem opeing a popup window when run in a browser locally. If I put it online, it popups fine. The issue is this is going on a DVD and needs to be able to run locally. Here is my getURL code:
code:
getURL("javascript:NewWindow=window.open('notes.ht ml?page=" + currentIndex + "','Notes','width=800,height=500,left=0,top=0,tool bar=No,location=No,scrollbars=No,status=No,resizab le=No,fullscreen=No'); NewWindow.focus(); void(0);");


any ideas?

GetURL Popup Doesnt Work Locally
I am having a problem opeing a popup window when run in a browser locally. If I put it online, it popups fine. The issue is this is going on a DVD and needs to be able to run locally. Here is my getURL code:

ActionScript Code:
getURL("javascript:NewWindow=window.open('notes.html?page=" + currentIndex + "','Notes','width=800,height=500,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');  NewWindow.focus();      void(0);");

any ideas?

GetURL Popup Doesnt Work Locally
I am having a problem opeing a popup window when run in a browser locally. If I put it online, it popups fine. The issue is this is going on a DVD and needs to be able to run locally. Here is my getURL code:

ActionScript Code:
getURL("javascript:NewWindow=window.open('notes.html?page=" + currentIndex + "','Notes','width=800,height=500,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');  NewWindow.focus();      void(0);");


any ideas?

HTML Publishing Doesnt Work
When i publish my movie, the html shows up as a blank page with the same color background, but not site. anyone know whats wrong???

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

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

Loading Movie In Lvl 1 Doesnt Work In Html
Hello!

I am attaching the source files. Its a menu I was working now. Everything is complete except for the background music ("sound.swf").

What I did was after the menu is loaded in frame 1 of the menu I created and empty movie clip in lvl 1 and tried to load sound.swf in that movie clip. It works fine when I do a control+enter in flash or export the movie clip and then double click menu.swf

But as soon as I put menu.swf in a html file the sound.swf doesnt load in the empty movie clip . Can someone please help me out on this?

You can download the source files from here:

http://www.profilms-me.com/files/menu.zip

Thanx.

Publish Settings-html Center Does Not Work?
I have made a site and in the publish settings (html) I made sure that center was chosen, yet when I test the movie in a browser, it is always on the left of the screen??

The only way I can center it is to manually add center tags to to html that flash produces as you can see if you look at the html on the following page

http://www.galaxymusic.co.uk/spree.html

Why is this? what is the point of the html options in the flash settings if they don't even work???????

Thank you.

Publish Settings-html Center Does Not Work?
I have made a site and in the publish settings (html) I made sure that center was chosen, yet when I test the movie in a browser, it is always on the left of the screen??

The only way I can center it is to manually add center tags to to html that flash produces as you can see if you look at the html on the following page

http://www.galaxymusic.co.uk/spree.html

Why is this? what is the point of the html options in the flash settings if they don't even work???????

Thank you.

GetURL In Last Frame Doesn't Work When Is In An Html
Hi there, i need your help, i been using the flash 8 since it came out and i had problems sicne then.
The first and urgent, seems that flash script has trouble with the navigator, it doesn't communicate. Problems with frames, and problems with loading html...

Let me explain more clearly: i need that my .SWF at the end load an html site in self, it works using the getURL in the last frame, yes so wheres is the issue?, this is it: it works when i execute the .SWF file (outside of an html page), but ofcourse we need to put this .SWF file in html, well i did it, and what happend? it doesn't work, yes, still wondering why!!!
Now after i notice, neither my buttons work with the same instruction, so, i don't know if it's a matter of re-installing the flash but, there is something wrong, either with frames in netscape, explorer etc..they told me that i have to put the target="_self" where the flash file is (frame) but it doesn't work either, so i wonder if there is a flash master who can help me, probably i'm missing something!!! thanx guys!!!

Text Doesnt Show When I Publish ?
I have the strangest problem. I am using flash MX and when I type on the top layer, the text will show while I am in the editor, but it dissapears once i hit publish-> preview. Anyone know whats going on?

-doug

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

The ALPHA Of "text" Doesnt Change At All When I Publish, But It Does In TimeLine?
Hi, Im having a really confusign time using flash today.

I made a movie with a text introduction, with a pure black background.

Basically the text is supposed to be at 0% alpha and then goes to 100% alpha, stays, and then fades to 0% again and replaced by another short sentence for a few times.

...............this isn't working!
So what I did was I made the brightness of the Text to -100 so it become pure black. Publish it and it worked! But.........at the end of the opening I back the blackbackground itself fade away to reveal a map of the world, so I cant "fake" the text fading way by changing the brightness to black.

I tried to change the text to 0% alpha but for some reason when I publish it pops up (at 100% alpha) and then it dissapears like I never told it to alpha tween.

Im using dynamic text for all of my stuff, does anyone have any clue! I'll really appreciate the help!!!!! thanks....

Drop Menu : Rollovers/GetURL In A Movie Don't Work...and The SWF Doesn't Work In FF
My links/rollovers don't work in Mozilla and the dropdown menu part don't work (the rollovers and the getURLs) in any browser.

What's wrong with this??? I think it's something simple.
I've already tried:

Code:
this._lockroot = true;
I also tried writing the AS as:

Code:
one.title.text = "The Text";
one.onRollOver = over;
one.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(11);
}
one.onRelease = function(){
getURL("http://www.thelink.com");
}
...didn't work...

I hope someone can help!

Download the: Source File


(Lately I've gotten no help off this site and it's been very depressing because this site people used to be very helpful...I hope someone can change my mind)

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

Why Doesnt This Work?
Ok so i have a guys head, and at a certain fraim i want his mouth to play. So in the AS of the frame i put head.mouth.play(). It doest work why not? the instances for that frame are named head and mouth so it should be working, but its not. Can anyone help me out.

Y Doesnt This Work
can anyone tell me y this form is not working for the guestlist.....and this is t

he PHP script



<?php
$userEmail = $_POST['strEmail'];

$conn = mysql_connect("localhost", "nigolmvc_nigolmv", "babystuff");
mysql_select_db ("nigolmvc_nightspotz", $conn);
$result = mysql_query("INSERT into guestbook ( email) values ('$userEmail')");

?>

Why Doesnt This Work
Does anyone know what's wrong with the following code, it's not working for me. It's for a pong game im making. Only the last part isn't working but the rest is ok. I want the ball to bounce off in a different direction if it hits the egdes than it would if it hits the middle.



Code:
game.checkPaddleCollisions = function() {if (this.ball.tempx<this.leftPaddle.x+this.leftPaddle.width && this.ball.tempx+this.ball.radius>this.leftPaddle.x && this.ball.tempy+this.ball.radius>this.leftPaddle.y && this.ball.tempy<this.leftPaddle.y+this.leftPaddle.height) {
//left paddle collision detection
this.ball.tempx = this.leftPaddle.x+this.leftPaddle.width;
this.ball.xmov *= -1;
this.ball.xmov += .15;
soundIdentifier.start();
if (38<this.ball.tempy)
this.ball.ymov *= 1.1;
else if (38>this.ball.tempy)
this.ball.ymov *= .1;
}
};

no syntax errors come up and its not doing what i want it to do


I have attached my fla. if anybody wants to tinker with it to make it work. Its in MX 2004 Professional (AS 2).

Why Doesnt This Work?
Im loading an external .txt file and everything works great. But, why doesnt this simple thing work;

<a href="http://www.gregory.se" target="_blank">

I need it to open in a new window, not in self as it does now... anyone?

Why This Doesnt Work? HELP
Ok, while learning flash8 -since i am a brand new flash user- i found a nice tutorial here in kirupa about hover caption.
(http://www.kirupa.com/developer/mx20...r_captions.htm).
So i decided to change some stuff and put the entire thing inside of a movie clip. It works just half. Since i am able to create the text, but the background is not "following" the text. Its static.
Can anyone help?
PLEASE?!?!
I was able to attach the file.
Please check it out.
Cheers!
Leo

New To AS, Why Doesnt It Work?
Why does this not work? Hmm, i'm quite new to AS, but i can't see the mistake?


Code:
if (_root.logo_mc._currentframe < 2;) {
_root.omkring_btn.onRelease = function() {
_root.logo_mc. gotoAndPlay(2);
}
}else if (_root.logo_mc._currentframe > 2 ) {
_root.omkring_btn.onRelease = function() {
_root.logo_mc. gotoAndStop(15);
}
}
-JPAG

Why Doesnt This Work?
ActionScript Code:
stop();xml = new XML();xml.ignoreWhite = true;xml.onLoad = function(ok) {    avAll = this.firstChild.childNodes;    avStates = new Array();    for (var i = 0; i<avAll.length; i++) {        avStates.push(avAll[i].attributes.state);    }    avStates = avStates.removeDuplicates();    for (Item in avStates){        //trace(avStates[Item]);        k = 0;        avStates[k] = new Array();        for (j in avAll){            if (avStates[Item] == avAll[j].attributes.state){                 avStates[Item][k] = avAll[j].attributes.city;                  k++;            }        }    }}



ActionScript Code:
trace(avStates[0][0]); //returns undefined (should return san_francisco)  



ActionScript Code:
trace(avStates[0]); //returns california  


What am I doing wrong?

Why Doesnt This Work?
Ok so i have a guys head, and at a certain fraim i want his mouth to play. So in the AS of the frame i put head.mouth.play(). It doest work why not? the instances for that frame are named head and mouth so it should be working, but its not. Can anyone help me out.

Why Doesnt This Work
Does anyone know what's wrong with the following code, it's not working for me. It's for a pong game im making. Only the last part isn't working but the rest is ok. I want the ball to bounce off in a different direction if it hits the egdes than it would if it hits the middle.



Code:
game.checkPaddleCollisions = function() {if (this.ball.tempx<this.leftPaddle.x+this.leftPaddle.width && this.ball.tempx+this.ball.radius>this.leftPaddle.x && this.ball.tempy+this.ball.radius>this.leftPaddle.y && this.ball.tempy<this.leftPaddle.y+this.leftPaddle.height) {
//left paddle collision detection
this.ball.tempx = this.leftPaddle.x+this.leftPaddle.width;
this.ball.xmov *= -1;
this.ball.xmov += .15;
soundIdentifier.start();
if (38<this.ball.tempy)
this.ball.ymov *= 1.1;
else if (38>this.ball.tempy)
this.ball.ymov *= .1;
}
};

no syntax errors come up and its not doing what i want it to do


I have attached my fla. if anybody wants to tinker with it to make it work. Its in MX 2004 Professional (AS 2).

Why Doesnt This Work?
hi, i'm trying to make this work, but I cant figure out why it wont do what i want...
I have two buttons and behind them is a movieclip with an outline. By default the outline is around the left button (mapMode_mc). I want to make it so, that if you click on cloudMode_mc the outline (kader_mc) slides to the right until it is around that mc. And then if you click on mapMode_mc it should slide back to the left. Here is the code I use in the timeline:

ActionScript Code:
var myInterval:Number;
cloudMode_mc.onRelease = function ():Void  {
    myInterval = setInterval (cloudMove, 20, "cloud");
};
mapMode_mc.onRelease = function ():Void  {
    myInterval = setInterval (cloudMove, 20, "map");
};
function cloudMove (direction:String):Void {
    if (direction == "cloud") {
        kader_mc._x = kader_mc._x + (cloudMode_mc._x - kader_mc._x - 5) / 20;
        if (kader_mc._x == cloudMode_mc._x) {
            clearInterval (myInterval);
        }
    } else if (direction == "map") {
        kader_mc._x = kader_mc._x + (mapMode_mc._x - kader_mc._x - 5) / 20;
        if (kader_mc._x == mapMode_mc._x) {
            clearInterval (myInterval);
        }
    }
}

And it slides perfectly to the right and stops when kader_mc._x equals cloudMode_mc._x, but for some reason it won't slide all the way back.... It stops somewhere in the middle of mapMode_mc...

can someone help me out??!!

thanks!!!

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