Awesome, thank you!
I actually will have to try this. I fixed it late last night with a
pre-loader. Essentially what was happening was the scripts I was using
were working fine, and the actionscript was moving the variables
along, but what I had to do was load all the images first because
Flash, for some reason, would just take whatever pic it loaded first
and just substitute every other pic with it. I believe it was on top
of all the other pics....
None the less it is working, but thank you so much for your help Aran!
Cheers,
Dennis
On Dec 1, 7:23 pm, "Aran Rhee" <[EMAIL PROTECTED]> wrote:
> So it seems this is a pure Flash issue, rather than swfobject if the
> textfield is displaying the correct values. You can emulate the flashvar
> being passed into Flash just by setting a variable on your main timeline:
>
> var thispage = "16";
> // remember that all values that come from a flashvar is a String not a
> number)
>
> You will have to experiment to see what logic works for you, but rather than
> using:
> stop();
> gotoAndPlay(thispage);
>
> You might want something like:
>
> // check if thispage has a value and is actually a valid number
> var goframe = Number(thispage);
> if (goframe!=undefined && goframe!="" && isNaN(goframe)==false)
> {
> // we have a valid frame, go somewhere
> gotoAndPlay(goframe);}
>
> else
> {
> // do default layout or something
> gotoAndPlay("main");
>
> }
>
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
>
> Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, 2 December 2008 10:18 AM
> To: SWFObject
> Subject: Trying to control swf with swfobject.js through html isn't working
>
> Hi,
>
> I'm not very savvy on code, and I've been having a friend support me
> with this as I'm trying to control a flash menu with the html it is
> residing in.
>
> The swf is within a div tag(again I'm new to this), and I have this
> script running:
>
> var object1flashvars = {
> thispage:"16"
> };
> var object1params = {
> wmode:"transparent",
> allowfullscreen:"false",
> allowscriptaccess:"always"
> };
> var object1attributes = {
> id:"object1",
> name:"object1"
> };
> swfobject.embedSWF("eng_menu.swf","divname","735","411","9.0.0",
> false, object1flashvars, object1params, object1attributes);
>
> And within my flash menu I have this in the first frame:
>
> stop();
> gotoAndPlay(thispage);
>
> Now the value is getting to the swf as I've had a text field within
> the swf referencing thispage and it shows the frame number value with
> each html page I go to. However the images will not go to the
> specified frame and play. So the question is, why is the text field
> getting the value from the html but the swf refuses to play anything
> past the 2nd frame?
>
> It seems that the value is getting the frame number but the image in
> the timeline needs to be hidden so that the new image can be seen. I
> have the timeline in the swf setup so that the image no longer exists
> from one section to the next with blank key frames.
>
> I'm completely lost why this happens. Any ideas?
>
> Thanks!
> Dennis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---