Is it the blackberry.invoke in the external JS file work?

Hello

The object blackberry.invoke cannot be called since in BB widget, i.e. in the js stored in your Eclipse BB Widget project file or files outside/external file, stored on http?

Thank you

Barbara

You cannot add API to wildcards because it opens gaps in security. You need to add APIs to a defined origin

Tags: BlackBerry Developers

Similar Questions

  • Elements of reference in the external js file request

    I am using an external javascript file, but I have problems to reference the elements of the application

    APP_ID and the SESSION can be referenced using

    APP_ID: $v('pFlowId')
    SESSION: $v('pInstance')

    and page items (P1_ITEM) can be referenced using

    $v('P1_ITEM')

    Application items (A1_ITEM)However, do seem to not work. Tried using $v ('A1_ITEM') but without success. Is it possible to reference the elements of application in the external js file?

    Teo

    You can set point local page to the value of the item application and then refer to this local element.

  • How to add the external css file to the _edge.js file

    I tried to add in the html page, but when I save the edge project it deletes.

    I'm able to add the external js file in scripts: [] in the _edge.js file

    We can add inside resources: []?

    And is it possible to add an external css in files of edge except in page html and javascript?

    CSS:

    Please put this in scene/creationComplete (file name change to your file name and path)

    $(" ",{"rel":"stylesheet","type":"text/css","href":"css/finename.css"}).append ("#Sta ge»);"})

    Add! important in CSS file properties.

    js files should be loaded with the upload script Panel on the right side of your user interface.

  • addition of html in the box edge animate the text of the external js file

    I have a text field in the anime that I want to update with a score of edge. The function that allows you to click and update the partition is in an enternal file so I'll try to figure out how to get my div animated dashboard replaced by jquery in the external file. That's what I have so far in the external js, but it is not reading the field to animate the text of edge correctly:

    external .js file:

    AdobeEdge.coinCounter += 250; It called the coinCounter variable introduced in edgeActions.js and the initial value of 0 updates
    Alert (AdobeEdge.coinCounter); This shows that it works and updated correctly

    var comp = AdobeEdge.getComposition ("EDGE-172492634");

    var point = comp.getStage ();

    stage.sym.$("gameText").html (AdobeEdge.coinCounter); It's when things go wrong. I want this updated value in the text box named 'gameText' which is in the composition of edgeAnimate

    stage.sym.$("gameText").html ("NewText"); There is no indication in the text box 'gameText. " something must be wrong how am I referencing outside edgeActions in the external .js file

    Did someone mind helping me to refer to the text box 'gameText"correctly so I can enter my new value? Thank you!!

    Hello

    You must remove "sym.": internship. $("gameText").

  • created variable on click in edgeActions.js but want to reference in the external js file


    Hi, I created a variable on click in edgeActions.js but want to reference in the external js file. This is where I am so far:

    In my edgeActions.js I have variable st on compositionReady and then use it when I click the icon: questionMarkR1. It works fine... the problem is that I don't know how to reference the variable in my external js file. This first code works of the edgeActions.js:

    Symbol.bindElementAction (compId, NomSymbole, 'document', 'compositionReady', function (sym, e) {})


    sym.setVariable ("questionAsked", false); sets the initial value

    });

    Symbol.bindElementAction (compId, NomSymbole, "${_questionMarkR1} ', 'click', function (sym, e) {})

    var questionAsked = sym.getVariable ("questionAsked");

    Alert (questionAsked);

    If (questionAsked) / / if it is true
    {
    SYM. $("checkButton2") .removeClass ("hidden");
    SYM. $("popUp") .removeClass ("hidden");


    }
    of other fake //if
    {

    SYM. $("pic2a") .removeClass ("hidden");
    SYM. $("pic2b") .removeClass ("hidden");
    SYM. $("pic2c") .removeClass ("hidden");
    SYM. $("pic2d") .removeClass ("hidden");

    SYM. $("closeBox") .removeClass ("hidden");
    }

    });

    This next part does not work because I don't know how to properly reference the variable. That's what I've tried and it doesn't work:

    var questionAsked = sym.getComposition () .getStage () .getVariable ("questionAsked");


    Alert (questionAsked);

    Hello

    Animate edge exposes an API for external scripts, you will need to use in your case:

    For more information about the API to animate edge, see API JavaScript Adobe Edge animate CC

    Use the code below in your external js file:

    var comp = AdobeEdge.getComposition ("EDGE-606063631"); replace 'EDGE-606063631' by your model id, you can find in the .html file

    var point = comp.getStage ();

    var questionAsked = stage.getVariable ("questionAsked");

    Alert (questionAsked);

    HTH,

    Vivekuma

  • page element to reference in the external JavaScript file

    Hello

    Anyone know how I can refer to page within an "external JavaScript file elements?" Things such as $v ('P3_ITEM1') and & P3_ITEM1. works great if I put the JavaScript code directly in the page header - section of JavaScript. For ease of maintenance, I want to move these JavaScript codes in the external file on the server. I tried the two $v ('P3_ITEM1') and & P3_ITEM1. and they do not work in the external JavaScript file - 4.1.0.00.32 apex.

    Thank you.

    Andy

    Andy,

    Something like this should work. You should not add pAppID or pSession as parameter, if they will always be entries on the page.

    APP_ID: $v('pFlowId')
    SESSION: $v('pInstance') 
    

    and make sure that all substitution strings are replaced.
    >
    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS =?', 0);
    >

    Kind regards
    Janet Tyson

  • How can I get the external classes to work in AS3? Sample included.

    I'm doing this work, and something basic must be absent.  Its straight out of the Adobe Help file example.

    CS4, Actionscript 3

    Here's what I do:

    1 create a .as file and name it "HelloWorldExample.

    2 put the script below into it and save it.

    3. create a .fla file and save it in the same directory.

    4. in the .fla file, put "HelloWorldExample" in the class of Document properties field

    5 save and run the film.

    I get a white screen.  Nothing.  I tried a few other examples, but I was not able to get ALL of the external .as files to run. It is the simplest.

    Do I need to import them or call them in some way other than step 4?

    I missed something?

    package

    {

    flash.text.engine import. *;

    import flash.display.Sprite;

    SerializableAttribute public class HelloWorldExample extends Sprite

    {

    public void HelloWorldExample()

    {

    var str = "Hello World!" This is Flash Text Engine! « ;

    var format: ElementFormat = new ElementFormat();

    var textElement: TextElement = new TextElement (str, format);

    var textBlock:TextBlock = new TextBlock();

    textBlock.content = textElement;

    var textLine1:TextLine = textBlock.createTextLine (null, 300);

    addChild (textLine1);

    textLine1.x = 30;

    textLine1.y = 30;

    }

    }

    }

    As long as you have your class paths set correctly, it is best to have your .as files in an another loc that your. Fla. What happens if you want to use the same class in different .fla? You will copy in each project file? That kind of defeats, the purpose of the use of classes and then, because if you change it you must change it in various places. Not good. No OOD.

    So: Edit > Preferences > AS3 settings - add paths to the source path, or a path... something like c:\flashclasses\as3

    Inside of your as3 application you assign to your package files. If you use TweenLite need you:

    com

    greensock

    TweenLite classes

    or yours:

    com

    Mydomain

    my classes

    then you would be important as:

    import com.greensock.TweenLite;

    import com.myDomain.myClass;

    Make sense?

  • How to determine the total number of images in the external .swf file loaded

    I have to be able to load both external .swf files and make them play in order. To do this, I need to know the number of images in the first .swf file so I can check _currentframe against _totalframes to determine when he is finished playing so that I can load another.

    Most of the stuff I see indicate that _totalframes on an external .swf can be determined by loading the .swf in a container clip and then check using a listener in the .onLoadInit. Like this:

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

    this.createEmptyMovieClip ("tester_mc", 1);
    var mcListener:Object = new Object();

    mcListener.onLoadInit = {function (target_mc:MovieClip)}
    target_mc.onEnterFrame = function() {}
    If (this ._currentframe > = this ._totalframes) {}
    trace ("total frames =" + this ._totalframes);
    delete this.onEnterFrame;
    } else {}
    trace (target_mc._currentframe + "OF" + target_mc._totalframes);
    }
    }
    }

    var test_mc:MovieClipLoader = new MovieClipLoader();
    test_mc. AddListener (mcListener);
    test_mc.loadClip ("Ad_Group.swf", tester_mc);

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

    Unfortunately, this doesn't seem to work. The trace will always return a total number of frames of 1.

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I would appreciate any ideas on how to raise the total number of frames of an external .swf file or, Alternatively, put it another way when it's done playing. (Not only the loading, but play until the end.)

    TIA,

    C

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I wouldn't imagine. My guess is that the main scenario for the external swf file has only 1 frame and the rest of the animation is inside a movieclip in this timeline. You publish this swf? Can you open the FLA and check how many images is open on the main timeline?

    The approach that you have mentioned is about what there is. But he knows check a chronology. If there are many nested movieclips, it may be impossible to understand what timeline you really want to be 'THE' full chronology.

    If you have the FLA, you can have the video call function on the _root timeline which tells the main swf that has completed a movieclip or something like that.

    Also, I have in my head somewhere that I recently saw something that someone made similar to this one, but do not remember... If it appears in my head that I will post.

  • Preloader which modifies the external SWF files every 5 seconds

    Hello

    I made a web banner in flash that loads an external swf and another external swf changes after 5 seconds. The banner have a preloader, but the problem becomes when you load the first time. As sovereign wealth funds are not cached in the cache of the browser and yet, time 5 seconds start counting from the preloader, and when the external swf file, shows only 1 second rest and it is replaced by another. There is a way to 'freeze' the time for each external swf until it loads completely?

    The code that loads SWFs every 5 seconds (this code is placed in a layer of action):

    start of the code:

    var intervalId: number;
    var: number = 0;
    var maxCount:Number = 23;
    var duration: number = 0;
    var banners: Array = new Array)
    "abatrade.swf,"
    "bancobrasil.swf,"
    "caparao.swf,"
    "cedro.swf,"
    "cesama.swf,"
    "copasa.swf,"
    "damatta.swf,"
    "emtel.swf,"
    "engedrain.swf,"
    "extel.swf,"
    "feedback.swf,"
    "iti.swf,"
    "intermedium.swf,"
    "magnesita.swf,"
    "maquenge.swf,"
    "maxxdata.swf,"
    "orteng.swf,"
    "paiva.swf,"
    "paraibuna.swf,"
    "paraopeba.swf,"
    "sabesp.swf,"
    "serpro.swf,"
    "soll.swf,"
    'thawte.swf '.
    );

    function executeCallback(param:String) {}
    var duration: number = 5000;
    loadMovie (banners [count], loadmovie_mc);
    loadmovie_mc._x = 0;
    loadmovie_mc._y = 0;

    clearInterval (intervalId);
    if(Count < maxCount) {}
    Count ++;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    }
    else {}
    Count = 0;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    }
    }

    If (intervalId! = null) {}
    clearInterval (intervalId);
    }

    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);

    end of the code
    ----------------------------------------

    And the code to the preloader (this code I place in the movieclip that loads external SWF files):

    start of the code:

    {onClipEvent (enterFrame)}
    var gtT:Number = this.getBytesTotal ();
    var gtL:Number = this.getBytesLoaded ();
    var gtP:Number = int ((gtL/gtT) * 100);
    If (TWG > gtL) {}
    This ._alpha = 0;
    _root. Loader._alpha = 100;
    _root. Loader.bar._width = gtP;
    clearInterval (intervalId);
    } else {}
    This ._alpha = 100;
    _root. Loader._alpha = 0;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    delete onEnterFrame;
    }
    }

    end of the code

    Note that I tried to freeze the time using a clearInterval does in the second code, but he simply doesn't work...

    Any ideas? Thank you

    Edson

    Here's the correct code kglad send me. Thank you very much!

  • Windows Vista backup on the external drive stopped working

    I have a LaCie 750 GB hard drive external (total size 698 GB) who I've been saving my drive C and D to a Dell XPS 410 using Vista Home Premium software.  He contended until the end with a backup automated on-demand for once a week.  He performed the backup 30 times since 11/09/09, but sometimes did so sometimes (shorter range) other than the weekly on-demand.  When I compare the total size with the free space on the external drive and my drives C and D, the amount of used space is respectively 131 GB, 5,11 GB and GB 665,5.  I am not very computer savvy, but if the backup program backs up only what of new each time, why used on my external drive space is so superior to what is still on my C and D drive?  I assumed that the backup software would just copy the previous backup, each time that a new backup or write on the oldest backup, but apparently is not.  So now all I get are messages saying that the backup was not successful because a file was in use or something to that effect.  I'm doing something wrong or do I have to reformat the hard drive external when it is "full" to start the backup of my computer again?

    Hello
     
    Your assumption is correct. Cross check if a new backup is created and saved in the external hard drive. If a new backup is not too write the old backup, the use of the space will be very high.
     
    Two particularly useful automatic backup features are the ability to do a scheduled backup and the ability to save your files.
    We recommend that you cross check if backup settings are intact. To do this, try the following steps.
    1. open backup and restore by clicking the Start button, clicking Control Panel, clicking system and Maintenance, and then clicking the backup and restore.
    2. click on change settings.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
     
    For more information on "back up and restore: frequently asked questions" visit this link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions
     
    You get the error message, unplug the external drive and restart the computer. Connect the hard drive and check if you get the error message.
     
    I hope this helps.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.
  • Using the external js file in the custom workflow

    Hello

    I use 11.1.1.8 and jdev 11.1.1.7 spaces

    While referring to (http://js.xyz.com/js/abc.js) external js file in my integrated jsff in weblogic page, there is no problem, js works perfect , but when I deploy my workflow a workflow customized to webcenter spaces page cannot access this file js url.

    I have to give this operation any grant? How?  I found something external applications like this, but there wasn't a connection information. My field of js file didn't need approval.

    Thank you.

    Jsff file, I use the js as file

    < af:resource type = "javascript".

    source ="http://js.xyz.com/js/abc.js" / > ".

    Thanks for everyone, location external links js in the page of the portal model has solved my problem.

  • Create Adobe Muse Widget with images and the external JS file.

    Hello, I want to create widget that include all about 7-8 images and 1 JS file.

    I read the documentation, but I have a few questions.

    Is there any way to import images of widget (no link to them)?

    Y at - it means to import the folder 'images' with pictures on it and this folder to extract to which I have 'say' (for example level even where is the page or file in the folder root of the site)?

    Is there a way to include the JS file?

    In my opinion, that these things are possible, but with Adobe Muse themes.

    How to manipulate the page with the options for the widget?

    For example, in the options, you can choose between 2-3 options and the option to apply to the page.

    I want the option widget that can change 1 variable JS variable will be in the script that is added to the page (not external JS file). I know how to add this script to the page, but I don't know how to handle with the widget options. Here's another example, I have this:

    ...........

    < bodyEndHTML >

    <! [CDATA [< script type = "text/javascript" >]]

    $(function() {})

    var someVar = "somevalue1";

    });

    < /script >]] >

    < / bodyEndHTML >

    < / HTMLWidget >

    I want with option widget to manipulate this variable 'someVar' (its value), between the selected values.

    You work with html exported Muse,

    It would be a complete customization with form action, you can try to use the coding corner

    Thank you

    Sanjit

  • Load the external CSS file

    I asked this question before and it was answered by some major contributors on this forum, but I have to admit that, even if it worked once, it doesn't seem to work now. I use Edge animate CC 2014 that might be the problem.

    I am given to understand that if you use this little button "c" to declare a block of text in a paragraph (see screenshot below)

    sometext.jpg

    then the style rule that you write to the file html produced by Edge when you publish, should work on all 'p' designated text blocks (as directed by the screenshot below)

    But it doesn't work.

    I tried every combination I can think of and looked everywhere on the web by Lynda.com and in this forum, but no luck. I'm certainly not the only person on Earth who wants to change the blocks of text with an external css file.

    I know that I'm trying the patience of you smart people out there, but I need to have my answers in simple terms, without forgetting anything. You can't underestimate my ability to make mistakes.

    Any help appreciated.

    html.jpg

    Hello

    You can change your css as follows properties externally or internally:

    (1) on the outside.

    You create a css file and add this line of code in your html page:

    p {color: red} contains a myFile.css and this file is located in the folder called "css".

    (2) internally.

    The user interface offers you 2 buttons: management tags, another course of management.

    (a) the button tags.

    You change the html tag using the right key. I mean the switch before the c button.

    You choose the paragraph tag: p., then you open the creationComplete Panel and you script: sym.$("p").css ("color", "red");

    (b) the classes of button.

    If you use the c key to a single class. For example, you write the word in blue.

    You will be the script in the creationComplete Panel: sym. $(". Blue"). CSS ("Color", "Blue");

    Now, looking at your page html (your second photo).

    I navigate on this page looking for the tag (p)

    ...

    ).

    When I arrived the last tag (), I have not found any p tag. So, nothing happens.

  • Connection to the external xml file

    How to use an external xml file as a data source for my LiveCycle form?

    I have a xml file on my server which is updated daily by a script. My LiveCycle form is on the server and can be pushed to the client by the click of a button on a web page or similar. Is it possible to have the LiveCycle form refresh its data before being sent to the client, or every day?

    I thought that the burden of form, a JavaScript function could check if the form is on the server, or check if the xml file is there, and if this is the case, update itself, else do nothing.

    I prefer to keep the xml file and the distinct shape that other applications and do scripts use xml file.

    Thank you.

    (1) if the form is used internally on the same network (ie: the xml file is still available over the network to your th) form questionable local files, but it requires advanced script.

    I did it with network drives shared tho. -If you do, I use the two solution

    (2) assuming you are using LC Reader Extensions as well as the form is "all over", not always on the network starting.

    -Expose the XML file through a Web service (if it is not sensitive data)

    -Get the form to query the Web service

    (3) but if you have installed with LiveCycle Forms.

    Use the readXML and how to bind the XML with the form.

  • How to make reference to the external SWF file using if statement?

    I have a main swf file that loads several external SWF file when the user clicks a menu button. Now I want to target a specific swf file to Add an extra library child or of another swf when this specific swf file is loaded. How should I do? What should I put in the stated case?

    ///////////////////////////////////////////////////////////

    var newswf:URLRequest = new URLRequest (".") ("/ swf /" + event.target.name + ".swf");

    Loader.Load (newswf);

    addChild (loader); dynamically load SWFs

    If (newswf == ".") ("/ SWF/pubResCHETNA.swf ') //error here

    {

    FC.buttonMode = true;

    FC.addEventListener (MouseEvent.CLICK, full screen);

    }

    function fullScreen(e:MouseEvent):void

    {

    var loaderF:Loader = new Loader();

    loaderF.load (new URLRequest ("PopupFullscreen.swf"));

    addChild (loaderF);

    }

    ////////////////////////////////////////////////////////

    The State must be newswf.url == the path. However I store event.target.name as a variable and use it in the State. You use "." for your path so the condition probably will always fail.

    --

    Kenneth Kawamoto

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

Maybe you are looking for

  • Magnifying glass problem

    Everywhere where I brought the mouse lights up a small window with a bigger picture (the picture is chaotic). http://i46.fastpic.ru/big/2013/0623/89/c6e8ead4713aced95dcd2d0e9b3ae589.jpg

  • Firefox freeze every time that tired to change the input language

    Hello. Whenever I tried to change the input language to enter in other languages Firefox freeze (program does not). Sometimes I type alt + shift or when I click on the language bar to select other languages. It also happens with several languages (I'

  • Satellite L50D-B-146 - wireless network adapter drops the Wi - Fi connection

    Hi all I have a problem with the wireless (Broadcom adapter) card, it randomly falls free wifi for no apparent reason (I disabled the modules breast win 7 energy saving etc). Running the diagnostics of material in the latest Toshiba/Broadcom driver p

  • control reversed (or log) scale, XY

    I would like to represent the scale reversed in XY graph. How can I read or write the property of inverted scale? For example, as shown in the room attached, the range property has not shown the information of inverted scale. But I can control these

  • Error "could not open the access control editor, access is denied" while accessing the C: drive

    Hello I use Home Basic to Windows 7, I saw two drive C: / and R. /. by mistake I changed security optional properties of the discs now I can to access only a: .my c: drive / drive does not open when I open drive c properties, then on security and it