?
Solved

getting values from flash .swf file using java/javascript

Posted on 2005-04-25
4
Medium Priority
?
249 Views
Last Modified: 2010-04-17
Hi,
I have three text boxes followed by a send button in my .swf file. On click of send button call is made to the request url mentinoed in my xml file.
The text boxes names "senderName","emailFriend1","emailFriend2".
The flash code call in my jsp is:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="720" height="920" id="celebrate6" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="celebrate6.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="celebrate6.swf" loop="false" menu="false" quality="high" bgcolor="#ffffff" width="720" height="920" ID="celebrate6" name="celebrate6" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

I need to get these text box values in my java code.
I have tried to access using request.getAttribute("senderName"),       request.getParameter("senderName") but either of them returns null.

I am in desperate need of some help as to how do I get these values in my code.

Thanks in advance,
SNahako
0
Comment
Question by:sasmitha
  • 2
2 Comments
 

Expert Comment

by:King_bob
ID: 13885247
the simplist way is to create a function in Java called XYZ(a,b,c) and call it in Flash useing Call XYZ(A,B,C), this way flash will call the function in java and return the parimeters.
0
 

Accepted Solution

by:
King_bob earned 1000 total points
ID: 13885272
a more detailed anser can be found on
http://www.flashmagazine.com/html/1024.htm
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Six Sigma Control Plans

809 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