Re: [Flashcoders] passing variable from email to flash

2006-06-01 Thread watch dog barking

Thanks, that's very helpful!

On 30-May-06, at 10:31 PM, Geoff Stearns wrote:


yes, just make your links like this:

http://www.example.com/path/to/page.html?variable=value

replace variable with the name of a variable you want, and 'value'  
with whatever value you want to pass.


then, in your page.html when you embed the flash movie, you can  
grab the variable from the url string using javascript (or a server  
side language) and pass it into the flash movie using flashvars.


if you use swfobject, it has a little utility that can grab vars  
from the url and pass them into the movie, so your embed code would  
look something like this:


div id=flashcontent
  This text is replaced by the Flash movie.
/div

script type=text/javascript
   var so = new SWFObject(movie.swf, mymovie, 200, 100,  
7, #336699);

   so.addVariable(variable1, value1);
   so.write(flashcontent);
/script

more info on the script:
http://blog.deconcept.com/swfobject/

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] passing variable from email to flash

2006-05-30 Thread watch dog barking

I'm not entirely sure if these are flash questions, but here goes...

I have a couple of question in regards to passing variables from a  
link embedded in an email to a flash movie.


1.  Is it possible to direct people to a specific frame of a flash  
movie from an email (i.e. if its one swf, can you put them to  
specific place on the time line).


2.  Not knowing how the flash site is set up yet, is it possible to  
direct them to a specific place in the timeline and then dynamically  
load in another swf (let's say each page is its only swf being loaded  
into a main movie on the 10th frame)


3.  Is it possible to pass variables by clicking a link in an email  
so that the system will know the people who come from the email link  
are members (all people clicking from the email will likely be members)


4.  Do the above scenarios involve server side programming?



Essentially we would like user to click from an email to a certain  
page on a flash site, where after a series of activities they would  
get the opportunity to perform an activity available to members  
only.  If they come from the email link they will be members, but if  
they have come from a different part of the site, we won't know  
whether they are members or not.  If they aren't, we would invite  
them to register to become members.  If they are, then they can enter  
their email address and will be prompted for a password.


Of course, we will then need to determine what happens when the email  
is forwarded, but that will be next for us to sort out.


Any information or suggestions would be appreciated.







___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] passing variable from email to flash

2006-05-30 Thread Geoff Stearns

yes, just make your links like this:

http://www.example.com/path/to/page.html?variable=value

replace variable with the name of a variable you want, and 'value'  
with whatever value you want to pass.


then, in your page.html when you embed the flash movie, you can grab  
the variable from the url string using javascript (or a server side  
language) and pass it into the flash movie using flashvars.


if you use swfobject, it has a little utility that can grab vars from  
the url and pass them into the movie, so your embed code would look  
something like this:


div id=flashcontent
  This text is replaced by the Flash movie.
/div

script type=text/javascript
   var so = new SWFObject(movie.swf, mymovie, 200, 100, 7,  
#336699);

   so.addVariable(variable1, value1);
   so.write(flashcontent);
/script

more info on the script:
http://blog.deconcept.com/swfobject/


On May 30, 2006, at 9:06 PM, watch dog barking wrote:


I'm not entirely sure if these are flash questions, but here goes...

I have a couple of question in regards to passing variables from a  
link embedded in an email to a flash movie.


1.  Is it possible to direct people to a specific frame of a flash  
movie from an email (i.e. if its one swf, can you put them to  
specific place on the time line).


2.  Not knowing how the flash site is set up yet, is it possible to  
direct them to a specific place in the timeline and then  
dynamically load in another swf (let's say each page is its only  
swf being loaded into a main movie on the 10th frame)


3.  Is it possible to pass variables by clicking a link in an email  
so that the system will know the people who come from the email  
link are members (all people clicking from the email will likely be  
members)


4.  Do the above scenarios involve server side programming?



Essentially we would like user to click from an email to a certain  
page on a flash site, where after a series of activities they would  
get the opportunity to perform an activity available to members  
only.  If they come from the email link they will be members, but  
if they have come from a different part of the site, we won't know  
whether they are members or not.  If they aren't, we would invite  
them to register to become members.  If they are, then they can  
enter their email address and will be prompted for a password.


Of course, we will then need to determine what happens when the  
email is forwarded, but that will be next for us to sort out.


Any information or suggestions would be appreciated.







___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com