Flash variables in AW
I have developed more than 200 learning objects with AW 7.0
which are distributed on a CD.
I tried some weeks to develop a flexible good looking menu
(reading a xml structure) with AW. Because I couldn’t manage
it I gave an order to a Flash expert to develop the menu with flash
8.0.
My question is: How can I use a variable from flash in my AW
file? If a user selects a program in the flash menu I must know it
in the AW for using the "jump out" to an A6r file.
How can I do this?
If it is not clear what I mean I could send the AW file with
the flash menu.
Best regards from Austria
Isn't Flash 8.0 going to be a problem in AW using the Flash
Asset? I thought
Flash 8.0 came out after AW 7.x, and you must either compile
your Flash
movie in an earlier version (6?), or use the Flash ActiveX
control or the
Browser ActiveX control?
Paul Swanson
Portland, Oregon, USA
"Steve Howard **AdobeCommunityExpert**"
<steve@$NoSpam$tomorrows-key.com>
wrote in message news:em94os$2vg$[email protected]..
> >I have developed more than 200 learning objects with
AW 7.0 which are
> > distributed on a CD.
> > I tried some weeks to develop a flexible good
looking menu (reading a
xml
> > structure) with AW. Because I couldn?t manage it I
gave an order to a
> > Flash
> > expert to develop the menu with flash 8.0.
> > My question is: How can I use a variable from flash
in my AW file? If a
> > user
> > selects a program in the flash menu I must know it
in the AW for using
the
> > "jump out" to an A6r file.
> > How can I do this?
> > If it is not clear what I mean I could send the AW
file with the flash
> > menu.
>
> Have the Flash file send GetURL message to Authorware.
Authorware can read
> the message using an Event response.
>
> Check out the Flash Asset help. Insert a Flash Asset
sprite, and press the
> Help button on the dialogue that appears.
>
> Steve
>
>
> --
> EuroTAAC eLearning 2007
>
http://www.eurotaac.com
>
> Adobe Community Expert: Authorware, Flash Mobile and
Devices
> My blog -
http://stevehoward.blogspot.com/
> Authorware tips -
http://www.tomorrows-key.com
>
Similar Messages
-
Flash Variable is not working in Ipad
Hi Experts,
I'm facing with an issue, could you please suggest me your valuable suggestions.
I have created Two dashboard (Example names A1 and B1), I need to open the dashboard B1 without asking credentials, when I select an Image in A1.
To work in such a way, I have created a flash variable and pointed the range to cell J1.
I have placed a URL button on top of image in Dashboard A1. I have copied following URL in a cell, and this URL I have pointed to URL Button.
URL= (="../../../Xcelsius/opendoc/documentDownload?iDocID=M1TVABCADjs2AHoAlg123AAgoBpgwAAAA&sIDType=CUID&CELogonToken="&J1)
Opening B1 dashboard from A1 is working fine in desktop and in Android tab, but it is not working in Ipad. Not working in Ipad in the sense a new browser window is opening with empty page.
I have tested in another way like, passing opendocID and Flash variable to the URL button, It is working fine in Ipad but asking for the credentials.
Experts could you please suggest me some solution.
Ipad is Ipad2 and BO Version is 4.1 SP4.
Thanks & Regards
Karthik MHello,
You hyave to use the special flash variable "CELogonToken"
Would request you to check http://scn.sap.com/docs/DOC-36362 this is a SCN document
with title "Step by step way to create parent child dashboard in BI 4.0/4.1 using flash variable".
SWF loader is not supported for mobile.
Best regards,
Mohamed AISSA. -
Pass flash variables to server - the best way?
I am using URLVariables at the moment to pass flash variables to the server via php script and update a database rows.
var variables:URLVariables = new URLVariables();
At the moment around 9 variables are sent which are then updated in the mysql db.
I have read that calls to the database via php are the main source of traffic or at least one of them. I am talking about 100 - 500 concurrent users.
Obvously I am going to need expert help medium term but I would like to give things a go myself.
I have read about amfPHP but I don't seem to understand it too well.
Also, I can cut down the amount of php calls per user as I have them all over the place for lots of games and mini exercises.
BUT is it possible to get those nine variables into an object and pass the object. Would one object be faster than passing 9 variables and would that object be placed into one cell of the mysql databse.
What would that look like? At the moment I can read my db easily but if there is an object in there, how do you read that?
Is that what serializning is? Passing an object and all the data is converted to binary etc...
As you see I'm a little lost.
Thanks in advance.Just my two cents.
URLVariables is one of the ways to construct url query. There is no difference in doing it either way (second way is faster):
var request:URLRequest = new URLRequest("http://www.google.com/page.html");
var variables:URLVariables = new URLVariables();
variables.var0 = 3;
variables.var1 = "blah";
request.data = variables;
sendToURL(request);
OR JUST
sendToURL(new URLRequest("http://www.google.com/page.html?var0=3&var1=blah"));
I guess object serialization will be less efficient because, I suspect, it will be a larger string and it is much more processor intensive of both Flash and server side.
I also suspect that http servers have a very efficient way to parse and process requests and variables that come with it - after all this is server's first and the most important duty.
My point is that I don't believe there is anything better than sending data with query string unless there is a need for obfuscation.
As a proof - the fact that large volume and frequent updates sites like advertising servers never use anything but plain old query strings attests to the above points.
As far as DB updates speed goes - it has nothing to do with the means info is sent but rather is a consequence of server and DB performance aspects. It's just a matter of money :-) -
Using Flash Variables in Excelsius
Dear Experts.
I have a dashboard in Xcelsius which has multiple sheets(60 Sheets) where navigation to every other page is done using the push buttons " Back and Next ". This functionality is working fine without creating any issues. Now, the customer wants to print the various sheets at one shot. But, this functionality cant be incorporated in Xcelsius as we can print only one sheet at a time. Hence they decided to use Crystal reports to build the whole functionality again. Now, i thought of a solution where, if we could pass Flash variables for the push buttons from Xcelsius to Crystal reports 2008 and embed this particular SWF into CR, then we could somehow build these different sheets in CR and get the print out at one shot.
Please give me tips on how to use the Flash Variables both in Xcelsius and Crystal Reports.
Thanks in Advance,
KishanHi:
1. For configure flash var under Xceslius designer:
1.1 Open xceslius.
1.2 Click "Manage Connection".
1.3. Choose "Flash Variable".
1.4. Create variable and give name and binding to excel range.
1.5. Export to swf.
2. Consume flash var under crystal report 2008
2.1 Open crystal report.
2.2 Click "Insert Flash Object".
2.3 Browser the swf you just created and add it into crystal report designer.
2.4 Right click the flash object and right click your mouse.
2.5 Choose "Flash Data Expert..."
2.6 Click "+" button to add flash variable. and input your custom data. (note the flash variable name should be the same with defined in swf) -
Flash variable being overridden by hidden value?
--I am doing something painfully simple - My dashboard has a single-cell flash variable; the site. It is located in A1 on the only sheet in the workbook and is a named range/cell. I have gone into connections and set up the Flash Variables connection, pointing it at that named cell. The cell was originally prepopulated with a default value, but that has been cleared and the cell is now empty.
The problem is that when I try to pass my flash variable, using the simplest of all possible HTML, the dashboard immediately switches back to the original default value. NOTHING I pass it will override this value; If I pass it another site name it ignores it.
What should I be looking for here? Is there somewhere that it takes a default entry for the flash variable (other than the field)? If so where? Could it have tucked that default away in a corner somewhere? If so where and how do I get rid of it?--
Nevermind - someone had pulled a selection object off to the side of the page and it was hidden. Found and removed.
Edited by: misanthropic777 on Feb 27, 2009 12:13 AMPost Author: thomas krupa
CA Forum: Xcelsius and Live Office
well, i tried to get the work around mentioned in your link to run. however i get a "document.myMovieName.flashvarobj is not a function" error. i also googled for "flashvarobj", but the one result that is return was of no help either.i am using flash 9, this is my html code<HTML><HEAD><TITLE>test.swf</TITLE></HEAD><BODY><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" WIDTH="800" HEIGHT="600" id="myMovieName"><PARAM NAME="movie" VALUE="test.swf"> <PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="play" VALUE="true"><PARAM NAME="loop" VALUE="true"><PARAM NAME=bgcolor VALUE="#FFFFFF"><EMBED src="test.swf" quality=high bgcolor=#FFFFFF WIDTH="800" HEIGHT="600" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" play="true" loop="true" PLUGINSPAGE="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT><script> document.myMovieName.flashvarobj("sessionID", 123); document.myMovieName.flashvarobj("Range_0", 41); </script></BODY></HTML> -
Disabled Flash Variables u00BFWhy?
Hello, I can't use the Flash Variables Xcelsius 4.5.
The window of "Export Setup" has disabled this options. How I can enabled this options or use it?
Can you help me?
I show it on a imageshak link: [http://img338.yfrog.com/img338/4074/errorvariablesflash.jpg]
Thank you very much.bumblebea wrote:
> My husband disabled flash player in control panel, under
Add/remove and I don't
> know how to enable it again, PLEASE HELP! I don't know
alot about computers, so
> will you try to explain it simply. Thanks
Your husband did not disabled the player, he removed it.
The only way to get it back is to install it again.
go to this website, it will detect your browser and direct
you
to appropriate download page :
http://www.adobe.com/go/gntray_dl_getflashplayer
Regards
Urami
Happy New Year guys - all the best there is in the 2006
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
JAVA writing a Flash variable?
Hi all,
This is my first post here (I'm a photoshopper)! I am trying
to get JAVA to see and then write a flash variable. It's a simple
thing - I think. I am running SlideshowPro which outputs a variable
my AS code:
var ImageNumber = new Object();
ImageNumber.onImageData = function(eventObject):Void {
trace(eventObject.data.number);
my_ssp.addEventListener("onImageData",ImageNumber) ;
So I have the variable (checked in the output window), now
how do I get JAVA within the HTML that the .swf is embedded to see
and then write the var (ImageNumber)?
I have really tried hard to find this answer and understand
it. Help my little brain - please.
Thanks for any reply,
CraigHi Wilburwu,
thank you for posting your question here at the National Instruments forum. This behaviour sounds strange.
Which NI cRIO-Driver Version are you using?
Where are the shared variables hosted at?
Best regards
MarianO -
Hi I'm wondering how to use flash variables with director mx
2004 or 11. What I need to do is open external photo from my app
(cd-rom). I try with fileXtra4 to launch the external photo but I
dont know how to tell director to launch the selected image wich is
call (selectImg) flash variable. It normaly refering to something
like that: "2E-AF3-IMG1.jpg" depending of selectImg value. I found
this script on the net but to make it work with a variable instead
of a specific file name.
instance = new(xtra "filextra3")
result = fx_FileOpenDocument(instance,the moviepath &
"Img_2.jpg") <-- replace Img_2.jpg by selectImg (Flash
variable).
if result = 0 then alert "Sorry, no app is on the system to
open JPEG files"
thanx Normally I use getUrl in flash but within a director
projector it's not working.Good I finaly manage to make it work.
I was using sprite("Rapports").selectImg and its doesnt work.
If I use sprite(1).selectImg it work. Seem to only work with
sprite number
heres the code.
on AGRANDIR
global gAgIMG
gAgIMG = sprite(1).selectImg
instance = new(xtra "FileXtra4")
result = fx_FileOpenDocument(instance,the moviepath &
gAgIMG)
if result = 0 then alert "Désoler aucune application
associée aux fichiers JPEG est présente sur votre
ordinateur."
end -
Updating Flash Variables with JavaScript
I am looking to update a Flash Variable that I created in my Xcelsius Component by using JavaScript.
I would like to know if this is possible and if so an example would be great.
Thanks in advanceHi Christopher,
This is possible. To get a brief idea of what FlashVars look like in the HTML:
1) In Xcelsius, add a FlashVar connection and bind it to a range
2) Export your project to HTML
3) Open the HTML in notepad and notice the FlashVar properties in the Object and Embed tags.
Basically your JavaScript will control the variable that go into your FlashVar parameters. I have attached a basic example for you.
In this example, the value input updates the flash variable which is linked to the gauge component.
Best regards,
Jon Teopaco -
Using Flash variable in Javascript problem
I want Flash to load a rss feed and hand it to Javascript
which will do the parsing and rendering. AFAIK Javaswcript can't
load external documents and include them into the current html page
for some security reasons. So I try this approach.
I attached the code I have. My Problem is that Flash does
pass the variable to javascript but the document.write overwrites
everything else in the current html document.
I don't want to work with popups for obvious reasons. The
variable must be included in the _current_ document.
Can anyone give me a hint how to get this working properly?What is happening is the XML file is getting cached by the browser.
There are a few different ways to fix this, but this is what I have found to be the easiest.
In the Actionscript, where the call to load the xml is, append a random string to the end of the call.
so:
(This is AS2 code - so a conversion is necessary if using AS3)
myXML.load("http://path/to/xml.xml?r="+Math.round(Math.random()*99999999999999999999999999999999999999999999999));
What this will do is tell the browser that you are calling a unique file every time you try to load the xml, which will forcefully bypass the cached version. -
Passing Flash Variables to ASP
Hello everyone,
New problem, I even read other peoples posts. I am working on
a program that would send a subject to an .asp form, but the
subject line doesn't want to pass.
The code that I have in my flash program in the last frame
is:
mySendVars = new LoadVars();
mySendVars.Subject = "Subject Line";
mySendVars.send("mail.asp", "_self", "POST");
It is to open the mail.asp form, which it does, but alas, no
subject line.
The script that I have to accept the subject line is:
<% @Language = "VBScript" %>
<%
Option explicit
Response.Buffer= true
Response.Expires = -1441
Session("Email")=("[email protected]")
Session("Subject")
%>
<html>
<head>
<title><% Response.Write (Session("Subject"))
%></title>
<link rel="stylesheet" type="text/css" href="l.css">
<script LANGUAGE="JavaScript">
code to process if the form is filled out properly
<p align="center">You have successfully completed the
<% Response.Write (Session("Subject")) %>Program.
To do the evaluation<a href="otherprogram.asp">click
here</a>.</p>
The evaluation also opens, but there is no subject
line....which isn't a surprise if the subject variable isn't
passing.
Any help would be appreciated!
Thank you all in advance!I'm working on a similar problem where the asp script won't
send the email body. What I'm wondering about your problem is
whether the way you specify the subject ("Subject Line") is an
instance name or variable of the text field. The asp script I'm
using utilizes instance names.
So my question is, do you have the subject text field named
properly in your Flash movie? -
Pass Flash Variables To Javascript, How????
How can I pass variables to be used on the page the flash is embed?
See ExternalInterface:
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInter face.html
Create a JavaScript method which handles the variables flash sends out.
ExternalInterface.call('JavaScriptMethod',arguments); -
Accessing Flash variables in MCs (not global)
Hello,
Just to make sure : you can't access variables that are in
movieclips,
can you ?
I suppose I need to write get/set function whithin Flash to
alter those
variable ?
Thanks
PJ> you can't access variables that are in movieclips,
> can you ?
I /think/ you can, and that it's a matter of addressing the
clip and
variable properly. For example:
put sprite(1).myClip.myVariable
would suggest that sprite 1 points to a #flash cast member
which has a
movieClip in the _root timeline named myClip which in turn
contains a
variable named myVariable -
Hi example #1 pulls data from a php script into
flash.........my problem is i can't access that data from anywhere
else in the script...........I'd like to somehow make.....username
= myLoadVars.valid; ....variable global.....or make the php data
global so i can access the data from anywhere within the flash
script.
I've tried alot of ways to accomplish
this...._global.....var.....trace from outside the onload
function......every which way you can think of but I always get a
trace output of undefined.......or the data isn't
accessible....Please help...i've given it my best effort.
example#1
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.onLoad = function( success ){
if(success){
username = myLoadVars.valid;
trace(username);
myLoadVars.load('test4.php');the script i have works for me but say i want to trace the
username variable from
the end of the current script......the below example
demonstrates what i mean and the trace output says undefined.....my
problem is I cannot access the username variable from anywhere
except inside the myLoadVars.onLoad function.
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.onLoad = function( success ){
if(success){
username = myLoadVars.valid;
trace(username);
myLoadVars.load('test4.php');
trace(username); -
Flash variables will not pass on enterFrame
I currently have the following code setup to pass variables to a flash when a button is clicked:
on click
flashSprite = sprite("videoplayer")
rootRef = flashSprite.getVariable("root1", false)
rootRef.setUpDoc(the moviePath&"xml"&dirPath¤tMovie&"_nav.xml", the moviePath&"xml"&dirPath¤tMovie&".xml", the moviePath&"Src"&dirPath¤tMovie&".f4v")
end
The code works perfectly when called with "on click" but if I take this code and put it in the behavior frame and change "on click" to "on enterFrame" it give me the error:
"Script error: Variable used before assigned a value
rootRef.setUpDoc(the moviePath&"xml"&dirPath¤tMovie&"_nav.xml", the moviePath&"xml"&dirPath¤tMovie&".xml",
the moviePath&"Src"&dirPath¤tMovie&".f4v")"
Why does it work with "on click" but on with "on enterFrame"?
Can anyone help me with this?This problem is probably related to the issue of Flash sprites not being fully instantiated on beginSprite. Delaying running your code should fix the problem. Something like the following untested code may work.
on beginSprite me
tmp = timeout().new("DelaySetupDoc", 1, #DelaySetupDoc, me)
end beginSprite
on DelaySetupDoc me, timeob
flashSprite = sprite("videoplayer")
rootRef = flashSprite.getVariable("root1", false)
rootRef.setUpDoc(the moviePath&"xml"&dirPath¤tMovie&"_nav.xml", the moviePath&"xml"&dirPath¤tMovie&".xml", the moviePath&"Src"&dirPath¤tMovie&".f4v")
end DelaySetupDoc
Maybe you are looking for
-
I want to create a form in IWeb can you help?
I need to create a form page in Iweb on my website for visitors to complete and submit back to me. A Club membership application form. Anyone able to help??
-
Lightroom 4 to Photo/Edit in Elements 10
HELP, I just loaded Elements 10 on my new Big Mac, and when I select Photo/Edit In from LR4, Elements 10 opens, but will not open the image. I've tried different settings, and have rebooted.
-
IPod formatting with windows and mac
alright fellas, I have a problem! i recently got a mac and i already had a nano, not the ones with the video; the long thin one, with photos (i think its a 3rd generation). So i do alot of transfering files between a windows computer and mac, my main
-
E-business Application cloning
Hi, I have some doubts regarding E-business application cloning. As per Oracle documents, we have to first prepare source system by executing adpreclone.pl script. I do understand, that this script captures the changes done in source system and creat
-
Lately I have been having issues exporting sequence for uploading to YouTube and other sites. A short five minute sequence can take as long as 50-60 minutes to export as Quick Time movie and the file size is enormous (last one was 280mb) which takes