Drag Bar Script Help
Hello! I was wondering if anyone might help...
I have created a Pop Up (without a Scroll bar) and below you
can find the script... everything is working out ok, with the
exception of the effect I am looking for when dragging. When I
attempt to drag the Pop Up around, the background moves with it(
buttons and everything).
What should happen, is that only the MC inl Window1, 2...
should move. Can someone help me figure this out please?
LINK: removed
(Scene 1 - frame 1 - Location of the buttons that call up the
MC)
quote:
boton1.onRelease = function() {
trace(this);
var mc = attachMovie("window1", "v", 2);
mc._x = 300;
mc._y = 200;
boton2.onRelease = function() {
trace(this);
var mc = attachMovie("window2", "v", 2);
mc._x = 300;
mc._y = 200;
(DragBar)
quote:
on (press) {
_parent.startDrag(false)
on (release) {
_parent.stopDrag()
The Window's MC are Linkaged...
it's not clear what the dragbar is and it's relationship to
mc. but if the dragbar were a child of mc, that code would probably
result in the effect you want.
it would be better coding to remove that code from dragbar
and apply the startDrag() method to mc in your onRelease whee mc is
created.
Similar Messages
-
I dont have TV SHOWS on my itunes store tool bar - any help ?
I dont have TV SHOWS on my itunes store tool bar - any help ?
What country are you in ? TV programmes aren't currently available in all countries for buying
What can be bought where : http://support.apple.com/kb/TS3599 -
IPhone 5 has network carries name but no bar plus help solution in this matter please cell c
Solution on iPhone 5 network name show and 3G sign but no net work bar any help pliz
Make sure that your carrier is set to automatic. If it is and the problem persists the try removing the sim card from the phone for a minute and the reinserting it.
-
in the middle of my last update it stopped updating in the because of an unknown source, and now my screen on my iphone is frozen with the apple logo and a loading bar. Help??
Unknown "source"? Do you mean unknown "error" followed by a number?
http://support.apple.com/kb/TS3221
Follow the instructions in the article. When you connect your phone again, you may have to press both the home and sleep/wake buttons until the Apple logo reappears, then continue pressing the home button until iTunes detects the phone in recovery mode. -
FF4, drag 2nd tab to new window.
2. top dragbar is off screen at top. I unmaximize the original screen, now that one also pushes the drag bar to the top off the screen. I resize the bottom of the screen and I can see a sliver of the top dragbar. If I close one browser window, both shut down. Auch!
Please take a look at how safari renders a second browser window when you drag one tab to the other window. Cool!FF4, drag 2nd tab to new window.
2. top dragbar is off screen at top. I unmaximize the original screen, now that one also pushes the drag bar to the top off the screen. I resize the bottom of the screen and I can see a sliver of the top dragbar. If I close one browser window, both shut down. Auch!
Please take a look at how safari renders a second browser window when you drag one tab to the other window. Cool! -
I cant type any text in safari or and in all programs i have the arrow cursor and can't change to any tools in the tool bars - please help!
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Mac Book Pro just got it, all was well for 2 weeks now Finder window does not fill whole screen, there is an 1 1/2" space of black on the right side and the Finder window had a 1" section that flipped like a rolling tv now it is a white bar! Help!
Bad video card, call Apple, get a case number and return it.
-
Gallery script help, please
Gallery script help, please
Hello,
I'm new to actionscript in general, I do know a little...
I foung a gallery script, modified many things, the images
open fine, everything is working, but here's the thing:
the gallery is in 3 sections, red, blue and yellow.
I would like to know how, what, and where to put a script so
that if a "the small red image #1" is clicked, I can load any sort
of a movie on top of the "the BIG red image #1" or #2 or 3 and so
on...same goes for the blue and yellow...
If I figured things correctly on my own...the small thumbnail
images of the gallery are not buttons, that's why I can't attach a
movie (let's say) to them...but it is all written in script, using
the horizontal and vertical position of the mouse to open the large
images of the gallery...
So, I don't know how to figure things out, to attach a
specific movie to a specific thumbnail...
p.s.: I think the script that controls the gallery is in
symbol 120
I really would appreciate the help
Merry Christmas in advance to everyone
Sandra
here are all the files...
http://www.gentro.ca/sandra_test.zipThere's a great tutorial on kirupa...
click
here for link -
firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") -
Ive bought Apple TV and upgrade my macbook air Os X ver 10.8.2 but i could not see the airplay on the top menu bar . please help! thank you.
The ability to use AirPlay is BOTH an OS requirement(Mountain Lion) AND has hardware requirements. You need to check and see if your 2010 Air will support Airplay.
-
My friend just bought a Windows 8 laptop so I told her to download the latest version of FireFox. Unfortunately, some idiot removed the Menu Bar which most people love. You can see all of your options in plain English. Anyway, I referred her to help and cannot believe it's so hard to get a simple answer to this question. Why does FireFox make it so difficult to get an old fashioned menu bar?
Help says, "Right-click on an empty section of the Tab Strip and check Menu Bar". OK, what is a "TAB STRIP" and where does she find it? Who writes these silly, useless help tips?Grad, you made some good points but we still disagree. I'll acknowledge that maybe millions was a slight exaggeration but nobody has an accurate count. However, I do understand the difference between making something simple and obvious versus a programmer trying to prove how clever he or she is.
Grad, I'm guessing you and your friends are much younger than us as we are well above the age of 50.
As for the number of clicks, I'm confused by your comment. My Menu Bar is always visible so I have to merely '''click once on Bookmarks''' to get to those menu options. It sounds as if you have to initially click on the orange FireFox button in order to see the Menu Bar, and then click a 2nd time on Bookmarks. That sounds like 2 clicks of the mouse to me.
I have Windows 7 and never saw Windows 8 so I can't comment on your excellent question. I personally had the '''Menu Bar displaying 100% of the time''' for as long as I could remember. I just couldn't remember how I initially turned it on several years ago and the help file proved to be more confusing than helpful. -
Items on my side bar do not go Poof when dragged off? Help!
Aloha:
If I pull an item off my side bar it just jumps right back. Mydock items go poof with out problems, but not the side bar items.
Dan
Hawaii.Wow! Right on! Why didn't I think of that!!
Thank you very much
Dan
I thought I hit the corect answer button, but mark that as a correct answer for sure! -
[solved] "what's my linux doing?" conky-bar + script?
Hi!
I'm searching for and/or am trying to figure out a conky config + script that lets me "sort of see what my pc is doing atm", just a little peek, something that "helps guess" and "blends in". Couldn't find anything that lets me see some random details like that, so I did this for now:
stuff.bash:
#!/bin/bash
touch stuff.1 stuff.2
ps -A -o "cmd" > stuff.x
#pstree -U > stuff.x
if [ "$(diff -q stuff.x stuff.1)" = "" ]; then
cat stuff.diff
else
mv -b stuff.1 stuff.2
mv -b stuff.x stuff.1
diff --suppress-common-lines -d stuff.1 stuff.2 | grep \< | tr '\n' ' ' | sed "s/^[0-9a-f ]*//" > stuff.diff
cat stuff.diff
fi
which I'm using in that conky bar:
own_window yes
own_window_type dock
own_window_title conky
own_window_colour 555577
background yes
double_buffer true
use_xft yes
xftfont DejaVu Sans Mono:style=Bold:size=12
alignment top_middle
border_width 0
gap_x 0
gap_y 0
minimum_size 1950 20
maximum_width 1950 20
use_spacer left
color0 aa8888
color1 white
color2 grey
draw_borders no
draw_outline no
draw_shades no
short_units yes
top_name_width 8
pad_percents 2
cpu_avg_samples 12
net_avg_samples 12
update_interval 1
TEXT
${color0}${font impact}CPU:${font} ${color1}${cpu cpu1}% / ${cpu cpu2}% \
${color2}(${TOP name 1} | ${TOP name 2} | ${TOP name 3}) \
${color0}${font impact}MEM:${font} ${color1}${memperc}% \
${color2}(${TOP_mem name 1} | ${TOP_mem name 2} | ${TOP_mem name 3}) \
${color0}${font impact}DO:${font} ${color1}${downspeed wlan0} ${color0}${font impact}UP:${font} ${color1}${upspeed wlan0} \
${color0}${font impact}LAST: ${color2}${font} ${scroll 92 3 ${exec "~/stuff.bash"}}\
${alignr}\
${color1}${time %A, %Y-%m-%d - %H:%M:%S Uhr}\
So... that gives me a sort of nice conky bar with some random "what's being done" - now p.e. It tells me that yaourt is calling wget and pacman... and cmake has been started... and for some reason firefox is calling itsself... and some strange python script in /tmp/... with my home directory written behind it as parameters... mmmh... well.... maybe I should check on that later, so back to the topic - what I'm sort of missing is more or less...:
(edit: [solved] / -I would rather have done something like this with lsof, but I didn't manage to get rid of some of the constantly changing columns of lsof output - those lead to way too many reoccurring info's and doesn't give me the feeling of "a little peek behind the curtains" like it's supposed to be )
- There must be an overall better ways to do something like that, right? Any ideas for a smart little script that gets a few lines of "chaotic random backgrund info" with a good: "ooooh, I seeee"-ratio and not too much spam?
(edit: [solved] - "network stuff"! I can't see enough network stuff!!! So if anyone knows an easy (easy as in "call-it-once-per-5-seconds-with-concy"-easy) to show what processes are meddling around on the network most atm, that would be great... maybe I'll try netstat again for just that... )
- Also the whole rest of that config & script are far from perfect...
So: Any hints & stuff? Thanks!
Last edited by whoops (2009-07-19 11:12:24)Ooooh, that explains it.
Thanks, but I'm looking for (see example) a single line or something for a conky bar and something a lot less "systematic"... hard to explain... something to "see stuff fly by"... the "strange small line where I can recognize stuff from time to time"... like at the moment it's telling me "kjournal2d < n/usr/libhistory < bla bla bla < www.archlinux.org < ninotify < npipe < npipe < /bin/bash ./stuff.bash < /dev/input event....." and its going on an on and on which does not make thaaat much sense for but I like seeing it...
That's my "best one" so far:
stuff.bash:
#!/bin/bash
touch stuff.1 stuff.2
ps -A -o "cmd" > stuff.x
lsof -F cn | grep -v -E "p[0-9][0-9]|proc|stuff|lsof|grep|conky| sed " | sed "s/^.//g" >> stuff.x
diff -BEbw --suppress-common-lines stuff.x stuff.1 | grep \< | tr '\n' ' ' | sed "s/^[0-9a-f ]*\|IPv4//g" | sed "s/ */ /g" > stuff.diffx
if [ "$(diff stuff.diffx stuff.diff | grep \<)" = "" ]; then
cat stuff.diff
else
mv -b stuff.1 stuff.2
mv -b stuff.x stuff.1
mv -b stuff.diffx stuff.diff
cat stuff.diff
fi
... just I think it might suck a little too much CPU... and I didn't manage to filter out all the stuff this script generates itself without loosing too many unrelated info... and some stuff that keeps showing up every few seconds. Somehow I'd like it mostly to show "stuff that doesn't happen all the time".
Last edited by whoops (2009-07-19 11:09:23) -
JScrollPane bars problem Help!!!
There is some problem with my JScrollPane
I have added components to the JScrollPane but when components exceeds thee size of the JScrollPane the bars of the JScrollPane are not appearing. Please somebody help me... Just drag the JFrame and increase and decrease its size you will understand my problem. i cant see the remaining components because of no scroll bar.
Here is a working code...
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import javax.swing.*;
public class test2 extends JFrame implements ActionListener
JPanel mypanes = new JPanel();
//Main Heading 1
JPanel p1 = new JPanel();
JLabel l1 = new JLabel("MEDICINE INFORMATION");
//Medicine General Information
JPanel genpane = new JPanel();
JLabel genl1 = new JLabel("General Information ");
//MGI (1)
JPanel genpane1 = new JPanel();
JLabel nam = new JLabel("Name:");
JTextField gentf1 = new JTextField(14);
JLabel genname = new JLabel("Name:");
JTextField gen1tf1 = new JTextField(14);
//MGI (2)
JPanel genpane2 = new JPanel();
JLabel genname1 = new JLabel("Generic Name:");
JTextField gen2tf2 = new JTextField(14);
//MGI (3)
JPanel genpane3 = new JPanel();
JLabel genname2 = new JLabel("Manufacturers Name:");
JTextField gen3tf3 = new JTextField(14);
//MGI (4)
JPanel genpane4 = new JPanel();
JLabel genname3 = new JLabel("Classification:");
JTextField gen4tf4 = new JTextField(14);
//MGI (6)
JPanel genpane5 = new JPanel();
JLabel genname4 = new JLabel("Prescription Required:");
JComboBox gen5tf5 = new JComboBox();
//Medicine Detailed Information
JPanel detpane = new JPanel();
JPanel detp2 = new JPanel();
JLabel detl1 = new JLabel("Detailed Information");
//MDI (1)
JPanel detpane1 = new JPanel();
//MDI (2)
JPanel detpane2 = new JPanel();
JLabel detl3 = new JLabel("Common Uses:");
//MDI (3)
JPanel detpane3 = new JPanel();
JTextArea dettf2 = new JTextArea(8,68);
public test2(String title)
super(title);
//Main Heading Panel
p1.setLayout(new GridLayout(3,3));
p1.setBackground(Color.white);
p1.add(new JLabel(""));
p1.add(new JLabel(""));
p1.add(new JLabel(""));
p1.add(new JLabel(""));
l1.setFont(new Font("avant garde bk bt",Font.BOLD,20));
p1.add(l1);
p1.add(new JLabel(""));
p1.add(new JLabel(""));
p1.add(new JLabel(""));
p1.add(new JLabel(""));
//General Information
genpane.setLayout(new GridLayout(10,1));
genl1.setFont(new Font("TimesNewRoman",Font.PLAIN,20));
genpane.add(genl1);
//MGI (1)
genpane1.setBackground(Color.white);
genpane1.setLayout(new GridLayout(1,5));
genpane1.add(new JLabel(""));
genpane1.add(new JLabel(""));
genpane1.add(new JLabel(""));
genpane1.add(new JLabel(""));
genpane1.add(new JLabel(""));
//MGI (2)
genpane2.setBackground(Color.white);
genpane2.setLayout(new GridLayout(1,5));
genpane2.add(nam);
genpane2.add(gentf1);
genpane2.add(new JLabel(""));
genpane2.add(new JLabel(""));
genpane2.add(new JLabel(""));
//MGI (3)
genpane3.setBackground(Color.white);
genpane3.setLayout(new GridLayout(1,5));
genpane3.add(genname1);
genpane3.add(gen2tf2);
genpane3.add(new JLabel(""));
genpane3.add(new JLabel(""));
genpane3.add(new JLabel(""));
//MGI (4)
genpane4.setBackground(Color.white);
genpane4.setLayout(new GridLayout(1,5));
genpane4.add(genname2);
genpane4.add(gen3tf3);
genpane4.add(new JLabel(""));
genpane4.add(new JLabel(""));
genpane4.add(new JLabel(""));
//MGI (5)
genpane5.setBackground(Color.white);
genpane5.setLayout(new GridLayout(1,5));
genpane5.add(genname4);
genpane5.add(gen5tf5);
genpane5.add(new JLabel(""));
genpane5.add(new JLabel(""));
genpane5.add(new JLabel(""));
//Medicine Detailed Information
detpane.setLayout(new GridLayout(1,1));
detl1.setFont(new Font("TimesNewRoman",Font.PLAIN,20));
detpane.add(detl1);
//MDI(1)
detpane1.setBackground(Color.white);
detpane1.setLayout(new GridLayout(1,5));
detpane1.add(new JLabel(""));
detpane1.add(new JLabel(""));
detpane1.add(new JLabel(""));
detpane1.add(new JLabel(""));
detpane1.add(new JLabel(""));
//MDI(2)
detpane2.setBackground(Color.white);
detpane2.setLayout(new GridLayout(1,1));
detpane2.add(detl3);
//MDI(3)
detpane3.setLayout(new GridLayout(1,1));
detpane3.add(dettf2);
//Adding Heading 2
detp2.setBackground(Color.white);
detp2.setLayout(new GridLayout(1,1));
detp2.add(new JLabel(""));
//Adding Panels to the Main JPanel i-e genpane
genpane.add(genpane1);
genpane.add(genpane2);
genpane.add(genpane3);
genpane.add(genpane4);
genpane.add(genpane5);
genpane.add(detp2);
genpane.add(detpane);
genpane.add(detpane1);
genpane.add(detpane2);
gen5tf5.addItem("Yes");
gen5tf5.addItem("No");
JScrollPane spp = new JScrollPane(genpane);
spp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
spp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
mypanes.setBackground(Color.white);
mypanes.add(p1);
mypanes.add(spp);
setContentPane(mypanes);
public void actionPerformed(ActionEvent ae)
public static void main(String args[])
test2 t = new test2("Title");
t.setSize(800,300);
t.setVisible(true);When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.
-
Is there a script to distribute table columns evenly between guides or margins? Here is the issue I am having. I have a big catalog and I need to take the price column out of every item but then i have to (shift-Drag) the table to get it to fill the space where the price column was.
Thanks in advance for any help.Hello. Thank you for your reply. I don't think i asked me question clearly so for that I apologize but I have mage an image to illustrate what I am trying to do.
1. This is that the table would look like before touching it
2. This is the table after taking out the price column which is always the last column in all of the tables
3. This is the table after evenly distributing the remaining column to fill the space where the price column was.
I have a script that does step 2, now I just need one that will do step 3 if possible? Basically I have a script that deletes the last column in every table in a document but I need one to distribute the columns after taking out the price one.
Thanks in advance for any help you can give me.
Maybe you are looking for
-
Adobe Photoshop CS6 serial number
I recently bought adobe photoshop CS6. I retrieved the serial number from my products and services and attempted to install. Its telling me that its not a valid serial number
-
my internal speakers aren't working. any ideas? can i reinstall software to fix this? the only sound produced is the startup strum.
-
i face this problem in web service bapi... so can anyone help me??? HTTP/1.1 500 Internal Server Error Set-Cookie: <value is hidden> content-type: text/xml; charset=utf-8 content-length: 803 sap-srt_id: 20080610/144609/v1.00_final_6.40/DD36B8E7DE44B5
-
Theme changing on client device affect Terminal (RemoteApp) session
Hi, I noticed that when users are changing their default theme (Client side - PC) , It also affects the server side session windows when using RemoteApp, I can see that the Active-window color is being changed (server side). Since I changed Server de
-
PRIVILEGE LEVELS FOR ACS WITH AD DATABASE
How do I configure two separate privilige levels for two groups. These groups exist in the AD database i.e. my ACS (Pri & Backup) are looking in AD for authentication.