dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Flashvars Menu Button State from URL

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    14

    Flashvars Menu Button State from URL

    Greetings!



    I am using flashvars in my OBJECT and EMBED tags like so:



    Code:
    <OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=250 height=250>
    
    <PARAM NAME="_cx" VALUE="6614">
    
    <PARAM NAME="_cy" VALUE="10583">
    
    <PARAM NAME="Movie" VALUE="/images/flash/menu_flash.swf">
    
    <PARAM NAME="Src" VALUE="/images/flash/menu_flash.swf">
    
    <PARAM NAME="WMode" VALUE="Transparent">
    
    <param name="FlashVars" value="section=a_set" />
    
    <PARAM NAME="Play" VALUE="-1">
    
    <PARAM NAME="Loop" VALUE="-1">
    
    <PARAM NAME="Quality" VALUE="High">
    
    <PARAM NAME="SAlign" VALUE="">
    
    <PARAM NAME="Menu" VALUE="-1">
    
    <PARAM NAME="Base" VALUE="">
    
    <PARAM NAME="AllowScriptAccess" VALUE="">
    
    <PARAM NAME="Scale" VALUE="ShowAll">
    
    <PARAM NAME="DeviceFont" VALUE="0">
    
    <PARAM NAME="EmbedMovie" VALUE="0">
    
    <PARAM NAME="BGColor" VALUE="">
    
    <PARAM NAME="SWRemote" VALUE="">
    
    <PARAM NAME="MovieData" VALUE="">
    
    <PARAM NAME="SeamlessTabbing" VALUE="1">
    
    <PARAM NAME="Profile" VALUE="0">
    
    <PARAM NAME="ProfileAddress" VALUE="">
    
    <PARAM NAME="ProfilePort" VALUE="0">
    
    <PARAM NAME="AllowNetworking" VALUE="all">
    
    <PARAM NAME="AllowFullScreen" VALUE="false">
    
     
    
    <embed src="/images/flash/menu_flash.swf" width="250" height="250" play="true" loop="true" wmode="transparent" flashvars="section=a_set"  quality="high" align="" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
    
    </OBJECT>


    From there, in my actionscript, I have movie clips acting as menu buttons, all placed in one frame in each layer. The first frame on the top layer uses contains a blank keyframe and the following actionscript:



    Code:
    _root.availability.availability_anim.gotoAndStop(section);


    Each layer after that contains an instance (in this example, the instance is named "availability", which is the text of the button), that instance contains the button in an off state and and on state, and the on state contains the instance "availability_anim". In the movie clip this instance represents, there is a frame labeled "a_set".



    The idea is that if once goes to availability.php?section=a_set, it should display the rollover state of the button exactly at the label, a_set, but it doesn't.



    Any suggestions would be appreciated.

  2. #2
    I know nothing.
    Join Date
    Feb 2008
    Posts
    315
    Can you post your FLA? I'm confused as to what you'd like to do...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center