How to use a var a string

Hello, sorry for my question,

but I want to use a var a string:

I know it's a completely beginners question, but I didn t need to date:

Zahl var = Math.floor ((Math.random () * 99) + 1);

SYM.$("frame")

(. CSS

{' background-image': ' url("images/zahl.jpg") '}

}

);

I tried with {number} and [number], but it does not work.

Help would be great

Oliver

{'background-image':'url ("images /" + number + ".jpg") "}

Tags: Edge Animate

Similar Questions

  • Re: how to use < af:validateLongRange > to string

    Hi all

    I use Jdev11.1.2.3.0

    I have a field as a description of the type.i chain validation for this field set to enter characters 0-20 more than this by using < af:validateLongRange >

    < af:validateLongRange
    minimum = "1" messageDetailMinimum = "Please enter valid values" hintMinimum = "Please enter valid values" / >

    < maximum af:validateLength = "20" / >

    Here I can only record the numeric values up to 20. but I'm not able to store strings (letters) when I'm in the string values is to show the error as I said in the messageDetailMinimum.so how come off this.can any one help me please...

    Thank you

    G.Shilpa.

    This, I do not understand. You want to limit the entry for max 20 characters independently which characters. That's what the maximumLength property = "20" is for. There is no need in this case validation. However, if you must have a validation, you can use a regular expression as validator

    autoSubmit = "true" >

    messageDetailNoMatch = 'Length violation' / >

    Timo

  • How to use a list of strings as a parameter of data service

    Hello.

    I need to create a service that receives a list of string as parameter. I read the thread list of values as param - is possible to bring down the query? but I was unable to make it work.

    In the my namespace, I defined an element:

    < xs: element name = "keyList" >
    < xs:simpleType >
    < xs:list itemType = "XS: String" / >
    < / xs:simpleType >
    < / xs: element >

    In my dataservice, I stated the following function:

    declare function tns:list ($keyList as element (bt: keyList)) as {element(bt:employee) *}

    for $key in $keyList
    for $employee in emp:EMPLOYEES()
    where (fn:upper - eq fn:upper-case(fn:string($key))) case($employee/STR_KEY)
    return
    < bt: employee >
    < bt: name > {fn:data($employee/STR_NAME)} < / bt: name >}
    < / bt: employee >
    };

    When I test this situation, the generated SQL code considers that all the keys as the only parameter:
    (...)
    WHERE (UPPER (t1." STR_NAME") =?)
    (...)

    So, if I try a string of a list, it works:
    (...)
    WHERE (UPPER (t1." THE STR_NAME") ="STRING1")
    (...)

    But with two or more strings...
    (...)
    WHERE (UPPER (t1." THE STR_NAME") ="WORD1 WORD2")
    (...)

    What I am doing wrong?

    Also, on the wire, I mentioned, I would like to know how I could make the reference "for $paramString in $paramStrings / AN_ELEMENT ' using my code.

    Best regards and thanks for your time!

    My answer in list of values as param - is possible to bring down the query? has been

    I think you want:

    for $paramString in $paramStrings / AN_ELEMENT

    and you have:

    for $key in $keyList

    $keyList is a single element that contains a complete list, so $key is the only element that contains a complete list. And that is why it does not work for you.

    Yourself and the other poster are doing more complicated things they should be. You can simply use the following (you need not specify a child of $keyList here). The ' * ' after XS: String means minOccurs = 0 maxOccurs = unlimited.

    declare function tns:list($keyList_as_xs:string*)...

    for $key in $keyList
    ...

  • How to use regexp_replace to replace strings instead of substrings in commas

    I have a table that has a column that contains the strings separated by columns. For example

    Tbl1

    ===========

    ID || Col1

    1 A-B-C, B - C, A-B-C

    I use select ID, regexp_replace (Col1, ' ([^,] +), \1', '\1') of tbl 1

    and I get

    Tbl1

    ===========

    ID || Col1

    1 A-B-C

    I'm looking for is

    Tbl1

    ===========

    ID || Col1

    1 A-B-C, B - C

    Why is my regular expression matching chain also instead of match the whole string? Thank you!

    You try to delete the duplicates?

    with tbl (ID, Col1) as long as)

    Select 1, 'A-B-C,B-C,A-B-C' of all the double union

    Select 2, 'A-B-C,B-C,A-B-C,B-C,E-F-G,E-F-G' of the double

    )

    SELECT id, listagg (str, ',') within the Group (order by lvl) as NewCol1

    de)

    Select r.*, row_number() over (partition by id, order of str from lvl) rn

    de)

    Select the level lvl, id, regexp_substr (Col1, ' [^,] +', 1, level) Str

    from tbl

    connect by level<= regexp_count(col1,="" ',')="" +="" 1="">

    ID = prior id and

    prior sys_guid() is not null - prevent connect loop using unique val

    + 0

    )

    where rn = 1

    Group by id

    ID NEWCOL1
    1 «A-B-C, B - C»
    2 'A-B-C,B-C,E-F-G '.
  • How to use variable Substitution Essbase in ODI

    Hello

    Can someone help me please how to use void var Essbase in ODI?
    I created an interface to load data from text to planning. In the mapping, to the Point of view, I gave the necessary dimensions which is "years". In Essbase, we set a variable called CurrYr which
    We want to use in the view. So, I added a line like this in the map

    'Work', 'Budget', 'CC1', '#sYearValue '. The sYearValue is used to extract the void var Essbase before loading the planning data. I have followed the blog for void var post below (John has been very kind in showing many examples of ODI, link below is one of them).

    [http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html]

    Whenever I run the Interface, it fails with the error "ODI-17506: Variable has no value: XXXXX.sYearValue.

    Thanks in advance!

    PM

    This line should print the values in the agent log, see log

    System.out.println ("current year =" + sYearValue + "current period =" + sPerValue);

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Target using the VAR String and number

    This should be simple, how to target a VAR using a string and a number, the idea is that I can change the number to target this VAR.

    var gogo1:Number = 12

    var gogo2:Number = 89

    trace ("gogo" + 2)

    I'm after the trace to be 89 NOT gogo2

    trace(this["gogo" + 1]);
    

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • How to use the String with an external dispatchEvent event.target.name?

    ... I hope that the question of the title makes sense...

    On my stage, I have an external SWF loaded with a button. When you click the button dispatches the main event scene.

    On the main stage a listener can load a SWF it in a magazine called Gallery.

    The charger of the Gallery is also shared by the buttons on the main stage, who use the event.target.name chain to appeal to sovereign wealth funds with corresponding names.

    I use tweens to fade and, in the content of the Gallery when a key is pressed.

    --

    Loading of the FSV worked until I tried to create a universal function for the dispatchEvent buttons...

    The problem I have is that I don't know how to set the string to indicate to the newSWFRequest where the SWF file when triggered by external buttons.

    (I maybe do this wrong... but thought that the best way to load a SWF on the main stage from an external SWF was using dispatchEvent?)

    My code raises the event and the charger of the Gallery Faints, but then it does not find the new SWF:

    Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2035: URL not found.

    Please can someone help me understand how to make the point in the chain in the right direction? (I think that the errors only are in bold below)

    Code:

    var myTweenIn2:Tween;

    var myTweenOut2:Tween;

    var nextLoadS2:String;

    Listening external inclinometer shipped external event

    addEventListener ("contactStage", btnClickExtrnl);

    function btnClickExtrnl(e:Event):void {}

    nextLoadS2 =?

    myTweenOut2 = new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);

    myTweenOut2.addEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);

    }

    Function universal BTNS

    function tweenOutCompleteF2(e:TweenEvent) {}

    myTweenOut2.removeEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);

    myTweenOut2 = null;

    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + nextLoadS2 + ".swf");

    myTweenIn2 = new Tween (Gallery, "alpha", None.easeOut, gallery.alpha, 1, 0.2, true);

    Gallery.Load (newSWFRequest);

    Gallery.x = Xpos;

    Gallery.y = Ypos;

    }

    Thank you.

    If this code is on the timeline of a child of the main timeline of your external swf add parent 3rd in two lines with parent.parent.

  • How to use EmailValidator to validate a simple string instead of TextInput

    Hello

    I would use EmailValidator for validate if a string is a valid email address. But I got an exception when I tried to put the source chain.

    var tmp:string = [email protected] ;

    var emailVal:EmailValidator = new EmailValidator();

    emailVal.source = tmp;

    I know that we usually do

    emailVal.source = new TextInput()

    emailVal.property = "text".

    But here, I just want to validate a string. How can I do?

    Kind regards

    Haibin

    Use the validate() method, which returns the validationresultevent; now, you can check the property type of the event.

    Code:

    var tmp:String = "[email protected]";

    var emailVal:EmailValidator = new EmailValidator();
    var vr:ValidationResultEvent = emailVal.validate (tmp);
    if(VR.type == ValidationResultEvent.valid)
    ; It is valid
    on the other
    ; It is not valid

  • How to use string values to access the clips?

    Hey I was just wondering if it is possible to use string values as a way to use the addEventlistener function. For example

    (I box1_mc on stage to tell him)

    var string1:String = "box1_mc.

    string1.addEventListener (MouseEvent.CLICK, box1Clicked)

    function box1Clicked(event:MouseEvent) {}

    trace ("you clicked me!")

    }

    something like tht just by using the value of string1 to act as box1_mc this kind of thing

    PS sorry if posted this question in the wrong place, new on this forum thing: P

    Thank you

    table rating to coerce strings to objects:

    var string1:String = "box1_mc.

    This [string 1] .addEventListener (MouseEvent.CLICK, box1Clicked)

    function box1Clicked(event:MouseEvent) {}

    trace ("you clicked me!")

    }

  • How to use NavigationRequest targetProperties?

    In my case, I want to navigate to a global vision of another global vision and want to pass a context. I use NavigationRequest for the target event view and shipping. I also want to pass a context. I saw there is a targetProperties property in the NavigationRequest, how can I use it? Am I on the right track or it is not possible to navigate to a global vision with a context?

    Thank you

    Prathiraj

    A global vision does not use a context, only views object have the notion of context of the object, the object currently selected in the browser (their mediators implement IContextObjectHolder).

    NavigationRequest. targetProperties can be used to move a property bag to the extension of the target.

    For example in global services-ui SettingViewMediator change onLinkButtonClick to this:

    private void onLinkButtonClick(click:MouseEvent):void {}
    Go to the main display of the App
    var event: NavigationRequest = new NavigationRequest();
    event.targetViewUid = APPVIEW_ID;
    Optionally, you can pass a bag of properties to set on the target of extension object.
    event.targetProperties = new Dictionary();
    event.targetProperties ["settings"] = _view.setting1.text + ',' + _view.setting2.text + ', ' + _view.setting3.text;
    dispatchEvent (event);
    }

    and in MainView.xml, add the settings property that will be placed in the NavigationRequest:

    import com.vmware.samples.globalview.Util;

    Import mx.controls.Alert;

    /**

    Parameters ownership is defined by the NavigationRequest in SettingViewMediator,

    * It is an example of passage of data between two views.

    */

    public function set {settings(value:String):void}

    Simple debug message

    Alert.Show ("navigation of the display parameters, current values are:" + value);

    _settings = value;

    }

    private var _settings:String;

  • How to use my custom defiend function

    Dear all,

    I simply create a new custom set function that I send him a whole month and return name.
    The function registered successfully. and everything is ok, the newspapers are ok

    My question: how to use my @TOSTRING CDF

    the following code for the java class
    --------------------------------------------------------------------------------
    import java.lang. *;
    Import Java.util;
    import java.text.DateFormatSymbols.
    class toString {}

    public static String fromInt (int m)
    {

    return new DateFormatSymbols () .getShortMonths () [m-1];

    }

    }

    ------------------------------------------------------------------------------


    I tried the following and check syntax result successful and executed, but now


    VAR x = 2;
    'Project status' = @MEMBER (@CONCATENATE (@TOSTRING (x), '200'));


    Please advice

    Try to write a fix and check that @TOSTRING (x) is back, ex:
    DIFFICULTY (@MEMBER (@CONCATENATE (@TOSTRING (x), "200"))
    ;
    ENDFIX;

    Or

    Fix (@Member (@TOSTRING (x)))
    ;
    ENDFIX;

    You will find a line in the newspapers saying:
    Expression [@MEMBER (<>)]...

    See you soon... !!!

  • How to use Flash to create an interactive diagram

    Hi all.

    I'm an extreme newbie. I would like to create an interactive schema and someone said I should use Flash to do.

    The idea is to create an organization chart (like the ones you can produce in MS Word 2010). Every station will have its own box or button. When a user clicks on the box or button, a Word document or internet link will be activated and take the user to another resource.

    Is it possible to do it in Flash?

    The reason why I chose Flash is because I have a large number of these diagrams and they must go to Moodle. Flash is apparently the only program I should use to import the schema into Moodle.

    Can someone help me please advice on how to do this?

    Thank you

    Sharyn

    By the end of the diagram of the things... Start by creating the chart in Flash.  Everything you intend to use as clickable elements, create them as movieclip symbol so that you will be able to assign instance names their.  You assign the instance names by selecting the object on the stage and entering a unique name in the properties panel where it says .  This name will be used in the code that you will use to create the feature by clicking on/Binder.

    End of things, start simple binding... create a diagram that has one click and get only a point of work.  What you learn can be applied to the larger version.  The same indicated in the first subparagraph shall apply.  Additional info only you need is to create the actual code.  To help that you must decide which version of Actionscript, you are going to use, which may depend on what version of Flash you use.  AS3 is the latest version of Actionscript, and there for the first time in being back with Flash CS3.

    The first thing you need to do to make a useful movieclip down must assign a unique instance name.  If you drag a copy of it on the stage of the library, and while it is still selected, enter you this unique instance for her name in the Panel properties... say you name "btn1.

    In AS3, to make a movieclip to work with the code, you must add a listener of events and event handler for it function.  You may need to add a little (for different events, like reversal, deployment, by clicking on it, but for now let's just say you want to be able to click them to get a web page.)  In the scenario that contains this button, a layer of separate actions that you create in a similar framework where this button exists, numbered, you must add the event listener:

    Btn1.addEventListener (MouseEvent.CLICK, btn1Click);

    The name of the unique function for the treatment, the click of this button is specified at the end of the assignment of event listener, so now you just have to write this function:

    function btn1Click(evt:MouseEvent):void {}

    var url: String = "http://www.awebsite.com/awebpage.html";

    var req:URLRequest = new URLRequest (url);

    navigateToURL (req);

    }

  • How to use an if statement of javascript code

    Hello

    I have a lot of script transformation to search for text "signature of the employee" on each page in a multiple page and file for then the list in the console all pages that do not have the text of the "Signature of the employee" included.

    The script is still functional as one if statement must be included.

    Can someone advise please how to use an if statement in javascript code?

    var this.numPages = NUMPAGES;
    for (var i = 0; i < numpages; i ++)

    Search.Query ("Signature of the employee", "ActiveDoc");
    Console.println ("Pages that do not include a signature of the employee:" + this.pageNum + "");

    Any help will be most appreciated.

    "The signature of the employee" are the 2 words and not one. The method that you use to get the word gets only a single word. You also want to identify the "not true" found for the situation of the page and not the "real" found on the page.

    var ckWords; pair of words to test
    var bFound = false; Logical state of the words found
    Browse through the pages
    for (var i = 0; i)< this.numpages;="" i++="" )="">
    bFound = false; all found false
    numWords = this.getPageNumWords (i); number of words on the page
    loop through the words on the page
    for (var j = 0; j)< numwords;="" j++)="">
    get the pair of words to test
    ckWords = this.getPageNthWord (i, j) + ' ' + this.getPageNthWord (i, j + 1); test words
    do a check to see if the pair of words is string "Signature of the employee.
    If (ckWord == 'Signature of the employee') {}
    bFound = true; indicate the logical value found
    Console.println ("Pages that includes a signature of the employee:" + (this.pageNum + 1) +' ' "");
    break; no need to test more to this page
    } / / end of Signature of the employee
    } / / end of Word loop
    a test to see if the words not found
    if(Bfound == false) {}
    Console.println ("Pages that do not include a signature of the employee:" + (this.pageNum + 1) +' ');
    } / / end not found on the page
    } / / end of page loop

  • How to use AMFPHP objects in Flex

    Hello

    I managed to get amfphp to return PHP objects, the question is now how can I make Flex abreast of objects?

    I invoke a remote object and the objects are returned as a result. Can be used directly or do I have to use XML?

    Hmm, your code seems a bit complicated. Here's what I do:

    The RemoteObject:

    Comments:

    1 yourAMFPHPClassName is the name of the folder in amfphp\services that contains the PHP classes.

    2 ThePHPFile is the class PHP (without the extension) file in the yourAMFPHPClassName folder.

    3. you need the to define the function in the PHP class you want to call. The theFunctionYouWantToCall must be the exact name of the function in the PHP class (case sensitive).

    The part of the ActionScript:

    THE EXAMPLE BELOW will ONLY WORK IF THE PHP FUNCTION RETURNS a UNIQUE VALUE

    This means that the PHP function has a return like this statement: return $value; or return "Test";

    private void myFunctionResultHandler(event:ResultEvent):void

    {

    var PHPResult:String = String (event.result);

    Alert.Show (PHPResult); will indicate that the returned PHP class

    }

    The EXAMPLE below SHOWS HOW to PASS MULTIPLE Flex DATA

    This means that the PHP function has a return like this statement:

    $returnValue = array ();

    $returnValue ['name'] = "George";

    $returnValue ["age"] = $age;

    Return $returnValue;

    private void myFunctionResultHandler(event:ResultEvent):void

    {

    Alert.Show ("Name:" + event.result.name);

    Alert.Show ("Age:" + event.result.age);

    }

    ERROR handler

    private void myFunctionFaultHandler(event:FaultEvent):void

    {

    Alert.Show ("data not can be acquired.");

    }

  • How to use a variable in a statement attachMovie?

    Hey guys.

    What I'm trying to make is simply this:

    < variable > = mvcShip

    var ship1 = _root.attachMovie (< variable > shipName + _root.getNextHighestDepth (), _root.getNextHighestDepth ());

    What I'm trying here is to the same variable in the name of an item in my library. (Im using this to use different ships in a vertical shooting game old style arcade).  The goal is to make a ship to appear on stage.

    Where < variable > is replaced by a library (for example. mvcShip) item, it works fine, but if the variable is in place, I get a value of trace of ship1 as "undefined", and the ship does not appear on the scene.

    Any help would be appreciated

    P.S. Please ask if you want to reach me the full code.

    The Flash help documents are probably your best reference to understand how various functions of coding work.  Here's the attachMovie method

    attachMovie (id:String, name:String, depth:number);

    Or more towards what you do...

    var shipName:String = "mvcEnMissile";

    var missile4 = _root.attachMovie (recipient, shipName, + _root.getNextHighestDepth (), _root.getNextHighestDepth ());

    Where mvcEnMissile is the ID of the connection that you assign to the movieclip in the library through the properties-> link options in the menu library.  mvcEnMissile is not the name of the element you that you see listed in the library, unless you have attributed to him under the name of the library and the link ID

Maybe you are looking for

  • Even if some plugins show 'disabled' on the list of the Add-ons Manager, can they be removed completely from the list?

    After downloading RealPlayer to view a particular item, I decided that I didn't want RealPlayer after all. 5 plugins associated with the download are listed in the Add-ons Manager and I managed to disable all the. But there is no apparent ease to rem

  • External hard drive inaccessible PX1269E - 1 50

    Hi all I hope that you may be able to shed light on the functioning of the curious of my PX1269E - 1 50 external hard drive (500 GB). Up until recently, the drive works perfectly. The malfunction is the following: the hard drive is recognized by Wind

  • * Hard Drive 0 - DST Short Test *-failed

    Can you please help to define what this means. Please and thank you. Dell Inspiron N5050 * hard drive 0 - DST results of Test runs Test *: failure error Code 2000 - 0151 Validation 62991 Msg: Hard Drive 0 - Z08AF0E6S S/N, wrong state = 3 no informati

  • QuickWeb Probook 4420 to s

    Hello friends, I realized a recovery on my laptop and my QuickWeb does more. never actually worked... I noticed that the Bios doesn't have the option of Instant-On, but the big picture is specified that this model has support QuickWeb. It has a parti

  • Weekly report for VMS oversized

    HelloOn the basis of the use of the UC should send me weekly report for virtual machines that are oversized. but in the report itself, it counts only for these vms, which was oversized for the pointsay, if I run this report at 08:00 on a particular d