How to change the code to use the image on stage instead of in the library?
HelloThe following code, I found on the Web site is for the use of the image that is in the library. But how to change it works with the image on stage. Because I don't want to use from the library.
The second question - is it AS2 or AS3 code. If it is AS2 code then do let me know how to change to work with AS3.
Animator = CreateEmptyMovieClip('animator',1);
bg_1 = animator.attachMovie('bg_mc','bg_1',1);
bg_2 = animator.attachMovie('bg_mc','bg_2',2);
bg_1._x = bg_1._width / 2:
bg_2._x = bg_2._width / 2:
Speed = 1;
cloudWidth = 380;
animator.onEnterFrame = function() {}
bg_1._x = speed:
bg_2._x = speed:
If (bg_1._x < = - bg_1._width) bg_1._x = cloudWidth;
If (bg_2._x < = - bg_2._width) bg_2._x = cloudWidth;
}Thank you.
There is no need to clamp the end if this isn't in the library and this is the code AS2 below is code in AS3 when it is at the point:
(i) convert your first image in a music video with the name of the instance «bg_1»
(II) convert your second image in a music video with the name of the instance 'bg_2 '.
(III) shares:
var speed: Number = 1;
var cloudWidth:Number = 380;
bg_1.x = bg_1.width/2:
bg_2.x = bg_2.width/2:
this.addEventListener (Event.ENTER_FRAME, fn);
function fn(e:Event):void {}
bg_1.x = speed:
bg_2.x = speed:
If (bg_1.x<= -bg_1.width)="" bg_1.x="">=>
If (bg_2.x<= -bg_2.width)="" bg_2.x="">=>
}
Tags: Adobe Animate
Similar Questions
-
How to change the settings of computer Image virtual using VI SDK 4
Hello
All the
I just wanted to know how to change the setting of Image of computer virtual using VI SDK 4
Setting virtual machine Image could be (memory setting etc.)
(1) Yes (If yes or no do you while the virtual machine is online is totally based on the question of whether the operating system supports or not)
(2) I don't know what ' TTL you are referring?
I would say take a look at the previous documents, I've linked to familiarize yourself with what you can do and another great reference point is the vSphere API itself doc: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/index.html and make use of Research to see what properties/attributes are available on the entities/objects.
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
-
How to change the language settings in firefox using JavaScript
My question is: how to change the language settings in the use of JavaScript in firefox:
I want to set the value of intl.accept_languages en using JavaScript.
How can I do?
EDIT: The reason mail, I want to do is to be able to run selenium for different languages test scenarios with manually change them rather progrmmetically
You will need to close and open the pref via user.js or prefs.js before restarting Firefox to perform the next test.
See:
-
I think I bought the latest version of Airport Extreme. It is the unit which is rectangular, is about 6 to 7 w., etc. I have some basic questions that I do not understand:
1. How will I know if I have the latest firmware for this device? I read a few posts that make it sound as if it was just automatically updates. Is this true?
2. can someone tell me how to change the password used to connect to my wireless network?
Thank you very much!
Chris
If a firmware update is available, AirPort Extreme flashes orange.
The most up-to-date version of the firmware is 7.7.3.
You can see what version you currently have the following on your Mac...
Open Finder > Applications > utilities > AirPort Utility
Click on the image of the AirPort Extreme
Look for the Version
If the new firmware was available, you will see a button update here
To change the wireless network password...
Click on edit in the window smaller than you watched just to check the firmware version
Click on the Wireless tab at the top of the next window
Go back / change the wireless password and enter a new password
Do the same thing to check
Click Update at the bottom right of the window and give the airport a minute full for restart
-
Using Hotmail, how to change the recovery of main mobile phone account is linked to a mobile phone that is no longer in use.
I can't remove it, I can't change it or do anything else without the system you want to send a text message for that phone for conformation. can you change the setting to send an email to the place or the main number of conformation ahange.
Steve
Hello
The question you have posted is related to hotmail; This is why it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.
-
How to change the rendering used for video playback in Windows Media Center Version 6 engine
I usually use other media players, but I would like to first of all using Windows Media Center. However for the moment video playback is not good because of the weird colors (everything is displayed in black and Red instead of normal colors). When you use other media players, I use the Haali rendering engine which gives good results for video playback.
Can you tell me how to change the rendering used by Windows Media Center?
Also, I noticed the same weird color effect in Windows Media Player 11.
Hi Woobee,
1. What is the brand and model of the computer?
2. what graphics card use on the computer?
If you are using an Nvidia graphics card on the computer, in the Nvidia Desktop Manager, you will find an option for saturation to ensure it is set to 100%.
And if you are any other graphics card on the computer and search for a similar option for saturation.
If the previous step fails in Windows media player, so be sure that the hue and Saturation are defined by default.
1. click on the arrow on the tabplaying , point to enhancements, and then clickcolor picker.
2. do one of the following:
1. to return to the default color, click thereset link.
Also, make sure that the video settings are set by default.
1. start the playback of a file.
2. click on the arrow on the tabplaying , point to improvements, and then clickvideo settings.
3. click onreset.
Check also in Windows Media Center if the
1. on theStart screen, go to tasks, click settings, clickgeneral, then Visual and sound effects.
2. undercolors ensure that Windows media center standard is enabled.
Turn off Visual and sound effects in Windows Media Center
I hope this helps!
Halima S - Microsoft technical support.
Visit ourMicrosoft answers feedback Forum and let us know what you think.
-
This is the 2nd time this same question, the 1st time that I was given an irrelevant answer which was not helpful at all. Please take the time to read and understand what I need to before you answer.
I just need to learn how to change the default PNG to JPG, so every time I save a screenshot using (only) the keyboard, it will already be showing JPG as the "Save as type". I am sure that it requires an edit registry so just point me in the right direction and guide me on how to do it, that's all I need.
To help you understand my dilemma, I take a lot of screenshots and Ctrl + V paste in Paint almost daily. Since my physical disability in my arms causing me pain and discomfort when I use the mouse, I avoid using the mouse I use the shortcuts as much as possible to help reduce the constant pain, I'm still in my right arm when using the mouse. I hope I have explained well enough details.
If it's in the wrong place, please move to a better place.
Thank you
Lee
I don't know of any registry value, but you can use the key sequence to "Save as jpg.
ALT
F
V
J
The F key may be pressed simultaneously with the ALT key or after him.
You can reduce the number of keys to just ALT plus a digital key by using the following, adapted from one method described HERE. Setup is much easier with a mouse, but can be done using the keyboard only. I showed you the controls and mouse shortcuts keyboard to add an icon "" Save as JPG"to the Quick Access toolbar.
Open Paint
Mouse Keyboard equivalent Click on the file Menu (upper-left) Press ALT + F to open the file Menu Hover mouse on ' Save as ' to open the list of file types Press V to view the list of file types Right click on JPG to open the context menu Use the TAB or down arrow key to select JPG and then press SHIFT + F10 to open the context menu Click "add to quick access toolbar. Press A to "add to the Quick Access toolbar. At this point, your installation is complete.
With open Paint, press the ALT key . This will display the keys associated with various actions. In my case, "" Save as JPG"icon that has been added to the Quick Access toolbar was the fifth icon (after save, undo, redo and print). So, to "Save as JPG," I would press ALT+5 (even once, you can press 5 either with or after you press the ALT key).
-
When I open a pdf file using adobe default to 139% magnification. How to change the system, so it defaults to the actual size
Please try this step: -.
Acrobat > edit > Preferences > Page Display > under Default Layout & Zoom, set "Zoom in" on the value of your choice that you want.
I would like to know if it works.
Kind regards
Christian
-
Do you know how to change the language in 2015 CC Photoshoped, I like to use the Italian vertion
Adobe has a doc help step by step on this topic as well: change the language setting for Adobe Creative Cloud applications
-
How I changed the color of something? OK, so I use to be able to change the color of things, but now I have use color overlay, gradient overlay, or change the color when I first create the form, it turns into another shade of gray instead of change the color, I chose.
Three things I can think of:
Your document must be in RGB mode.
Layer blending mode should be set to Normal
Masks are grayscale. If you select the mask, you cannot apply a color.
Always check your tab at the top to see if what you choose is RGB or grayscale.
Gene
-
When checkboxing 'Use as Button' - how to change the color of overview?
Smart form with the text: when checkboxing 'Use as Button' - how to change the color of overview?
In the button shape properties panel, you will find a 'Normal' field, if you open the drop-down list you see the other two States, select and change the Fill/Color/Character...whatever you want.
If you want to use the States for this button several times, I recommend to save the style or to create styles in the object Style Manager where you can also modify built-in three States: Normal, rollover and down.
-
How to change the background color of the code written DW page but not the Web page...
If you have DWCC2015, you can change to edit > Preferences > coloring Code and either choose a new theme (RecoGnEyes is the background dark code by default) or you can change it to what you want in the background field by default.
2014 CC had no theme options, but you can change the background color in the same place.
I think that some of the previous versions also had the option, but I don't have them on my machine to check.
-
I WANT TO CHANGE MY CODE TO USE THE LEFT BUTTON = PREVIOUS IMAGE / RIGHT OF THE KEYBOARD = NEXT IMAGE TO
ANY KEY = IMAGE NEXT. HERE IS MY CODE. PLEASE HELP ME OBI WAN KENOBI, YOU'RE MY ONLY HOPE:
Stop(); stage.addEventListener (KeyboardEvent.KEY_DOWN, changeSection); function changeSection(event:KeyboardEvent):void {switch (event.keyCode) {case Keyboard.RIGHT: nextFrame(); break; case Keyboard.LEFT: prevFrame() ;}}}}
Your problem seems to be a matter of not understanding what version of the code that you use compared to what your file is configured to use. Your other display uses AS2, so if you want this to work you must set the parameters of publication for AS2.
If your file settings are for AS3 code that show you in this announcement will be suitable for this because it is the AS3 code. The function would change to what is shown below. Mgiht want to use a listener KEY_UP instead of a listener KEY_DOWN.
function changeSection(event:KeyboardEvent):void {}
nextFrame();
}
-
How to change the text design AS3 using the class Date
Hi I tried to create a 24-hour countdown on 24 who will make a loop and play back counting it self down to 00:00:00:00
Thanks to Andrei1 for providing me with this code to create the next animtion:
var result: String = "";
var date: Date = new Date (null, null, null, 0, 0, 0, 24);var timeDisplay:TextField = new TextField();
timeDisplay.autoSize = TextFieldAutoSize.LEFT;
timeDisplay.multiline = timeDisplay.wordWrap = false;
timeDisplay.border = true;
timeDisplay.x = timeDisplay.y = 20;
timeDisplay.text = "00:00:00 ';addChild (timeDisplay);
var: timer = new Timer (250);
timer.addEventListener (TimerEvent.TIMER, count);
Timer.Start ();function countDown(e:TimerEvent):void {}
Date = new Date (date.setTime (date.getTime () - timer.delay));
result = date.toTimeString () replace (/ \s+GMT\-\d + /, "");
timeDisplay.text = result;
}The end result, I'm looking for is to display this countdown clock in a clear gray arial font as shown in the picture below link:
http://img801.imageshack.us/img801/3604/picture1ms.PNG
Right now the code I received leaves me with a box around the type and a GMT (+ 000):
http://img534.imageshack.us/img534/4264/picture2ot.PNG
I was wandering if any body knows how to change the design of something in the photo above simular.
Thank you for your help in advance.
Tom
Snippets of code is one thing, but nothing is gained back together solutions to people without explanation (but maybe a smile to not have to struggle with it). Learning is not easy and it is better that it isn't... it involves the effort, stadiums, an increase in capacity to win. You presented an entirely different approach to a solution that involves techniques beyond a beginning level.
Don't you think that tom understands what he has in his hands? It can develop its own regular expressions or manipulate a Date object to what you gave to him? More importantly, since he never solved the intitial design of yesterdays issues poster, which has involved basic concepts much more, don't you think he could solve this design now? Or he missed on some basic things that must precede the techniques that you have provided learning?
-
How to change the highlight color, click the button image and text and sound. are there packages of buttons for use in my project?
Hello
Even if the point of things based Web links buttons created using them is of simple images. Captivate uses simple images. If you need to put your creative hat and not to let the fact that you see the word 'web' scared you somehow. An image is an image. Use on the web, use Captivate. Same case!
If you change the properties of the button, you can activate the legend of success. Fix any sound that you like with the legend of success and it will play when you click the button. If you do not want to see the legend of success, delete the text and configure it as transparent.
See you soon... Rick
Useful and practical links
-
How to change the size of the image using HP ePrint app on and ipad or iphone
I have a printer HP Photo Smart 7520. I have loaded down the HP ePrint app on my iPhone and iPad. When you print a photo, how to change the six (4 X 6 or 5 X 7, for example) before printing on the iPad or the iPhone?
Hi @thwhite1,
Welcome to the Forums of HP's Support. I see that you want to know how to change the paper size in the HP ePrint app.
I've included a screenshot of the HP ePrint app and where you will find the option to change the size of the paper.
Please let me know how it goes.
Maybe you are looking for
-
I recently unlocked my 2nd hand iphone 3gs, but it is saved in the phone from the previous owners, if I factory reset the phone should I still unlock it?
-
All I'm doing is to see my host SMPT name
-
How can I get Firefox let me decide where I want to go download
I just installed Firefox. With IE, I could manage my downloads on an external hard drive. Firefox gives me all the options and some downloads to the Firefox download the file. I get all my downloads and updates external drive so in the case of an acc
-
I tried to link my paypal account to my itunes account but I can't find that option. How can I connect to itunes account paypal account please help me... My country is sri lanka.
-
error 80072EFE code when you try to update and nod32 messages popping up saying that it blocks web sites.