Pass url paramter to flash
Hello,
I'm trying to pass a url variable to a Flash file to
determine where to start the movie. Within the Actionscript, there
is a variable, "page=02", where I need to replace the 02 with a url
parameter. I've tried the loadVars() with no luck. Also, I tried
using the _root.pagenumber and it doesn't completely work. Any help
would be appreciated.
Jim
Hi,
I guess the issue lies within the actionscript I use to
retrieve the url parameter. I've tried "page=_root.pagenumber" and
also "page= new loadVars();" and they both didn't work properly.
I am passing it from html.
Jim
Similar Messages
-
Problem while passing url's for URLRequest() class as parameter in Flash
Hi all,
I am calling java servlets from flash using the following code[below is a sample Flash code for calling a java servlet in Flash which I am using]:
...bla ...bla
String url_String="http://localhost:8080/servlet/getViews";
var req:URLRequest = new URLRequest(url_String);
...bla ...bla
In this case, the servlet is called/working fine only in my system where the flash application is deployed & not working when I execute the application in different system using the "IPAddress" of my system.
So, What changes I need to make in above Flash code in order to call the same servlet successfully from my system and as well as from other systems?
(OR)
Is there any need to pass the servlet-url's relative instead of absolute?
If so,
How can we pass relative-path of url's in Flash? &&
Can anyone explain me with an example?
Atlast, Can anyone tell me how to change my above code to pass the url 'relative' rather than 'absolute'?
If I pass the url relatively, does my issue gets resolved?
If, Please, can anyone help me by giving solution to my problem... [Or] else, to either of my queries or both...
Thanks in advance...
I am waiting for your replies...
Srihari.ChDid you read the ActionScript 3.0 documentation I linked to in my last post?
var request:URLRequest = new URLRequest("XMLFile.xml");
Example of using absolute URL:
var request:URLRequest = new URLRequest("http://localhost:8080/servlet/getViews");
Example of using relative URL:
var request:URLRequest = new URLRequest("servlet/getViews");
If the server port (8080) needs to be specified, you could declare a variable for the server URL and use it as a parameter.
var serverURL:String = "http://localhost:8080/";
var request:URLRequest = new URLRequest(serverURL + "servlet/getView"); -
LoadVars-using send to pass a variable from flash to php
For the life of me, I've tried everything:
I've researched LoadVars on Adobe forum, used David Powers'
books, googled 'flash to php', LoadVars, etc. and tried
sendAndLoad, send, and using $_POST, $_GET, $_REQUEST.
$HTTP_POSTVARS but I keep getting this same error. any advice
please?
I have a Unix server running Apache/PHP 4 - LoadVars worked
to load name-value pairs into an array -see thread)
My goal with this simple app is to prototype being able to
pass a variable from flash to a variable in php.
Parse error: syntax error, unexpected T_VARIABLE in
flash_to_SQL.php on line 5
Actionscript 2.0 code:
var c :LoadVars = new LoadVars();
c.testing = "123FOUR";
c.send ("
http://127.0.0.1/flash_to_SQL.php","_self","POST");
php code: (I also tried $_POST, $_GET, $_REQUEST.
$HTTP_POSTVARS)
<?php
//mysql 4.1.2, php 4 , NO mysqli
ecbo $_REQUEST ['testing'];
/?>var formData:LoadVars = new LoadVars();
formData.fname = "Name";
formData.send("
http://www.website.com/flash_php.php",
formData, "POST");
<?php
$name = $_POST['fname'];
echo $name;
?> -
Get URL from which Flash was downloaded into browser
Hello buddies,
Is there any API in ActionScript to identify the URL from
which Flash was downloaded into browser?
Thanksexample (
http://www.flashkit.com/tutorials/Actionscripting/Basic/Easy_to_-Tiran_Da-674/index.php): -
Flash QA: How to extracting all URLs in a flash file
As part of performing link validation on web sites, there's
no obvious way to enumerate all URLs in all flash files for link
validation. Of course I can open each flash file and review the
each actions pane, but that is slow-going.
How can I do this -- or what are best practices in this
arena?I don't know, I always suppress the html output since the
html it generates isn't W3C-valid in any context I'm designing. I
use swfobject for my flash files -- thanks for the idea, though!
Does it enumerate all URLs that are embedded in a flash file's
actionscript? That seems like it can get rather data-heavy? -
Trouble Passing URL Parameters between Applications
Hi All,
I am having trouble Passing URL Parameters between Applications for BW queries as data sources. I know I am getting the data from the sending application correctly, because I an printing to the screen using a Text Component.
Date From: 1/1/2008
Date To: 3/14/2014
Here is the code from the sending application On Select :
"http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
+ DS_1.getVariableValueExt("ZPORDAT3") +
+ DS_1.getVariableValueExt("ZPORDAT5"));
Here is the code from the recieving application Global Script Variable"
Xv_DateFrom String True
Xv_DateTo String True
Here is the code from the receiving application On Startup"
DS_2.setFilter("0CALDAY",[Xv_DateFrom, Xv_DateTo]);
When I click the results of the sending Application the popup window opens for the receiving application but I get all the records for the BW receiving query, it does not restrict to the values in ("ZPORDAT3") 1/1/2008 and ("ZPORDAT5") Date To: 3/14/2014.
So, I would expect it is my receiving code, but I am not sure.
Hope you can help?
NormanHi Norman,
As Jörg said, please put "&" before each of your variable names at your url. For the second part,I didn't try it for date intervals but keep in mind just in case:
APPLICATION.openNewWindow("http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
"&Xv_DateFrom=" + DS_1.getVariableValueExt("ZPORDAT3") +
"&Xv_DateTo=" + DS_1.getVariableValueExt("ZPORDAT5"));
Here is the code from the recieving application Global Script Variable"
Xv_DateFrom String True
Xv_DateTo String True
Here is the code from the receiving application On Startup"
DS_2.setFilterExt("0CALDAY", {"low": Xv_DateFrom , "high " : Xv_DateTo});
Best regards,
Onur -
Why would certain users not be able to open a mail to url from a Flash swf on my website?
Why would certain users not be able to open a mail to url from a Flash swf on my website?
1. Because they're using Android or iOS and can't see the Flash container.
2. Because they have Flash Player, but NOT Shockwave, which works for Interactive content like games and links in Flash containers.
3. ActiveX controls are blocking Flash content in IE.
4. Any of about a dozen other things.
As a web desginer since 2003, I can tell you that these days, it's a terrible idea to have Flash content in a website (outside of games that require it). Video should be HTML5. Navigation, content and other links should be HTML, CSS and/or Javascript ONLY, because placing them in a Flash container makes them invisible to literally half of your viewers or more, since SmartPhones can't and don't see Flash, and tablets don't either without special browsers, which may or may not work with embedded links. -
hi
can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
zulfiqarHi,
Try using a lexical parameter(&parm_1) for a string of values or a bind parameter(:parm_1) for a single value
Thanks,
Kimosabe -
How to set two FMS URLs in Adobe Flash Media Live Encoder
Hello Folks,
Just wondering if anyone can give me any details on how I can set two Flash Media Server URLs on Adobe Flash Media Live Encoder to share one camera but stream it to two servers.
Thank you.Put both URL's in the two FMS url's fields, primary/backup (its just naming, the "primary" and "backup", it could be named FMS1 and FMS2 as well)...
Same stream name... -
Passing URL parameters to WD application
Hi!
To pass URL parameters to WD application I currenly inbound plug 'defauld' (of type 'Startup') of main window. I use following code:
types:
begin of param_t,
name type string,
value type string,
end of param_t.
data: params type standard table of param_t.
data: param like line of params.
wdevent->get_data(
exporting
name = '_ALL_URL_PARAMETERS'
importing
value = params
It works fine but this plug is called after init methods of the component controller an of the view. So if I want to do something with parameters, I must do in this plug.
Is there way to pass URL parameters in a WD app. so that they were available from the very beginning of the application work i.e. in init method of the component controller etc.?
Thanks!I had the same requirement too. There are a couple of threads on the subject as well, I've posted in one of them but had no answer:
Re: Read URL Parameters programmatically
The workaround i've used is this, it's definitely not as neat as I would like to since you end up having two initialization methods per controller, WDDOINIT and the one you create (for each controller you want to run code in using the received parameters). Nevertheless, it works:
1) Create an event in your component controller, for example INIT_COMPLETED.
2) Define a new method in your component controller, e.g. INIT_AFTER_WINDOW. This method receives an Importing parameter TYPE tihttpnvp. It uses this received HTTP parameters for the initialization logic and finally raises the INIT_COMPLETED event (This is the method that "replaces" WDDOINIT).
3) In the Window's Inbound plug handler, you get the HTTP parameters (with wdevent->get_data) and afterwards call the method WD_COMP_CONTROLLER->INIT_AFTER_WINDOW (maybe you need to declare the usage previously in the Window to have the reference available).
4) Finally, if you need some of the Views to be initialized afterwards the component controller's INIT_AFTER_WINDOW runs (for example to show some initialization messages), you'll have to replace the WDDOINIT method with an INIT_AFTER_COMPCTRL method and subscribe it to the component controller's INIT_COMPLETED event.
I hope you got the idea, and more importantly, that we get some cleaner solution from SAP for achieving this in the future.
Regards
Edited by: Alejandro Bindi on Nov 6, 2008 10:08 PM
INIT_AFTER_WINDOW is the method to be called on step 3 -
Why cann't I open this URL of NAC flash demo?
Hello,Guys
why cann't I open this URL of NAC flash demo,Error appears under the web when I open
Url:http://www.cisco.com/cdc_content_elements/flash/nac/demo.htm.
It is error all the same after I installed flash player.How do I open this Url.
Thank you!
Respests!
Min QuantUsually there is no need to install a flash player to view a flash presentation in a website as browsers altready have support for them. However if the flash needs some advanced features then the website will prompt for downloading the required version.
In your case you may try to uninstall the software and then try to open the URL to view the demo. If it doesnot works you may download the latest version and get certain other information from this link
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15511
If nothing works then you can try using a diffrent browser (eg Firefox or Opera if you are using IE). -
Pass URL parameters from BSP to WDA for ABAP (via Post )
Dear Gurus,/ Joerge,
I am unable to post my Code here, but with the guidance provided by Joerge i am able to solve this
i Have been through the Below thread
Pass URL parameters from WD to BSP via Post
Dear Gurus,
"Since I am unable to Post new thread i am Continuing this thread, though this Issue has been
" resolved,i need some more info on the following issue, Kindly guide me,
I have gone through the below thread but left with no clue
Pass URL parameters from WD to BSP via Post
Here i have 2 Issues
First one is --->
" After pressing the Button I am calling this URL which is WDA for ABAP
action="http://company/sap/bc/webdynpro/sap/zuser"> " I am calling WDA for ABAP URL here
" Kindly guide me how to pass the Value
Second one is -->
" This value need to be passed to the URL above and
" How to capture the Same in WINDOWINIT method of WDA for ABAP
" And how to Capture this Value in Webdynpro INIT method
"Here am using Form and method = post , I am removing this as it is causing some problem while posting
action= my WDA For ABAP URL here " I am calling WDA for ABAP URL here
" Kindly guide me how to pass the Value
" This value need to be passed to the URL above and
" How to capture the Same in WINDOWINIT method of WDA for ABAP
Thanks and Regards
Ramchander Rao.KHi,
let me see if I understand you well.
BSP -
You wrote the code for catching the user name in the event OnCreate, which means that you know who´s working with the BSP application when it starts.
Somewhere you must have a button or something with text like "Call WDA application". When user presses the button, it triggers events OnInputProcessing. Here you must write the code for the cookie that "sends" the parameter(s), something like:
CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
EXPORTING
name = 'MY_COOKIE'
application_name = 'ZUSER_NAME_GET'
application_namespace = 'ZUSER_NAME_GET'
username = sy-uname
session_id = 'SAME_FOR_ALL'
data_value = PAGE_DATA
data_name = 'PAGE_DATA'
EXPIRY_TIME_REL = 3600.
you call then the URL for the WDA application.
WDA -
probably in method WDDOINIT of the component controller you´ll write the code for reading the "content" of the cookie:
CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
EXPORTING
name = 'MY_COOKIE'
application_name = 'ZUSER_NAME_GET'
application_namespace = 'ZUSER_NAME_GET'
username = sy-uname
session_id = 'SAME_FOR_ALL'
data_name = 'PAGE_DATA'
CHANGING
data_value = PAGE_DATA.
read more about the cookies in SDN, because I am not sure if this is the correct example for transmiting values. I´ve used it in conjunction of instructions IMPORT and EXPORT for transmiting an internal table.
if this is not working properly, then try with IMPORT TO MEMORY and EXPORT FROM MEMORY. -
XSL Var definition- passing URL to call a BSP application
Hi all,
I have a problem with XSL. I pass an url into a 'var', which then calls this url depending on the particular condition.
It all works fine.
Now the thing is I want to pass one more parameter in the var, I dont know how to append this to the previous paramter.
Can anyone help!
Regards,
Bharat
Message was edited by: BharatHi,
there´s a proper forum for BSP applications but I can tell you that I pass parameters in the URL like this:
http://www.mywebsite.com/index.htm
?param1=value1+param2=value2 -
Web Dynpro iView - how to pass URL parameters?
I have a Web Dynpro application that is housed in the Enterprise Portal. We have a requirement where we need to provide an external link to the iView/Web Dynpro component - for the sake of this discussion, assume it's email. As part of this URL link, we need to pass a parameter that will cause the Web Dynpro app to fetch some data.
The Web Dynpro has a startup plug parameter - call it 'id'.
I can invoke the Web Dynpro application directly, and pass the id paramter on the URL - the application can see the parameter just fine. However, when I try and do the same via a Roles-based URL, the parameter does not survive. I've tried two different methods:
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview&id=1234
and
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview!26id=1234
neither of which work.
is there a way to do what I'm trying to do? Note that the 'id' paramter is dynamic - I can't code it in the Web Dynpro iView configuration.Hi,
please try the following:
http://host:port/irj/portal?NavigationTarget=ROLES://path/to/iview&DynamicParameter=<encode(id=1234)>
The value of the DynamicParameter value must bei encoded.
For details please have a lool to
<a href="http://www.sap-press.de/katalog/buecher/titel/gp/titelID-1078">this</a>
This book will be also available in English soon.
Best regards
Jochen -
I'd like to pass a variable from php to flash....the first
example below shows what works .....the second example shows what
i'd like to do but can't for some unknown reason. I think example#2
is possible because i've seen similar code all over the internet.
something is just wrong and i can't figure it out. please help me
use a php variable as part of the url string.
example #1
<?php
echo "&valid=1&;
?>
flash output is 1
example#2
<?php
$filename = "hello";
echo "&valid=$filename";
?>
flash output is $filename'';found the answer its
....echo"&valid=".$filename;....................the movie must
be played from and html page uploading the .swf onto the webserver
and testing it gives the output of $filename;.....but if i hit f12
and create an html page with a refrence to the .swf it works
great.....BTW i'm not saying your php doesn't work i just haven't
used it.
Maybe you are looking for
-
No more details, just how do I fix this so I can print! It happens everytime I try to print a webpage, I usually have to copy the link and print from Explorer.
-
Exception message not thrown back to the page
Hello All, I have a servlet that listens for some data. Everything works perfectly if the data is intact. I do a whole bunch of processing on the data and verify its integrity etc... HOwever if something is wrong, my app throws an exception and I cou
-
Its about time for me to get a new macbook. I'm looking at getting a new pro. Either a 13 or 15 inch. Is the intel i5 that much better than the core 2 duo? I do some things with creative suite, imovie, and iweb but thats about it other than standard
-
COMPUTE_POW_DOMAIN DUMP
Hi All. Could you please suggest the below Dump error. Runtime Errors COMPUTE_POW_DOMAIN Exception CX_SY_ARG_OUT_OF_DOMAIN Error analysis An exception occurred that is explained in detail below. The exception, which is as
-
Trying to update Macbook Pro to latest 1.3 Firmware
I'm trying to update my Macbook Pro to the latest 1.3 firmware to fix the random unresponsiveness of the touchpad and keyboard. I download/install the update, but when my computer restarts it still says I need to update the firmware and it the issue