Solved

Read url variable in flash 500 points Emergency

Posted on 2006-10-24
7
183 Views
Last Modified: 2008-02-01
I need to know what actionscript i need to make this happen.

here is the link:
http://ljacksonenterprises.com/test.html?month=2006

I want flash to read the value of "month"

or just read "month"

I want people to be able to click on this link from their email and it sends them to my flash site test.html and the month value show up in a text field or the word "month" show up in the text filed

0
Comment
Question by:leronj23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 13

Expert Comment

by:FLAASHER
ID: 17800529
check this .... will find ur answer there :


http://www.permadi.com/tutorial/flashVars/index.html



FLAASHER
0
 

Author Comment

by:leronj23
ID: 17800610
i really dont know how to use javascript. i need help
0
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 17800876
Hi,

here I have done a working sample for you with html and flash source.
download link:

to test, unzip all files in a folder,
run default.htm on browser with month as parameter
---------------
default.htm?month=october
-----------

NOTE: month is case-sensitive, all characters should be lowercase

Regards
Aneesh
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 34

Assisted Solution

by:Aneesh Chopra
Aneesh Chopra earned 150 total points
ID: 17800878
0
 

Author Comment

by:leronj23
ID: 17802362
i can not get it to work for me

http://ljacksonenterprises.com/test.html?month=2006

from my link above i just need it to show up in the space.
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 350 total points
ID: 17802795
i didn't have a look at aneesh's file, so if i'm stepping on toes here, i'm sorry, but it's as simple as this....

embed your swf file in the html like this (don't use the normal publish options)

<body>
<script language="JavaScript" type="text/JavaScript">
<!--
document.write ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" '
+ 'WIDTH=780 HEIGHT=195><PARAM NAME=movie VALUE="footer.swf'+document.location.search+'">'
+ '<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#CCCCCC>'
+ '<EMBED src="footer.swf' +document.location.search+'" '
+ 'quality=high bgcolor=#CCCCCC WIDTH=780 HEIGHT=195 '
+ 'TYPE="application/x-shockwave-flash" '
+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
+ '</EMBED></OBJECT>')
//-->
</script>
</body>


where i have footer.swf, simply replace it with your swf filename.

then in your flash file, access the variable via _level0.month,
so for example if you have a textfield where you want to display it then
mytextfield_txt.text = _level0.month

blu.
0
 

Author Comment

by:leronj23
ID: 17802990
Thank you both aneeshchopra, and blue-genie. You both are great.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWAY 3d Using BitMapCubeTexture 1 425
Flash being Disabled - help! 20 343
Adobe Flash Free Transform Tool 2 149
Open Source MP4 Flash Player 2 199
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question