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








Help Going Crazy..


Hi, Y when I try both methods to get data from a file MyTempVirus.txt, I cant get the same ans 26 ??

=================================================
x=1;
y=1;
TempVirusData2=V11; ====> 26
TempVirusData="V"+x+y; ====> V11

(My MyTempVirus.txt contain: V11=26)
=================================================

Hope someone helps me this..
Really thanks alot.




FlashKit > Flash Help > Flash General Help
Posted on: 03-01-2005, 02:59 AM


View Complete Forum Thread with Replies

Sponsored Links:

Crazy Easy If/else Script Drive Me Crazy
Hello new Kirupa friend! I am jakartaguy from jakarta indonesia with crazy simple question...

code below is okay IF people put in only number... but if they put in LETTER... result is NaN (non number)....

the code i use (from tutorial here) is:

if (ques1 > 100 || ques1 < 0 || ques1 == undefined) {
ValidationMessage = "For statement 1 please insert a number between 0 and 100%";
}

But question - how do I add if/else for Letter??? The script below NOT WORK... can someone please help??

if (ques1 > 100 || ques1 < 0 || ques = NaN || ques1 == undefined) {
ValidationMessage = "For statement 1 please insert a number between 0 and 100%";
}

thankyou(terima kasih)

jakartaguy

View Replies !    View Related
Crazy Client Came With Crazy Idea.
I met my client two weeks ago.
Thay want to do some multimedia like Karaokae

but that Karaokae thay want not like the other

like hmm... I want to type some words and then it will speak(TTS)

AND SPEAK OUT LIKE SINGING..

If my job is english or other language I will think about it...

but my language is harding to do this.


Question is can we do this?
base on Text to speech?

View Replies !    View Related
I'm Going Crazy
I'm going crazy. I am trying to bring in a quicktime movie that i made in Afftereffects into flash. Everything works beautifully on the stage. However, when i publish, export, or even simply try to preview the movie, the quicktime bit doesn't show. Do i need to embed the clip? if so, how? Can i have a quicktime in flash and still have it be interactive. The frame rate of the quicktime is 12 fps; the same as my FLA. movie. What's going on? how do i solve this?

View Replies !    View Related
Url Is Getting Me Crazy Help
Hi,

I want to read into a variable the URL of the html page.

The following code...

myURL = this._url

gives the URL of the flash movie, NOT the URL of the Html page where the flash was loaded.

If you can, help plz.

The result I wana get is:
myURL = "http://www.mysite.com/home.asp?lang=en"

View Replies !    View Related
Please Help Me I'm Getting Crazy
Hello,
Maybe someone can help me with my problem, i'm trying whole week now, but i don't get it right.

I made a homepage with frames in html, now I want to load my swf movie in one of the frames.
This is no probem it works perfectly!!
I created only one big scene, the scene is big because it contains JPG pictures.
I thought flash was streaming, but the movie only starts when the whole swf file is loaded?????????

I tried a preloader but that doesn't work beause then he loads the preloader and the whole file and then he starts playing. (he doesn't show the preloader)
I'm pretty sure that te actions of my preloader are right, and without my preloader my movie isn't streaming either.

Maybe you can take a look at my homepage, first you get the intro with a preloader (thats fine), but when you get at the html menu and you press the link "diashow", he first loads the whole movie and then starts to play??
Ans on this moment I don't use a preloader!!!!

I am getting crazy, why doesn,t my movie stream??????

My homepage adress is:
http://members.brabant.chello.nl/~m.martens/

Sorry for my bad Englisch thats because I'm from the Netherlands but , Please Help!!!!!!!!!!!!!

Thanks

Martin

[Edited by Martin974 on 01-24-2002 at 10:31 PM]

View Replies !    View Related
Am I Crazy?
I can't import a preloader from one file into another. When I do, it clumps everything in one layer. Is there a way to import a scene easily? Thanks!

View Replies !    View Related
HELP....GETTING CRAZY WITH MC´S
this is my problem and I hope U might help me:

I have a scene. inside that scene I have a mc. then in frame 11 of that mc, I put a stop action, so it could play anoother mc I have in that keyframe.

Is it possible that when it finishes playing the second mc it goes back to the first one on frame 12?

basically it is a movie clip inside another movie clip
and what I need is to know how to call the first movie on a specific frame when it finishes playing the second

I really hope U can help....my neck depends on it!


thanks

View Replies !    View Related
I've Gone Crazy
Or I've gone crazy ... or I always been.

Got this movie clip, with inside 3 graphics.
Everytime I try to import inside this movie clip another object or another movie clip or whatsoever, the width of the object just decrease...

Please help.
Maybe the coffee is too strong.

View Replies !    View Related
Going Crazy
i have been trying to figure out what i am doing wrong for about 4 hrs straight.

Here is my problem:

I have 2 movies (swf)

primary.swf
secondary.swf

In the 2nd swf i have actionscripts with _root
When i load loadmovie to the 1st swf with different scripts, i either have the 2nd swf in the top left corner, or its within a MC BUT the actionscripts do not work.

I cant get it to load in a MC AND have the actionscripts work at the same time.

Here are some of the scripts i have tried to use:

loadMovie("secondary.swf", "_root.MC"); = AS doesnt work, but loads in a MC

loadMovieNum("secondary.swf", _root.MC); = AS works, but 2ns.swf pops up in a new window

loadMovieNum("secondary.swf", 1); = AS works, but loads on the top left corner

please, if anyone has any ideas on how to fix this please reply.

Thanks in advance.

View Replies !    View Related
Please Help Going Crazy
I have a main movie. On the bottom of it is this:

Previous 1 2 3 4 5 Next

I've got it so that when you click "next", it goes to the next consecutive page, & the # (which is a MC) gets larger...and when you click "previous", it goes to the previous page & the current # goes back to normal & the # that it is on gets larger, etc...Now I want to also be able to click on the #s themselves & make them go to that specific page. I can do that...the problem is if I click on say 2, then click "next" it doesn't go to 3. Here is the code I have for the "Next" button...(the "previous" button's code is basically the same)...


on(release){
// next one to be loaded
_root.nextLoaded += 1;

// the one that is selected now
_root.lastLoaded = _root.nextLoaded - 1;

// load movie at into level 1
// they should be named consectively like
// mySWF1.swf, mySWF2.swf, mySWF3.swf, etc

_level2.loadMovie("slide" + _root.nextLoaded + ".swf", pageholder);
_level3.loadMovie("text" + _root.nextLoaded + ".swf", pageholder);

// scale the next number movie clip
_root["n" + _root.nextLoaded]._xscale += 50;
_root["n" + _root.nextLoaded]._yscale += 50;
_root["n" + _root.nextLoaded]._y = 387;

// "unscale" the one that was previously selected
_root["n" + _root.lastLoaded]._xscale = 100;
_root["n" + _root.lastLoaded]._yscale = 100;
_root["n" + _root.lastLoaded]._y = 393;

if (_root.nextLoaded != 1){
attachMovie("previous","previous",5);
}
}

How do I get them both to work? I guess what I need to do is put in some script that will tell the movie to know what SWF is currently loaded...but not sure how to do that...

View Replies !    View Related
Please Help Going Crazy
I have a movie that has a series of colored boxes that appear on the stage...one appears, stays for a certain amount of seconds, then is replaced by another one that stays for a certain amount of seconds, and so on...I have a pause, start & rewind button that is SUPPOSED to pause & start/resume & rewind the rotation of the boxes...when I press pause, it does pause, but when I press play again, it jumps to the next keyframe, thus ignoring that AS that is telling it to pause...the pausing of each box is done with AS...

I guess what I need is this...I need the movie to know how much time has passed since the image came on the screen, so if the viewer presses the pause button and then presses the play button to resume the movie, it will know how much time has passed, & will then continue to pause until the FULL pause time has elapsed, and THEN, go to the next keyframe...

I can't post the FLA b/c it is too big...(Weird b/c it's only 1K) I can email it to you if you want...PLEASE HELP!!!!

Thanks!

View Replies !    View Related
Am I Crazy?
does my text scale along with the size of the text box?
is there any way to avoid this?
i would just like to make my text box dimensions a little more exact, with whole numbers fitting more precisely into the space i've allotted for text.
i can't draw the perfect text box freehand, but when i try to change the text box size, my text starts looking fuzzy and icky
please help!!

View Replies !    View Related
Going Crazy - Help
Does anyone know why this actionscript won't work on a button

on (release) {
getURL("java script:NewWindow=window.open('muscle. swf','myWindow','width=800,height=600,left=100,top
=100,toolbar=No,location=No,scrollbars=No,status=N
o,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

I keep getting this Error message:

This program does not support the protocol for accessing
'java%20script:window.open(muscle.swf',win1','wi
dth=800,height=600,top=100,screeny=100,left=100,sc

I've also tried this script to open the file in a new window and I get the same message :

on (release) {
getURL("java script:window.open('muscle. swf','win1','width=800,height=600,top=100,screeny=
100,left=100,screenx=100,toolbar=no,scrollbars=no,
resizable=no,menubar=no,status=no,directories=no,l
ocation=no'); void(0);");
}

View Replies !    View Related
Need Crazy Help
I'm needing help with a few things. I need help with creating a form for my site for viewers to input things like Name, Address, Tele., Email etc. I made the names (Name, address, tele etc) on one layer as static text. I then made another layer for the input text and as i tested the site the input text squares don't line up with the other layer. Also I need help with making my pictures drag left to right. Help please!!!

View Replies !    View Related
Crazy Help
For whatever reason flash and shockwave have quit working on my computer - I suspect because of one of the games I loaded at one time.

My os is winxp - most updated version of ie.

I have uninstalled - reinstalled - followed all of the steps on the macromedia help site - and nothing. When I go to a site with flash, i get a small white box. I'm ready to slam my head into a brick wall. Nothing is working and this is insane.

Any ideas or help! Please!!

View Replies !    View Related
Am I Crazy Or?
Am i crazy or does the string class not have a replace function?

View Replies !    View Related
Crazy Bar...
Could anyone help me, few months ago i have create animation with moving bar but at the end i had deleted that file and today i can't remeber how the hell i get effect of moving bar...

check file, the white bar should move from left to right

View Replies !    View Related
Going Crazy.
Hello Everyone.

I am trying to write my first real actionscript program to take some user information and send it to a server. The second part will be to write a script to format the data so it will import into another program.

I have attached the following code. However it does not seem to be sending the data to the data folder.

Can anyone point out a suggestion on why its not working??

Thank you for any suggestions.

dataURL = "http://www.flashtfs.com/data/";
function showResult(success) {
if (success) {
trace("record added");
}
}
function processForm(btn) {
if (btn._name == "clear") {
borrowerLast = "";
borrowerFirst = "";
borrowerMiddle = "";
borrowerSSN = "";
} else if (btn._name == "submit") {
formData = new LoadVars();
formData.blname = borrowerLast;
formData.bfname = borrowerFirst;
formData.bmname = borrowerMiddle;
formData.bssn = borrowerSSN;
formData.action = "add";
formData.sendAndLoad(dataURL+"guestbook.php", formData);
formData.onLoad = showResult;
}
}
[color=blue]

View Replies !    View Related
Help Me I'm Going Crazy
ok this is probably a really stupid question but here goes any ways coz this problem is driving me crazy

I have downloaded and modified a tsunami menu system that works fine untill i try to attach a go and stop on next frame in the same scene action on the buttons that i have.

The buttons transitions (colour changes) when the mouse is over or is pressed are working fine and looks great but the actions are not happening!! I thought I knew what i was doing, obviousley i don't!! (I hope i don't forget how to walk or breathe by the morning). If anyone has any insite as to what level of the movie the actions will work I would be eternaly gratefull. I apologise in advance for the probable stupidity of this question.

Please help!!

View Replies !    View Related
Going Crazy
Im having a really hard time trying to get my sound to work the way i want it to, so i made a simpler setup but need help on getting it to work, heres what i have

music layer with nothing in it
layer for my green button which will be the on button for sound
layer for my red button which will be the off button

what i want to do is have the song play when the website comes up and they can hit the red button to turn it off and the green button to turn it back on if they choose, ive tried several methods but cant get my action scripts right my song is SimpleMan.swf or SimpleMan.mp3 can someone please help me with this, and please tell me if i need to add the song name to the action script or if i need to use the Music layer in my script, Thanks.

heres what i have so far after 8 days or so of flashing.

http://home.comcast.net/~stevetalley/NRAWEB3.swf

View Replies !    View Related
I'm Getting Crazy
you can call me every single name you can remember but tell me, please, how can I format text in labels and textinputs? i've already tryed textColor, color, bold, settextformat, ... but it doesn't works!

Thanks again!!

View Replies !    View Related
Is It Possible Or Am I Crazy?
Is it possible for the arrows on a side scroll bar to be a movie clip of sorts? Like when being pressed down they move, etc. until mouse is off?

Or am I nuts?

View Replies !    View Related
FLV Crazy?
I am trying to create a FLV player that will play multiple files, but...


Code:
import mx.video.*;
player.contentPath = "add1.flv";
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
if (player.contentPath == "add1.flv") {
player.play("movie1.flv");
} else if (player.contentPath == "movie.flv") {
player.play("add.flv");
}
};
player.addEventListener("complete", listenerObject);
When I try with this code, it plays the first FLV (add1) perfect, but when it is about to load the second FLV (movie1) it plays for about 1 sec. and then jumps to add1 again, and it won't play that either, and then it all f.... up... Can somebody tell me whats going wrong!?!

At ease
Dasphatman

View Replies !    View Related
Help Before I Go Crazy
im making a game and i made a score but i cant get it so when the score is 100 they go to the naxt frames how do i do that????

View Replies !    View Related
Help Me Before I Go Crazy
[HTML]loadBtn.onRelease = function() {
hotSpot.attachMovie("loadedContent", "", 1);
};

loadBtn2.onRelease = function() {
hotSpot.attachMovie("loadedContentb", "", 1);
};

[/HTML]

above is the code i am using....

I just want to be able to attach a movie named other than "loadedContent"

for some reason if I try to attach any other movie named other than "loadeContent" the script does not work

What am I missing?????

here is a source file

any help is appreciated, I am sure its something stupid

Thanks In Advance!

View Replies !    View Related
Please Help Me Before I Go Crazy
OK, I've been searching the internet for days now and I getting very frustrated. I'm rather new with flash so please bear with me. I made a contact form in flash and what I wasnt to do is validate that the fields are filled in. I found a number of ways to do it, but none work. I found one for my email field and that works perfect its
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
getURL ("javascript:NewWindow('invalidemail.html','redeem Win','408','150','yes')");

Now, For my other boxws the submit button starts with this
on (release) {
if (fullname.text == null || fullname.text == "") {
getURL ("javascript:NewWindow('invalidname.html','redeemW in','408','150','yes')");

Then Have and else if then the email validation. The meathod above opens the invalid name file every time, evin if you enter something. I've also tried. if (!fullname.length == 0), that didn't work. I found numerous tutorials that used if (!fullname eq "") , that didn't work either. I've tried a ton of different versions of all of these. but none work! I dodn't know what to do. Please help me. I will provide the .fla file if anybody needs to take a peek at it.

Thanks so much

John

Link to FLA

View Replies !    View Related
Crazy Crazy Crazy
www.*******.com
www.********.com
www.*******.com

View Replies !    View Related
Im Going Crazy
hi! im an artist and im trying to build my site in flash.
Ive done this animation (its a movie clip and after it playes ive put 5 buttons in the movie clip itself) and put it on scene 2. When u press button 1 i want another animation to play and after its done i want it to go to another scene (Scene 3). So i found out that u cant make a buttom jump scenes if its in a movieclip! i just dont know what to do-


((visual explanation= 5 Nesting dolls opening up one by one and they are buttons links to (art,about,news,links,contact). When a button is pressed the dolls get "folded" into eachother (like nesting dolls do) and u reach the "art"page.
Ive drawn these nesting dolls and made graphs and buttons out of them. Then created 2 movieclips. First one where they open up and second one where they close. ))

I dont know how to proceed from here..need desprt help..
thank you soooo much....

View Replies !    View Related
Im Going Crazy
hi!
((((im new at flash-))))
im an artist and im trying to build my site in flash.
Ive done this animation (its a movie clip and after it playes ive put 5 buttons in the movie clip itself) and put it on scene 2. When u press button 1 i want another animation to play and after its done i want it to go to another scene (Scene 3). So i found out that u cant make a buttom jump scenes if its in a movieclip! i just dont know what to do-


((visual explanation= 5 Nesting dolls opening up one by one and they are buttons links to (art,about,news,links,contact). When a button is pressed the dolls get "folded" into eachother (like nesting dolls do) and u reach the "art"page.
Ive drawn these nesting dolls and made graphs and buttons out of them. Then created 2 movieclips. First one where they open up and second one where they close. ))

I dont know how to proceed from here..need desprt help..
thank you soooo much....

View Replies !    View Related
Im Going Crazy
hi!
((((im new at flash-))))
im an artist and im trying to build my site in flash.
Ive done this animation (its a movie clip and after it playes ive put 5 buttons in the movie clip itself) and put it on scene 2. When u press button 1 i want another animation to play and after its done i want it to go to another scene (Scene 3). So i found out that u cant make a buttom jump scenes if its in a movieclip! i just dont know what to do-


((visual explanation= 5 Nesting dolls opening up one by one and they are buttons links to (art,about,news,links,contact). When a button is pressed the dolls get "folded" into eachother (like nesting dolls do) and u reach the "art"page.
Ive drawn these nesting dolls and made graphs and buttons out of them. Then created 2 movieclips. First one where they open up and second one where they close. ))

I dont know how to proceed from here..need desprt help..
thank you soooo much....

View Replies !    View Related
Help:crazy:
hey people, im trying to unload a target thats not on my main timeline. i know
_root refers to the main time line but how would i point it to sidebar.swf..

here's my function.. can anybody please help me. i finish collage tomorrow and this project must be in...


this.onRelease = function() {
loadMovie("mywork.swf",_root.target1_mc);
unloadMovie(taget6_mc)


target6 is on a swf called sidebar

thanx dudes..

View Replies !    View Related
[F5] I Am GOING CRAZY Help, Please
I have done a lot of Flash work in the past, but this is a new issue for me...

I created a website for a friend, and the into should have a BLACK background and NOT loop.

It worked fine at first, and now the background for the flash is WHITE and it won't stop looping.

Please take a look and let me know if you can spot the problem in the code or if I should just try exporting the movie from Flash again...

http://www.neverbroken.com/mfmusic

Thanks so much!!

View Replies !    View Related
Going Crazy, Please Help :(
Hi,

i am really going crazy figuring this out. It's such a simple program and yet there is something not working the way it should, and i don't find it... i've been looking at it for hours, trying different approaches but i never works the way it should...

So here's the code :


ActionScript Code:
stop();
trace ("begin");
var size:Number = 30;
zoomy_mc._xscale = size;
zoomy_mc._yscale = size;
var smallerBool:Boolean = false;
var biggerBool:Boolean = false;
var bigInterval;
var smallInterval;

zoomy_mc.onRollOver = function()
{
    trace ("rollOver");
    if (smallerBool)
    {
        smallerBool = false;
        clearInterval (smallInterval);
    }
    if (size < 100)
    {
        biggerBool = true;
        bigInterval = setInterval (bigger, 10);
    }
}

zoomy_mc.onRollOut = function()
{
    trace ("rollOut");
    if (biggerBool)
    {
        biggerBool = false;
        clearInterval (bigInterval);
    }
    if (size > 30)
    {
        smallerBool = true;
        smallInterval = setInterval (smaller, 10);
    }
}

function bigger()
{
    trace ("function bigger, size = " + size);
    if (size<100)
    {
        size++;
        zoomy_mc._xscale = size;
        zoomy_mc._yscale = size;
       
    }
   
    else if (size == 100)
    {
        clearInterval (bigInterval);
        gotoAndPlay ("ft");
    }
}

function smaller()
{
    trace ("function smaller, size = " + size);
    if (size>30)
    {
        size--;
        zoomy_mc._xscale = size;
        zoomy_mc._yscale = size;
       
    }
   
    else if (size == 30)
    {
        clearInterval (smallInterval);
        gotoAndStop ("wait");
    }
}

so i have a movie clip that contains another movie clip (zoomy_mc) which is just a picture that i want to zoom in and out. The idea is that when you move your mouse over it, it starts growing and when you roll out agian, it shrinks back to its original value. The program works fine as long as i simply move my mouse over the clip, and hold it there until it's at its maximum size.
Then, the jump to "ft" is made like it should be.
BUT, when i move my mouse over and out a few times, it still shrinks and grows like it should do, but when i reacht the maximum size of 100, the jump to "ft" is not made. This is the code on ft :


ActionScript Code:
trace ("FT");
zoomy_mc._xscale = 100;
zoomy_mc._yscale = 100;

stop();

i can see that the jump isn't made because normally ft should trace "ft" , which doesn't happen in the latter case.

Another question that i was wondering : if you "gotoAndPlay" to a certain frame, and that frame contains a "stop();" then appearently this stop is ignored??? I know that i could use gotoAndStop instead, but i was still wondering howcome it ignores the 'stop()' if you enter a frame with gotoAndPlay. Seems strange!


Anybody help please!!
thx!

edit : oh yeah i should add that this code is on a frame labelled "wait". Doesn't really soud logical but it's just an inheritance from an other approach that i tried, but i left it like that because it doesn't really matter to the problem

View Replies !    View Related
OMG Going Crazy...
I have tried and tried the couple of posts I found about setting a particular URL as the new "homepage", but can't make any of them work and they are all really old posts. I have asked this before and no one responded. Waited and waited. Saw that other people have asked this question and got no response either. I managed to get the bookmark property ok, but not the "set as home page" property. Please, god, someone help me figure this out!

View Replies !    View Related
Bug Or I Am Going Crazy?
hi,

have a strange problem with textFormat and inputText, when i want to type from the begining of the line (any line) leading changes.

I uploaded swf so you can all see what i am talking about:
http://www.videodrome.hr/podly/textF...eading_bug.swf

left textarea is input and the right outputs htmltext, it is clearly visible that when you type something in the begining of the line that that line changes leading. WHY???

is it a bug or am i missing something
please help!!!

here is the source

View Replies !    View Related
Are These Crazy Or What?
Hi
I'm getting pissed off from these, this is the second e-mail I receive, here's the e-mail :

" Hi,
Developing educational software for my students. I'm then looking for two kind of freelancers who just want to make extra money :
actionscript programmers
illustrators
I – Actionscript programmers :
I need programmers for two purposes :
to write as codes for news quizzes, mainly mathematical ones on which I'm working currently.
to modify the existing quizzes, aesthetic appearance or replacing as1 code by the as2 one.
The job consists on small projects, which will be handled one after another.
II – Illustrators
For the course material, I need illustrations, mainly cartoons backgrounds (nature scenes) and characters (animal, human etc..).
I'm looking for people who will accept a lower rate payment that is between , as I will pay from my pocket. Between 5 – 15 $ according to the project.
If you are interested, please give me a follow up. I have found your address at actionscript.org.
The payment will be made mainly by paypal or Western Union for freelancers living in countries where there is no paypal payment. But in this case, the money transfer fees will be at freelancer's charge..
NB : Each project will be put on auction and the cheapest quote and faster delivery will be chosen.
The money will be sent only after the work is accepted (SWF)."


Are these fuckers crazy or what? Cheapest and fastest!?!? 5-15 $ per project?!!?!? Auction?!?!? Has someone else received such an e-mail? I thought that such way of looking for a freelancer was illegal, am I right?





























Edited: 01/10/2007 at 03:11:27 AM by _EnergiE_

View Replies !    View Related
Im Going Crazy...plz Help Me
hello

Can someone recommend a tutorial that teaches me the basics in a flash site.
Or a simple template.

I want to make something minimal like this http://www.kentlyons.com/

And a question

this opens another .swf file

on (rollover) {
_root.contents.loadMovie("whatever.swf");
}

and this opens a movie file already within the .fla file with the instance name
whatever?

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

The kirupa full flash site tutorial just didnt do enough for me

Does a flash site have to just be one .fla/.swf file?
Or is it possible to use several .swf files and link them with :

on (rollover/release) {
_root.contents.loadMovie("whatever.swf");
}

If someone can tell me/teach me something that helps me understand the basics. I would be really happy.

Simon

View Replies !    View Related
I'm Going Crazy
i'm still having a problem putting a login on my flash site. NOW, when i put:

this.onEnterFrame = function() {
if (_root.CheckLog==1) {
_root.map.gotoAndStop(3);
}
};

_root.map automatically goes to frame 3, even before the login button is pressed AND even after i have:
_root.CheckLog==0;
preceding it on the same frame...why is this??
Thanks in advance!

View Replies !    View Related
I'm Going Crazy
does anyone know of any good login tutorials???

View Replies !    View Related
Am I Crazy Or What?
So i put this in one movie and it works - I put it in another movie and it gives me a syntax error. How is that possible?


Code:
import mx.remoting.NetServices;
Any ideas, suggestions, etc

Its a dead copy to so I don't think the idea of a typo is the problem.

View Replies !    View Related
AS2 Gone Crazy
I now this is stupid.. but !, does anyone have any ideea why the same script may couse problems only sometimes and other times works just fine? I mean in the same browser / movie tester!
It contains no random function.. just text loader and some tweens in a parametrical function!

I don't want to boder you with all the code.... just wondering if anyone had this problem before and why .. so i can get a start on this!

Thanks !

View Replies !    View Related
Help Me Before I Go Crazy
OK, I've been searching the internet for days now and I getting very frustrated. I'm rather new with flash so please bear with me. I made a contact form in flash and what I wasnt to do is validate that the fields are filled in. I found a number of ways to do it, but none work. I found one for my email field and that works perfect its
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
getURL ("javascript:NewWindow('invalidemail.html','redeem Win','408','150','yes')");

Now, For my other boxws the submit button starts with this
on (release) {
if (fullname.text == null || fullname.text == "") {
getURL ("javascript:NewWindow('invalidname.html','redeemW in','408','150','yes')");

Then Have and else if then the email validation. The meathod above opens the invalid name file every time, evin if you enter something. I've also tried. if (!fullname.length == 0), that didn't work. I found numerous tutorials that used if (!fullname eq "") , that didn't work either. I've tried a ton of different versions of all of these. but none work! I dodn't know what to do. Please help me. I will provide the .fla file if anybody needs to take a peek at it.

Thanks so much

John

Link to FLA

View Replies !    View Related
MP3 Crazy
I have made an MP3 Player driven by XML and everything works fine and dandy, previous button, next, stop play volume all that works great.

I was interested in playing with the idea of having icons and on (release) would load a specific track from the XML instead of having just play, next, prev. Can anyone hit me with a tutorial on grabbing a selected item from XML instead of just the next, previous ect... Thanks in advance.

Could I do it by tracking the begining of what track its on and has played and then subtracting or adding item? Or what would be the best way? Ill be back fitten to read and search on this. anyone please hit me with any knowledge on selecting a predetermined item from XML and loading.

View Replies !    View Related
Help Me I Am Going Crazy
hey friends

i am trying to make a game similar to diner dash on flash

but there seems to be some problems.

in some code on the frames does not seem to work as expected.

the flash seems to be skippin some code.

#include "mc_tween2.as"

var flip:Boolean=false;
t1.onRelease=function(){
trace(jenny._x+":"+jenny._y);
moveTo(281,206);
}

t2.onRelease=function(){
moveTo(531,206);
}

t3.onRelease=function(){
moveTo(281,326);
}

t4.onRelease=function(){
moveTo(531,326);
}

checkPos=function(posx:Number,posy:Number){
if((posx==281&&posy==206)||(posx==531&&posy==206)| |(posx==281&&posy==326)||(posx==531&&posy==326)){
jenny.gotoAndStop("jennyfrontstill");
}
}

moveTo=function(posx:Number,posy:Number){
var curx=Math.round(jenny._x);
var cury=Math.round(jenny._y);
posx=Math.round(posx);
posy=Math.round(posy);
trace(curx+":"+cury+";"+posx+":"+posy);
if(curx==posx&&cury==posy){
jenny.gotoAndStop("jennyfrontstill");
trace("a");
return;
}


if(cury==posy){
trace("b");
jenny.gotoAndPlay("jennyside");
if(curx>posx){
if(jenny._xscale>0){
trace(jenny._xscale);
jenny._xscale*=-1;
}
}else if(jenny._xscale<0)
jenny._xscale*=-1;
jenny.xSlideTo(posx,.7,"linear",0,function(){});
}else if(curx==406){
trace("c");
if(cury>posy)
jenny.gotoAndPlay("jennyback");
else
jenny.gotoAndPlay("jennyfront");//This code is skipping randomly
jenny.ySlideTo(posy,.7,"linear",0,function(){moveT o(posx,posy);});
}else{
trace("d "+jenny._x+":"+curx);
jenny.gotoAndPlay("jennyside");
if(curx>406){
if(jenny._xscale>0)
jenny._xscale*=-1;
}else if(jenny._xscale<0)
jenny._xscale*=-1;

jenny.xSlideTo(406,.7,"linear",0,function(){moveTo (posx,posy);});
}
trace("end");
}

this.onEnterFrame=function(){
checkPos(jenny._x,jenny._y);
}

Please tell what i am doing wrong

View Replies !    View Related
Im Going Crazy...plz Help Me
hello

Can someone recommend a tutorial that teaches me the basics in a flash site.
Or a simple template.

I want to make something minimal like this http://www.kentlyons.com/

And a question

this opens another .swf file

on (rollover) {
_root.contents.loadMovie("whatever.swf");
}

and this opens a movie file already within the .fla file with the instance name
whatever?

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

The kirupa full flash site tutorial just didnt do enough for me

Does a flash site have to just be one .fla/.swf file?
Or is it possible to use several .swf files and link them with :

on (rollover/release) {
_root.contents.loadMovie("whatever.swf");
}

If someone can tell me/teach me something that helps me understand the basics. I would be really happy.

Simon

View Replies !    View Related
Please HELP. I'm Getting Crazy Oon This One
HI
I really need some help here
I have this problem and can't get it resolved. Tried several approaches but none of them are working
I have a customer who has a pretty huge swf file already done by another guy
Now he wants me to create a swf file which resides on his main page and starts loading the big swf file in the background. The swf needs to show percentage and reminding level
I have found a website who has something similar http://www.fredabeles.com/welcome.asp there you can see the flashloader at the right and when you click on it a new window opens and the main file starts

I have no problem creating this loader with percentage etc. but somehow he shows only the size of his own and when i click on it the big file starts loading

What do I do wrong

Please help

View Replies !    View Related
Going CRAZY
Okay, here's the deal.. I have my flash movie:


Code:
import flash.events.MouseEvent;
var mc = this;

function goto() {

if (ExternalInterface.available) {

var url = ExternalInterface.call('getUrl');
switch(url) {
case "test":
gotoAndPlay(20);
break;

case "test1":
gotoAndPlay(45);
break;
}

} else {
trace('CAN NOT TALK TO BROWSER');
}
}

function isContainerReady():Boolean
{
var result:Boolean = ExternalInterface.call("isReady");
return result;
}

goto();

ExternalInterface.addCallback("parseUrl", goto);

mc.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e) {
ExternalInterface.call('clicked','test');
goto();
}

mc.stop();
Then I have my HTML


HTML Code:
<html>
<head>
<title>Flash / SEO</title>
<script type="text/javascript">

function clicked(d) {
window.location.hash = d.toString();
}

function getUrl() {
return window.location.hash.replace('#','');
}

</script>
</head>
<body>
<!--<a href="javascript:void(0);" onclick="test()">Brent</a>-->
<object id="flashObject" width="300" height="200">
<param name="movie" value="as.swf.swf">
<embed id="flashObject" allowScripAccess="sameDomain" width="300" height="200" src="as.swf" border="2" />
</object>
</body>
</html>
And that is SUPPOSE to, when they click on the button call a javascript function which changes the url to ...#test. Then the flash calls another javascript function to read the url, it basically parses the hash ( #... ) and then goes to the appropriate keyframe, or starts with Key Frame1.

This works perfectly in Firefox, Safari, Etc.. try it out:
http://standingdog.com/clients/stoneleigh/Flash/
and http://standingdog.com/clients/stoneleigh/Flash/#test

Basically the flash movie reads the url and goes to the appropriate section in the flash movie. Or when you click the button it changes the url and starts step 1.

WHY DOESN'T THIS WORK WITH IE!? lol.. I am going insane... Any feedback would be appreciated.


*UPDATE* I think it has something to do with the js functions returning null maybe? The js functions ARE being called in IE, just nothing is happening back in the Action Script.. how can i debug this?

View Replies !    View Related
This Is Crazy
Hi guys, I have a problem, i hope someone could figure it out.
I have 3 mclips with fix x and y positions (mclip1 at the left and up, mclip2 at the middle and down, mclip3 at the right and up), when you press a button to move to the right, mclip1 moves to the middle, mclip2 moves to the right and mclip3 moves to the left. Something similar happens when you press the "movetoleft" button but the clips moves the other way round. To make this clips move, i first put an mclip1.onEnterframe... mclip2.onEnterframe... mclip3.onEnterFrame..., but due to an embed font and an image and some other things, this was kindda slow, so i tried to put all the actions only in mclip1.onEnterFrame... the thing worked perfectly and fast and nice, etc, but only when i press only to move to the right or only to move to the left, but when i pressed to move to the right and then to the left... it doesn't work properly!!! I can't understand why could happen this.
To have an idea of what is happening, i made it simplier (without the images, embed fonts, etc). This is the Slow but working way and this is the fast but not working properly way . The fast but not working properly way has the "slow" code on the left button and the "fast" code on the right button. You may have a look at the fla file. I cannot uploaded to internet, so anyone wanting to help and who want to have a look at it, please tell me and i'll send it to you.
Thanks to anyone how could help me!

View Replies !    View Related
[AS] Another IE Bug Or Am I Getting Crazy?
Can someone detect why this doesn´t work on IE?


ActionScript Code:
stop();
Stage.scaleMode = "noscale";
Stage.align = "TL";
Stage.showMenu = false;
//
var lines:MovieClip = this.lines_mc;
//
var imageHolder:MovieClip = this.imageHolder_mc;
var container:MovieClip = imageHolder.createEmptyMovieClip("container", imageHolder.getNextHighestDepth());
//
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("images/pic2.jpg", container);
function onLoadInit(mc:MovieClip) {
    //trace("onLoadInit: " + mc);
    startPosition();
}
//
function startPosition():Void {
    lines._width = Stage.width;
    lines._height = Stage.height;
    newSize(container);
    newPos = getNewPosition(container);
    container._x = newPos.x;
    container._y = newPos.y;
}
//
var stageListener = {};
Stage.addListener(stageListener);
stageListener.onResize = function():Void  {
    startPosition();
};
//
function newSize(mc):Void {
    var actualWidth:Number = mc._width;
    var actualHeight:Number = mc._height;
    var divisor:Number = actualWidth / actualHeight;
    //trace(divisor);
    //
    if (divisor <= 1) {
        mc._height = Stage.height;
        mc._width = mc._height * divisor;
    } else {
        mc._width = Stage.width;
        mc._height = mc._width / divisor;
    }
}
//
function getNewPosition(mc) {
    var newX:Number = Math.floor((Stage.width - mc._width) / 2);
    var newY:Number = Math.floor((Stage.height - mc._height) / 2);
    return {x:newX, y:newY};
}


Am i getting crazy?

View Replies !    View Related
If/else I Go Crazy...
Help, I need a script to add to a button that checks if banner.swf is loaded into an empty movie clip called banner_mc on my _root stage and then if the banner.swf file is not there then to load it but me's confused to hell and back.

View Replies !    View Related
Im Going Crazy...
hello

Can someone recommend a tutorial that teaches me the basics in a flash site.
Or a simple template.

I want to make something minimal like this http://www.kentlyons.com/

And a question

this opens another .swf file

on (rollover) {
_root.contents.loadMovie("whatever.swf");
}

and this opens a movie file already within the .fla file with the instance name
whatever?

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

The kirupa full flash site tutorial just didnt do enough for me

Does a flash site have to just be one .fla/.swf file?
Or is it possible to use several .swf files and link them with :

on (rollover/release) {
_root.contents.loadMovie("whatever.swf");
}

If someone can tell me/teach me something that helps me understand the basics. I would be really happy.

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