Problem with persistence through scenes

I have a student who has created some code - see below. At the present time, this code is in Scene 5 - but the blocks will also appear on other scenes.

  1. How it not limit this code for just one scene?
  2. It can replicate this to be used on other scenes, but from fees.

Currently, 50 blocks spawn above the other. They are used for teaching addition or multiplication. When they were dragged in a model, we do we want the model to another scene, that they on top of the other.

The code is not too elegant, but it works except no repeats through scenes.

Block =]

This function creates a block at a given location and adds it to a table

new identifiers are block30 and so on

function spawnBlock() {}

blockSpawn = attachMovie ("block", "block" + _root.getNextHighestDepth (), _root.getNextHighestDepth (), {50, _y:300}) _x:5;})

Block.push (blockSpawn._name);

}

Does the funtion spawnBlock 50 times create 50 new blocks

replace 50 the number of blocks as you want

for (i = 0; i < 50; i ++) {}

spawnBlock();

trace (Block [i]); test if the funtion worked

}

function dragSetup (clip) {//this is used to assign a clip to funtion that can be reused with each block is created}

clip.onPress = function() {}

startDrag (this);

}

clip.onRelease = clip.onReleaseOutside = function () {//same as above}

stopDrag();

}

}

This allows each block that is necessary to drag

Add more lines to let blocks more get dragged

dragSetup (block0);

dragSetup (block1);

dragSetup (block2);

dragSetup (block3);

dragSetup (block4);

dragSetup (block5);

dragSetup (block6);

dragSetup (block7);

dragSetup (block8);

dragSetup (block9);

remains removed for brevity.

use:

function clear_blockF (): Void {}

for (var i: Number = block.length - 1; i > = 0; i--) {}

This [Block [i]] .removeMovieClip ();

}

Block.Length = 0;

}

Tags: Adobe Animate

Similar Questions

  • Problems with persistence

    Hello world

    It is my first post so excuse me in case I made a mistake. I'm a newbie in the development of BlackBerry applications and I have a serious problem with persistence. Indeed it does not at all. I use Eclipse IDE with BB plugin, version 4.7 and 8110 BB JDE Simulator.

    As nothing was working at all with persistence, I wrote this simple code that runs at the beginning of the application. First time PersistentObject content must be null and filled by a new "position". Next time I run the app the persistentObject content should contain only 'Position', shouldn't it?

    Here is the code for the evil, what am I doing wrong?

     private void prueba()    {       Posicion pos;       PersistentObject persistentPosicion = PersistentStore.getPersistentObject(Posicion.class.hashCode());       synchronized (persistentPosicion)       {           if (persistentPosicion.getContents() == null)           {               pos = new Posicion(-1.45878, 42.3657489, 12, new Date().getTime());             persistentPosicion.setContents(pos);                persistentPosicion.commit();            }           else            {               pos = (Posicion)persistentPosicion.getContents();           }                       }     }
    

    And the class 'position ':

    public class Posicion implements Persistable{ private double longitud;    private double latitud; private double velocidad;   private Long fecha;     public Posicion()   {       longitud = 400;     latitud = 400;      velocidad = 0;      fecha = new Long(new Date().getTime()); }       public Posicion(double longi, double lat, double vel, long fech)    {       longitud = longi;       latitud = lat;      velocidad = vel;        fecha = new Long(fech); }       public Long getFecha() {        return fecha;   }       public double getLatitud() {        return latitud; }       public double getLongitud() {       return longitud;    }       public double getVelocidad() {      return velocidad;   }       public void setFecha(Long fecha) {      this.fecha = fecha; }       public void setLatitud(double latitud) {        this.latitud = latitud; }       public void setLongitud(double longitud) {      this.longitud = longitud;   }       public void setVelocidad(double velocidad) {        this.velocidad = velocidad; }}
    

    I'd appreciate any kind of help. Feel free to ask what you consider necessary to solve my problem. I'm really stuck with it.

    Thanks in advance.

    JosuB

    in the jde, there is a string to long converter. try to use a generated for a long time for the store rather than the hash code.

  • Sporadic problems with pdf through Citrix session

    We run Citrix XenApp 6.5 with the installed 15.10.20056 CD player.  Sporadically when we launch a PDF through our session, data will not show, but this is.  If you take the mouse and you're trying to highlight, it will then appear and be seen.  If this isn't the case, then the user does not know it is there.  This does not always happen however, and the text will appear without having to highlight something.  We have tried to disable scrolling smoothly and some other items made, but it doesn't seem to make a difference, unless there is a setting I'm missing somewhere?  Any ideas are appreciated.

    Hello

    We did some checking and looked for a solution.

    Finally, we found this setting here in the image:

    In our area is the problem with the display of PDF files in Citrix Envirement

    much better (.. maybe went) if we change this setting on "Immer" (always).

    Can check you in your area too?

    Thanks for your comments!

  • Problem with SlingTV through Airport Extreme?

    I have a Motorola SB6141 cable modem, internet of Time Warner and an Apple Airport Extreme Base Station (later) for my setup. While SlingTV is not a great service, it was $ 20 a month and gave me what I need and has been much better than that Time Warner was in charge me for the same channels.

    Despite the problems of freezing SlingTVs or what not, for a while it worked. But one day a few months back it just stopped working. When you open the app, it either does not open or just turns and turns to be forgotten and never access the content. But if I try on my phone (Verizon LTE), or another network outside my apartment with the iPad or computer laptop, it works. So at home, I tried to go directly from the cable modem and right in the Apple TV (previously an Xbox) and when I do that it works. So really what it boils down to, is my Apple Airport Extreme Base Station router. If I'm either directly connected to the Airport Extreme Base Station (Apple TV ethernet to the router), it will not work, or if I use WiFi via the Apple Airport Extreme Base Station it will not work. But directly to the modem cable or on any network outside of my home, the service works.

    So in short, something about setting up Apple isn't allowing the Sling TV app to open or work on any device. I even did a rest of the plant and installing my Apple router once again, and the same problem persists.

    FYI - I use Netflix, Amazon Prime, Hulu and all the Apple TV, TV shows, rental movies and content without ever having a problem with opening or streaming. This only happens with SlingTV when you try to access content on any device (iPad, Apple TV, Xbox One, iPhone, Macbook Air) via WiFi or Ethernet via Apple Airport Extreme.

    I tried to provide all the little details that I could. If someone could please provide a solution I would really really appreciate it! Thank you.

    Well first of all try to port forwarding. Slingbox I guess would use a similar to SlingTV montage... Unfortunately when I google for it I see just people having so many questions like you... no rigging, no answer they give up.

    http://PortForward.com/English/routers/port_forwarding/Apple/AirPortExtreme/Slin gBox.htm

    It is the old airport of model, but the idea is correct.

    If you still have questions... There is a major problem... port 5001 is used by the airport for its installation...

    If I run a scan of port of network utility, that you will find that it is already used.

    Port scan started...

    Host port scan: 192.168.2.201

    Open TCP Port: 5001 commplex-link

    Open TCP Port: 5009 winfs

    Port scan has completed...

    My recommendation is to replace the airport as your main router... Something good market like the C5 TP-Link or the WR1043ND which is less than $50US. These routers use UPNP is missing on the airport. Continue to use the airport for your customers to apple as WAP and switch.

    BTW: this is no bad thing because you also have a known problematic modem... SB6121 and SB6141 have major problems... do a quick search and you can find a lot of posts about this.

    TWC has also now use IPv6... that can ruin.

    See the instructions for installation (same as comcast for TWC).

    http://mydeviceinfo.Xfinity.com/download.php?file_id=35

  • Problems with DVD Maker scenes

    I created a video in Windows Movie Maker and published in a wmv file. Then I took this wmv file, put it in DVD Maker and burned a DVD. I have two questions that I can't answer:

    1 DVD Maker split my film at random into 'scenes', which is cool, but is it possible for me to control where the scenes start and stop? DVD Maker seems to do it randomly, and he chooses very bad places to do this occasionally :)

    2. on the page 'scenes' in the menu, each scene Gets a screen, but is there a way for each scene to be named so?

    Any idea is appreciated. Thank you!

    I created a video in Windows Movie Maker and published in a wmv file. Then I took this wmv file, put it in DVD Maker and burned a DVD. I have two questions that I can't answer:

    1 DVD Maker split my film at random into 'scenes', which is cool, but is it possible for me to control where the scenes start and stop? DVD Maker seems to do it randomly, and he chooses very bad places to do this occasionally :)

    2. on the page 'scenes' in the menu, each scene Gets a screen, but is there a way for each scene to be named so?

    Any idea is appreciated. Thank you!

    ======================================
    The best would be to create small movies in Movie Maker.
    You can import up to 18 and each will become a scene (chapter).
    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Strange sound problem with Satellite L740 TV outputs

    I'm having a strange problem here... I googled this several times already, and I only found the same solution mentioned several times and the given solution * not * work is to me.

    I have a Toshiba Satellite L740 running Windows 7 Home Edition Premium, with a 64-bit Intel Core i5 - 2410M @ 2.30 GHz CPU and 4 GB of physical RAM. My problem is the following...

    There are two different TVs in my house that I regularly connect my laptop via HDMI cable.
    The first is mine, and I can get sound through the TV very well when I plug it in.

    Sometimes, however, I will disconnect the computer from my TV and not get any sound through the laptop because he's trying to output to external speakers to TV.

    More importantly, when I connect my laptop to my * roommate * TV (the same make as mine, you mind), I can not all the sounds of his TV at all.

    This is a recent problem. Until this morning, I was able to get noise from two TV very well and only sometimes had problems with sound through the laptop itself, which has been easily resolved by restarting.

    It's just a hunch, but it's almost like * doesn't realize that there are two different TVs * that it is connected to my computer. Maybe it's stupid, I don't know, but be it, it's frustrating...

    * ALSO: * I've seen dozens of suggestions that I put my HDMI audio as default device. Yes, I did. It wasn't the issue. Is the same to activate my audio drivers in Device Manager. They are all turned on, so it's not that either. Any ideas?

    It's a bit strange if you connect the laptop to two identical televisions and use the same HDMI cable to the TV.

    Unfortunately, it all works automatically and I put t know if you can force your laptop to recognize two TVs on the same path.

    In the worst case you have to do it manually in the sound properties > playback devices.
    If it works with four mouse clicks you can change.

    I tested my laptop with two different TVs.
    At home, I have a Toshiba TV and at the office we use Sony. On both automatically get sound on the TV speakers.

    If you will be able to find the solution please let us know.

  • Problem with Action Ball cc

    I have a little problem with my 3D scene. I do a screen similar to the tutorial video Copilot pixel

    This one:

    Pixel screen Experiment - YouTube

    My problem is the dirt on the screen. It's just a picture on top of my demo with mix of fashion on the screen game. But the problem is that its looks like images with dust is floating in 3D I mean its the same Z value as my demo (0.0 °) that I'm trying to fix the images above but it looks like there ore value (5 °) something like that. It looks fake like that so I ask is there is a solution to this?

    I use Adobe CC

    What the others said. CC Ball Action, unfortunately does not meet in the same way as the native 3D layers 3D cameras. Depending on what you're actually trying to do, you can get by with the help of effects not 3D, for example by using a corner pin effect and warping manually the dirt in place. Also try to keep the dirt in a separate with its own camera model and bind it with selector expressions to your another comp, then mix everything in another comp. This way you can be able to work around the problem by playing with focal length or even apply remedial effects on the demo.

    Mylenium

  • ESXi5 - problems with NFS and the data copy store

    Hello world

    I recently moved into a solution fully virtualized for my network, 3 x 5 ESXi servers running on our GigE network.

    First of all, I use all free software from VMware, so vCentre etc is out of the question.

    I have major problems when you try to copy files between:

    • NAS (NFS) to ESXi 5 host
    • ESXi host to the NAS (NFS) 5
    • And using VMware converter between ESXi 5 hosts converter Standalone

    The problem is that whenever I'm transfer between hosts I am struck with the horrible network performance. Even if I use GigE adapters and switches between my hosts I will receive no more than 12 Mbps speed of transfer real (100 Mbit/s connect?).

    On the flipside, if I use virtual guests on the same exact host I can happily transfer data between my NAS (NFS) servers with speeds between 60-150MBps ~ (1000 Mbps).

    Examples:

    Speed of 10 Mbps of transfer of ESXi_1 copy OF NFS data store share ~

    Server2008 (comments, located on ESXi_1) copy OF NFS 75MBps transfer rate ~.

    Server2011 SBS (comments, located on ESXi_2) copy OF Windows share 2008 (ESXi_1) transfer speed 120MBps. ~

    ESXi_2 copy OF NFS data store share transfer rate 5MBps ~.

    Attached (wtf.png) example:

    I copy a file that is located on our NFS share first, it's a 3 GB file to the copy within guest OS (2008), it is indicated in blue - top speed of 80MBps

    I copy the same exact NFS share for the host (datastore1), this is indicated in red - top speed of 7.5Mbps

    The third transfer/s (green) is between the customers of windows on different hosts, transfer a 6 GB file as well as a copy of the 360 MB file - transfers two happily send to GigE speeds with a peak around 40MBps

    I can reflect these results across the three servers without modification. Copies between you will be able to run well enough (not exactly 100% use of GigE) but at the moment where I try to do something to the data store it will just choke at all about a 100 Mbps connection speed.

    The final image (wot.png) confuses me beyond belief. I would try to explain what is happening here:

    • This image shows two times the same exact file transfers, except even machine PHYSICS
    • The first (red) transfer between the ESXi_2 host server and the NFS share using the browser data store and direct download - its top speed is around 8MBps
    • The second (green) transfer between a guest server 2008 running on ESXi_2, download the same file exactly at the exact location using vSphere Client. I mean the same EXACT file; It connects to the NFS drive by the data store ESXi_2 (NFS share).

    Why on earth can my comments directly download a file on a data store connected to NFS GigE clocked and yet the same exact host cannot go anywhere near corresponding to these speeds?

    As indicated in the title, the problem seems to happen whenever I use ESXi datastore browser on the host computer using vSphere Client or between browser datastore ESXi to/from an NFS share.

    No one knows what might happen?

    Is there some sort of restriction on the transfer of files between a host and shared NFS ESXi 5? Whence this bottleneck?

    Thanks in advance for all the help/ideas that guys can throw my way.

    P.S. Sorry for the wall of text, I really wanted to give as much information. as possible.

    What type of storage you have locally on the host computer?

    I have seen this problem with write-through controllers: http://wahlnetwork.com/2011/07/20/solving-slow-write-speeds-when-using-local-storage-on-a-vsphere-host/

  • Hello, I had a problem with my band. It does not really suppose he numbered scenes everything in order and he has so far in until I missed an and changed for the good order. But now when I go back to where I left and I have create a new scene

    Hello, I had a problem with my band. It does not really suppose he numbered scenes everything in order and he has so far in until I missed an and changed for the good order. But now when I go back to where I left and I have create a new scene number come up as * it and I need to change personally. is their any way I can change it to order normally?

    Hello

    You can manage this through the "Manage scene numbers" option in the menu 'Production '.

    There is a setting in this dialog box to assign scene numbers automatically to the new scenes.

  • Is anyone having problems with their 6 s new more not to send and receive images through text messages unless your cell data are lit?  Even if I'm on wifi, I won't get it the pic unless the cell data is on?

    Is a person with problems with their new 6s more iPhone send and receive pictures via SMS?  Even if I'm on WIFI, I have my cellular data button turned to receive a picture. Then in turn instead to use WIFI, it devours my data plan. If to halfway through the month I get warnings that my data plan has almost disappeared. I did everything, including resetting the phone to factory settings. It also does not send a text if IMessage is turned on. It switches immediately to Imessaging which of course, again use my data plan. Of course, I could use some help with this. BTW, my text messaging service is connected to my phone number and not my email. Who was one of the suggestions that support Apple told me to check. Never in my life have had so many problems with a phone since I bought this iphone 6 s.

    Mgibson2425 wrote:

    Is a person with problems with their new 6s more iPhone send and receive pictures via SMS?  Even if I'm on WIFI, I have my cellular data button turned to receive a picture. Then in turn instead to use WIFI, it devours my data plan. If to halfway through the month I get warnings that my data plan has almost disappeared. I did everything, including resetting the phone to factory settings. It also does not send a text if IMessage is turned on. It switches immediately to Imessaging which of course, again use my data plan. Of course, I could use some help with this. BTW, my text messaging service is connected to my phone number and not my email. Who was one of the suggestions that support Apple told me to check. Never in my life have had so many problems with a phone since I bought this iphone 6 s.

    SMS is a function of the carrier, you will need to contact your cell phone provider and see what is the matter.

    IMessage uses very little data.

  • Problem with the scene selection menu

    I have two pages of scene selection menu.  The first page works fine but I have problems with the second page.  The highlite flashes market either on stage or on the main menu or on the arrow to return to the previous page.  So that he can move or do anything, the only way is to click on it when it flashes on.

    Is it possible to add buttons so I can have all my selections on 1 page?

    Yes. As Ann says you can do in Photoshop. As she points out, carefully study the structure of the layer of one of the Menus library. The small symbols at the beginning of the names of the layers are very important. Also, explore the different layers in the button layer sets. They have too specialized for naming conventions that must be followed and don't forget to turn off the visibility for any layer to highlight (highlight the secondary image button). It will be lit, when your user has access to this button.

    Also, is there a limit to how many buttons can have on a Menu by the DVD specifications. IIRC, it's 32 for 4:3 Menus and 16 for 16:9 Menus. Not sure if these exact limits apply to Menus of comics, but we are talking about DVD-video here and not comics.

    In addition, when you look at the Menu. PSD in Photoshop, special attention to the order button layer sets. Button #1 will be at the bottom of the Palette layers with button #2 above and so on. He also established the button routing, which is what happens when you press the arrow keys on a remote DVD player.

    In, you can edit routing button to do what you want. I think the button routing is only automatic in PrPro. You can check this. Unfortunately, I used PrPro to authoring only rarely and still dependent on the Auto-Play everything but simple DVD-Videos.

    Good luck

    Hunt

  • Problems with the "CRM on demand - Outlook integration" when used through Citrix?

    Hello all,.

    We are implementing Oracle CRM On Demand and the Outlook integration for our users. We have few users who will connect to the system using citrix. I wanted to know if there are known problems with the integration of outlook with on demand when it is used through Citrix.

    It will be great if you can provide me some details about the same.

    Thank you
    Abhay

    Published by: Abhay s. on January 21, 2010 08:33

    We run everything although Citrix for Outlook and the application is hosted on Citrix servers. Personally, I have two sessions running at any given time...

    One - Citrix with the application installed on the local server but personally, I don't use outlook via Citrix but do other users.
    Two - I start Outlook on my local machine outside Citrix as well and it works fine

  • I have the same error message on Google &amp; Shaw and BC issues, but I also use Safari accessing google through Shaw is the problem with Firefox?

    The problem seems to lie between Firefox & Google talk to each other. I also use Safari as a browser, also liked to Shaw and don't have no problem with Google Mail, (cards and other sites which now belongs to Google.)

    This is caused by the network of Shaw, they are working on a resolution, but in the meantime the fix above will work. After Shaw solves their problem be sure to reset this value by default is that it is a safety device, you do not want allowed.

  • HP Officejet Pro 6830: My 6830 Pro Officejet a error Messege "problem with printhead. Through troubleshooting all.

    My HP Officejet Pro 6830 worked normally and then all of a sudden it started giving the error messege "problem with printhead.  It does no more than print all.  It doesn't let me do any troubleshooting procedures.  I use a wireless network on windows 10 64-bit operating system.  My printer is covered by the warranty.  What can I do to fix this?

    You will need to contact HP for the service, they will probably send you a replacement printer.

    From a post of Sunshyn2005, contact technical support HP see the following link to create yourself a file number, then call and it can help to expedite the appeal process:

    Step 1. Open the link: www.hp.com/contacthp/
    Step 2. Enter the product number or select Auto detection
    Step 3. Scroll up to "still need help? Fill out the form to select your contact options.
    Step 4. Scroll down and click on: contact HP options - click Get phone number
     
    File number and phone number are displayed.

  • Have problems with the scenes on a disc menu.

    Hello

    Working with first Elements 10 in an iMac OS X v.10.7.4

    I have a movie with three scenes on a disc menu (model menu 'Tropical holiday' of Muvipix).

    I surrounded each scene with a marker of the scene on the front and a cleat after on the timeline.

    When I burn the movie on a DVD and then play on my TV and the menu, pick a scene, he does not return to the menu but continues with the next scene and the next scene and so on until the end of the film.

    The film ends sometimes totally after playing a scene

    When I preview before burning, it works perfectly.

    I place the markers in transitions. It is maybe not so good?

    gardie10

    Try to remove the marker to arrest him for the end of the timeline.

    Good luck

    Hunt

Maybe you are looking for