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








It Worked Before, No It Doesn't AHHHHH


Ok I have a nav bar that is a rectangle with 6 buttons across it. The nav bar sits at the top of the stage and if the user has their mouse within 55 pixels of the top the nav bar follows the mouse up and down. And if the users mouse is within a certain range of the buttons they follow the mouse left and right. If the mouse is outside of the area for either the bar or the buttons they both retrun to they're normal positions. My problem is that all the buttons worked fine when I had 5 buttons, I recently added the 6th button. now after i added the 6th the last button which worked previously no longer moves, even though it has the exact same code as the other buttons. What the #$%@ is going on here? Am I blind and missing something?
The file is made on a MAC but should open without problems on a PC if you open Flash first and then select open file. At least it worked for me. Thanks everyone for your help in advance.




FlashKit > Flash Help > Flash MX
Posted on: 05-05-2003, 07:06 PM


View Complete Forum Thread with Replies

Sponsored Links:

Worked Before, Now It Doesn't
Hey now.

I made a Flash music player for a band I know a few months back, in Flash MX. I am now using Flash MX 2004 Pro and I have added some new songs to the playlist. I haven't changed anything except where the playback head goes to play songs. The actionscript I am using is

on (release) {
empty.loadMovie("song.swf");
gotoAndStop("Frame Number");
}

Frame number obviously is replaced with actual frame numbers....

But anyway, before it would load the song swf's into the empty clip, now it just stalls and doesn't do anything. Is there a minor difference between the two Flash's that I am just not picking up?

View Replies !    View Related
Created Flash Form In 3.0 Worked Ok Then Tried 2.0 It Doesn't
I created a form in AS3 and it worked ok except the tab order of the form field when the email returned was not correct. So I thought maybe I needed to create it in AS 2 to make it easier and more to what I am used to which is not much. I am trying to understand and I thought if someone could look at what is working and compare it to what is not well then I could fix my problem. I tried getting some help with the tab order in the AS 3 but nobody has been able to help me. I do not get an error with the AS 2 but the e-mail does not come through. I am validating the fields in the AS 2 script and it actually gets to the welcome screen in my flash but for some reason it does not get to the server. I will be going over it again.

Any help would be appreciated.

Thanks,

Hugo







Attach Code

AS2

stop();

this.contactForm.userName.tabIndex = 1;
this.contactForm.userAddress.tabIndex = 2;
this.contactForm.userCity.tabIndex = 3;
this.contactForm.userState.tabIndex = 4;
this.contactForm.userZip.tabIndex = 5;
this.contactForm.userPhone.tabIndex = 6;
this.contactForm.userEmail.tabIndex = 7;
this.contactForm.userComments.tabIndex = 8;

//----------------<send form load vars>--------------------\

var gatherForm:LoadVars = new LoadVars();

function sendForm() {
gatherForm.recepient = "invtech@drmammano.com";
gatherForm.visitor_name = contactForm.userName.text;
gatherForm.visitor_address = contactForm.userAddress.text;
gatherForm.visitor_city = contactForm.userCity.text;
gatherForm.visitor_state = contactForm.userState.text;
gatherForm.visitor_zip = contactForm.userZip.text;
gatherForm.visitor_select = contactForm.userSelect.text;
gatherForm.visitor_phone = contactForm.userPhone.text;
gatherForm.visitor_email = contactForm.userEmail.text;
gatherForm.visitor_comments = contactForm.userComments.text;

gatherForm.send("../cgi-bin/formmail.pl", "_blank", "POST");
}
//----------------</send form load vars>--------------------\

_global.style.setStyle("fontFamily", "Arial");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("color", 0x660000);

//----------------<submit button AS>--------------------\

this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "SUBMIT";

// onRollOver
this.contactForm.submitBtn.onRollOver = function() {
contactForm.submitBtn.gotoAndStop (2);
}

// onRollOut
this.contactForm.submitBtn.onRollOut = function() {
contactForm.submitBtn.gotoAndStop (1);
}

//onRelease
this.contactForm.submitBtn.onRelease = function() {
if (contactForm.userName.text == "" || contactForm.userPhone.text == "" || contactForm.userEmail.text == "") {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}

//----------------<submit button AS>--------------------\




AS3

var address:String = "../cgi-bin/formmail.pl";
var url:URLRequest;
var variables:URLVariables = new URLVariables();
variables.subject = "Information Request";
variables.recipient = "invtech@drmammano.com";

function sendForm(event:MouseEvent):void{

variables.name = name_txt.text;
variables.email = email_txt.text;
variables.address = address_txt.text;
variables.city = city_txt.text;
variables.state = state_txt.text;
variables.list = list_txt.text;
variables.zip = zip_txt.text;
variables.phone = phone_txt.text;
variables.comments = comments_txt.text;
url = new URLRequest(address);
url.method = URLRequestMethod.POST;
url.data = variables;
navigateToURL(url);
}


submit_btn.addEventListener(MouseEvent.CLICK,sendForm);

View Replies !    View Related
AHHHHH Help Please
Hey, i downloaded some fonts off this site....now how do i get them into flash?????????????????

View Replies !    View Related
Ahhhhh Help
ive just lost over 40 houres of work because my p.c got a bug and every thing from my documents was deleted !!! the only copy of my work is the one i uploaded to the net but thats only half of what i use to have and its in .swf format not .fla is there any way to copy or convert the stuff in the .swf to a .fla ??????

View Replies !    View Related
Ahhhhh
Ahhhhh!! One of my clients keeps sending me a .fla, and when I try to open it, it says:

We have tried to zip it, stuff it, email it, open on other computers, other operating systems, and put it on a server and I get the same freakin error! The client says it works fine on his computer, and were both on macs?

This has happen with other clients as well, PLEASE HELP!

View Replies !    View Related
Ahhhhh
AHHHH
This is the BEST website ever!! Anyone know how to create the mouse? That's one of my FAV. Parts! Thanks for your help, sure lots of people would want to know how to make it.
-UnSa

Oh yea! I want to take college classes over the summer on flash, but they said that I need to take like math subjects first 'cause I'm still in High School. Anyone know what Math classes I'd need to take? and I need a book just on Flash Actionscript, and all the one's I've seen don't cover it all. Thanks
-UnSa

View Replies !    View Related
If Else......ahhhhh
Guys im just trying to create just a very simple page that asks a bunch of questions and you can pick either true or false. I put combo boxes, and the labels are

Please Select
True
False

and the line of code is this:
Code:

if ((cmb1.value == "true") && (cmb2.value == "True") && (cmb3.value == "True") && (cmb4.value == "True") && (cmb5.value == "True") && (cmb6.value == "True") && (cmb7.value == "True") && (cmb8.value == "True") && (cmb9.value == "True")) {
   submit.onRelease == function() {
      gotoAndStop(2);
   }

} else if ((cmb1.value == "False") || (cmb2.value == "False") || (cmb3.value == "False") || (cmb4.value == "False") || (cmb5.value == "False") || (cmb6.value == "False") || (cmb7.value == "False") || (cmb8.value == "False") || (cmb9.value == "False")) {
      
      submit.onRelease == function() {
         gotoAndStop(3);
      }
   
}


my errors are either it always goes to frame 2, or the button doesn't respond. In this case shown above the button doesn't respond. If someone could help me with this i would appreciate it!

View Replies !    View Related
Help My Site Ahhhhh
Hey i have my own domain name, and i am being hosted by Geocities No trouble there. I Need help designing and setting it up a whole lot better. http://www.frozenflash.com
thats my site check it out if you don't believe i need help.
i also want help making movies hope you can help with one of them. If you can help ill give you a E-mail.
Yourname@frozenflash.com. Thankz!

View Replies !    View Related
Ahhhhh Windows
RRRRRrr...! My threads keep gettin deleted! Well, here goes:

How do I make window controls? (Minimize, Maximize, Close)
What is the actionscript for these?

View Replies !    View Related
Scrolling Text Help Ahhhhh
Flash 5. I've tried this tutorial a couple times and cannot get it to work.
Here is the output message I am getting:
Symbol=slider, Layer=Layer 1, Frame=1: Line 2: Wrong number of parameters; startDrag requires between 1 and 6.
startDrag (this, false, _root.path._x, _root.path._y+100, _root.path._x, _root.path._y, false, _root.path._x, _root.path._y+100, _root.path._x, _root.path._y);

Generator is not enabled for this movie. C:Documents and SettingsOwnerDesktopflash testMovie2.swf


Here is the tutorial I have been using:
http://www.flashkit.com/tutorials/In...-922/index.php


Thanks!

View Replies !    View Related
RemoveMovieClip() Won't Work AHHHHH
I need to remove ALL of the movie clips that my duplicateMovieClip() has made, but I used variables to give all the "new" movie clips uniques names and unique levels, and I don't know how to use the removeMovieClip() action to get rid of them.I tried to use removeMovieClip() when the mouse rolls out but it won't work. Here is my script:
code: onClipEvent (load) {
amount_of_blur = 10;
spread = 8;
opacity = 20;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
while (amount_of_blur>0) {
duplicateMovieClip(_root.a.b, "mc"+i, i);
setProperty("mc"+i, _x, random(spread));
setProperty("mc"+i, _y, random(spread));
setProperty("mc"+i, _alpha, opacity);
i++;
amount_of_blur--;
}
_root.a.b._alpha = 0;
_root.a.b._x = pos/2;
_root.a.b._y = pos/2;
};
this.onRollOut = function() {
removeMovieClip("mc"+i);
_root.a.b._alpha = 100;
_root.a.b._x = 0;
_root.a.b._x = 0;
};
}


Please help!!!

View Replies !    View Related
Paypal Button?ahhhhh
is there any way to make a pypal button without using one of those generators, they export as swf and then what you know, how is that useful to me in a fla? also a quickie, what is the AS for defining subject and content of an email with the mailto: script

View Replies !    View Related
Golden Banana AHHHHH
I cant seem to get my golden banana to work on my Fruit Basket Game. It did work but it stopped all of a sudden.

I have been working 2 hours on it trying to figure it out and I almost went "BullDog".

I hope you guys can help me

Here is the code


ActionScript Code:
// Golden Bannana Code_root.monkey.gb.onEnterFrame = function() {    if (_root.girl.basket.hitTest(this)) {        _root.fruits += 5;        this._x = random(40+450);        this._y = -20;    }    if (_root.ground.hitTest(this)) {        this._x = random(20+450);        this._y = -20;        _root.dropped += 1;    }};
Located On The First Frame

Im gonna give you guys the fla to help me out even more.

Please help me before I go crazy


http://www.cherrywrapper.com/Fruity.fla

View Replies !    View Related
Golden Banana AHHHHH
I cant seem to get my golden banana to work on my Fruit Basket Game. It did work but it stopped all of a sudden.

I have been working 2 hours on it trying to figure it out and I almost went "BullDog".

I hope you guys can help me

Here is the code


ActionScript Code:
// Golden Bannana Code_root.monkey.gb.onEnterFrame = function() {    if (_root.girl.basket.hitTest(this)) {        _root.fruits += 5;        this._x = random(40+450);        this._y = -20;    }    if (_root.ground.hitTest(this)) {        this._x = random(20+450);        this._y = -20;        _root.dropped += 1;    }};
Located On The First Frame

Im gonna give you guys the fla to help me out even more.

Please help me before I go crazy


http://www.cherrywrapper.com/Fruity.fla

View Replies !    View Related
AHHHHH -- What Is Causing This Error?
I am getting this error when you go to my site...

http://www.lancekorsun.com/fulltest


the error is
Code:

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
   at com.lynda.audio.mp3::SoundLoader()
   at com.lynda.audio.mp3::Mp3Player()
   at lk_fla::MainTimeline/frame5()


what does this mean?


also -- if someone could click on any 1 of the squares, then click web... do you see the two small black boxes at the bottom with "1" and "2" in it?????

thanks for the help...got some important peeps about to look at this mama-jamma
L

View Replies !    View Related
SOMEONE, ANYONE Loop Is NOT Working Properly Ahhhhh
Hey everyone,

I'm trying to loop through my xml file and retrieve each <img> nodes firstChild, which is promo1, promo2, promo3, etc.
I have copied a short piece of xml that's similar to mine.
I have my .fla looping through and fading in and out the image node. My problem is that when I go to loop and fade in the text, which is really fading out the mc, it doesn't loop to the next node. Which is promo2.

eg.
-The mc fades out revealing the text(promo1).
-After the mc fades back in hiding the text
-It should loop down to the next node, fading the mc back out, revealing the text(promo2).
-etc. and continue looping as long as thier are childNodes.

It's looping but not correctly!

Here's my AS:

Code:
load_xml = new XML();
load_xml.ignoreWhite = true;
load_xml.onLoad = function(success) {
if (success) {
process(load_xml);
} else {
trace("Something is wrong, we're not opening!");
}
};
//Load up the XML file into Flash
load_xml.load('images.xml');
//---Function that will be called when xml loads succesfully
//xmlDoc_xml is now a reference to the XML object where our information is stored
item_arr = new Array("img", "startdate", "enddate", "url");
var cnt=0;
function process(xmlDoc_xml) {
mc.fade(0,7);
var count=0;

for (var n = 0; n<xmlDoc_xml.firstChild.childNodes.length; n++) {
if (xmlDoc_xml.firstChild.childNodes[n].nodeName == "promo") {
var cnt1=cnt;
for (var i = 0; i<xmlDoc_xml.firstChild.childNodes[n].childNodes.length; i++) {
if (xmlDoc_xml.firstChild.childNodes[n].childNodes[i].nodeName == item_arr[i]) {
trace(xmlDoc_xml.firstChild.childNodes[n].childNodes[i].firstChild.nodeValue);
}
}
trace("Is it working "+xmlDoc_xml.firstChild.childNodes[count].childNodes[0].firstChild);
output = xmlDoc_xml.firstChild.childNodes[cnt1++].childNodes[0].firstChild;

}

trace("Come to poppa " +xmlDoc_xml.firstChild.childNodes[count].childNodes[0].firstChild.nodeValue);
count++;
trace("here count=" + count);

//This is where the loop ends
}

}
MovieClip.prototype.fade = function(endAlpha, speed) {
trace("called11");

if (this._alpha>endAlpha) {
speed *= -1;
}
this.onEnterFrame = function() {
if (Math.abs(endAlpha-this._alpha)>Math.abs(speed)) {
this._alpha += speed;
} else {
this.onEnterFrame = undefined;
myInterval = setInterval(beginFadeOut, time());
this._alpha = endAlpha;
}
};
};
MovieClip.prototype.fadeIn = function(begalpha, speed) {
trace("called22");
this._alpha = 0;
if (this._alpha<begalpha) {
speed *= -1;
}
this.onEnterFrame = function() {
if (Math.abs(begalpha-this._alpha)>Math.abs(speed)) {
this._alpha -= speed;
} else {
process();
this._alpha = begalpha;
}
};
};

function beginFadeOut() {
clearInterval(myInterval);
mc.fadeIn(100, 7);
}
function time() {
sec = ((30/5)*1000);
trace("seconds called");
return sec;
}
//function loop(){
//if(count!=null){


Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<images>
<promo>
<img>promo1.jpg</img>
<startdate>01/02/2003</startdate>
<enddate>01/03/2003</enddate>
<url>website</url>
</promo>
<promo>
<img>promo2.jpg</img>
<startdate>01/12/2003</startdate>
<enddate>31/12/2003</enddate>
<url>website</url>
</promo>
<promo>
<img>promo3.jpg</img>
<startdate>01/12/2003</startdate>
<enddate>31/12/2003</enddate>
<url>website</url>
</promo>
</images>

I would appreciate all the help I can get!
Thanks in advance,
cbs

View Replies !    View Related
HELP Enabling The Browser Back Button AHHHHH
I'm currently interning at a design firm, and they want me to enable the browser back button within a flash website. I'm a decent flasher, however I'm a complete newbie to Javascript and Flash communication and i've tried all the tutorials I could find on the web about this frustrating but very useful feature. Any way some of you AS and Javascript geniuses could come up with a tutorial or advice that I can actually get to work??? :)

Thanks in advance,
Ben

View Replies !    View Related
It Worked
I tried the codes you guys sent me. They worked!!! Thank you so much to both of you.. I there's something i could help you with, please, don't you doubt to ask!!!

Mariana

View Replies !    View Related
[F8] It Worked Before But Not Now
I have this mc ( cloud) that I want to to be able to dragged and let go and the speed is depending on when how long You drag and for how long. It worked very well, but then I needed to have more than one cloud so I made it but then the speed doesn´t work or doesn´t stop when the speed is going towards zero. Tried a few things but no I am stuck.
I think this is the part of the code where the bug is:

-----

temp.onEnterFrame = function(){
//here the code for the speed of the car_mc. It will slow//
//down and hopefully stop inside the candle-light.//
_root.temp._x-=speed;
speed *=.9;
temp._alpha = speed;
trace("speed:"+speed);
if((speed <= 1 )&&(speed >= 0)){
speed = 0;
trace("stopped");
}
if((temp.hitTest(hit_mc)) && speed == 0 ){
trace("the light was hit");
}

-----

but I enclose the file as well. I guess it´s some small change that has to be done.

View Replies !    View Related
It Worked So Well I Think Ill Try It Again
Okay last time a asked for help it worked out so well that im going to try it again......

So here is my problem.
i want a movie clip to play a movie when its value = true..... but here’s my problem, i only want it to play it once, but i cant make it stop playing.





Code:
onClipEvent (load) {
stop();
this._visible = false;
}
onClipEvent (enterFrame) {
if (this._visible == true) {
play();
}
}
so what do i need to do to make it stop.
Thanks
-Meeshai-

View Replies !    View Related
Worked Once
Hi
I am putting in a collection of animated gifs into my first flash project.
The first animated gif when I dropped it in automatically keyframed for 100 frames
but now all the other gifs i drop in dont do that and I dont know why, any ideas.

View Replies !    View Related
Okay This Worked In Flash 5
i was testing out the scrollbar UI and decides to use some html in my dynamic text box. now everything works but my hmtl tags show up, i have the "<>" button down for rendering as html but still no go. do i have to format the text different or am i just over looking something simple?

View Replies !    View Related
Script Worked In 6 Not In 7
Hello,

I'm using this script to load 4 images through an XML file then navigate them using two buttons (back/next). The script works fine when exporting as Flashplayer 6 format.

But when exporting as Flashplayer 7 it just loads the first image and stops there.
Navigation buttons aren't working anymore. I can't find what's wrong but maybe you guys could have a look at the code. Thank you.




PHP Code:



weergave_txt.text = "Loading XML data...";
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.load("inhoud_woon.xml");
my_xml.onLoad = function(status) {
    if (status) {
        data_xml = this.firstChild.childNodes;

        createEmptyMovieClip("mc", 1);    
    
        loadMovie(data_xml[0].attributes.datei, "mc");

        mc._x = 15;
        mc._y = 15;

        weergave_txt.text = data_xml[0].attributes.titel;
        delete my_xml;
    } else {
        weergave_txt.text = "Error!";
    }
};
volgende.onRelease = function() {
    if (beeld<data_xml.length-1) {
        beeld++;
        loadMovie(data_xml[beeld].attributes.datei, "mc");
        weergave_txt.text = data_xml[beeld].attributes.titel;
    }
};
terug.onRelease = function() {
    if (beeld>0) {
        beeld--;
        loadMovie(data_xml[beeld].attributes.datei, "mc");
        weergave_txt.text = data_xml[beeld].attributes.titel;
    }
};

View Replies !    View Related
Fscommand Has It Ever Not Worked?
Howdy I was wondering if anyone has ever encountered a situation where they can't get the fsCommand to function? I've been using this command on all my standalone projects and it has never let me down, all the sudden on this one file it doesn't create the full screen for the projector. I got sudtrated and created a test clip to do the exact thing and it works... therefor it must be the specific file.... Now there's quite abit of coding and crazy tweens that I would prefer not to try and recreate. Has anyone encountered this problem?

123

View Replies !    View Related
What The Hell? It Worked Before
So in a scene, I have a layer just for actions. The last frame of the scene has the following AS attached to it:

Code:
_root.gotoAndPlay("Main", 1);
It does nothing but replay the current scene. BIZARRE. What's wrong?!

(I also tried it as
Code:
gotoAndPlay("Main", 1);
)

View Replies !    View Related
It Worked Before... What Happened?
Hey everyone.

I have a wierd problem here.

This code worked perfect before. But now I am trying to use it again and it simply wont work. Whats the deal? Was this code only good in MX. I am in 8 now.

Take a look and if you have any idea, I would love to hear it. You can see what this code does by going to safeandsoundaudio.com ,and clicking on the satellite nav button, then rollover the logos in the middle.

Thanks a ton!!

Here is the code:

// Elasticity on a Square

onClipEvent (enterFrame) {
// Speed
var speed = 5;
// Elasticity
var viscosity = 1.2;
// Percentage to scale to
xscale = 80;
yscale = 80;
// X Scale Script
difference = xscale-this._xscale;
xvelocity = (xvelocity+(difference)/speed)/viscosity;
this._xscale += xvelocity;
// Y Scale Script
difference = yscale-this._yscale;
xvelocity = (xvelocity+(difference)/speed)/viscosity;
this._yscale += xvelocity;
}


.

View Replies !    View Related
It Worked In Firefox..but IE?
Hi - I hope someone can help me...
I have one day left to complete my monster dynamic flash site (demo at http://www.offonone.com/carey), which i am very proud of, (being a total Flash Bodger) ...and it was working fine.
Then my client told me that on IE it wasnt working ( I was happily testing away on Firefox with no probs). So I try making it version 7 (it was 8)...no joy so I try making it AS v1. Ooops - error:

**Error** Scene=Main, layer=functions, frame=5:Line 136: '{' expected
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {

so its the ":Void" that the compiler doesnt like - what to do? If I take it out nothing loads. I dont even know what it does.
Someone please explain - I have searched the net to no avail.

View Replies !    View Related
XML Script Worked In 6 Not In 7
Hello,

I'm using this script to load 4 images through an XML file then navigate them using two buttons (back/next). The script works fine when exporting as Flashplayer 6 format.

But when exporting as Flashplayer 7 it just loads the first image and stops there.
Navigation buttons aren't working anymore. I can't find what's wrong but maybe you guys could have a look at the code. Thank you.


Code:
weergave_txt.text = "Loading XML data...";
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.load("inhoud_woon.xml");
my_xml.onLoad = function(status) {
if (status) {
data_xml = this.firstChild.childNodes;

createEmptyMovieClip("mc", 1);

loadMovie(data_xml[0].attributes.datei, "mc");

mc._x = 15;
mc._y = 15;

weergave_txt.text = data_xml[0].attributes.titel;
delete my_xml;
} else {
weergave_txt.text = "Error!";
}
};
volgende.onRelease = function() {
if (beeld<data_xml.length-1) {
beeld++;
loadMovie(data_xml[beeld].attributes.datei, "mc");
weergave_txt.text = data_xml[beeld].attributes.titel;
}
};
terug.onRelease = function() {
if (beeld>0) {
beeld--;
loadMovie(data_xml[beeld].attributes.datei, "mc");
weergave_txt.text = data_xml[beeld].attributes.titel;
}
};

View Replies !    View Related
InteliCart MX - Anyone Worked With It?
I found script for e-commerce (extentions for Dreamweaver MX) but not sure if is worth to get it. Below is link to that cart.


Intelicart MX

There is no working demo but owner of this company wrote couple php books.

I am working with DW (php & mySQL).
Does anyone knows any good extentions for e-commerce?

View Replies !    View Related
Aaggh CGI @%*^$ Has Never Worked In This Form
I'm very frustrated, I've been stumped for over a month...no solution!

Anyone see why this won't work?

initForm();
function initForm() {
_global.form_mc = this;
varData = new LoadVars();
}

function submitForm() {

varData.formInput += escape("&first_name=" + first_name.text);
varData.formInput += escape("&last_name=" + last_name.text);
varData.formInput += escape("&email=" + email.text);
varData.formInput += escape("&workphone=" + workphone.text);
varData.formInput += escape("&comments=" + comments.text);

trace("Sending " + varData.toString());

varData.send('/cgi/common/form-mail.pl?PTCcode-email=yes&PTCcode-flatfile=yes&PTCcode-database=job_description&PTCcode-recipient=casting@xxxx.com&PTCcode-subject=Comments_Submission', 'POST');

gotoAndStop("Sent");
}


Thanks, Rob

View Replies !    View Related
Drop Target Worked Not A Second Ago...
I had a drop target work good and it was all workin, and it just randomly stopped workin.

Heres the file:
http://geocities.com/forkinbob/College2.fla

The target is a clear circle in the middle of the donut thing, if u click in there it's called werd and the symbol number is 90.

The code to drop target is a lil harder, on frame 107 theres a little trapezoid on the bottem, go in that and on frame 72 in that theres more of the same type trapezoid, the code is in those...I've been known to make confusing code, so i dont suspect it to be easy and im sorry in advanced. THis is makin me mad so any help would be appreciated

PS All this is in scene 2.

Thanx Much

View Replies !    View Related
It All Worked Fine Untill
I am using swish lite and have created a little intro

www.uspfilms.com/wargames.swf

but when it loads everything it is meant to type on screen is all garbled ?? and the sound dosn't play!?

any suggestions?


Robbie

View Replies !    View Related
Loading CSS Worked, But Fails Now.
Loading CSS format in dynamic text field worked, but not anymore, why?

i put in main timeline frame 1:


PHP Code:



// ------------------<Load CSS>---------------------- \
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("stylesheet/markup.css");
cssStyles.onLoad = function (success:Boolean) {
    if (success) {
        this.webDesign_txt.styleSheet = cssStyles;
        _level0.myLV.load("text/webDesign.txt");
    } else {
        webDesign_txt.text = "Please e-mail the web master to set the path to the CSS file correctly.";
    }
}
// ------------------</Load CSS>---------------------- \

_level0.myLV.load("text/webDesign.txt");




And then if finely this code works, i want each button load its own .txt file using:

PHP Code:



this.ourHistoryMC.onRelease = function() {
    _level0.myLV.load("vars/ourHistory.txt");
}





Again, this code works in another .fla file, why not in this one?
Downloadable at:
http://www.fzvastgoed.nl/pcxpert/Programming.zip

View Replies !    View Related
Root Of AttachMovie. Never Worked, Know Why?
hi,

i have never got this to work, any ideas how is should be done?


ActionScript Code:
_root.content.holder.attachMovie("id", "newName", 5)_root.content.newName._x = 500


i've only ever got it to work if there is no object before the attachmovie (it always attaches alright but then i cna't use the target _root.content.newName._x ).

sure it's something easy but it's causing me a headache.

thanks in advance

kd

View Replies !    View Related
Root Of AttachMovie. Never Worked, Know Why?
hi,

i have never got this to work, any ideas how is should be done?


ActionScript Code:
_root.content.holder.attachMovie("id", "newName", 5)_root.content.newName._x = 500


i've only ever got it to work if there is no object before the attachmovie (it always attaches alright but then i cna't use the target _root.content.newName._x ).

sure it's something easy but it's causing me a headache.

thanks in advance

kd

View Replies !    View Related
Aaggh CGI @%*^$ Has Never Worked In This Form
I'm very frustrated, I've been stumped for over a month...no solution!
Anyone see why this won't work?
initForm();
function initForm() {
_global.form_mc = this;
varData = new LoadVars();
}
function submitForm() {
varData.formInput += escape("&first_name=" + first_name.text);
varData.formInput += escape("&last_name=" + last_name.text);
varData.formInput += escape("&email=" + email.text);
varData.formInput += escape("&workphone=" + workphone.text);
varData.formInput += escape("&comments=" + comments.text);

trace("Sending " + varData.toString());
varData.send('/cgi/common/form-mail.pl?PTCcode-email=yes&PTCcode-flatfile=yes&PTCcode-database=job_description&PTCcode-recipient=casting@xxxx.com&PTCcode-subject=Comments_Submission', 'POST');

gotoAndStop("Sent");
}

Thanks, Rob

View Replies !    View Related
Aaggh CGI @%*^$ Has Never Worked In This Form
I'm very frustrated, I've been stumped for over a month...no solution!

Anyone see why this won't work?

initForm();
function initForm() {
_global.form_mc = this;
varData = new LoadVars();
}

function submitForm() {

varData.formInput += escape("&first_name=" + first_name.text);
varData.formInput += escape("&last_name=" + last_name.text);
varData.formInput += escape("&email=" + email.text);
varData.formInput += escape("&workphone=" + workphone.text);
varData.formInput += escape("&comments=" + comments.text);

trace("Sending " + varData.toString());

varData.send('/cgi/common/form-mail.pl?PTCcode-email=yes&PTCcode-flatfile=yes&PTCcode-database=job_description&PTCcode-recipient=casting@xxxx.com&PTCcode-subject=Comments_Submission', 'POST');

gotoAndStop("Sent");
}


Thanks, Rob

View Replies !    View Related
It Should Be Worked...? Full Screen Script
I have tried to make a Full Screen trick in Flash 5 with some script...
Yes... It was worked.
By the way, there is a small problem in indicating...
When I use Javascript language between <HEAD> and </HEAD>
in .html, everything works rightfully execept Scollbar.

Here's the description...
When making a new window browser(Full Screen trick) with a right script is right in action, the browser always have the scrollbar even if I edited 'scrollbar=no' in .html file.

Can anybody help me to find the script of Full Screen trick that is not showed the scrollbar...? Please~

View Replies !    View Related
Wouldn't It Be Great If It Worked (loop)
Any idea or this will never work (for some reason)?


onClipEvent (load) {

loadMovieNum("http://www.domain.com.br/test/mov1.swf", 1);
loadMovieNum("http://www.domain.com.br/test/mov2.swf", 2);

levels = ["1", "2"];

for ( i = 0 ; i < levels.length ; i++ ) {

myLevelBytesTotal = eval("_level"+levels[i]).getBytesTotal();
myLevelBytesLoaded = eval("_level"+levels[i]).getBytesLoaded();

}
}

onClipEvent (enterFrame) {

trace(myLevelBytesTotal);
//it constantlly shows undefined

trace(myLevelBytesLoaded);
// same thing

if (myLevelBytesTotal == undefined) {

_root.gotoAndStop(1);

} else if (myLevelBytesTotal == myLevelBytesLoaded) {

_root.gotoAndStop(2);

}
}

Thx
Gea

View Replies !    View Related
I Worked Out The Code To Go Forward...how Do I Go Back?
Hello, I'm new to this so please excuse the basic question.

I have a photo slide show and a button to press for the next image and then one to go back to the previously viewed image. The following is the code I have on the next button:

on (release) {
_root.link = _root.link+1;
_root.play();
}


so I thought that logically to go back I would replace the plus sign with a minus sign but this isn't working...any ideas???

Thanks in advance,

View Replies !    View Related
MarkSensei - WORKED LIKE A CHARM <--THANKS A MILLION...
Thanks man!!!!

HUGE HELP I WAS SO CLOSE YET SOOOOO FAR....

View Replies !    View Related
[F8] Flash Remoting Worked In MX But Not In Flash8
Maybe it should have been in the NEWBIES section, but ..

Some time ago I did a project for a client with Flash Remoting. My FLA was done in Flash MX and everything worked just fine! Now I revisit the project and find that even with NO changes to my script it doesnt work anymore when I export with Flash8.

My code for setting up the Remoting:
#include "NetServices.as"

// initialize your Flash Remoting connection
if (inited == null) {
inited = true;
NetServices.setDefaultGatewayUrl("client gateway");
gateway_conn = NetServices.createGatewayConnection();
// establish your CFC as a service
myService = gateway_conn.getService("path to forhandler.cfc", this);
// call that service once a connection has been made to start getting the dealer info
myService.getForhandlere();
}
function getForhandlere_Result(result) {
//my function that gets data from a query in forhandlere.cfc
}


Anyone??

View Replies !    View Related
Real Simple (if You've Worked With Flash B4)
I'm sure this will be laughably simple for the pros out there...

I'm working in Flash MX 2004. All I want to do is have a key press (the alt or tab key) result in the swf skipping to an assigned frame. I want to assign the script to either the initial frame or a movie clip.


//edit is there an ascii code for the alt key or a way I can specify it in the following code?


Code:
myListener = new Object();
myListener.onKeyDown = function(){
if(Key.getCode() == 32){
gotoAndPlay(490);
}
}
Key.addListener(myListener);
...and also how do I stop this code from working in subsequent frames or is there better code I should be using?

Help.

View Replies !    View Related
JavaScript That Worked In MX Isn't Working In MX 2004
I have a project that I originally did a few years back in Flash MX. I'm redoing it to include in a portfolio I'm putting together and without thinking about the consequences, I saved it as MX 2004 instead of the legacy save. Then I proceeded to do about 8 - 10 hours of work on redesigning the site. Everything seemed to be working fine on the new site, but there's a section that uses JavaScript to open some new windows. In the new window, there are links where you can click to play (an MP3) or right click to download. The original site works just fine but in the new site, the JavaScript doesn't open the new windows. I don't know if the links on the new window would work or not because I can't get to them. I'm worried that it may be a difference between MX and MX 2004 which would mean my 8 - 10 hours are down the drain and I'd have to start all over with a legacy save (at least I still have a copy of the original). However, I'm also wondering if it's just a targeting issue or some other issue with the ActionScript and/or the JavaScript.

The part I'm talking about is here. On the left nav, click on "Music" and then on the "Downloads" page, click on any of the links to the Suites. This is the original version so the windows should open. Anyone have any idea why the windows wouldn't be opening in the new version? The HTML is like this:


Code:
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>The French Suites of J.S. Bach</TITLE>
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
</HEAD>
<BODY bgcolor="#660000">
<div align="center"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="740" HEIGHT="540" id="index" ALIGN="">
<PARAM NAME=movie VALUE="index.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#660000> <EMBED src="index.swf" quality=high bgcolor=#660000 WIDTH="740" HEIGHT="540" NAME="index" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></div>
</BODY>
</HTML>
And a sample of the pertinent ActionScript is here:


Code:
_root.music_mc.frste1.onRelease = function() {
getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite1.html','thewin','width=320, height=330, toolbar=no,scrollbars=no')");
};
You have no idea how much I'm REALLY hoping someone can figure out what's wrong and tell me that I don't have to start all over. For sure. Help?

View Replies !    View Related
HTML Text Not Working - Worked Before
This html text was working previous, and now it's not and I have no idea why.

Here's a sample of the code in flash:

clients.textfield.text="CLIENTS"
clients.onRelease = function (){
textLoader("clients.txt");


Here's the txt file:

theTitle=Clients
&theDescrip=<font size='24'>gogoBaby<br/>MaRGie Jewellery<br/>Northcott Communications<br/>Mommies that Work<br/>NYC Midnight Movie Making Madness<br/>- The Toronto Film Race 2007<br/>Maven Marketing Communications</font size>


Here's the website:

http://www.instigatorcommunications.com/

View Replies !    View Related
Pause Fram Code Worked In MX But Not CS3?
I have a 1 Scene Movie with a dozen or so layers, i am try to have it play the whole thing on a contuines loop and have it pause on certain frames. I had a script that worked when i was using Flash MX but since i have moved to CS3 for some reason it no longer works. This is the code i am using, i didn't write it, i actually got it from one of the people on here (I apologize i have forgotten their name).


Code:
// Loop frames 5
pauseDuration = 5*1000;
framesInLoop = 10;
if (startTime == null) {
startTime = getTimer();
gotoAndPlay (_currentframe-framesInLoop);
} else {
lapsedTime = getTimer()-startTime;
if (lapsedTime < pauseDuration) {
gotoAndPlay (_currentframe-framesInLoop);
} else {
startTime = null;
}
}
it gives me am "Access of undefined property" Error for every line.

I am unable to figure out why it worked in MX but not for CS3, hopefully one of you know better then me. Thank you!!

View Replies !    View Related
JavaScript That Worked In MX Isn't Working In MX 2004
I have a project that I originally did a few years back in Flash MX. I'm redoing it to include in a portfolio I'm putting together and without thinking about the consequences, I saved it as MX 2004 instead of the legacy save. Then I proceeded to do about 8 - 10 hours of work on redesigning the site. Everything seemed to be working fine on the new site, but there's a section that uses JavaScript to open some new windows. In the new window, there are links where you can click to play (an MP3) or right click to download. The original site works just fine but in the new site, the JavaScript doesn't open the new windows. I don't know if the links on the new window would work or not because I can't get to them. I'm worried that it may be a difference between MX and MX 2004 which would mean my 8 - 10 hours are down the drain and I'd have to start all over with a legacy save (at least I still have a copy of the original). However, I'm also wondering if it's just a targeting issue or some other issue with the ActionScript and/or the JavaScript.

The part I'm talking about is here. On the left nav, click on "Music" and then on the "Downloads" page, click on any of the links to the Suites. This is the original version so the windows should open. Anyone have any idea why the windows wouldn't be opening in the new version? The HTML is like this:


HTML Code:
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>The French Suites of J.S. Bach</TITLE>
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
</HEAD>
<BODY bgcolor="#660000">
<div align="center"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="740" HEIGHT="540" id="index" ALIGN="">
<PARAM NAME=movie VALUE="index.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#660000> <EMBED src="index.swf" quality=high bgcolor=#660000 WIDTH="740" HEIGHT="540" NAME="index" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></div>
</BODY>
</HTML>
And the pertinent ActionScript is here:


Code:
_root.music_mc.frste1.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite1.html','thewin','width=320, height=330, toolbar=no,scrollbars=no')");
};

_root.music_mc.frste2.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite2.html','thewin','width=320,height=330, toolbar=no,scrollbars=no')");
};

_root.music_mc.frste3.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite3.html','thewin','width=320,height=330, toolbar=no,scrollbars=no')");
};

_root.music_mc.frste4.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite4.html','thewin','width=320,height=330, toolbar=no,scrollbars=no')");
};

_root.music_mc.frste5.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite5.html','thewin','width=320,height=330, toolbar=no,scrollbars=no')");
};

_root.music_mc.frste6.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite6.html','thewin','width=316,height=320, toolbar=no,scrollbars=no')");
};
You don't know HOW much I'm REALLY hoping someone can figure out what's wrong and tell me that I don't have to start all over. Really. Help?

View Replies !    View Related
SetMask - Worked A Minute Ago, But Something Changed
Hi, hope whoever is reading this is having a great day. I was, up till an hour ago.

I can't figure out what I did to my script to make the text-masking effect not working. I was literally jumping for joy an hour ago. Then I changed something and I'm no longer jumping.

Can somebody please take a look at my script to see what it is that I've done to make this happen? I'm sure I've embedded the font and like I said, it was working not too long ago.

The simplified version of the .fla file is attached.

.swf
file is HERE
(fixed broken link)

Thanks in advance.

View Replies !    View Related
Popup Worked Fine, Not Anymore
Hi,

I've a project made a couple of years ago. It is on Cd Rom, with a main Flash movie embeded in an HTML page which give the users the possibility of opening some popup HTML windows embedding some Flash videos.

It was all working fine at the moment of release but now, testing it on Windows XP, the pop up windows don't work anymore. I've tested it on IE6 and IE7 on Windows XP SP2.
It works fine on a Mac OS X running Safari.
The project works perfectly running it locally or through the network on the same machine with the same settings where it doesn't work from cd rom.

It has to do with some security setting regarding playing dynamic contents from a cd rom, but I can't make it work.

Can anyone help please?

Thanks
paolo

View Replies !    View Related
ActionScript That Worked In Studio 8 Fails In CS3
I have three lines in my code that worked just fine using the Flash/Java Integration Kit when the movies I'm creating were built using Studio 8. I upgraded to CS3 and now I can't publish. The three lines are:

import com.macromedia.javascript.JavaScriptProxy;
var proxy:JavaScriptProxy = new JavaScriptProxy();

var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);

The error is that the JavaScriptProxy can't be loaded, but it exists on the server(s) where the final SWF will live. I'm desperate for help. Anyone?

Thank you so much,
-Benjamin

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved