[flexcoders] Re: Flashvars using Application.application

2006-09-13 Thread Adam Dorritie
On 9/13/06, niuscha.massoudi [EMAIL PROTECTED] wrote:
 I had the same Problem like Kyle. It works with the solution from
 Adam. But only in Firefox and not in IE. What is the Problem?
 I tried also param name=FlashVars value=id=123456, it doesn't
 work.

I use IE when I develop here at work and my solution works fine for
me.  I've attached a simple wrapper file that works for my
application.  Search for 'flashVars' and you'll see my set
('formID=22userID=1userName=Frank').  Replace these with your own
and it should work fine.

Adam


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 







  	
			
			
			
			
  
			
	





[flexcoders] Re: Flashvars using Application.application

2006-09-05 Thread Kyle

My html wrapper contains the normal scripts to check the flash
version, etc.. And the embed code looks like this:

object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
id=UserStats width=100% height=100%

codebase=http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab;
param name=movie value=UserStats.swf /
param name=quality value=high /
param name=bgcolor value=#869ca7 /
param name=allowScriptAccess value=sameDomain /
param name=flashvars value=id=123456
embed src=UserStats.swf quality=high 
bgcolor=#869ca7
width=100% height=100% name=UserStats 
align=middle
play=true loop=false quality=high allowScriptAccess=sameDomain
type=application/x-shockwave-flash
pluginspage=http://www.adobe.com/go/getflashplayer;
/embed
/object


What I am trying to access is the value of the id param that I am
passing in through flash vars. I have tried to accomplish this by
using a param, and also by simply attaching my variable string to the
end of my embed src (ex: myFile.swf?id=123456). None of this seems to
work...


Thanks,

Kyle


--- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote:

 This code looks ok to me. Can you post your html wrapper (or the
 relevant portion of the wrapper) so we can see exactly how the vars are
 being passed in?  
 
 matt horn
 flex docs
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Kyle
  Sent: Monday, September 04, 2006 11:30 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flashvars using Application.application
  
  
  I am continuing to have problems loading embedded variables 
  using the apllication.application method that is described 
  in the help manual.
  Below is the code that I am trying to run. On top of this my 
  html file has a param set with the type flashvars and the 
  value set to myName=KylemyHometown=Duluth. Any thoughts?
  
  Thanks,
  
  Kyle
  
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
  http://www.adobe.com/2006/mxml 
  creationComplete=initVars()
  mx:Script![CDATA[
  
  import mx.core.Application;
  // Declare bindable properties in Application scope.
  [Bindable]
  public var myName:String;
  [Bindable]
  public var myHometown:String;
  
  // Assign values to new properties.
  private function initVars():void {
  myName = Application.application.parameters.myName;
  myHometown = Application.application.parameters.myHometown;
  }
  ]]/mx:Script
  
  mx:VBox
  mx:HBox
  mx:Label text=Name: /
  mx:Label text={myName} fontWeight=bold/ /mx:HBox 
  mx:HBox mx:Label text=Hometown: / mx:Label 
  text={myHometown} fontWeight=bold/ /mx:HBox /mx:VBox 
  /mx:Application
  
  
  
   
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Flashvars using Application.application

2006-09-05 Thread Tom Bray



You'll need to add FlashVars as an attribute to the embed tag as well like this:embed FlashVars=id=123456...so that it works in non-IE browsers. I bet your code works in IE the way you have it.
HTH,TomOn 9/5/06, Kyle [EMAIL PROTECTED] wrote:













  




My html wrapper contains the normal scripts to check the flash
version, etc.. And the embed code looks like this:

object classid="">
			id=UserStats width=100% height=100%
		
codebase="" href="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" target="_blank" >http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab

			param name=movie value=UserStats.swf /
			param name=quality value=high /
			param name=bgcolor value=#869ca7 /
			param name=allowScriptAccess value=sameDomain /
param name=flashvars value=id=123456
			embed src="" quality=high bgcolor=#869ca7
width=100% height=100% name=UserStats align=middle
play=true loop=false quality=high allowScriptAccess=sameDomain
type=application/x-shockwave-flash
pluginspage=http://www.adobe.com/go/getflashplayer
/embed
/object

What I am trying to access is the value of the id param that I am
passing in through flash vars. I have tried to accomplish this by
using a param, and also by simply attaching my variable string to the
end of my embed src (ex: myFile.swf?id=123456). None of this seems to
work...

Thanks,

Kyle

--- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote:

 This code looks ok to me. Can you post your html wrapper (or the
 relevant portion of the wrapper) so we can see exactly how the vars are
 being passed in?  
 
 matt horn
 flex docs
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Kyle
  Sent: Monday, September 04, 2006 11:30 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flashvars using Application.application
  
  
  I am continuing to have problems loading embedded variables 
  using the apllication.application method that is described 
  in the help manual.
  Below is the code that I am trying to run. On top of this my 
  html file has a param set with the type flashvars and the 
  value set to myName=KylemyHometown=Duluth. Any thoughts?
  
  Thanks,
  
  Kyle
  
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
  http://www.adobe.com/2006/mxml 
  creationComplete=initVars()
  mx:Script![CDATA[
  
  import mx.core.Application;
  // Declare bindable properties in Application scope.
  [Bindable]
  public var myName:String;
  [Bindable]
  public var myHometown:String;
  
  // Assign values to new properties.
  private function initVars():void {
  myName = Application.application.parameters.myName;
  myHometown = Application.application.parameters.myHometown;
  }
  ]]/mx:Script
  
  mx:VBox
  mx:HBox
  mx:Label text=Name: /
  mx:Label text={myName} fontWeight=bold/ /mx:HBox 
  mx:HBox mx:Label text=Hometown: / mx:Label 
  text={myHometown} fontWeight=bold/ /mx:HBox /mx:VBox 
  /mx:Application
  
  
  
   
 



  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: Flashvars using Application.application

2006-09-05 Thread Adam Dorritie
On 9/5/06, Kyle [EMAIL PROTECTED] wrote:

  My html wrapper contains the normal scripts to check the flash
  version, etc.. And the embed code looks like this:

code snipped

Kyle,

It looks like what may be biting you is the same thing that bit me for
a while.  The code you posted looks like the code inside the
noscript tag in the template HTML.  You also need to look at the
javascript just above the noscript tag (expanding the comment
text).  There you'll find a call to AC_FL_RunContent () for your
application.  This is the path that the page normally takes.  I
appended what I needed to the existing flashvars parameter, but you
could easily just add another parameter line, I would expect.

Hope this helps.

Adam


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/