Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-08-2003, 07:46 PM   #1
ziggy
Registered User
 
Join Date: Aug 2002
Location: Wamic, OR USA
Posts: 4
Send a message via Yahoo to ziggy
Default write variable to LoadMovie URL?

Howdy! =)

I'm passing a variable thru the movie value & using FlashVars for F6 support. see code below...
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0"
  id="player" width="250" height="150">
  <param name="movie" value="player.swf?foo=bar.swf">
  <param name=FlashVars VALUE="foo=bar.swf">
  <param name="quality" value="high">
  <param name="bgcolor" value="#FF6600">
    <embed name="vcr" src="player.swf?foo=bar.swf" FlashVars="foo=bar.swf"
     quality="high" bgcolor="#FF6600" swLiveConnect="true"
     width="250" height="150"
     type="application/x-shockwave-flash"
     pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
I don't know the syntax to write it into my LoadMovie URL though? This is what I have below, that doesn't work LOL
Any ideas? Thanx a bunch!

Code:
on (press) {
   loadMovieNum("http://mysite.com/swf/$foo",1);
}
ziggy is offline   Reply With Quote
Old 03-08-2003, 10:25 PM   #2
Immulsifier
swfBB Developer
 
Join Date: Feb 2001
Location: England
Posts: 189
Send a message via MSN to Immulsifier
Default

Hi Ziggy Welcome

Change your code to this when trying to load the movie.

ActionScript Code:
on (press) {    loadMovieNum("http://mysite.com/swf/"+_level0.foo, 1); }

That will add whatever is stored in foo (bar.swf) onto the end of the URL so it will come out as http://mysite.com/swf/bar.swf and load the correct movie
__________________
Immulsifier is offline   Reply With Quote
Old 03-09-2003, 12:21 AM   #3
ziggy
Registered User
 
Join Date: Aug 2002
Location: Wamic, OR USA
Posts: 4
Send a message via Yahoo to ziggy
Default

Thanx a bunch Should have asked about the 50th failed try LOL

Cheers...ziggy
ziggy is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:35 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.