Help!

Okay I’m not very good at explaining things. but I’ll try. I have a flash movie cast.fla in the first frame I have this action
[AS]if (cast eq “aline”) {
gotoAndStop(2);
} else if (cast eq “alisa”) {
gotoAndStop(3);
} else if (cast eq “buzz”) {
gotoAndStop(4);
} else if (cast eq “caroline”) {
gotoAndStop(5);
} else if (cast eq “claudio”) {
gotoAndStop(6);
} else if (cast eq “david”) {
gotoAndStop(7);
} else if (cast eq “eric”) {
gotoAndStop(8);
} else if (cast eq “estaurdo”) {
gotoAndStop(9);
} else if (cast eq “frances”) {
gotoAndStop(10);
} else if (cast eq “garrett”) {
gotoAndStop(11);
} else if (cast eq “jared”) {
gotoAndStop(12);
} else if (cast eq “jessie”) {
gotoAndStop(13);
} else if (cast eq “kaleigh”) {
gotoAndStop(14);
} else if (cast eq “keiko”) {
gotoAndStop(15);
} else if (cast eq “kenny”) {
gotoAndStop(16);
} else if (cast eq “kortney”) {
gotoAndStop(17);
} else if (cast eq “lynese”) {
gotoAndStop(18);
} else if (cast eq “matt”) {
gotoAndStop(19);
} else if (cast eq “mike”) {
gotoAndStop(20);
} else if (cast eq “pablo”) {
gotoAndStop(21);
} else if (cast eq “rachel”) {
gotoAndStop(22);
} else if (cast eq “ray”) {
gotoAndStop(23);
} else if (cast eq “shing”) {
gotoAndStop(24);
} else if (cast eq “zoe”) {
gotoAndStop(25);
} else {
stop();
}
[/AS]

I have a broken apart picture and static text in each of the frames.

Okay now on my webpage index.htm my html code for coldfusion is

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="200">
        <param name="movie" value="cast.swf?cast=aline">
        <param name=quality value=high>
        <param name="menu" value="0">
        <embed src="cast.swf?cast=aline" width="300" height="200" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" menu="0"></embed> 
      </object>

and my second code is


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="200">
        <param name="movie" value="cast.swf">
        <param name=quality value=high>
        <param name="menu" value="0">
        <embed src="cast.swf" width="300" height="200" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" menu="0"></embed> 
      </object>

The first code doesn’t work but second one does. but I know it has to work because when I do this


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="200">
        <param name="movie" value="cast.swf?cast=alfred">
        <param name=quality value=high>
        <param name="menu" value="0">
        <embed src="cast.swf?cast=alfred" width="300" height="200" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" menu="0"></embed> 
      </object>

it stops at the first frame

If anyone can help me I would appreciate it. Thanks.

I forgot to mention nothing shows up in the cast.swf?cast=aline one

I still need help

Try using the FlashVars property. :-\

<PARAM name=FlashVars value="cast=aline">
<EMBED src="cast.swf" FlashVars="cast=aline"></EMBED>

I think there’s a TechNote at Macromedia, you might want to search for it. :wink:

EDIT. Found it. http://www.macromedia.com/support/flash/ts/documents/flashvars.htm

Thnx. Hopefully it will work!:slight_smile:

Good luck!! =)

Darn it didn’t work it still doesn’t show the picture

Sorry… I’m clueless. :frowning:

By the way, the eq operator has been deprecated since Flash 5, you should use the == operator. :wink:

thnx i’ll try that again

I found out what it was called pass variables to a SWF

Nope still nothing shows up

I don’t know but for some reason I think it’s my actionscript

Well, the variables passed to the SWF are created in _level0. Try to read the variable as _level0.cast :-\

I’ve worked on a project that did something like cast I think. Does it load a variable into Flash using post variables?

no TaylorTap and I’ll try that Kode

well I don’t know Taylor

if (cast eq “aline”) {
gotoAndStop(2);
} else if (cast eq “alisa”) {
gotoAndStop(3);
} else if (cast eq “buzz”) {
gotoAndStop(4);
} else if (cast eq “caroline”) {
gotoAndStop(5);
} else if (cast eq “claudio”) {
gotoAndStop(6);
} else if (cast eq “david”) {
gotoAndStop(7);
} else if (cast eq “eric”) {
gotoAndStop(8);
} else if (cast eq “estaurdo”) {
gotoAndStop(9);
} else if (cast eq “frances”) {
gotoAndStop(10);
} else if (cast eq “garrett”) {
gotoAndStop(11);
} else if (cast eq “jared”) {
gotoAndStop(12);
} else if (cast eq “jessie”) {
gotoAndStop(13);
} else if (cast eq “kaleigh”) {
gotoAndStop(14);
} else if (cast eq “keiko”) {
gotoAndStop(15);
} else if (cast eq “kenny”) {
gotoAndStop(16);
} else if (cast eq “kortney”) {
gotoAndStop(17);
} else if (cast eq “lynese”) {
gotoAndStop(18);
} else if (cast eq “matt”) {
gotoAndStop(19);
} else if (cast eq “mike”) {
gotoAndStop(20);
} else if (cast eq “pablo”) {
gotoAndStop(21);
} else if (cast eq “rachel”) {
gotoAndStop(22);
} else if (cast eq “ray”) {
gotoAndStop(23);
} else if (cast eq “shing”) {
gotoAndStop(24);
} else if (cast eq “zoe”) {
gotoAndStop(25);
}
stop;