PDA

View Full Version : the param tag


actionboy
03-14-2006, 07:33 AM
hi all,

im new here

for my first question, i want to know how can i get the value of the param tag in my <object>...</object> tags

for example i have one special param i create and i want to get its value into my animation flash

i know it is possible to do because i've read one tutorial about it but i forgot it :p thanks guys

mcmcom
03-14-2006, 02:32 PM
hello and welcome to actionscript.org..

please be patient as this is FREE advice we're providing.

heres an example of using a param tag in an object tag
<object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628" id="Slider1" width="100" height="50">
<param name="BorderStyle" value="1" />
<param name="MousePointer" value="0" />
<param name="Enabled" value="1" />
<param name="Min" value="0" />
<param name="Max" value="10" />
</object>

heres more information on it:
http://www.w3schools.com/tags/tag_param.asp

you obtain the value by specifying the param value on the _root timeline in your actionscript
then assign it to a variable
for the example above (ps i know its a slider bar object tag :p)

var myVar = BorderStyle;


hth,
mcm

actionboy
03-16-2006, 10:02 PM
Thanks a lot man