get a .as class to use an external variable

Hello

I have an AS 2.0 class file that is associated with my FLA project. everything works very well. There is, however, a * hard-coded * IP address inside the class definition (.as file). I need to make a dynamic value (so that I can change the IP address during execution). I'm already loading and using the value dynamically (from a config.txt file) in a FLA file. but I don't know enough about the class definitions to be able to refer to this variable from the .as file (everything I tried was stupid and gave errors).

So basically, how to reference the value of a dynamic variable charge of in a class definition?
There is that something called dynamic classes in AS 2.0, the solution which means?

any help appreciated, thanks!

make a method in the class (.as) file to set the internal ip address.

in the class file you would have something like

var myURI:String = ""; Assign a default IP address

function setURI(param_uri:String) {}
myURI = param_uri;
} //

or you can put it inside the constructor of the class

Constructor(param_uri:String)...

where the manufacturer would be the name of the class
that is the class name is FooBar
the Builder would be
FooBar(param_uri:String) {}
myURI = param_uri;
} / / end of constructor

Tags: Adobe Animate

Similar Questions

  • Unable to get the maximum screen resolution when you use the external monitor

    Hello

    I use Windows 8 on laptop ASUS K55A. I use an external monitor (Samsung SyncMaster 2233BW). Everything works fine except that I do not get the maximum resolution on the external display. The only way I see a sort of an overview of the good resolution is when I choose "extend these screens", but it's very uncomfortable when there's always one screen, I don't actually see.
    How can I increase the resolution of the screen on the external screen? (now, it's on 'show desktop only on 2')
    Thank you!
    I use Windows 8 on laptop ASUS K55A.

    So first a Bing search finds that ASUS K55A probably has the chip Intel HD 4000

    Then,

    https://communities.Intel.com/thread/30360

    (BING search engine for)
    Two monitors specifications Intel HD Graphics 4000

    )

    Graphics card Intel doesn't support double bond, so 1920 x 1200 is the maximum for DVI and HDMI, 2560 x 1440 is only possible with a display port. This is indicated in each product page.

  • I'm on a W7 PC, of FlashProCC. -Have a Z1, jpg in the library. Choose Properties, export for ActionScript and get name Z1, class flash.display.BitmapData - how I introduce in a display by using Action Script 3.0 object?

    I'm on a W7 PC, of FlashProCC. -Have a Z1, jpg in the library. Choose Properties, export for ActionScript and get name Z1, class flash.display.BitmapData - how I introduce in a display by using Action Script 3.0 object?

    var z1:Bitmap = new bitmap;

    Z1. BitmapData = new Z1 (1,1);

    yourDisplayObject.addChild (z1);

  • When I go to the school Web site I get this: "... must use a browser supporting JavaScript ' FF says it does.?

    All of a sudden will not work the usual procedure to get to the class of the school system. Web address: <www.fordhamprep.org>, you change to <"rel = 'nofollow' > powerschool.fordhamprep.org/teachers > and then ask user name and password." Worked well for, what, 3 years. Now I get: "To do browser that enabled Java Script." From what I can tell, Firefox doesn't work. If I activate IE, everything works great! BUT I NEVER use IE (except that once to see if it would work). I have not downloaded the updates except the last Firefox/Thunderbird/Adobe ones. School technicians say it's my office (PH Pavilion p6210y PC Win7HomePrem. I prefer not to use IE because I do not trust Microsoft. I only use Win because I have no choice.

    I tried the 'Safe Mode', but nothing has changed. I saw the 'reset Firefox' and after letting things settle back in and tried it, but nothing has changed then either. Thanks anyway.
    I don't really understand the suggestion of cor - el. Anyway, I went to Mozilla and downloaded Firefox and install a new copy and who seems to have done the trick! The tenacious school Web site posts is no longer the sign of need of JavaScript. Of course, a door somewhere may be raising and lowering, but...
    Thanks for the suggestions... and the school wants to go completely electronic and computer texts in all the classrooms 1 to 1... May God help us!

  • How to use the external USB camera on iPhone IOS 6?

    Hello

    I need to use an external USB Endoscope for the inspection of vehicles and etc. using IOS on iPhone 6.  I bought an external USB 2.0 adapter lightning, plugged in the endoscope (comments showed that this endoscope works on IOS devices) and it pops up and says that the device used too much power to be used on the device.  You are not sure if Apple cut the device to use at that time or not? But the device was always powered up as shown on the drive of the USB light on the endoscope.

    I downloaded several types of applications of the observer including I think that the right VLC who apparently used one of the reviewers and I couldn't figure out how to get an any of them to allow the selection of an external camera.

    Does anyone have an idea if it will work or how I can make it work?

    I would be very grateful for any input or assistance with this!

    Here is the link of the product:

    http://AMZN.to/25pJpXY

    Thank you very much

    Dave

    I must also point out that this unit has worked on Android Samsung Galaxy Note 5 with no problem and no warning of power.

  • Measurement error of the County of edge by using the external sample clock

    Hello

    I'm trying to measure the number of edges (rising) on a square wave at 5 kHz with a generator function on a device of the NI PCIe-6363. I configured a channel of County of front edge of counter at the entrance of the PFI8 device. I use an external sample clock that is provided by the output of the meter of a NI USB-6211 housing channel. If I acquire for 10secs then ideally I would expect to see a total of 50000 edges measured on the meter inlet channel. However, my reading is anywhere between 49900 and 50000.

    When I use the internal clock of time base to measure the edges, the measure is accurate and almost always exactly 50000. I understand that when you use the external sample clock, the precision of the measurements is subject to noise level of the clock signal. However, I checked the clock signal is stable and not very noisy. Any reason why there is an error of measurement and how tolerance should I expect when using an external sample clock compared to when you use the internal time base clock?

    Also, what is best clock Frequency (with respect to the frequency of the input signal) when using an external clock?

    Thank you

    Noblet

    Hi all

    Thanks for all your sugggestions. I was using an input signal with a function generator which had a range of 8V. It turns out that the reduction of the amplitude to 5V solves the problem. I was able to get accurate numbers with the 6211 external clock.

    Thank you

    Noblet

  • To use the external clock for SCTL myRIO

    Hi people,

    I'm trying to find a way to get a 2.5 PSM 16-bit ADC, TI ADS1602, to send data to the device myRIO. Ideally, I'd like to bit Records at 40 MHz in order to obtain the benefit of the PSM full 2.5. I know that I can create an 80 MHz SCTL on the FPGA to create a clock of 40 MHz, but when I checked the clock on an oscilloscope signal, it was obviously greatly degraded by bunch speed limits, so he looked more like a sine wave to a square wave. I doubt it would work for use as a clock signal to drive the ADC since ADC specifications say that eligible jitter is around 100ps.

    I can use an external oscillator to drive the ADC, but then I have to find a way to sync the clock with clock FPGA 40 MHz. is there any kind of PLL structure that would allow me to sync the clock FPGA myRIO to an external clock? Is there a way to do a loop simple timed cycle driven by an external clock? Or if I was able to customize the FPGA personality to accept a SPI signal up to 40 MHz (ten times her supported limit...), he would be allowed to use an FPGA to ~ 160 MHz and tell him to taste the SPI line each loop and proceed from there?

    Thank you!

    Hi 3.14159... ,

    The myRIO doesn't have the ability to import a clock to use on the FPGA block diagram for clock loops timed cycle unique (SCTLs). The sbRIO-9651 new coming out week OR (not shipping yet) is the only sbRIO who has the ability to import an external clock in LabVIEW. Many of our products FlexRIO also have this ability.

    Like you we have it, you can taste the signal at twice the frequency (or maybe more) to and wait an edge trigger to run a certain element of logic. "" "If you open the example Finder and navigate to hardware input and output" R series "FPGA Fundamentals ' triggers and guard dog" trigger detection, this gives a simple example to do this. Once again, since you are eager to taste 10 times the frequency of support, all bets are off, but it may be worth trying.

  • Recorder has bad quality mic, how can I use an external mic

    my tape recorder picks up the sound of my laptop fan motor when I record my study notes. I want to use a professional external microphone, but when I plug in an external microphone it won't work with my tape recorder. How can I get clear voice recordings more?

    Hi lisagroves,

    1. are you using any sound recorder third ot Windows sound recorder?

    2. what happens when you use the external mic? You receive messages or error codes?

    Method 1:

    Step 1:

    If you use a third-party tape recorder, then try windows pollsters and check.

    Record sounds

    Step 2:

    If you use the windows sound recorder, and then try to run the audio recording convenience store and check.

    Troubleshoot audio recording

    Method 2:

    Uninstall and reinstall the sound drivers.

    a. click on start

    b. type devmgmt.msc in search, and then press enter

    c. in find Manager device for the device, right-click on it and select the option uninstall.

    Update drivers: recommended links

    Hope this information is useful.

  • I can't enter the bios using the external monitor

    Hello, I use Dell Inspiron n4010 for the last 2.5 years. My laptop monitor stopped working that's why I bought an external Dell monitor... Its works fine but I need to install the windows now... Unfortunately, I cannot get into the BIOS of the external display and can not change the device to initialize DVD ROM.

    Please can someone tell how to enter the BIOS using the external monitor (I put it as a main monitor, but it still does not work)? The Monte screen after windows starts... Is it possible to get it back? Help, please...

    Yes - I know - it's what I'm trying to show you how!

    If you follow my instructions in my last post, you will see nothing for the "six seconds".but the startup process stops at the BIOS screen and FN & F1 or F1 key will rise from the dead internal to external monitor.

  • How to use an external hard drive to share files with other computers

    I have a HP Personal Media Drive that is currently used to share files with another computer. However, it is very old and I want to continue the sharing of files. Can I use an external hard drive? and if yes, how I have set up?

    I have an external hard drive, Toshiba-1 t. It is connected with a USB cable. My computer has wireless access, and the other computer does not work. The internet allows us to connect.

    Suppose that your external drive to your is connected to PC 1. When you open Windows Explorer on PC1 then this disk will appear as if it was a local, integrated drive. To make it accessible to PC 2, you need to "share". When you type this phrase in a Google search box then you will get many excellent recipes step by step on how to do this:

    sharing files in Windows

  • Cannot access my wifi using an external keyboard... Help...

    I had to get my laptop because of the buttons keyboard not working not properly. I use an external keyboard, but I can't access my wifi. I tried to use the F12 key to activate the wifi on the external keyboard, but with no luck. Any help would be appreciated...

    Unfortunately - your wifi controls can be BUILT INTO the keyboard that is PART of your laptop.

    There may be other methods to turn your specific wifi - you should contact the manufacturer of the system and/or read all documentation of any system make and model you have.

  • Anyone know where I can get a formatting tool to format an external hard drive to FAT32?

    Anyone know where I can get a formatting tool to format an external hard drive to FAT32 using OEM of Windows 7 (32 bit).

    I want to use a Western Digital elements external Hard Drive 500 GB/GB on my Panasonic Blu RAY recorder DMR-BW850.

    Formatting on W7 tool reformatted hard drives only as exFAT, who does not work, works only FAT32.

    original title: FAT32 formatting help

    Throw on this article. This can be easily done from the command prompt.

    http://www.online-tech-tips.com/computer-tips/formatting-external-hard-drive-to-FAT-32/

    Remember that you cannot store a file that is greater than 4 GB on a FAT32 partition.

  • Generate class files using the WSDL url and wsimport

    I am trying to create a java application that hits the service exposed by hub.

    To create the application in java, I'm generating class files using the WSDL that is created and exposed by the hub.

    Executed steps:

    1 created an application in OPA.

    2. deployed on the hub (usinf deploy option of snapshot on Policy Modeling)

    3. in the deployment tab, I see the request and get the url of the wsdl by clicking on it.

    I try on this wsdl wsimport command. But it gives me following error messages.

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

    C:\***\AllFiles > wsimport http://localhost:7001/hub/determinations-Server/assess/SOAP/generic/12.2/AttemptOne?WSDL

    the analysis of WSDL...

    [ERROR] invalid WSDL http://localhost:7001/hub/determinations-Server/assess/SOAP/generic/12.2/AttemptOne?WSDL , expected {http://schemas.xmlsoap.org/wsdl/} html (line 2) data definitions

    Cannot read the WSDL document: ( http://localhost:7001/Hub/determinations-Server/assess/SOAP/Generic/12.2/AttemptOne?WSDL , because 1) did not find the document. (/ 2) the document could not be read. (3) the element the document root is not < wsdl:definitions >.

    [ERROR] WSDL:service is not found in the WSDL (s) provided:

    At least a WSDL with definition of at least one service must be provided.

    Unable to parse the WSDL file.

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

    If I store the wsdl file in a file on my local computer, and then run wsimport, it generates the classes very well.

    Can someone provide me with a way that I can generate the classes using the wsdl url and not the local file?

    Also, do I need to create a connection in the Connections tab on the hub?

    Thanks in advance.

    -Alain

    Looks like you could run in the user authentication when wsimport runs against the WSDL. Instead of the WSDL, its reception, the login page.

    The best way to work around this problem is perhaps what you do already - to obtain the wsdl and save them in a file.

    Another solution is to disable the restriction of connection to the Web Service API. You can do this in the menu on the users page (admin role can turn on and off.

    You can switch between a user and a password with the call of the WSDL file, but I don't know if its possible to do with wsimport

    See you soon

    Frank

  • Hiding items using JavaScript external

    Hello!  Hopefully an easy question here.

    I have buttons in 9 Captivate, I need to hide/show using an external JavaScript that comes from an imported HTML5 animation.

    Currently, I am doing it this way (though without success):

    The next button is named "next_button_2" because it is on slide #2.

    Inside the index_scorm.html, I added a function:

    function disableNext()

    {

    var slideNumber = window.cpApIInterface.getCurrentSlideIndex (); to get the number of the current slide

    nextButton var = $("#next_button_" + slideNumber);

    then I tried using code such as nextButton.style.visibility = "hidden"; or nextButton.hide (); etc, but nothing seems to take.  I don't know that I am not pointing to the element correctly.

    };

    Inside the imported animation of HTML, I have the following code:

    Window.OnLoad = function disableButton()

    {

    parent.disableNext ();

    };

    I know that the functions are talking to each other that I have experienced with passage of variables, I know that the variable slideNumber is allocated a number of law.

    How do I point to the right object to hide/unhide it?

    Thank you!

    Window.parent.CP.Hide ("next_button_" + slideNumber)

  • Examples on how to use the external value of the vro

    I'm trying to use the 'external value' VRA 7 feature to get data for a property definition.  Examples or guides?   I have a quick action that returns the string, but I get this error

    externalvalue.JPG

    Figured it out... the exit on the action must be array/string...

    now working to reproduce the relantionships parent on custom properties that not available in version 7

Maybe you are looking for

  • Main problems after upgrading from XP to Vista on Qosmio F20

    I have recently upgraded from XP to Vista on my Qosmio F20 and having problems. It seems that I lost the ability to change screen resolutions, to adjust the volume, brightness, etc. Basically, I lost the laptop functions. I also tried updating the BI

  • Satellite 110CS BIOS update diskette

    Hi, I have an old Toshiba Satellite 110CS and when I have it lit three days ago, I get a blank screen with a prompt to insert a disk in the BIOS update.I do not know what file to download on your site for the 110CS-is "s1110 - 150trad.zip" for s1110

  • sound no longer works on Chromebook C720

    The sound stopped working on my old Chromebook C270 of 6 months. What can I do?

  • Scanning old Photos using Windows Photo Gallery

    I am digitizing my old family pictures using Windows Photo Gallery, but each individual image that is scanned is saved as its own folder in images. Obviously, I would save each individual image as a file/thumbnail to a named folder. I've been in Opti

  • USB device not recognized Vista

    All of a sudden my usb ports no longer work. I get a message that my USB device not recognized. I tried other cables without result. I used a Logitec USB mouse and was also download an iPod from itunes update. None of my USB ports work. I tried other