Topic: Flash & javascript snafu.. Pages that link to <a href="https://ozoneasylum.com/backlink?for=11198" title="Pages that link to Topic: Flash &amp;amp; javascript snafu.." rel="nofollow" >Topic: Flash &amp; javascript snafu..\

 
Author Thread
Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 05-09-2001 19:02 Edit Quote

Hello all. You guys must be sick of seeing my name pop up so many questions, but pity me, and help me out with this.. (if at all possible..)

I've set up a simple beta page where i am *attempting* to create a flash movie that displays different "indicators" where the variables have been loaded by javascript (nifty soundin eh??) i wish.. seeif anyof you guys can figure it out.. =\


» THOAN.net (..soon to come..I hope)

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 05-15-2001 04:30 Edit Quote

hmm.. no replies.. <_< this isn't good.. i have 2 weeks left to finish.. if i no get answers in a week, i might be forced to move this to another inapropriate forum where there are helpful people..


» THOAN.net (..soon to come..I hope)

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

IP logged posted posted 05-15-2001 04:41 Edit Quote

I couldn't see evidence of a darn thing happening in your page. Nor could I make head or tail out of your question.

If you can find a forum with more helpful people, I encourage you to do so. If you can rephrase the question with some clues, some of the helpful people here might take a whack at it.

la'dsasha
Neurotic (0) Inmate
Newly admitted Neurotic (0) Inmate
Newly admitted
IP logged posted posted 05-15-2001 04:45 Edit Quote

i guess im confused as to what you are asking. most people do that with a preloader within flash for a flash movie, or a dhtml type preloader to show how much of an html page has been loaded (which i have seen done). i dont know if you can get the flash movie to determine if elements outside of the movie have been preloaded. might want to ask on flashkit.com

------
this rose has a thorn...

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 05-16-2001 04:52 Edit Quote

flashkit.com has been about as useless as anything else other than the asylum..
SO, to re-phrase my problem.. heres what should be going on..

(1) Main HTML page includes a Javascript code that sets up 4 variables: max, ps, html, & quest, which are all basicly booleans.
(2) Main HTML page includes a Flash movie that is compatible with reading Javascript variables.
(3) Flash movie reads the assigned variables made by the JS code in the first frame, and then tells each Movie Clip(MC) target what the value of their variable is (either 0 or 1).
(4) In each MC..
[1st frame]:, var x = 2;
[2nd frame]: {no actions}
[3rd frame]:
if(x < 2){
if(x = 0){
stop();
}else{
nextFrame();
}
}else{
gotoAndPlay(2);
}
[4th frame]: {no actions}

=======================
So in theory, what it SHOULD do, is load variables from JS, and then display different frames in each MC according to what variables were given to it. If i can get this working, i smell a mini-evolution in my web design.. =D Thanks guys for any help.

{ps: for any of you that looked at this before, i've updated it to match the more practical code above}


» THOAN.net (..soon to come..I hope)

Fig
Paranoid (IV) Mad Scientist

From: Houston, TX, USA
Insane since: Apr 2000

IP logged posted posted 05-16-2001 08:36 Edit Quote

Ok, my question to you is a)does this need to be done outside of Flash and b)what affects the variables changing? I've done variables within flash before and am actually doing a tutorial for this for another site, but I can get you a simple FLA to see how it's done if it would help what you're trying to do. I've used it for simple applications, like having an animation play and stop at a certain frame, at that frame each button has a variable; when a button is clicked that variable is assigned a value based on which button was clicked, the animations then plays to the end of the scene and does something/goes somewhere/whatever based on the variables value. Anything close to the right direction?

Chris

KAIROSinteractive

ShadowImage
Nervous Wreck (II) Inmate

From: Melbourne, Victoria, Australia
Insane since: Mar 2001

IP logged posted posted 05-16-2001 12:52 Edit Quote

hmmm.....not too sure if I understand you,
you have a different frame for different thing? why not have a seperate flash movie for each??? easier...no scripting...smaller file sizes because its split up.

<a href="http://www.macromedia.com/support/flash/ts/documents/tn4160.html">Macromedia Site</a> Probably search around there to find an answer

hmmm.....instead of Flash working it out, you could just use JS to control the movie itself, the problem: Java needs to be enabled in NS4...doesn't work in NS6


Darkness is only the beginning

la'dsasha
Neurotic (0) Inmate
Newly admitted Neurotic (0) Inmate
Newly admitted
IP logged posted posted 05-16-2001 15:13 Edit Quote

problems with the fscommand are more than just with netscape6.
http://www.moock.org/webdesign/flash/fscommand/

i think this is what youre looking for.

------
this rose has a thorn...

Bmud
Bipolar (III) Inmate

From: Raleigh, NC
Insane since: Mar 2001

IP logged posted posted 05-17-2001 02:32 Edit Quote

Thanks for the link ShadowImage.. Of coarse i would never think of actually using the Macromeia site =P (i'm dumb like that..) To answer your question Fig, i'm looking to change the variables in the swf file through javascript so that the flash movie's MCs apear differently..
I assume i made an actionscript error.. So I'd like it if you looked at the fla file in the directory..
la'dsasha, um, i don't think i'll be doing to much work with the fscommand, beause thats for flash > js, and i'm doing quite the opposite.. o_O


» THOAN.net (..soon to come..I hope)

-----------------------------
edit: okay, scratch that last comment.. thanks for the site la'dsasha, i was thinking about something else. ^_^
I'll post again if i get this thing workin.. =P

[This message has been edited by Bmud (edited 05-17-2001).]

Fig
Paranoid (IV) Mad Scientist

From: Houston, TX, USA
Insane since: Apr 2000

IP logged posted posted 05-19-2001 23:05 Edit Quote

Ok, I took a look at the FLA and I'm rather confused. You're setting var = 2 at the beginning of each movie clip, and I don't see anything modifying that variable so I'm not sure how you expect it to change. I also don't think that using the same variable name for each clip is the best idea. That help at all?

Chris

KAIROSinteractive



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu