Simple question about the file .AS in flex3 code integration

I'm sure it's very easy for most people, but I can't understand it off... nada, zilch...

I have this file ( file of optimized Perlin noise), and I'm trying to register / make available in my code flex3. I can't get the code right names/import space, and I'm not sure - because of the namespace - if I'm supposed to put this file in a collection of subfolders (something like: nl/ronvalstar/math...). The end result is for me to be able to replace the BitmapData.perlinNoise method with a version optimized for the generation of clouds in real time.

I would be grateful if someone could give the code for this file integrated.

Thanks :)

You must place the file in the folder (> indicates subfolder)

SRC > nl > ronvalstar > math

You are supposed not only to put the file here, you put it here. In fact, it must put a packet having all its classes in the corresponding folder.

Then, use

Nl.ronvalstar.math import. *;

at the beginning of the section of your mx:Script. Or - just import the single class - use this:

Import nl.ronvalstar.math.OptimizedPerlin;

Tags: Flex

Similar Questions

  • I have a simple question about the meta-data.

    Hello. It is a simple question about the meta-data. How can I get the video bitrate of a flv or mp4 (video playing via NetStream file) file

    right now I have this:

    Code
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object)
    {
    for (var in meta props) {}
    trace (props + ":" + meta [props]);
    }
    MovieClip (root) .durations = meta.duration;
    trace (MovieClip (root) .durations);
    };
    NS.client = netClient;

    And my output is:

    videocodecid: avc1
    audiocodecid: m4as
    aacaot: 2
    Width: 960
    AudioChannels: 2
    videoframerate: 23.976
    TrackInfo: [object Object], [object Object]
    moovposition: 32
    avcprofile: 77
    audiosamplerate: 48000
    avclevel: 31
    seekpoints: [object Object], [object Object], [object Object], [object Object]
    height: 540
    Duration: 221.312

    As you can see, there is nothing of video bitrate.

    I know that the video bitrate of my videos, but then I have to manually type each number of bitrate into my flash project, and it would be such a fuss when I have a lot of videos. Would be nice if flash can detect the video bitrate.

    It's for my online portfolio.

    Why you divide by 8?  If you want to convert bytes into bits, multiply by 8.

  • Simple question about the signing of the app

    Hello.

    I develop libraries to be used in other apps.

    It will be a cod file, its name will be added to the jad as a dependency.

    My library has access to the secure API (call of the browser), so I have a simple question:

    can I register only my cod library or application that uses my library is expected to be signed in too?

    THX.

    You should be ok just signature cod of the library, if your application uses any API secure. However, I just make a habit to sign everything just in case.

  • Question about the files to be transferred on the Satellite Pro L40

    I have a portable Satellite Pro L40 and bought a upgrade disk to upgrade Vista Home Basic to Vista Home Premium.
    But I can not install the upgrade because drive C is showing that only have 8 GB of space.
    Drive E has 30G of space, but I can't transfer files from C to E to free up enough space.

    Please can someone tell me how to transfer files from C to E?

    I can ask the same thing as Akuma - why can you transfer files from C to E of t?

    Open two windows in the Windows Explorer. On the left side of the C drive on the right side of drive E.
    Mark all the files on the left side and move them to the right window. When you do with the key right mouse options will be displayed. Choose the MOVE option and I hope that the adaptation procedure will be launched.

    Have you ever tried to do this?
    An error message appears on the screen?

    Question sorry but described is completely illogical.

  • question about the file ppcrlui in the temp folder

    I had two files that were recently uploaded on c:\Users\username\AppData\Local\Temp\. My AV software informed me that the files were safe.
    ppcrlui_492_2
    ppcrlui_3348_2

    Can someone tell me what they are? Are they really safe? I am never notified of them being downloaded before that.

    TIA.

    These files are part of the library of interface user customer passport (ppcrlui.dll) and there is no need to worry about this file, they are just temporary files from the Windows ppcrlui.dll file which is part of Microsoft CoReXT.

    Hope that you are satisfied with this response.
    Yuri

  • simple question about the performance of views

    I have a discussion of work (battle) with several developers about the misuse of the views. Basically, they want to do a load of remote data to the server using views. Its code is from a full view and join between views by using all kinds of methods, such as LEFT OUTER, DECODE, etc.. I don't think that's right, I know that they must use the procedures to extract information and transform into tables and loading (ETL). But sometimes I'm new on the job and I have all the arguments so that they believe me, in my opinion as the join of all these points of view produces less than optimal. I think it is correct to consult to see if I'm right or wrong.

    Thank you.

    You are right. A view is a query online. Why anyone would add this to an ETL process?

    Avoid as much as possible the views and use SQL statements to query the tables directly.

    (I wonder if they like paying anything?)

    Views are likely to require analysis that cause performance problem.

    Views can result in countless columns returned when all you really need are some of these columns.

    The best way to win this (fight) is to offer to write the SQL code for them.

    A little explains plans before and after will not hurt either.

    Best regards

    mseberg

    Published by: mseberg on August 20, 2011 19:58

    Database Performance Tuning Guide B28274-02

    16 SQL Tuning Overview

    Effective development of SQL statements

  • simple question about the condition

    I have a simple code:

    function fl_TouchEndHandler_v(event:TouchEvent):void

    {

    event.target.stopTouchDrag (event.touchPointID);

    var targets_v;

    var obj_v = event.target;

    event.target.stopTouchDrag (event.touchPointID);

    targets_v = (obj_v.DropTarget.parent)

    obj_v.x = targets_v.x

    obj_v.y = targets_v.y

    trace (targets_v.Name);

    my_sound_v.play ();

    I need to write a condition (if or while) that will do something if my sound does not play (for some reason any).

    Find the Sound class in the Flash help documents.  In the section covering the load() method, there is an example that uses a try/catch approach, but also an event listener...

    try {}

    SND. Load (req);

    SND. Play();

    }

    catch (err: error) {}

    trace (Err.message);

    }

    snd.addEventListener (IOErrorEvent.IO_ERROR, errorHandler);

  • Simple question about the race of the Illustrator borders - help please!

    Hello

    I'm new to Illustrator, and I can't understand something.

    I have a simple rectangle with a fill color, say red and a color of outline of us Let's say blue. Then, I use the drop down menu on the horizontal tool bar options change the race of a simple contour to something that looks more like a decorative edge. In CS4, I use the last option on the drop down menu, which has to stroke brain/border corners around the inside of the curve. When I chose this option, the filling remains as a rectangle with sharp corners that 'out' where the accident vascular cerebral/border curve inwards.

    I would like to know how to keep the race/border while getting rid of corners of the rectangle that die. I tried the erasure of the rectangle, but negatively affecting the border/stroke shape.

    Thank you very much for your help.

    David

    There are a few ways (or maybe more) to do. Both involve separating the object into two parts, one with a fill and no respect and the other of a sudden and no fill. Make sure that the trace object is on top and apply the brush line, then lock it. Add and remove anchor points at the four corners to get the below form (magenta rectangle) that will be hidden by the brush line. You can also do it using object > decaying appearance to generate the two forms of the original.

  • Simple question about the field in 4.7.0 class

    Hi, people.

    No one knows what method of field controls class that the virtual keyboard is displayed when the field is concentrated.

    I implemented a custom field and when it happens the keyboard displayed discussion. And I want to avoid this.

    What is the method that I need to replace to avoid the display of the virtual keyboard?

    Thank you.

    You can use the internal VirtualKeyboard onFocus of your custom field and onUnFocus methods to control the display of the virtual keyboard.

  • A seemingly simple question about the free transform tool.

    I have always used the free transform tool where the thing that turns in the background, and the transformation automatically makes a new layer. How can I do if the transformation will not cause a new layer, and it won't be the thing in the background which has been transformed to the original?

    I noticed that with other people, it is not the thing that has been transformed in the background, so they have to deal with him.

    Edit - Transform does not a new layer automatically AFAIK.

    Any chance you've been making is something like this?

    1. duplicate the layer with the tool move, possibly by holding down the Alt (or Option) key while dragging with the mouse.

    2 to see the transformation of the controls is enabled for the tool move, which means that the show handles when the move tool is selected and immediately, it would be possible to transform what has been moved / duplicated.

    -Christmas

  • I have a question about the time machine. I recently updated my Quicken 2015 and there was something wrong with the update. Can I go back in just the Quicken file and restore it until I downloaded the update do I have to restore the entire

    I have a question about the time machine. I recently updated my Quicken 2015 and there was something wrong with the update. Can I come back in all the Quicken file and restore from time Machine before I downloaded the update to do, I need to restore the entire computer?

    Yes, you can just restore this file or application. Use Time Machine to back up or restore your Mac - Apple Support

  • Question about the recovery partition

    Hello.

    I have a question about the recovery of HARD drive partition.

    If I do the operation to clear the hard disk option in the wizard it will remove * all * or it will keep my partition recovery in this way I can come back later. I want to know because I would like to put on a different OS.

    I know he said he would, but caution in the PDF, I found it says that on a normal recovery too (that he would remove each partition) and I'm a little confused about how the recovery actually worked.

    Thank you.

    Hey Buddy,

    To be honest I n don't know what you mean exactly with this option to erase.

    In General, Toshiba Recovery disk will wipe your entire HDD to restore factory settings correctly. This means that if you start from that disk and follow the instructions on the screen, everything will be removed.

    In addition, the recovery disk doesn t create a recovery partition. It is not available. Disk copy just the files on the second partition in folder HDDrecovery to start an installation of HARD drive recovery.

  • Re: Several questions about the recovery of the Satellite L750 features

    I have several questions about the recovery of Satellite L750 features available to it. Any help and answers would be useful.

    (1) when I started the laptop first, he asked me to create a recovery CD incase I need to reinstall the operating system. But he also said that he built in the recovery partition, so therefore, I have to make a recovery cd or not?

    (2) will be the recovery CD is exactly the same as the recovery on the system partition?

    (3) is the partion of CD or recovery includes all the integrated software pre-installed with the laptop?

    (4) also in the device manage management it shows watch partion recovery but it is empty, is it true?

    (5) in the second partition (drive D) system, he has a record with what looks like the recovery of files and folders. Is it safe to move/remove it?

    Hello

    I'll try to provide answers:
    1 - to ensure that everything works perfectly you don t need these discs, but if something goes wrong with the HARD drive you will not be able to do anything. When you have the recovery DVDs, you will still be able to install the recovery image and once again the factory settings. So my advice to you is: create these discs as soon as possible. Use only on DVD-R media and buy products of high quality (TDK or Verbatim).
    2 - Yes.
    3 - Yes.
    4 - No. Don t be confused with this.
    5. in a first time create restore DVD, and later you can do what you want. I put t know which files mean you but don t touch anything before that of the recovery disks to be created.

    In the past, many people have been experimenting with the structure of HARD drive and partitions and later was surprised when installing disk recovery HARD has been damaged. Don t make the same mistake.

    If you have any other questions you are welcome.

  • Recently bought a laptop computer; A few questions about the offer Upgrade to Windows 8

    I have a few questions about the Upgrade of Windows 8 offer for new computers.  I recently bought a Toshiba Satellite S855-S5268 of amazon.com, which came with Windows 7 Home Premium.  Toshiba already has a beta version of drivers and utilities for Windows 8 for the S855 on their Web site.

    (1) I bought my laptop in July of this year, and I've not yet registered for 8 Windows Upgrade offer with Microsoft.  Am I still eligible to receive the upgrade, if I sign up soon?
    (2) if I buy the upgrade through this offer, I'll be able to download an ISO file so I can burn the installation media, or do I need to upgrade to Windows 7?
    (3) if I will be able to burn the installation media, I'll be able to erase my hard drive and do a clean install of Windows 8 (which I'd rather do, I have a lot of backups of my data).  I am aware that I would probably need to provide my product key Windows 7 Home Premium 64-bit OEM during the new installation, because it is an upgrade and not a full version; This isn't a big deal, because my Windows 7 Home Premium 64-bit OEM product key is stuck at the bottom of my laptop.
    (4) my current copy of Windows 7 is activated by seeing my BIOS (I have a traditional BIOS, not a UEFI).  If I had to switch to Windows 8 and decide then I'd rather back in Windows 7, for example, a few months later, I'll be able to do that (I burned recovery of Windows 7 with the Toshiba utility disks, which I did), and Windows 7 will continue to activate by seeing my BIOS, even after the installation (and later remove) Windows 8?
    Thank you very much!

    I have a few questions about the Upgrade of Windows 8 offer for new computers.  I recently bought a Toshiba Satellite S855-S5268 of amazon.com, which came with Windows 7 Home Premium.  Toshiba already has a beta version of drivers and utilities for Windows 8 for the S855 on their Web site.

    (1) I bought my laptop in July of this year, and I've not yet registered for 8 Windows Upgrade offer with Microsoft.  Am I still eligible to receive the upgrade, if I sign up soon?
     
    Yes, the registration period is between June 2, 2012 to January 31, 2013.
    (2) if I buy the upgrade through this offer, I'll be able to download an ISO file so I can burn the installation media, or do I need to upgrade to Windows 7?
     
    Yes, the Upgrade Wizard of Windows 8 will allow you to create a bootable DVD or you can grab the ESD file and save it.
    (3) if I will be able to burn the installation media, I'll be able to erase my hard drive and do a clean install of Windows 8 (which I'd rather do, I have a lot of backups of my data).  I am aware that I would probably need to provide my product key Windows 7 Home Premium 64-bit OEM during the new installation, because it is an upgrade and not a full version; This isn't a big deal, because my Windows 7 Home Premium 64-bit OEM product key is stuck at the bottom of my laptop.
     
    Yes and there are better ways to reinstall Windows 8 without using the installation disc, you can use the reset and refresh.
     
     

    These steps will take you through refreshing your PC:

    · Press the Windows key + C on your keyboard to show the charms (if you use a touch screen: touch the right edge of your screen and drag your finger to the left)

    · Click settings

    · Click change PC settings

    · Click general in the left column

    · Under refresh your PC without affecting your files, click Start

    Then follow the instructions that will be provided on-screen to cool your PC.

    (4) my current copy of Windows 7 is activated by seeing my BIOS (I have a traditional BIOS, not a UEFI).  If I had to switch to Windows 8 and decide then I'd rather back in Windows 7, for example, a few months later, I'll be able to do that (I burned recovery of Windows 7 with the Toshiba utility disks, which I did), and Windows 7 will continue to activate by seeing my BIOS, even after the installation (and later remove) Windows 8?
     
    As long as you have a recovery disk which you should create or use the construction in the recovery partition, Yes, it will self activate.
    Thank you very much!
  • Very simple questions about DPS

    I have a few questions about the tools and DPS.


    1. What is the difference between Folio and DPS Article?

    I think that the two format have a fixed layout. I don't understand difference and the merit of the Article of DPS.

    I want to know why the Folio was disappear and replace by Article of DPS.


    2. I want to know that all publish root of DPS. (ex.) App Store for iOS, Google android game and..)

    I know that I can make the app, iOS, Android, and windows for each stores with DPS.

    If I want to publish to the Kindle store, iBooks store, store kiosk to newspapers or on the Web site, I don't need using DPS?

    3 if I want to book recomposable (like reactive Web site), I shouldn't use InDesign?

    Is there a process for making recomposable document with InDesign?

    can I use text editor, DW or muse? (such as the manufacture of the normal site)

    I want to know the standard method book recomposable.


    Sorry for my bad English.

    1. I know you probably talk format but essentially, a DPS classic folio is now a collection, the items in the collections are always content

    2 - iOS, Android and Windows platforms that you can publish on are

    -We do not support the Kindle store

    -For book content type, you want to use the ePub format, please see the following links:

    http://wwwimages.Adobe.com/content/dam/Adobe/en/DevNet/digitalpublishingsuite/PDFs/DPS_and _ePub_FAQ.pdf

    https://helpx.Adobe.com/InDesign/how-to/eBook-fixed-layout.html

    3 - InDesign has the ability to create recomposable ePub

    See this tutorial: https://helpx.adobe.com/indesign/how-to/ebook-fixed-layout.html (with exercise files)

    Hope that helps!

Maybe you are looking for

  • HP Pavilion dv6820ee notebook PC

    I have HP Pavilion dv6820ee notebook PC My laptop does not connect to the data source or to another monitor screen for windows 7 has been installed I tried to download the nvidia driver, but still it won't work, now, the system can identify the 2 scr

  • HP Envy 5540: Photo paper will not be printed

    Just got this HP Envy 5540, and when I try to print a photo of 6 x 4 from the drawer special 6 x 4 photo, it shows just a printing 6 x 4 on the main under tray A4 size paper. What is the point of this special photo print bed if she does not? I tried

  • need help with registration? !

    HelloI can't save my Toshiba laptop. I always get the information that it is already register. I find that someone has done a week before I bought my computer. I can not even load to the bottom of the upgrade of Windows7. Now I don't know what to do.

  • Wireless and network

    I have a "450 HP NOTEBOOK PC". I can't use bluetooth because after that I reinstalled the operating system win 7. I installed "Railink bluetooth driver software", but it does not work.Still, I don't know what network controller driver is required to

  • Contacts Outlook of Smartphones blackBerry vs BB device

    I was victim of a different Contacts problem after update to the last version of my BB. 1. many of my contacts, used like rabbits. 2. when I deleted one of the instances that each of them could be erased. 3. I deleted ALL that my contacts have been w