Passing variable information to swf

I've created a flash file that imports photos from a database
where the user is able to merge the photos with a variety of photo
templates. I can pass the db info directly to the swf file with no
problem, but if I use the html file with all the related flash code
I can't seem to pass the code to the swf file. I'm not sure what
I'm doing wrong and would appreciate any help........Thanks

Thanks so much for replying. The code I'm using to pass the
information is below. The information pulls from a DB into an asp
page. Here's a url:
http://www.pixstarr.com/details_mx.asp?event_Desc=SFDR100508&img_Name=S516_DSC0204-3.jpg.
If you click the "Customize Prints" button on the left you'll see
what it does....hopefully.
It works fine if I pass the info to master.swf, but if I try
to pass it to master.htm which contains master.swf I run into
problems....Thanks again.

Similar Messages

  • Passing variables from one swf to another

    I am facing problem to pass variable from one swf to another.
    I am using loadMovie to load another swf. how can I pass a variable
    value to another swf. Can anyone help me plz? It is somewhat
    urgent.
    thanx in advance.

    first of all:
    this is the Flash Media Server and your problem is not
    related to FMS....
    second thing related to the "somewhat urgent" :
    we, users on this forum, are not there to do your job... so
    calm down otherwise no people will answer your question. This forum
    is a free support forum that community of Flash developer use to
    learn tricks and to solve problems.
    Possibles solutions:
    If the two swf are seperate you can use LocalConnection to
    establish a connection between different swf.
    If you load a second swf into the first one you can interact
    like a standard movieClip(only if there from the same domain or if
    you a policy file on the other server)
    You can use SetVariable(via Javascript) to modify a root
    variable on the other swf and check with an _root.onEnterFrame to
    see if the variable had changed in the second swf.
    * MovieClipLoader will do a better job, in your specify case,
    than the loadMovie. Use the onLoadInit event to see when the swf is
    really totaly loaded into the first one otherwise you will have
    timing issues.
    My final answer(lol) is the solution 2 with the
    notice(*)

  • How to pass Variable value to SWF file in Eclipse development

    We are creating Widget file in Eclipse by using SAP Widget Foundation .
    We included one SWF file in Widget & it is working fine.
    But we are not able to pass the values to SWF file variables.?
    How to pass variables to SWF file let us know.
    Thanks & regards

    We are creating Widget file in Eclipse by using SAP Widget Foundation .
    We included one SWF file in Widget & it is working fine.
    But we are not able to pass the values to SWF file variables.?
    How to pass variables to SWF file let us know.
    Thanks & regards

  • Passing variables / accessing other swfs

    It has been years since I used flash, so I consider myself a
    rank armature. I'm Using Flash 8 and would like the code to be
    backward-compatible to ver. 6.
    I have a big movie, with lots of images. I've comprimised the
    image quality as much as I dare, but it still takes 20-30 seconds
    to load (my client is in Paris, and claims to have the fastest
    connection in Paris, but it takes more than a minute to load it
    from there, even when loaded on his local server). I'm assuming
    that the only way to achieve a meaningful decrease in load time
    will be to split it up into smaller swf's, one mail swf, and each
    sub-page in it's own swf, and have each swf loaded only when
    needed. The fla can be downloaded here:
    cjreynolds.com/fuda30.zip
    The movie currently runs an intro animation, then when a link
    is clicked, it loads different "pages" which consist of large movie
    clips. These are contained in a MC called "pages", and are called
    by manipulating a root variable called "level" - ie: "level = 1"
    causes the MC at frame 1 of the "pages" MC to be displayed. (this
    was an existing movie that I have been tasked with modifying).
    #1 - Is it correct that splitting the individual pages into
    different swfs the only way to lessen load time? I would welcome
    any other suggestions.
    #2 - If spitting the movie up is the way to go, I'm thinking
    I need to replace the movie clips in the "pages" MC with swfs. How
    do I tell each individual page to go back to the main (intro) swf
    and load a different page? The main timeline contains animations
    that "overlay" the sub-pages, creating a transision effect when
    going from one page to the next.
    Thanks for your help - you guys (and gals) have been a great
    source of aid for me!
    joe

    Yes, _root is the wrong thing to use, and _global is never
    good practice. I
    don't use loadMovieNum - I'd use MovieClipLoader and it's
    loadClip method to
    load other swf's into target clips. You can then use
    something like
    this._parent to get to the timeline of the clip 'containing'
    the loaded
    clip.
    However, I think your best bet is to probably use a singleton
    class. That
    way you have your main movie instantiate and set variables
    within the
    singleton - then any other movies can easily create an
    instance (which will
    be the same instance since it's a singleton) and get the
    values you need.
    Simple example:
    class VariableHolder{
    private static var instance:VariableHolder;
    private var myA:Number;
    private function VariableHolder(){}
    public static function getInstance():VariableHolder{
    if(instance == undefined){
    instance = new VariableHolder();
    return instance;
    public function setVariableA(newA:Number){
    myA = newA;
    public function getVariableA():Number{
    return myA;
    So, in your main movie you'd do:
    var myVariables = VariableHolder.getInstance();
    myVariables.setVariableA(50);
    And then in another movie you do:
    var myVariables = VariableHolder.getInstance();
    var myA = myVariables.getVariableA();
    //will set myA = 50;
    Because you're using a singleton - the second getInstance()
    call returns
    just the one class instance - held in the class' instance
    variable. You can
    have any/all movies instance the class, and only one instance
    is ever
    returned... Once you wrap your head around this it's a very
    efficient way to
    pass stuff around between various movies.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Passing variables to a swf

    I'm trying to create a navigation file that is used to navigate to several applications. Each application is stored as a separate swf on the server. I need to send password data to each of the apps and I'm using the following code connect to each file and to send the password.
                var variables:URLVariables = new URLVariables();
                variables.connectionInfo = connectionPw
                var urlRequest:URLRequest = new URLRequest("http://... filename.swf");
                urlRequest.method = URLRequestMethod.POST;
                urlRequest.data = variables;
                navigateToURL( urlRequest );
    My problem is that I am unable to access the data when I am in the  connected file.I'm using
    password=Application.application.variables.connectionInfo
    but the variables are not showing up. How should I be doing this?
    Thank you!

    forty6n2,
    I tried to do the same thing, eventually after much searching
    I ran across something called flashVars. Essentially, you can pass
    values into flex and then do what ever you want with them. I
    wrapped my .swf file in an .asp page so that I could pass in the
    userID and ip address.
    Example:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    id="MiscControls" width="362" height="280"
    codebase="
    http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name='flashVars' value='myName=<%=
    Response.Write(Request.ServerVariables("REMOTE_ADDR"))
    %>&myIP=<%=
    Response.Write(Request.ServerVariables("LOGON_USER")) %>'/>
    <param name="movie" value="MiscControls.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#869ca7" />
    <param name="allowScriptAccess" value="sameDomain" />
    <embed src="MiscControls.swf" quality="high"
    bgcolor="#869ca7"
    width="362" height="280" name="MiscControls" align="middle"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.adobe.com/go/getflashplayer">
    </embed>
    </object>
    Good luck!
    - Mike

  • Pass filename as a variable to a swf file

    I want to pass a variable which will represent a filename to
    a swf file from a hypertext link in an HTML document.
    When the user clicks on the link which has
    ?variablename=filename_to_use appended to a "normal" link to a
    page,
    this variablename will be passed to the swf file.
    I've already created this target swf file to have an
    actionscript with a FLVPlayComponent with the filename hard-coded
    in the actionscript. I want the actionscript to use the variable
    representing the filename_to_use that was passed to from the URL
    line.
    The following is the actionscript that plays the flv file
    taken from the Flash Help: Creating an Application with an
    FLVComponent
    ORIGINAL VERSION:
    import mx.video.*;
    this.attachMovie("FLVPlayback", "my_FLVPlybk", 10,
    {width:320, height:240, x:100, y:100});
    my_FLVPlybk.skin = "file:///install_drive|/Program
    Files/Macromedia/Flash
    8/en/Configuration/Skins/ClearOverPlaySeekMute.swf"
    my_FLVPlybk.contentPath = "
    http://www.helpexamples.com/flash/video/water.flv";
    VERSION USING THE FILENAME FROM THE PASSED VARIABLE INSTEAD
    OF WATER.FLV
    import mx.video.*;
    this.attachMovie("FLVPlayback", "my_FLVPlybk", 10,
    {width:320, height:240, x:100, y:100});
    my_FLVPlybk.skin = "file:///install_drive|/Program
    Files/Macromedia/Flash
    8/en/Configuration/Skins/ClearOverPlaySeekMute.swf"
    my_FLVPlybk.contentPath = "
    http://www.helpexamples.com/flash/video/variable";
    I currently can play videos with this actionscript at my
    school website but must make a separate swf for each video.
    I want to be able to have one swf file that will play which
    video was passed from the link in the HTML page.
    I am using HTML page to lower the bandwidth so that users
    won't have to load a swf file to see curricular material and then
    perhaps choose a video on the topic.
    http://www.wearekennedy.com/kent/whatsup.htm
    click the link to the Spring curriculum map with resources
    and then click on e.g. The_Food_Web video
    Thank you,
    Kevin Kent
    Educator, John F. Kennedy H.S., Bronx, NY

    You can use Liskov substitution/polymorphism:
    DROP TYPE DEMO_T2
    DROP TYPE DEMO_T1
    DROP TYPE DEMO_ST
    CREATE TYPE DEMO_ST AS OBJECT
    ( ID NUMBER,
      MEMBER PROCEDURE THIS_PROC)
    NOT FINAL NOT INSTANTIABLE
    CREATE TYPE DEMO_T1 UNDER DEMO_ST
    ( OVERRIDING MEMBER PROCEDURE THIS_PROC )
    CREATE TYPE DEMO_T2 UNDER DEMO_ST
    ( OVERRIDING MEMBER PROCEDURE THIS_PROC )
    CREATE TYPE BODY DEMO_T1 AS
    OVERRIDING MEMBER PROCEDURE THIS_PROC AS
    BEGIN
       DBMS_OUTPUT.PUT_LINE('DEMO_T1');
    END;
    END;
    CREATE TYPE BODY DEMO_T2 AS
    OVERRIDING MEMBER PROCEDURE THIS_PROC AS
    BEGIN
       DBMS_OUTPUT.PUT_LINE('DEMO_T2');
    END;
    END;
    CREATE OR REPLACE PROCEDURE DEMO_PRC ( P_OBJ DEMO_ST) AS
      V_OBJ DEMO_ST := P_OBJ;
    BEGIN
      V_OBJ.THIS_PROC;
    END;
    -- TAKES AN OBJECT, NOT A PROCEDURE PER SE
    -- BUT ALLOWS THE PROCEDURE TO BE PASSED WRAPPED IN AN
    -- OBJECT
    BEGIN
      DEMO_PRC( DEMO_T1(1) );
      DEMO_PRC( DEMO_T2(1) );
    END;
    DEMO_T1
    DEMO_T2I believe that this is superior to the passing of function wrapped procedures as arguments because it is according to the intention of object orientation, whereas wrapping a procedure in a function is contrarty to the principles of good functional programming. Good practise in functional programming is to return a single strongly typed result, and produce no side effects. Since the procedure wrapped in a function is a procedure, it therefore implicitly have side effects.

  • How? Flex pass variables or call function in SWF

    Dear All:
    I am new in Flex.
    But I stuck with a problem for weeks.
    I wish to communication between Flex and Flash(swf).
    I tried to pass variable from Flex to Swf. (Call function in Swf also pass variables)
    I did some tourital on google by using SWFLoader, which works fine.
    BUT the AS code in SWF must in MAIN FRAME.
    I need put my AS code by using DOCUMENT CLASS.
    BUT when I using Document class, the method is not working.
    The flex cannot find function in Flash.
    PS.I already set main.as class as public
    Hope some one can give some hint.
    I really get a huge headache.
    Many thanks,
    Henry

    myIP wrote:
    > or perhaps more ideal;
    >
    > for(var sVar in flashVars)
    > {
    > i++;
    > //var mcName = sVar.substr(0,3);
    >
    > // create the MCs:
    > duplicateMovieClip(_root.testBut,"medium"+sVar,i);
    > _root["medium"+sVar].testText.text=sVar;
    > _root["medium"+sVar].mcName = sVar.substr(0,3);
    >
    >
    > // assign the function to each created MC:
    > _root["medium"+sVar].onRelease = function()
    > {
    > trace(this.mcName)
    > _root[mcName]._x=0;
    > }
    > }
    >
    thanks but this does not work.
    I think that the problem is that the variables defined in the
    for loop do not exist in the scope of
    the function.
    when the MC is clicked, and the onRelease function says:
    _root[mcName]._x=0;
    the variable "mcName" is empty.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

  • Passing Captivate Variables to Embedded swf

    Hello,
    How can i read a captivate variable in embedded swf file like cpInfoCurrentSlide;
    Thanks

    var cpRoot:Object = MovieClip(root);
    var mainmov:Object = MovieClip(cpRoot.parent.root);
    mainmov.cpInfoCurrentSlide
    mainmov.rdinfoCurrentSlide
    Some things only work with the old rd variables.
    This works for 6 and 7, I haven't tested on 8 yet.

  • Can I pass variables in the URL string?

    I am trying to get some variables into a loaded swf at
    runtime. The variables will carry information so the swf can load
    the correct xml file. I thought we could pass them through the URL
    string like so:
    new URLRequest("testing.swf?myVar=varOne
    but it just throws an URL cannot be found error. How can I
    get variables into my swf at runtime?

    What you are doing is fine. But you will always get that
    error when testing
    the movie (Ctrl+Enter). Try it in a browser and it should
    work.
    BTW, another way of doing the same is to use a URLVariables
    object, like so:
    var req:URLRequest = new URLRequest("testing.swf");
    var vars:URLVariables = new
    URLVariables("myVar=varOne&myVar2=varTwo");
    req.data = vars;

  • Pass Variables into AS3 through Query String?

    Man! I've been searching ferociously and can't seem to find a solution that works for me. I am trying to pass variables via query string on a PHP page to Flash, and then have the swf add movie clips to the stage depending on the information it receives.
    Here is what the PHP outputs:
    swfobject.embedSWF("flash/detailScore.swf?a=0-0&b=0-0&c=30-54&d=30-20&e=42-18", ...
    And here is my AS3 code:
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);
    The addTheResults function takes the coordinates, adds a MC instance to the stage and positions it accordingly.
    var colorMCArray:Array = new Array();
    function addTheResults(val,colnum:Number){
    if(val == null){val = "52-46";} // so I can test it locally
    var daColor:String;
    switch (colnum){
    case 1:
    daColor = "f3951c";
    break;
    case 2:
    daColor = "74b47d";
    break;
    case 3:
    daColor = "436494";
    break;
    case 4:
    daColor = "9b74ac";
    break;
    case 5:
    daColor = "b43d44";
    break;
    var dash:int = val.indexOf("-");
    var lateral = val.slice(0,dash);
    var vertical = val.slice(dash+1);
    lateral --;
    vertical --;
    // adding the MC instance
    var comm:tileB = new tileB();
    comm.name = "comm"+colnum;
    addChild(comm);
    colorMCArray[colnum] = comm;
    //Change the color
    var colorTransform:ColorTransform = colorMCArray[colnum].transform.colorTransform;
    var thiscolor = "0x"+daColor;
    colorTransform.color = thiscolor;
    colorMCArray[colnum].transform.colorTransform = colorTransform;
    colorMCArray[colnum].x = 5;
    colorMCArray[colnum].y = 536;
    colorMCArray[colnum].x += (lateral * 9);
    colorMCArray[colnum].y += (vertical * 9)*-1;
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OVER, btnro);
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OUT, btnrout);
    I don't know what I'm doing wrong here.

    Was this the "e" in the code below you were pertaining to as the culprit? "e" is not a keyword. It's just the shortcut for the word "event" for the variable name of type Event which is the Event object that triggered the call of function loaderInfoSh. In your code you assigned e = myQueryString.e which should have given you a type mismatch error.
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);

  • OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.

      How to pass variable from one prompt to another prompt in dashboard page.
    I have two prompt in dashboard page as below.
    Reporttype
    prompt: values(Accounting, Operational) Note: values stored as
    presentation variable and they are not coming from table.
    Date prompt values (Account_date, Operation_date)
    Note:values are coming from dim_date table.  
    Now the task is When user select First
    Prompt value  “Accounting” Then in the
    second prompt should display only Accounting_dates , if user select “operational”
    and it should display only operation_dates in second prompt.
    In order to solve this issue I made the
    first prompt “Reporttype” values(Accounting, Operational) as presentation
    values (custom specific values) and default presentation value is accounting.
    In second prompt Date are coming from
    dim_date table and I selected Sql results as shown below.
    SELECT case when '@{Reporttype}'='Accounting'
    then "Dates (Receipts)"."Acct Year"
    else "Dates (Receipts)"."Ops
    Year"  End  FROM "Receipts"
    Issue: Presentation variable value is not
    changing in sql when user select “operation” and second prompt always shows
    acct year in second prompt.
    For testing pupose I kept this presentation
    variable in text object of dashboard and values are changing there, but not in
    second prompt sql.
    Please suggest the solution.

    You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.

  • Using query strings to pass variables...

    I'm trying to use the query string method to pass some
    variables into a SWF, but I can't seem to get it to work. All of
    the documentation I've seen references the object/embed method for
    displaying the SWF, but I'm using Dreamweaver's
    AC_RunActiveContent.js method to display the SWF. Would this cause
    a problem for the query string?
    Here's what I'm trying in the HTML that houses it:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    <link href="../bk.css" rel="stylesheet" type="text/css"
    />
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','301','height','240','src','videoplayer','quality','high','pluginspage','http://www.ma cromedia.com/go/getflashplayer','movie','videoplayer'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="301" height="240">
    <param
    name="movie" value="videoplayer.swf?vid=dbc2006" />
    <param name="quality" value="high" />
    <embed
    src="videoplayer.swf?vid=dbc2006" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="301"
    height="240"></embed>
    </object></noscript>
    </body>
    </html>

    I've been doing a little research... not being a programmer,
    I'm a little out to lunch on this stuff. I now realize that what I
    put in the HTML page is meaningless, unless the viewer's browser
    won't use JavaScript.
    I now know that I need to define my variables in the HTML
    page, and have the .js file recongnize and use them.
    That's where my lack of knowledge really gets in the way. :)
    Does anyone have any thoughts on how to modify the .js file to put
    my "?vid=dbc2006" into the string?
    Thanks!

  • Passing variables frm xsl to a java method

    here is my current frustration -- aside from being new to java and xsl...
    i have an xml message (that is passed to me from another process) as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <WillsXMLStart>
        <inputEventStart>TRUE</inputEventStart>
        <inputEventNumber>1</inputEventNumber>
        <inputEventID>HEREISTHEID</inputEventID>
        <inputEventEnd>TRUE</inputEventEnd>
    </WillsXMLStart>ok now i am using netbeans to create and xsl to gram the information and reformat the information because the end process want the data and event tags differantly. my xsl is as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:gng="java:GetAndConvert"
                    exclude-result-prefixes="gng"
                    version="2.0">
        <xsl:output     encoding="UTF-8" indent="yes" method="xml"/>
        <xsl:template match="/">
            <WillsXMLStart>
                <inputEventStart>
                    <xsl:value-of select="WillsXMLStart/inputEventStart"/>
                </inputEventStart>
                <inputEventNumber>
                    <xsl:value-of select="WillsXMLStart/inputEventNumber"/>
                </inputEventNumber>
                <inputEventID>
                    <xsl:variable name="inputVariable">
                        <xsl:value-of select="WillsXMLStart/inputEventID"/>
                    </xsl:variable>
                    <!-- <xsl:value-of select="$inputVariable"/> -->
                    <xsl:value-of select="gng:getString('$inputVariable')"/>
                </inputEventID>
                <inputEventEnd>
                    <xsl:value-of select="WillsXMLStart/inputEventEnd"/>
                </inputEventEnd>
            </WillsXMLStart>
        </xsl:template>
    </xsl:stylesheet>ok... now for the frustrating part... what i need to do is (as the code shows(i think)), get and store in a variable called "inputVariable" the specific informati that is stored in the "inputEventID" from the xml. that works fine... but i need to pass that information as a string to the java method "getString(String inputVariable)".... my java code (just a test) is as follows:
    * GetAndConvert.java
    *  @author william
    * Created on June 27, 2007, 8:04 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    public class GetAndConvert {
        /** Creates a new instance of GetAndConvert */
        public String getString(String inputVariable) {
            String x = "test";
            System.out.print("this is the string that is hardcoded into GAC: " + inputVariable);
            return x;
    }OK.... i am getting the following error when i try to run the whole thing -- translation from within XSL:
    XML validation started.
    Checking file:/home/william/PROGRAMMING/TestingJavaXML/src/testingXML-JavaInput.xsl...
    Cannot find class 'java:GetAndConvert'.
    Cannot find external method 'java:GetAndConvert.getString' (must be public).
    Could not compile stylesheeti have 2 packages in my "project". 1 = default where i have my xml and xsl files... 2 = JavaEvents where i have my .Java file.
    any and all help would really be appreciated... as i am going bald trying to figure this out. you can either post here or you can email me at: [email protected]
    thanks in advance for all your help.
    Deathsbain.

    OK... now i am getting this error...:
    XSL
    <!--
        Document   : translatorJavaXSL.xsl
        Created on : June 27, 2007, 3:53 PM
        Author     : william
        Description:
            Purpose of transformation follows.
    -->
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:gng="java:JavaSRC.xmljavamain"
                    exclude-result-prefixes="gng"
                    version="1.0">
        <xslutput encoding="UTF-8" indent="yes" method="xml"/>
        <xsl:template match="/">
            <WillsInputXML>
                <eventStart>
                    <xsl:value-of select="WillsInputXML/eventStart"/>
                </eventStart>
                <eventNumber>
                    <xsl:value-of select="WillsInputXML/eventNumber"/>
                </eventNumber>
                <eventUniqueID>
                    <xsl:variable name="inputVariable">
                        <xsl:value-of select="WillsInputXML/eventUniqueID"/>
                    </xsl:variable>
                    <xsl:value-of select="$inputVariable"/>
                    <xsl:variable name="myInstance">
                        <xsl:value-of select="gng:new()"/>
                    </xsl:variable>
                    <xsl:value-of select="gng:xmlJavaConverter($myInstance, $inputVariable)"/>
                </eventUniqueID>
                <eventEnd>
                    <xsl:value-of select="WillsInputXML/eventEnd"/>
                </eventEnd>
            </WillsInputXML>
        </xsl:template>
    </xsl:stylesheet>
    JAVA
    * xmljavamain.java
    * Created on July 2, 2007, 8:58 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package javaSRC;
    * @author william
    public class xmljavamain
        /** Creates a new instance of xmljavamain */
        public String xmlJavaConverter (String inputValue)
            return ("this is the xmljavamain function...");
    }when running the "NetBeans" translator for the XSL page i get this error.
    XML validation started.
    Checking file:/home/william/PROGRAMMING/XML-Java-XSL/src/xmljavaxsl/translatorJavaXSL.xsl...
    Cannot find class 'java:JavaSRC.xmljavamain'.
    Cannot find external constructor 'java:JavaSRC.xmljavamain'.
    The first argument to the non-static Java function 'xmlJavaConverter' is not a valid object reference.
    Could not compile stylesheet
    Could not compile stylesheet
    XML validation finished.WHAT AM I DOING WRONG?
    Deathsbain.

  • Passing variables to loaded external movie

    Ok, this problem has beaten me for the last 2 days. It seems
    to be extremely simple, I am on main movie and I am using
    MovieClipLoader class to load external movie callMe.swf into movie
    holder called holder_MC, then from main using onLoadInit or
    onLoadProgress listeners I can target dynamic text inside
    callMe.swf as holder_MC.myTXT.text = "blablabla" or I can change
    frames in callMe.swf by holder_MC.gotoAndStop(5). But HOW TO PASS
    VARIABLE myVar to callMe.swf so it executes something there? Using
    holder_MC.myVar DOESN'T WORK!!!!!!!!!!!!!!
    Thanks for any help,
    Zbynek

    UPDATE... I copied the link to another page with my variables in the image attributes as I posted above. And it works using the values that are cached for those items. Is there any way to do this on the same page as my original link without my users having to change to a different page?

  • How to pass variables between loaders

    Hi,
    I am trying to load an image, with descriptive text and a back button on the click of a thumbnail of the image. I am using a MovieClipLoader instance to do this.
    Here are my problems:
    1. I tried loading the image, with the text(which is within an external swf), using the same loader, but since I am placing them dynamically, depending on the dimensions of the image, I need to pass variables between the two. The image loader is taking longer than the text (obviously) but I need the dimensions of the image before I can place the text. How do I do that??
    2. I tried using two loaders, with separate listeners, and the problem once again is that the text loads before the image, and is hence placed with default values instead of the values derived from the image. The code is within onLoadInit(). Is it possible for me to get the dimensions of the image from onLoadStart()???
    3. There is a back button within the text.swf. I want the image and the text.swf to be unloaded when this button is clicked. How can I achieve that? Can I call loader.unloadClip(target), from within this? Will it recognize the variable?
    4. Is there a much easier way to do this, which I am sadly unaware of?
    Any help will be appreciated.

    Tried the onloadstart() function, but it gives target._width and _height as 0. So that is ruled out...any other suggestions?

Maybe you are looking for