Making a object appear and dissapear
okay i know this is way off but this is my attemp. So when i press space I want the 'sword' to appear and when its not i dont want it to be there.
Sorry if this is actually not even 1% on the right track, any clue to what im talking about? cheers.
var weopon_var:boolean = false;
if (Key.isDown(Key.SPACE)){
weopon_var = true;
else {
weopon_var = false;
if (weopon_var = true){
gotoAndPlay("sword_on")
} else {
(weopon_var = false){
gotoAndPlay("sword_off"
There are errors in the code you will need to fix before you can get anywhere with it... your if/else structuring/syntax is wrong. Look for examples offor the correct way to structure them.
When you compare values in a conditional for equality you use "==" not "=". "=" is for assigning value to something.
Further, if you are testing a boolean (true/false), you don't need to test it explicitly. The conditional is evaluating the true/false nature of what you put in the parenthesis. And if you are testing a boolean, if it isn't one it has to be the other. So you could reduce your second test to be...
if(weopon_var){
// do stuff
} else {
// do other stuff
Whether it will work when you get the errors out depends on where you have that code. If that code sits as shown, it executes once when you enter that frame an only once. What you really need to do is have a listener for a keyboard event that is tied to that code so that when you use the keyboard the function that code is in gets executed. Look into "Key.addListener"
Similar Messages
-
How can I make a button that on press the object appears and on second press the object to disappear
Hello,
I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
on (press)
_root.top1.gotoAndStop(2);
_root.topp.gotoAndStop(2);
_root.mm1.gotoAndStop(2);
_root.m1.gotoAndStop(2);
but from here I'm stuck.
Thank you for your helpWhat you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property. You should not put code "on" objects, keep it in the timeline.
If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
object._visible = false; // start with the object being invisible
yourButtonName.onRelease = function(){
object._visible = !object._visible;
That one line in the function sets the object's _visible property to be the opposite of what it currently is. -
Making 2 objects appear by clicking a button
i want to click on a radiobutton and make a table appear with
content and another table dissapear at the same time. is there a
way of doing this?
alternatively i was thinkin i could just make form appear
that i want and then have a layer with a white background appear at
the same time on a different part of the screen, so it effectively
covers up the part i want to dissapear. is there a way of doing
that? here is the code on the button justnow
<input
class=FormBlackText
onClick="document.all('ThirdApp').style.display = 'block';"
tabindex=7 type=radio value="Joint Application"
name=Application>
the third app appears and i want the secondapp to dissapear
at the same time.
cheersBest way is to have a separate state that's a copy of the first, just with a video player. An alternative is to do something like set the opacity on a button click to take a video player from invisible to visible.
In terms of playing different videos, just have each button set the source property on the video player. On Click > Play Action Sequence > Set Property > Source.
-Bear -
Office 2013 on RDS, icon appears and dissapears
Hello.
We have multiforest enviroment. Forest A ( there are accounts ) and forest B where are APPV mgmt and RDS servers. Users from Forest A login to RDS servers in forest B with no problem. We have domain group (say FS USERS) in forest B that includes users account
from forest A and we publish MS Office for this group.
Every other application published for domain group "FS USERS" work, but MS Office 2013 not. When logging, Office icons for 8seconds appears and after that disappears ( i think when office intergration task run ).
When i publish office for group in domain B and
accounts that comes from domain B, office works.
Can anyone recommend
what to do, what check?
I enable debug logging but nothing special found.
Thanks, JanHello.Yes, jump to fully supported model.
I write before, we try it, 1 ODT per machine like we are using for any other packages.
We end with error :
The virtual application 'C:\Windows\Explorer.EXE' could not be started because the App-V Subsystem 'Virtual Shell' could not be initialized. {error: 0xC701525-0x54F}
The virtual application 'C:\Windows\Explorer.EXE' could not be started because the App-V Subsystem 'Registry Staging' could not be initialized. {error: 0x78A00A0A-0xA0005}
The main and annoying effect is when user logon, there popup dialog:
Runtime Error!
Program: c:\windows\explorer.exe
R6030
- CRT not initialized
I must run explorer.exe from task manager manualy ( CTRL+ALT+END) and after that office appears
There is empty RUNVIRTUAL entry in registry.
We have latest APPv subsystem. Appv-SP3, resp. 5.0.10107.0
Server is on clean install, W2008R2Ent
It doesn't matter if user is form forest or local domain, have redirected %APPDATA% or not.
Office Deployment Toolkit 15.0.4623.1001
Jan
CONFIGURATION
Id : 1
SetByGroupPolicy : False
Name : APPV
URL : http://cenzored:8001
GlobalRefreshEnabled : True
GlobalRefreshOnLogon : True
GlobalRefreshInterval : 0
GlobalRefreshIntervalUnit : Day
UserRefreshEnabled : True
UserRefreshOnLogon : True
UserRefreshInterval : 0
UserRefreshIntervalUnit : Day
Name : PackageInstallationRoot
Value : %programdata%\App-V
SetByGroupPolicy : False
Name : PackageSourceRoot
Value :
SetByGroupPolicy : False
Name : LocationProvider
Value :
SetByGroupPolicy : False
Name : AutoLoad
Value : 1
SetByGroupPolicy : False
Name : EnablePackageScripts
Value : 1
SetByGroupPolicy : True
Name : ReestablishmentInterval
Value : 5
SetByGroupPolicy : False
Name : ReestablishmentRetries
Value : 3
SetByGroupPolicy : False
Name : CertFilterForClientSsl
Value : LOCAL_MACHINE\MY\1.3.6.1.5.5.7.3.2
SetByGroupPolicy : False
Name : SupportBranchCache
Value : 0
SetByGroupPolicy : False
Name : VerifyCertificateRevocationList
Value : 1
SetByGroupPolicy : False
Name : SharedContentStoreMode
Value : 0
SetByGroupPolicy : False
Name : MigrationMode
Value : 0
SetByGroupPolicy : False
Name : RoamingFileExclusions
Value :
SetByGroupPolicy : False
Name : RoamingRegistryExclusions
Value : SOFTWARE\CLASSES
SetByGroupPolicy : False
Name : AllowHighCostLaunch
Value : 0
SetByGroupPolicy : False
Name : RequirePublishAsAdmin
Value : 0
SetByGroupPolicy : False
Name : IntegrationRootUser
Value : %LOCALAPPDATA%\Microsoft\AppV\Client\Integration
SetByGroupPolicy : False
Name : IntegrationRootGlobal
Value : %ALLUSERSPROFILE%\Microsoft\AppV\Client\Integration
SetByGroupPolicy : False
Name : VirtualizableExtensions
Value : exe,com,bat,cmd,vbs,ps1,cpl,jar,wsf,wsh,msc
SetByGroupPolicy : False
Name : IgnoreLocationProvider
Value : 0
SetByGroupPolicy : False
Name : ReportingEnabled
Value : 0
SetByGroupPolicy : False
Name : ReportingStartTime
Value :
SetByGroupPolicy : False
Name : ReportingRandomDelay
Value :
SetByGroupPolicy : False
Name : ReportingInterval
Value :
SetByGroupPolicy : False
Name : ReportingServerURL
Value :
SetByGroupPolicy : False
Name : ReportingDataCacheLimit
Value :
SetByGroupPolicy : False
Name : ReportingDataBlockSize
Value :
SetByGroupPolicy : False
Name : ExperienceImprovementOptIn
Value : 0
SetByGroupPolicy : False
Name : EnablePublishingRefreshUI
Value : 0
SetByGroupPolicy : False
Name : ProcessesUsingVirtualComponents
Value : {%SystemRoot%\explorer.exe, %ProgramFiles%\Internet Explorer\iexplore.exe, %ProgramFiles(x86)%\Inter
net Explorer\iexplore.exe}
SetByGroupPolicy : False
Name : EnableDynamicVirtualization
Value : 1
SetByGroupPolicy : False -
MAKING FORM OBJECTS REUSABLE AND STANDARD
I have made a toolbar with all the buttons and PL/SQL codes. Now
I have used it in all the forms in my application. Now say for
some reason I need to change a property or PL/SQL code, I need
to make this change in all the forms. How can I make an object
library like PL/SQL library where you just have to make changes
in library itself and wherever it is used get changed
automatically.
AND
Does any one have toolbar library.
I am using Developer release 2. (Form 5.0)
thanks
nullI tested this method and it doesn't seem to work...
public class SettingsMenu extends JDialog {
private Options options;
/** Creates new form SettingsMenu */
public SettingsMenu(Options opt) {
super();
initComponents();
options = opt;
private void applyButtonActionPerformed(java.awt.event.ActionEvent evt) {
int bpm = Integer.parseInt(tempoComboBox.getSelectedItem().toString());
int div = Integer.parseInt(tempoComboBox.getSelectedItem().toString());
int numlines = Integer.parseInt(tempoComboBox.getSelectedItem().toString());
int beats = Integer.parseInt(tempoComboBox.getSelectedItem().toString());
options.setBeats(beats);
options.setBpm(bpm);
options.setDiv(div);
options.setNumlines(numlines);
this.dispose();
} then in my main:
private void SettingsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
SettingsMenu settingsMenu = new SettingsMenu(opt);
settingsMenu.setVisible(true);
tempoTextField.setText(""+ opt.getBpm());
checkBoxPanel.initSettings();
} and the tempotextfield doesn't change after I changed BPM in my options frame.
Edited by: Lorre on May 19, 2008 6:25 AM
Edited by: Lorre on May 19, 2008 6:28 AM -
Need help w/ making an object appear WHEN a button is pressed
I've tried to figure this out on my own, but am stumped. I even tried using the .setVisible command... but that didnt work. What I would like to happen is to just have the stick figure appear, sans clothing. Then when the "Add Shirt" button is pressed I want the stick figure to acquire a shirt. Same goes for pants.
import java.awt.event.*;
import java.awt.*;
import java.applet.*;
public class dolls extends Applet implements AdjustmentListener, ActionListener {
Shirt myShirt;
Pants myPants;
Color c;
Scrollbar red,green,blue;
int redValue, greenValue, blueValue, clothing = 0;
Label redColor, greenColor, blueColor;
Button shirt, pants;
boolean clickedShirt = false, clickedPants = false;
public void init(){
redColor = new Label("Red");
add(redColor);
red = new Scrollbar(Scrollbar.HORIZONTAL,0,0,0,256);
add(red);
red.addAdjustmentListener(this);
greenColor = new Label("Green");
add(greenColor);
green = new Scrollbar(Scrollbar.HORIZONTAL,0,0,0,256);
add(green);
green.addAdjustmentListener(this);
blueColor = new Label("Blue");
add(blueColor);
blue = new Scrollbar(Scrollbar.HORIZONTAL,0,0,0,256);
add(blue);
blue.addAdjustmentListener(this);
shirt = new Button("Add Shirt");
add(shirt);
pants = new Button("Add Pants");
add(pants);
myShirt = new Shirt(120,125,3);
myPants = new Pants(120,125,3);
public void adjustmentValueChanged(AdjustmentEvent e){
redValue = red.getValue();
greenValue = green.getValue();
blueValue = blue.getValue();
repaint();
public void paint(Graphics g){
g.drawOval(150,100,30,30);
g.drawLine(165,130,165,180);
g.drawLine(165,133,120,160);
g.drawLine(165,133,210,160);
g.drawLine(165,180,143,235);
g.drawLine(165,180,187,235);
if(clickedShirt = true) {
c = new Color(redValue, greenValue, blueValue);
g.setColor(c);
myShirt.display(g);
if(clickedPants = true){
clickedPants = true;
c = new Color(redValue, greenValue, blueValue);
g.setColor(c);
myPants.display(g);
public void actionPerformed(ActionEvent ae){
if(ae.getSource() == shirt)
clickedShirt = true;
repaint();
if(ae.getSource() == pants)
clickedPants = true;
// <applet code = "dolls.class" height = 300 width=350> </applet>If needed I will post the code for the shirt and pants classes.
Thank you all for your help.code for pants.class
import java.awt.*;
public class Pants {
Polygon pants;
public Pants(int h, int v, int size){
pants = new Polygon();
pants.addPoint(10*size+h,18*size+v); // 1
pants.addPoint(20*size+h,18*size+v); // 2
pants.addPoint(25*size+h,35*size+v); // 3
pants.addPoint(18*size+h,35*size+v); // 4
pants.addPoint(15*size+h,27*size+v); // 5
pants.addPoint(13*size+h,35*size+v); // 6
pants.addPoint(05*size+h,35*size+v); // 7
public void display(Graphics g){
g.fillPolygon(pants);
}code for shirts.class
import java.awt.*;
public class Shirt {
Polygon shirts;
int h;
public Shirt(int h, int v, int size){
shirts = new Polygon();
shirts.addPoint(12*size+h,1*size+v); // 1
shirts.addPoint(18*size+h,1*size+v); // 2
shirts.addPoint(29*size+h,9*size+v); // 3
shirts.addPoint(26*size+h,12*size+v); // 4
shirts.addPoint(20*size+h,8*size+v); // 5
shirts.addPoint(20*size+h,20*size+v); // 6
shirts.addPoint(10*size+h,20*size+v); // 7
shirts.addPoint(10*size+h,8*size+v); // 8
shirts.addPoint(4*size+h,12*size+v); // 9
shirts.addPoint(1*size+h,9*size+v); //10
public void display(Graphics g){
g.fillPolygon(shirts);
public void changeH(int changeHpos){
h = h + changeHpos;
} -
Cds appearing and dissapearing when trying to import into itunes
Please note I am posting a new thread on this as a similar one has been incorrectly labeled as answered.
When loading CDs into mac book pro initially track listing appears in itunes then disappears. Although the CD is still in the machine the computer does not recognise a mounted CD. Ejecting and re installing the CD always rectifies the problem. This does not happen every time a CD is installed but it happens frequently. Also occurs on a black mac book, and two different mac minis. This happens under Leopard, it happens under snow Leopard, it happens with at least the last three versions of itunes for mac. IT also happens with virtual CDs mounted from files using Toast. Any ideas or is this an itunes bug that apple have had outstanding for a long time?
I promise I won't mark this as answered unless it is.I have exactly the same problem - I Tunes 9 closes down each time I try to import a cd. I run Windows XP and its the first time with any version of Itunes I've had problems importing cd. Must be a bug with the new version. Finn
-
Making Relicated objects appear more random
Here's what I've got:
A circle shape, fill turned off and outline turned on and thickened, brush type changed to airbrush, opacity of brush altered to have a light middle surrounded by dark front and trailing off to a dark back, and Rate behavior used to rotate the Z axis - so basically is looks like a ghosted stroke rotating in a circle. No problems creating that.
When I use the Replicator to replicate the shape, I get a whole bunch of the same circle - which is exactly what I want - but all of the circles are moving in unison. When one stroke is in the 12 o'clock position, all strokes are in the 12 o'clock position. I'm try to get a little variety in there.
Is there a way to have each of the different replicated rotating cicles be at a different point in their rotation so they are not all at the exact same point in their rotation at the same moment in time?I'm not so much worried about about varying the speed of each circle (I do understand your recommendation that I would need different circles with different rate behaviors for that), I'm just wanting to get each circle at a different point in its rotation. I will try Mark's recommendation.
Come to think of it, though, I am going to hit another problem with this project. After I get the circle rotating at the speed I like, I'm going to want to offset all of the other circles in their rotation (using Mark's recommendation) but then rotate each circle individually to almost 90 degrees but keep it a 2D layer.
(Mr. Neil, I am trying my hand at doing a Star Trekky transporter effect. I know we discussed this a while ago and you provided a link to what you did. I am seeing if I can get something similar) -
I Cant sync please help me... Im using iphone 5 ios 7.1... when sync button is clicked starting sync comes and nothing happens and no music on my phone... Im trying to sync my playlist in itunes... I have itunes 11.1.3.8 64-bit Windows 8
My apologies...the version is 11.1.4.62 not as stated aboive in my problem description. I'm trying again and it just finished syncing fine and my iPhone 5 is still connected to iTuns physcially with USB lightening cable and is displaying the iPhone icon top right. I clicked on it and iTunes is now "hung' or locked up. Shows to be an active running application but can't get back to it so willl have to kill with task manager. There is some kind of problem going on with the latest version of iTunes and Wndows 7 and 8.1 or something. My iPhone 5 now has a new feature that it is now asking me if I "Trust" this computer. iTunes just came "unhung" after several minutes while I was typing this. Now I am going to start the backup to this computer HP Winsows 8.1 and iTune 11.1.4.62 and see what happens. Says it is Backing up Jerrys iPhone but the Barber Pole progress bar is not turning an iTunes is hung again and I cant get back to it from this page I am typing on. Maybe it will eventually release as it did a moment ago.
-
Very new to photoshop I am trying to make changes to a photo and set it up as a smart object but after selecting smart object, the checkerboard appears and my photo dissppears
Hello, thank you so much for your response! Here are some screenshots of my steps taken
-
Making sure attached images and signatures appear in the body of sent email
The subject line says it all. I would like recipients of my mail to see the attachment/image or signature, within the body of the email where I have placed it.....or not if I so choose. Is this possible to control from the sender's end?....or is this also influenced by the receiver's mail settings and platform?
I know there are many posts that dance around this issue, but I have not found one that nails it. Any advice would be appreciated. Thanks.
PowerBook 17" & G4 Quicksilver desktop Mac OS X (10.3.9) Mail 1.3.11The Mail.app displays all image/photo and single page PDF documents inline or viewed in place within the body of the message by default. Depending on the recipient's email client and available preference settings, such attachments may appear inline or viewed in place within the body of the message by default when the message is opened (as with the Mail.app) or as attached files only for which the sender has no control over.
If the recipient's email client is not the Mail.app but displays image/photo attachments inline or viewed in place, the attachments may not appear exactly where you placed them.
The only way to do what you want or get as close as possible is by using HTML formatting with embedded images and/or objects and no Mail.app version includes an HTML composer/editor.
RTF with Tiger Mail is HTML which allows for forwarding a message received that was composed in HTML keeping all intact. With Tiger, you can use the HTML editor/composer of choice with embedded images/objects, etc. and save the completed document.
Open the saved HTML document with Safari and at the Safari menu bar, go to File and select Mail Contents of This Page. A new Mail.app message will be launched and the HTML document viewed with Safari will be copied to the message which will be sent in its entirety.
You cannot do this with Jaguar or Panther Mail. -
Objective Setting and Appraisals not appear in SPRO -- IMG
Hello Experts,
I need to activate "Objective Setting and Appraisals"
its missing or not appear from SPRO --> Personal Management --> Personal Development -->Objective Setting and Appraisals in PRD System. In Development system its displayed but not in PRD, Patch Level is same and Client is Open.... so please tell how to activat it.
try to give best solution
Thanks and Regards
Dhaval Thakerwhat is your EA-HR patch level?
check the note: 904109. i am not sure if it helps you or not -
Making objects appear after a click on another object
Hi everyone,
I have a text box with some text on a slide. I would like my text box to appear after I click on an object that I created (an arrow for example). How do I do that?
Builds offers for my object to appear - after click, after first object appears or at the same time the previous object appears.
Am I missing something?
Thanx in advance!
Vladimir, CroatiaHi Vladimir,
Welcome to Apple forums.
If you specifically want the (arrow) object to be the only place to click for this text then create a new slide (perhaps a duplicate). Select Arrow object, then open the Hyperlinks Inspector palette. Tick enable hyperlink and choose link to slide. In the bottom option enter the slide number of the new slide. This keeps the link pretty secure even if you add slides in between the original and the other.
If you don't mind clicking anywhere, then just select any of the build-in options with the text selected.
Message was edited by: wideEyedPupil
Message was edited by: wideEyedPupil -
I've been having a ton of graphical glitches with Adobe Flash CS6 and I can't for the life of me figure out for the life of me.
Things that happen:
Objects will not appear selected when using the Free Transform Tool.
Symbols don't appar in scene when pasted, or dragged in until I leave the scene or symbol im in. They show up in the preview window though.
Something else I've been noticing is that when I use the Pen tool my computer or speakers or something making this werid noise and it only happens when I'm using the Pen tool.
Any help would be greatly appreciated.No one has had these issues? I just got another one. My timeline disappeared, I don't mean the menu hid or thats it not there. It's there its just not actually displaying the Timeline or at least it didn't till I wen't back a few changes for some reason. It was still there though as I could click the eye and lock and the layers (which ones I have no idea) it was all grey. Also again the selection area doesn't show up, all movements of symbols are slow to update their postitions and when I turn on outlines it does nothing.
Also everytime I close Flash I get an error from windows, no idea why. -
Blackberry 10 blackhole in SMS: slow to appear and disappearing messages sent via sms
hi. i and my friends are z10 and q10 users. two of us are really heavy phone users because of our work. most of the time, we have to communicate with several people fast at the same time. we've noticed the following problems - 1) we've noticed that when we get to a point when several messages are coming in from the different messaging apps and it coincides to when we just sent a sms, said message literally disappears - it doesn't get received by the recipient, and neither does it appear in the conversation thread. when that starts to happen, whatever i type and send just goes nowhere. however, for some reason, when i highlight the message that i will send, it will go through and, i guess, "closes the blackhole" and messages get sent and are recorded again in the conversation thread. perhaps blackberry can fix things such that we won't have to lose messages to "blackholes" again 2) i've been using my q10 since 2nd week of june. i've noticed that over time, the messages i type in sms section seem to take longer and longer to appear in the screen. and when it appears is the only time when it starts to send the message, which happens faster. so if i close my phone (or even just the "chat" or conversation thread with my contact to open another conversation thread with another contact) before the text i typed appeared on the screen, it doesn't get sent until i open my phone or the said conversation thread again. this is very inconvenient especially when i'm in a hurry. now, the longest it's taken for the text to appear on the screen is around 10 seconds. i've tried to find ways to speed-up the appearance of the text but have been unsuccessful so far. i know it's not a network problem since such lag also happened when i was in other countries and used local prepaid accounts in the same phone. I hope blackberry can find tech people who can help fix these things. we really love blackberry and it would be such a shame to lose it.
Same issue here on my Q5. Same problem occured with the 10.1 os that come with my one month old Q5 and now that I have upgraded to 10.1, the same problem is still there. It takes time to appear and to disappear. 15-20 seconds. Just with SMS/MMS.
Also, the Calendar is a mess. It does not stop making mistakes such as appearing in wrong dates....
I had none of these issues with my old Curve 9300.
Maybe you are looking for
-
I have at least 3 albums of music that appear in the "purchased" column on itunes, but the files have gone missing. I have the files on my iphone, and can listen to them on it, but when I try to play them on my Mac I get the message : The song "XXXX
-
BIG swing in data usage?
I recently upgraded to iphone 6 from a 4s. No change in plan or features other than this. I have noticed a HUGE shift in data being used. I rarely used over 1/2 GB of data but in the past 3 weeks alone have used over 1.5GB. I looked at my data usage
-
Unwanted / Special Characters in XML File Output
Hello Seniors, I am downloading an XML File which has some code from include's. The XML file is well formatted and the output is fine when I downloaded programs. But this include is from user exits and the code has some commented lines in it also wit
-
How to clear planned depreciation amount
We had a purchase order that was incorrectly coded to post to an asset account, instead of an AUC, so when invoice receipt was processed, the asset was posted with the value. This asset was capitalized in Aug 2006 (although the first depreciation w
-
Change the bend of a cast member
Hi guys, I've a problem with the blend of one of my members cast. I created one filled rectangle (by tools: default). I'm trying to change his blend value by a click in other one. Also I Know the solucion is similar to: member("myButton").blend = 100