How to pick random MC frame?
How can I pick random frame from movie clip, so that mc doesn't loop. Movie clip is a symbol. I made symbol defined it as mc, mc contains 4 frames, each frame contains some object. Any advice?
OK I'll try to explain.
I have mc which contains 4 objects each in separate frame.
I have 5 spots, where those objects appear.
Right now those four objects loop, but I need, that on object shows up on one spot other one on other spot and so on, randomly.
I made function which makes those objects appear on random coordinates.
Similar Messages
-
How to pick random element in 2D array
This is the contents of my constructor. How is the best way to pick a random element in a 8x8 array and assign it "Q"?
public DancingQueen()
board = new char [BOARD_SIZE][BOARD_SIZE];
for (int i = 0; i < board.length; i++)
for (int j = 0; j < board.length; j++)
board[i][j] = SPACE;
Random generator = new Random();
int r = generator.nextInt(8);
int c = generator.nextInt(8);
board[r][c] = "Q";Better make that 'Q' instead of "Q". The rest is fine though.
kind regards,
Jos -
How to pick random HU in EWM?
Hello,
I have the current situation in which a warehouse task is generated to pick a certain HU in order for it to be transferred to the GI-ZONE. This is due to a consumption in ERP. The issue is that I have a pallet in which I have 200 of these HUs (all with the same batch number). The WT suggests me a HU but it is rather difficult to send the picker to search among the 200 HUs to find and confirm it in the RF environment. I would like the system to let the picker choose his WO on which he is working and allow him to scan a random HU and replace the one from the pick WT (if of course is from the same batch). I know I can use Exception handling but this might prove to be used a lot and so it is not an exception anymore.
At the storage type level, from which I pick, I have put the Level of Avail. Qty to value 1 - Storage Bin as the theory states but it doesn't help. Have you got an idea of what should be done?
Thanks.Better make that 'Q' instead of "Q". The rest is fine though.
kind regards,
Jos -
Random Green Frames in Premiere Render and Export Files
Hello!
I just switched a new MacBook Pro and am having a render issue in Premiere CC. Random green frames pop up sporadically throughout my video. This happens both on my rendered timeline and in the exported file. It seems to affect the clips with heavier color correction. What is happening and how can fix it?
Here's a link to the video on Vimeo. You will see green frames at 00:04, 00:43, 01:03, 01:39, 01:48, 01:58 and 02:25.
I'm editing on Premiere CC. Most of the clips have heavy effects work (motion, fast color corrector, RGB curves and a circle overlay for vignetting). All footage and project files are stored on a WD My Passport 2TB Portable External USB 3.0.
The footage is from a 5D Mark III set for 1080p IPB, so files are .movs.
Exporting in H.264 with the Vimeo HD 1080p 23.976 preset, not changing any of the preset settings. But again, the issue also occurs pre-export, after rendering on the timeline.
MacBook Pro
Retina, 15-inch, Mid 2014
Processor: 16 GB 1600 MHz DDR3
Graphics: NVIDIA GeForce GT 750M 2048
Software: OS X 10.9.4 (13E28)
Please help! Thank you!
StephenProblem fixed!
Someone from the Adobe support team instructed me to change the renderer to software only mode. This can be changed under File>Project Settings>General. More specifically, I changed it from Mercury Playback Engine GPU Acceleration (Open CL) to Mercury Playback Engine Software Only. I deleted the old render files and reexported without any further issues.
Success! -
i am trying to create a picture quiz what picks randomly 50
pictures from 500.
how can i do that i wont pick twice the same picture.
So how to code a random code what fist picks a
number...stores it to variable..then
stores it to array? and next time when picking number it
first checks is that number already in the array
and if it is then does another random untill finds a number
what is "new" , not in the array?hi,
I'm using random functions quite a lot at the moment.
In Flash you'd use:
var random_number:Array = new Array();
var i:Number;
for (i = 0; i < 50; i++) {
trace(i);
random_number(i) = random(500)
(those should be square brackets around the i after the
'random_number' in the assigning line)
this would randomly choose a number from 0 to 499 and assign
it to the variable random_number array - indexed according to the
current step within the loop. The loop will run for 50 loops giving
you your 50 numbers.
I'm tight on time so....all that's left is that within the
loop you'd just need to do a conditional check before assigning a
value.
Hope that helps! -
Random Green Frames When I Import Video?
Hello,
I Have Final Cut Pro X and I make videos on youtube as it is my job. I got gaming footage recorded via Eye Tv and Exported it normally as a H.264 and it was 720p HD and a .MP4 File. When I import it onto Final Cut Pro X I See Random Green Frames Just pop out of no where "In The Video" and I have no way of taking it out. Please help ASAP as it is VERY Frustrating .
Thanks So Much,
Im looking forward to some replys
-eLeVaTiiONz
Info:
Macbook Pro Late 2010
Newest Version Of Leopard
Other video content works
Content that does not work is recorded by a hauppauge HD-PVR Using Eye TV
PLEASE ASK IF YOU NEED ANY MORE INFORMATION.See this guide about how to import camcorder video to iMovie step by step.
-
How can I randomly assign addition or subtraction in a for loop?
Does anyone have any ideas for how I can randomly assign a for loop to add or subtract random numbers throughout various itterations? My current code generates two random numbers and adds them together for a set number of itterations. I need some random itterations to be subtraction. Thanks in advance!
Solved!
Go to Solution.
Attachments:
Screen Shot 2015-06-11 at 7.56.31 AM.png 36 KBAdd another Random Number generator and compare the result against 0.5. Use a case structure around your addition/subtraction operator.
Seems like you might also want to output which operation actually got picked. -
How to pick the field "Origin Object" from SAP R/3
Hi all,
I need to implement a new field in a BEx Report : "Origin Object". This data is mix of "Cost Center" + "Project type", it's related to the PS module.
This field isn't available in my BW datawarehouse, so I need to figure out where and how to pick up it in R/3. I used the "data element" name : "CO_USPOB" and I've made a research through the "Where used list" tool but I didn't find any tables, only some structures. I've checked all of these structures but I didn't get any tracks...
Do you know another way to investigate? is there any doc. on the SAP.help about this data element?
Thanks in advance for your suggestions.
JakHi,
If you know the transaction where the field can be seen. Then run the trace on that transaction and in the Trace list you will see all the tables accesed during the tranasaction execution. Then you can get the correct table from the table list
Thanks,
Nagarjuna -
Creating GIF images, how do I edit all frames at once?
Hey everyone. So I now how to make GIF images already. The problem I'm having is that I can't seem to figure out how to edit all the frames at once. I would like to brighten them up and add curves, maybe sharpen.
I tried selecting all the layers, but then all the image editing options greyed out and weren't available.
I really don't want to individually edit 58 frames, lol.
Is there a way to edit all at once?
PS - I'm using Photoshop CS3, if that helps!
Thanks a lot!
Mikeamazing, you're just amazing!!
thank you SOOOOOO much!
take care,
Mike -
How do I replace the frame from the monitor on my GX740?
Problem: When I move the hinges on my laptop, sometimes the screen goes black until I move it into a different position, like the light disconnects (in fact, I'm pretty sure that's exactly what happens, as I can still see some stuff on the screen; it's just not lit). Having had LCD problems in the past with other machines, I figured "hey, probably just a loose connector, it happens; I should be able to just lock that strip back in place quite easily" (why they don't just make those connectors less prone to falling out - especially ones located in or near hinges - eludes me).
Sure. If I can just get inside the monitor frame. Which it seems I can't. I removed the screws, but when I tried to pull off the plastic frame, it cracked. The plastic frame around my monitor now has visible cracks in it.
So now I need to know not only how to remove this frame, but if possible, also where I can get a replacement for just that one part. I'll gladly take just an answer to the first part and live with the cracked frame as long as I can do something about the loose connector, but if there's an answer to the second part as well, that'd be really neat.
So...how do I remove the frame? Where can I get a new one now that I've ruined this one? Are there spares? Are they expensive?
I'd greatly appreciate a quick answer to the frame removal question, as I intend to bring this computer on a trip overseas and would like the LCD light to not have disconnected completely by the time I arrive, so I'd like to properly attach it before it's time to leave.
I've never had a machine that's so hard to open. This strikes me as quite user-unfriendly design, especially given how little it takes for an LCD connector disconnect, especially one located in the hinge area of a laptop.GX720 disassembly guide
https://forum-en.msi.com/moderator/assembly-guides/ms-1722-disassemble-sop.pdf
GX700 disassembly guide
https://forum-en.msi.com/moderator/assembly-guides/assemble-1719.pdf
I'm not certain they are the same as the GX740 but I would I imagine they are very similar.
As far as finding another bezel, your best bet might be ebay.
http://www.storesavings.com/products--search-msi-bezel.html?aid=31738-4176544-53943996&utm_source=google&utm_medium=cpc&utm_campaign=watches&utm_content=&utm_term=+msi%20+bezel&utm_a=1s5&utm_t=b&utm_n=s&utm_c=34127592272&utm_p=&utm_m=&gclid=COiglouo670CFUoV7AodN1UA1g&qo=6143279&so=1 That might work as well, not sure though. -
I am Making a program for purchasing games, with the basic layout alsot done, except on problem. When the purchase button is pressed, a dialog shows up but nothing is seen until i resize it. How would i set the frame size so that i do not need to resize it each time? below is the code for the files. Many thanks in advance.
CreditDialog
import java.awt.*;
import java.awt.event.*;
class CreditDialog extends Dialog implements ActionListener { // Begin Class
private Label creditLabel = new Label("Message space here",Label.RIGHT);
private String creditMessage;
private TextField remove = new TextField(20);
private Button okButton = new Button("OK");
public CreditDialog(Frame frameIn, String message) { // Begin Public
super(frameIn); // call the constructor of dialog
creditLabel.setText(message);
add("North",creditLabel);
add("Center",remove);
add("South",okButton);
okButton.addActionListener(this);
setLocation(150,150); // set the location of the dialog box
setVisible(true); // make the dialog box visible
} // End Public
public void actionPerformed(ActionEvent e) { // Begin actionPerformed
// dispose(); // close dialog box
} // End actionPerformed
} // End Class
MobileGame
import java.awt.*;
import java.awt.event.*;
class MobileGame extends Panel implements ActionListener { // Begin Class
The Buttons, Labels, TextFields, TextArea
and Panels will be created first.
private int noOfGames;
// private GameList list;
private Panel topPanel = new Panel();
private Panel middlePanel = new Panel();
private Panel bottomPanel = new Panel();
private Label saleLabel = new Label ("Java Games For Sale",Label.RIGHT);
private TextArea saleArea = new TextArea(7, 25);
private Button addButton = new Button("Add to Basket");
private TextField add = new TextField(3);
private Label currentLabel = new Label ("Java Games For Sale",Label.RIGHT);
private TextArea currentArea = new TextArea(3, 25);
private Button removeButton = new Button("Remove from Basket");
private TextField remove = new TextField(3);
private Button purchaseButton = new Button("Purchase");
private ObjectList gameList = new ObjectList(20);
Frame parentFrame; //needed to associate with dialog
All the above will be added to the interface
so that they are visible to the user.
public MobileGame (Frame frameIn) { // Begin Constructor
parentFrame = frameIn;
topPanel.add(saleLabel);
topPanel.add(saleArea);
topPanel.add(addButton);
topPanel.add(add);
middlePanel.add(currentLabel);
middlePanel.add(currentArea);
bottomPanel.add(removeButton);
bottomPanel.add(remove);
bottomPanel.add(purchaseButton);
this.add("North", topPanel);
this.add("Center", middlePanel);
this.add("South", bottomPanel);
addButton.addActionListener(this);
removeButton.addActionListener(this);
purchaseButton.addActionListener(this);
The following line of code below is
needed inorder for the games to be
loaded into the SaleArea
} // End Constructor
All the operations which will be performed are
going to be written below. This includes the
Add, Remove and Purchase.
public void actionPerformed (ActionEvent e) { // Begin actionPerformed
If the Add to Basket Button is pressed, a
suitable message will appear to say if the game
was successfully added or not. If not, an
ErrorDialog box will appear stateing the error.
if(e.getSource() == addButton) { // Begin Add to Basket
// GameFileHandler.readRecords(list);
try { // Begin Try
String gameEntered = add.getText();
if (gameEntered.length() == 0 ) {
new ErrorDialog (parentFrame,"Feild Blank");
} else if (Integer.parseInt(gameEntered)< 0
|| Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
new ErrorDialog (parentFrame,"Invalid Game Number");
} else { // Begin Else If
//ADD GAME
} // End Else
} catch (NumberFormatException num) { // Begin Catch
new ErrorDialog(parentFrame,"Please enter an Integer only");
} // End Catch
} // End Add to Basket
If the Remove From Basket Button is pressed, a
a suitable message will appear to say if the
removal was successful or not. If not, an
ErrorDialog box will appear stateing the error.
if(e.getSource() == removeButton) { // Begin Remove from Basket
try { // Begin Try
String gameEntered = remove.getText();
if (gameEntered.length() == 0 ) {
new ErrorDialog (parentFrame,"Feild Blank");
} else if (Integer.parseInt(gameEntered)< 1
|| Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
new ErrorDialog (parentFrame,"Invalid Game Number");
} else { // Begin Else If
//ADD GAME CODE
} // End Else
} catch (NumberFormatException num) { // Begin Catch
new ErrorDialog(parentFrame,"Please enter an Integer only");
} // End Catch
} // End Remove from Basket
If the purchase button is pressed, the
following is executed. NOTE: nothing is done
when the ok button is pressed, the window
just closes.
if(e.getSource() == purchaseButton) { // Begin Purchase
String gameEntered = currentArea.getText();
if (gameEntered.length() == 0 ) {
new ErrorDialog (parentFrame,"Nothing to Purchase");
} else { // Begin Else If
new CreditDialog(parentFrame,"Cost � 00.00. Please enter Credit Card Number");
} // End Else
} // End Purchase
} // End actionPerformed
} // End Class
RunMobileGame
import java.awt.*;
public class RunMobileGame { // Begin Class
public static void main (String[] args) { // Begin Main
EasyFrame frame = new EasyFrame();
frame.setTitle("Game Purchase for 3G Mobile Phone");
MobileGame purchase = new MobileGame(frame); //need frame for dialog
frame.setSize(500,300); // sets frame size
frame.setBackground(Color.lightGray); // sets frame colour
frame.add(purchase); // adds frame
frame.setVisible(true); // makes the frame visible
} // End Main
} // End Class
EasyFrame
import java.awt.*;
import java.awt.event.*;
public class EasyFrame extends Frame implements WindowListener {
public EasyFrame()
addWindowListener(this);
public EasyFrame(String msg)
super(msg);
addWindowListener(this);
public void windowClosing(WindowEvent e)
dispose();
public void windowDeactivated(WindowEvent e)
public void windowActivated(WindowEvent e)
public void windowDeiconified(WindowEvent e)
public void windowIconified(WindowEvent e)
public void windowClosed(WindowEvent e)
System.exit(0);
public void windowOpened(WindowEvent e)
} // end EasyFrame class
ObjectList
class ObjectList
private Object[] object ;
private int total ;
public ObjectList(int sizeIn)
object = new Object[sizeIn];
total = 0;
public boolean add(Object objectIn)
if(!isFull())
object[total] = objectIn;
total++;
return true;
else
return false;
public boolean isEmpty()
if(total==0)
return true;
else
return false;
public boolean isFull()
if(total==object.length)
return true;
else
return false;
public Object getObject(int i)
return object[i-1];
public int getTotal()
return total;
public boolean remove(int numberIn)
// check that a valid index has been supplied
if(numberIn >= 1 && numberIn <= total)
{ // overwrite object by shifting following objects along
for(int i = numberIn-1; i <= total-2; i++)
object[i] = object[i+1];
total--; // Decrement total number of objects
return true;
else // remove was unsuccessful
return false;
ErrorDialog
import java.awt.*;
import java.awt.event.*;
class ErrorDialog extends Dialog implements ActionListener {
private Label errorLabel = new Label("Message space here",Label.CENTER);
private String errorMessage;
private Button okButton = new Button("OK");
public ErrorDialog(Frame frameIn, String message) {
/* call the constructor of Dialog with the associated
frame as a parameter */
super(frameIn);
// add the components to the Dialog
errorLabel.setText(message);
add("North",errorLabel);
add("South",okButton);
// add the ActionListener
okButton.addActionListener(this);
/* set the location of the dialogue window, relative to the top
left-hand corner of the frame */
setLocation(100,100);
// use the pack method to automatically size the dialogue window
pack();
// make the dialogue visible
setVisible(true);
/* the actionPerformed method determines what happens
when the okButton is pressed */
public void actionPerformed(ActionEvent e) {
dispose(); // no other possible action!
} // end class
I Know there are alot of files. Any help will be much appreciated. Once again, Many thanks in advancesetSize (600, 200);orpack ();Kind regards,
Levi
PS:
int i;
parses to
int i;
, but
[code] int i;[code[i]]
parses to
int i; -
How do I open a frame in a new window or tab?
I want to be able to open frames into their own tabs or window... So how do you do this, or is Firefox NOT CAPABLE of this... i.e. it's LAME and should be shot? (=:]
How do I open a frame in a new window or tab?
========================
Basically... I right click, and a context menu pops up... and there is no option for what I want to do... basically because the frame is so small, and the frame table for this particular site is set to fixed... so you can't resize them... so it's almost impossible to read. If only I could easily click and open in a new window or tab...
I mean... yeah, I can VIEW SOURCE by hand, manually, and find grope the freaking HTML until I find the desired frame URL... but Uhh... likee that's really inefficient, and a waste of time and frankly gives me a headache...
There's got to be an easy way to do this... either with a setting, which I fail to know about, or by a plugin or extension... or by tweaking the source code... but I'm not a programmer, so I'm handicapped there.If you right-click and don't see a context menu item that says '''This Frame''', that page isn't made with Frames; I-frames aren't "Frames". Unless you have an extension installed that is messing up your context menus ....
http://support.mozilla.com/en-US/kb/Safe+Mode -
I have made a book of my iPhoto pictures. In certain layouts there is a text frame. How can I avoid the frame becoming visible in the print if I don't want to write anything? Should I just leave it untouched or should I delete the instructing text "Write your text here"?
Most pages have layouts for pictures only or pictures with text boxes. Either select the same layout for that page but the one without the text box or put a space in the text box.
Putting a space in the text box will avoid getting the warning when ordering that there's an unfilled text box in the book. The box will not be visible in the final product. You can and should check the book before ordering by previewing it as described in this Apple document: iPhoto '11: Preview a book, card, or calendar before you order or print it
Happy Holidays -
HT200044 how to export a single frame in 10.0.6 - I cannot find option?
With 10.0.5 There was an option on "share" to pick a single frame from the timeline and export the image as a JPEG or other formats. I do not find this option on the new version.
It works now, you need to go back to share and a new option is available that was created by the step you mentioned, listed as share frame one -- when selected, this allows for exporting the frame to the desktop!
Thanks.
Jon -
How to call a j-frame from a main frame
I use both NetBean 5.5 and Forte for Java4
i would like to know how to call a j-frame from a main jframe window when a button is clicked after
action performed or moused clicked is set
i.e Main jframe (window) has a button ---> (grades) click it
should open the sub-jframe named grades with all the grades showin in that frame
your help please thanksIt sounds as if you want the button to open a dialog that displays your data such as a JOptionPane and not a JFrame.
Maybe you are looking for
-
Dear All, For one of my plant whenever i process PO against an MRP generated PR (account assignment F) the Goods receipt check box in the Delivery tab comes unchecked & user has to manually tick & then only can process the GR...I have already checked
-
目前ST04看到的情況如下: Data buffer Size kb 2,097,152 Reads 4,992,482,876 Quality % 67.5 Physical reads 1,623,788,889 writes
-
Hi, I'm having a lot of trouble getting a preloader to work on my Flash website. I'm new to actionscript, the site works fine but when I place the preloader in frame 1, I get. Error#1009: Cannot access a property or method of a null object reference.
-
I can't open my ipad mini afther listening music
I can't open my ipad mini afther listening music and stop it.
-
Definately Gonna Need Some Advanced Help Here...
Hey guys, I've had an iPod video for about a year now with minimal problems, but all of a sudden it messed up. The screen just shows random lines and different shapes in different colors, but when I move the click wheel, I can still here that clickin