How to access a variable from inside another symbol
So i did this tutorial, Leveraging Independent Symbol Timelines created by Eliane...it's rockin, btw. ;-)
All's well but now i have a symbol on the stage called mc-home. inside of mc-home is a button called btn-go.
On the stage in composition ready there's a variable sym.setVariable("current", "mc-home");
This code works for a symbol that's on the stage but, how do i get this code to work on a button that's inside another symbol that's on the stage?
var current = sym.getVariable("current");
if (current != "") {
sym.getSymbol(current).play("OUT");
sym.getSymbol("mc-something").play("IN");
sym.setVariable("current", "mc-something");
sorry, i was kind of confused myself too, don't worry about it but thanks for your patience for reading it anyway
Similar Messages
-
How to access a variable from within a symbol.
How do I access a variable set outside a symbol from within that symbol?
ThanksIf you set a variable on stage ,say
sym.setVariable("stageVariable", "I am stage variable");
You can access it from within a symbol using :
var myVariable = sym.getComposition().getStage().getVariable("stageVariable");
Basically you need to get handle to the symbol in which the variable is defined. -
How to access a variable from one program to another (independent)
Hi,
My requirement is to use a variable(value) from one program(prog1) to another (prog2). how is it possible.
Regards
Arani BhaskarGo for memory id .
passing on values from one program to another program
Program1
EXPORT (variable) TO MEMORY ID 'LOC'.
Program2
IMPORT (variable) FROM MEMORY ID 'LOC'.
LOC is the address , for more press f1 on export in abap editor. -
How to access environment variables from Oracle Forms
Hi,
Any idea how to use the Environment variables from Oracle Forms.
My basic problem is that from Oracle form I am calling Batch file which calls excel file with a macro.
So i want to check whether the macro was successful or not.
So in my batch file i will set %errorlevel% which I should be able to read from Oracle Forms.
I am able to read the registry from oracle forms, so is there anyway to read environment variable as well?
Thanks!
Avinash.Hello,
Use the TOOL_ENV.Getvar() built-in
Francois -
How to access environment variables from pluggable destination?
Hi,
I'm trying to create a java puggable destination for reports. Everything is working fine.
I want to access reports environment variables from the java code (like REPORTS_PATH and other new variables that I want to create), but I can't find anything about this in the java API documentation.
I want to use environment variables instead of destination properties (those I can easily access), because I want to be able to change context using env_id.
Any ideas?
Thanks,
LuisI'm using Oracle Application Server Version 10.1.2.0.2
Thanks -
Trying to show() and play() a symbol from inside another symbol
Hi Everyone !
I'm running into a problem which is getting me crazy.
I have the following case :
- 1 symbol (_Page_Background) containing an animation with the following trigger @0s :
// Hiding the symbol
sym.getParentSymbol().$("_Page_Background").hide();
// Stop it
sym.stop();
- 1 element (B_TOYS), inside of a symbol (BUTTONS) with the following "click" trigger :
// Showing the _Page_Background symbol
sym.getComposition().getStage().getSymbol("_Page_Background").show();
// Start playing it
sym.getComposition().getStage().getSymbol("_Page_Background").play("INTRO");
The Symbol _Page_Background starts hidden, like it should. But when I click on the button (B_TOYS), nothing happens. Although, everything was working correctly before I turned my buttons into symbols ..
I guess the problems lies with the "show()" function, because I have other buttons that work properly but they don't show/hide anything, they just play()
Am I missing something ?!
Thanks in advance for your kind help !Hi Dimitri,
Think of symbols as independent timelines that can contain other elements, or instances of other symbols. The Stage/main timeline is a symbol as well. Scripting calls are scoped to the symbol that the script is in. The keyword sym stands for the symbol that you're in with the script.
So if your script is at the same level as what you are targeting with it:
Use sym.$("elementName") to access an element's properties
Use sym.getSymbol("symbolName") to access a symbol's timeline. If there's another symbol inside that symbol that you want to access, you'd use sym.getSymbol("symbolName").getSymbol("childSymbolName")...that's only two levels deep, but you can go as deep as needs be.
If you're trying to access an element in a symbol, you'd combine these two, such as sym.getSymbol("symbolName").$("elementName")
When your script is within a symbol and you want to access an element or symbol outside of the symbol timeline:
Use sym.getParent() to get to any elements that are in the parent symbol (the symbol which contains the symbol you're calling from), which could be the Stage or could be another parent symbol
Use sym.getComposition().getStage() from any symbol level to access things at the main Stage level. You can also dive into a symbol on the Stage from any symbol using sym.getComposition().getStage().getSymbol("symbolName").
All is explained in detail here:
http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
hth,
Joe -
How to access a variable from one mxml to another mxml?
I have Vbox having Hbox in turn hbox has some components ...TextInput...
I m adding this Vbox in another mxml file....iteratively ....
I need the sum of all the enetered values in the text boxes to be displayed on the textbox in another Mxml ...
I am taking sum in a variable and want to show tha some in another file...
How can I get that variable in my resultant mxml??
TIAIn this case it is best to use custom events to pass data. Here are some resources:
http://chikaradev.com/learning/flex3/customevents/StudentsTutoringCustomEvents1.pdf
http://chikaradev.com/learning/flex3/customevents/CustomEvents3/CustomEvents3.html
http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services -
How to access (call) variables from multiple components
I have what I think is a basic task, but I cant seem to get it to work. I have a Flex project with one application. In addition to the one application, I have many components that are used in the application. These components vary from simple (a ComboBox) to complex (many sub-components). What I need to do is define a viable in one component and access it in another component. I can't seem to do this. Below is an example of how I think it should be:
Component1
<mx:Script>
<![CDATA[
[Bindable]
private var userID:int=0;
]]>
</mx:Script>
Component2
<mx:TextInput text="{Component1.userID}"/>
Any help you can provide would be beneficial.
LeeHello,
You may also want to consider using the mx.core method.
In your main application script area define all of your public variables and functions. Then from your component, you can reference these absolutely with the following syntax.
<!-- Main App -->
[Bindable]
public var userID:int;
<!-- Component -->
private function init():void {
var com_UserID = mx.core.Application.application.userID;
Using this method ensures that you will have access to any Function or variable within the scope of the project.
Kind Regards,
Dr. Ivan Alexander, Ph.D.
Sr. Applications Engineer
FlexAppsStore.com
Sun Microsystems
MySQL Enterprise Ready Partner 2009 -
Hi again Now i have another problem
i explain : on my stage i have 24 instance MC Page created at runtime (when cliked the button execute 24 instance MC Page from the library). Each of those MC Page create an xml with infos (not important), this variable_XML created is nested inside each MC Page.. From my stage i want to call each XML from each MC Page for make 1 unic big xml, then send it to the server.
So from the main stage i created a button that call each xml of each MC Page (there is a definit number of Page only 24, no more, no less). So
when the 24 instances of the MC Page are created I push there instance name inside an Array "Page_Array". Now in my function exportxml
i use get ChildByName(Page_array[number]) for find them then i can apply my method to the according MCPage.. Until here no problem, trace(dispObject.name) work. but when i try to get my variable inside the MC Page : trace(dispObject.my_variableXML), it doesnt work...Why ??
here is my function (only 1 page for this example ):
function exportxml(evt:MouseEvent):void {
dispObject=getChildByName(Page_Array[0]);
trace(dispObject.name); //trace Page1
trace(dispObject.my_variableXML);// here it dont trace the variableXML
normally if i trace(Page1.my_variableXML); , it should trace "my_varableXML" no ??when i export my movies Im so worried to see if it work that i clicked the button that trigger the function exportxml before the actual my_variableXML is created , so is normal that the code above didnt work... so all is normal and it work... sorry i will think 10 time before posting next time. promess .
-
How to access a variable from a dynamically included JSP page
I have a jsp (say main.jsp) using the following in its code :
<jsp:include page="menu.jsp" flush="true" />
I have a variable in menu.jsp which I would like to use in my main.jsp.
How do I get the value of the variable defined in menu.jsp ?
I called this variable in menu.jsp, Public, but this didnot help me use the value of that variable in main.jsp
Any help is highly appreciated.. thnks a lotI do notice the variable var1 has the value populated - in menu.jsp - (from View -->
Source in the browser) but for some reason not able to use it in main.jspI'm not quite sure of the way your jsps are structured from your code snippet but I think there is something to be aware of here that may be part of your problem, namely the difference between the include directive and the include action.
You are currently using the include action, this treats the included resource as a dynamic object - i.e. a request is sent to that resource and the resulting response is included in your page. So when you think of what there is no java variable actually included - you'll just get the resulting HTML that is generated by menu.jsp
The include directive, as in <%@include file=�menu.jsp � %>, on the other hand treats the resource as a static object. This means the actual bytes in the included resource are inserted into the including jsp and then the result of that is compiled and processed, effectively you are cutting and pasting the menu.jsp into your calling jsp. In this case the variable would be available to the calling jsp.
However this approach does bring other difficulties that may break your current code, you'll just have to try it and see what happens.
Hope that's relevant to your problem,
Matt -
How to access workflow variables from business classes?
In WLI2.1 the com.bea.wlpi.server.admin.Admin bean was useful to retrieve workflow
variables for a particular instance id.
Is there anything similar in 8.1?
We have to do the following:
In the workflow, when a particular task gets created, a user (claimant of the
task) should be able to pull the workflow xml data in a JSP. The user may update
the data from the JSP and then the updated xml needs to be saved in the workflow.
Then, onTaskCompleted, the updated xml will follow the rest of the workflow.
How to do this is 8.1?
Thanks in advance.Hi,
Pls check for setRequest/setResponse in task control and setTasksRequest/setTasksResponse
i task worker control. Hope this will resolve your issues as they have XmlObject
as parameter.
Regards
Sai
"Aparna" <[email protected]> wrote:
>
In WLI2.1 the com.bea.wlpi.server.admin.Admin bean was useful to retrieve
workflow
variables for a particular instance id.
Is there anything similar in 8.1?
We have to do the following:
In the workflow, when a particular task gets created, a user (claimant
of the
task) should be able to pull the workflow xml data in a JSP. The user
may update
the data from the JSP and then the updated xml needs to be saved in the
workflow.
Then, onTaskCompleted, the updated xml will follow the rest of the workflow.
How to do this is 8.1?
Thanks in advance. -
How to access external IPs from inside
Hello,
We have several servers that we NAT to internal IPs on the inside interface. Normally we just setup DNS on the inside to point to the private IPs.
But I have always been curious, how do you configure the ASA so a host on the inside can talk to a public IP address behind that same ASA?AAArrrrgggghhh!!! I misread the original post.
But for Karthik's suggestion to work, DNS requests would need to pass through the ASA to a DNS server in either a DMZ or out on the internet. If DNS requests do not pass through the ASA then you will need to NAT the public IP to the private IP on the inside interface in a hairpinning manner.
Keep in mind that when using DNS doctoring you would need to have an ACL permitting traffic from the internal IP to the private IP of the server if traffic is being denied to the private IP.
For NATing the public IP to the private IP on the inside interface you could do something like the following:
object network SERVER
host 10.0.0.100 (keeping with Karthik's example ;-) )
object network LAN
subnet 192.168.100.0 255.255.255.0
object network SERVER-PUB-IP
host 1.1.1.1
same-security-traffic permit intra-interface
nat (inside,inside) source static LAN LAN destination static SERVER SERVER-PUB-IP
Please remember to select a correct answer and rate helpful posts -
How to access static variable from a Thread class
Kindly help me.......
here's the code.....
class Thread1 extends Thread
int j=0;
myClass2 mc = new myClass2();
public void run()
for( int a=0;a<6;a++)
{try
{ Thread.sleep(5000);
catch(Exception e){System.out.println("Interrupted Exception");}
j++;
mc.change1(i);
} System.out.println("Thread1 executes "+j+" times");
class Thread2 extends Thread
int k=0;
myClass2 mc1 = new myClass2();
public void run()
for( int a=0;a<6;a++)
{try
{ Thread.sleep(5000);
catch(Exception e){System.out.println("Interrupted Exception");}
k++;
mc1.change2(i);
}System.out.println("Thread2 executes "+k+" times");
class myClass2
static int i=5;
public synchronized void change1(int s)
s=6;
System.out.println("New value of i:"+s);
public synchronized void change2(int s)
s=7;
System.out.println("New value of i:"+s);
public static void main(String args[])
Thread1 b1 = new Thread1();
Thread2 b2 = new Thread2();
b1.start();
b2.start();
I am unable to pass the variable i in my method call in Thread1: mc.change1(i); and similarly in Thread2:mc.change2(i);You can declare your i variable in myClass2 as public static and then simply call there
mc.change1( myClass2.i ) ; -
How to Access v$ views from inside PL/SQL?
I cannot grant select on these v$'s for users. Could someone recommned a solution for something like:
function conn_cnt(v_name in varchar2, v_stat varchar2) return number
is
p_val number := 0;
begin
EXECUTE IMMEDIATE
'SELECT COUNT(*) FROM V$SESSION WHERE ' ||
'USERNAME = :1 AND STATUS <> :2 ' ||
'AND SID NOT IN (SELECT SID FROM V$MYSTAT WHERE ROWNUM < 2)'
INTO p_val USING v_name, v_stat;
return p_val;
exception
when others then
raise_application_error(-20011, sqlerrm);
end;
Thanks.Thanks John,
but:
SQL> conn sys as sysdba
Enter password:
Connected.
SQL> grant select on v$session to <id>;
grant select on v$session to <id>
ERROR at line 1:
ORA-02030: can only select from fixed tables/views
- Zack -
How can I access JSP variables from a JavaScript function in a JSP page?
Respected sir
How can I access JSP variables from a JavaScript function in a JSP page?
ThanxYou may be get some help from the code below.
<%
String str="str";
%>
<script>
function accessVar(){
var varStr='<%=str%>';
alert(varStr);// here will diplay 'str'
</script>
Maybe you are looking for
-
Take back Year End Closing for Fixed Asset
Dear all, Is it possible to reverse a year-end closing in Fixed Asset? If yes, how to do it and what are the consequences? Users need to carry out some corrections for the closed year! Thanks for your help. Nas.
-
How to protect customization in oracle apps files against autoconfig run
Hi, how to protect customization in oracle apps files against autoconfig run. For example: Take wdbsvr.app file i have added a new dad configuration for APEX but when ever i run autoconfig it replaces all my customizations so could you please let us
-
Migrating Arch's initscripts to dash
I recently "discovered" dash and how fast it is as compared to bash. FYI, dash is "a POSIX-compliant shell that is much smaller than bash". That being said, here are some simple benchmarks which compare the speed of bash and dash using a for loop (bt
-
Slow to load applications after shut down.
Before a shut down it will take one bounce of an icon in the doc for an application to open but after a shut down it might take three or four bounces the first time then one again the next time. Is this normal?
-
ADF: Master Details Page
Hello, I have just started out trying to develop an application in JDeveloper with ADF and I am coming from a Apex/Forms/PL SQL background. I am trying to develop an online application form for our Grants program. The problem I am having is I have a