Effect on Sprite breaks drag&drop mechanics
Hello,
I've a problem with applying effects to a number of SpriteVisualElements.
I had set up a grid of said sprites and could drag and drop them around using the startDrag() and stopDrag() methods.
I then decided to use effects to somehow animate these sprites when I click or drag them, and chose to play the effects in the handler of the MouseEvent.MOUSE_UP event.
Things still work, but.... some effects break the drag&drop operation.
The first time I drag or click the sprites everything works fine, but when I try to drag them again after the effect has been played once they won't drop. I can see the sprites move along with the mouse cursor as i drag them, but when I release the mouse button the sprites jump back to their starting position instead of dropping where I've just dragged them.
This happens only on individual sprites once the effect has been played on them a first time. After that the effect still plays each time (meaning that the MOUSE_UP event is dispatched), but they won't drop.
I'm also tracking the coordinates of the sprites as they are dragged, using a label I update through the MOUSE_MOVE event. The sprites' coordinates update normally the first time I drag&drop them, but then, after the effect is played for the first time, the coordinates won't update either.
This only happens with effects that affect the sprites' appearance: s:Animate (scaleX, scaleY), s:Rotate, s:Scale.
The only one that seems to work without causing any problem is s:Move. Don't understand why.
Does anyone have any idea?
Thanks a lot
Oh, I see. Thanks.
So... i should use the "normal" flex drag&drop.
There is just a problem, the documentation says:
The following Flex features are not supported in mobile applications:
No support for drag-and-drop operations
http://help.adobe.com/en_US/flex/mobileapps/WSf3db6597adcd110e19124fcb12ab3a1c319-8000.htm l#WSca1097f1363f276f-8bfd51512ba1a8112c-8000
I had to work my way around this limitation one time in the past. I assumed that those lines referred to list-based controls only and I figured that maybe I could manually implement drag&drop with my custom components, which I did. It worked quite well, but unfortunately it also made the mouse cursor appear beneath my fingertip. It was very annoying and I couldn't find a way to get rid of it.
I also thought about implementing the "flex" drag&drop using TouchEvents instead of MouseEvents (maybe that was the cause of the problem, I thought), but the DragManager.doDrag() method requires a MouseEvent as argument.... and that's when I decided to switch to the more basic .startTouchDrag() and stopTouchDrag() methods.
Now, is there something else I could try?
How do other people (more experienced than me) implement their drag&drop mechanics, for starters?
Thank you :-)
Similar Messages
-
Working in Logic 9, how do I use a drum loop WITH ITS PRESET EFFECTS? I can drag and drop the loop but it plays dry in timeline. thanks
Here's the short-cut solution:
Green Apple tracks are MIDI files (so to speak). If you drag one from the loop browser (Capitol C Orchestral hit, as you mentioned in this exable) directly into the arrange page it creates the MIDI file and the instrument to play it back on.
HOWEVER.If you create and audio track first, THEN drag the green Apple loop onto that track, the loop will get "bounced" with the reverb in tact and you'll have the exact sound that you heard in the preview.
Make sense? -
Triggering pop-up event through drag & drop?
Hi everyone, I'm a newly registered member of this forum.
I've roughly browsed though this forum to seek a solution for my problem, but I can't seem to find a suitable solution (perhaps i should continue looking).
Scenario:
Anyway, I'm facing some technical challenges in flex as I'm relatively new to it.
I'm trying to create a web application, where users use drag & drop to input information.
I visualize this process:
User selects icon from a list
User drags the icon onto target area
User releases icon over target area
Pop-up appears with a form for users to input information.
Users input information and submits
Information is stored in the database.
Present knowledge:
Because I'm new to Flex, I tried to break this down and learn by components:
I'm able to:
Create a drag & drop effect
Create connection to database using HttpService
Main Problem:
I'm able to use the drag and drop functionality but I cannot trigger a pop-up event when the icon is dropped onto the target area.
Sorry if the problem seems a little insignificant due to my lack in knowledge.
I'm just a student trying to learn. Hope that someone can help me out here, or provide me with relevant links to learning resources.
Thanks in advance,
JordHi,
thanks so much for replying, but I would really appreciate a little bit more help.
I vaguely understand the concepts of DragEvent.DRAG_DROP, but I'm not really familiar with the syntax of how to cause allow a pop-up to appear.
This is how my script look like:
<mx:Script>
<![CDATA[
import mx.events.DragEvent;
import mx.containers.Box;
import mx.managers.DragManager;
import mx.core.DragSource;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Embed("IconAssets/1.gif")]
[Bindable]
public var personalAsset:Class;
[Embed("IconAssets/2.gif")]
[Bindable]
public var investment:Class;
[Bindable]
private var iconValue:uint;
private function iconDrag (event:MouseEvent, value:uint):void
var dragInitiator:Image = event.currentTarget as Image;
var dragSource:DragSource = new DragSource();
dragSource.addData(value, 'value');
var dragProxy:Image = new Image();
dragProxy.source = event.currentTarget.source;
DragManager.doDrag(dragInitiator, dragSource, event, dragProxy);
private function dragOver(event:DragEvent):void
var dropTarget:Box=event.currentTarget as Box;
if (event.dragSource.hasFormat('value'))
dropTarget.setStyle("borderThickness", 5);
DragManager.acceptDragDrop(dropTarget);
private function dragAway(event:DragEvent):void
var dropTarget:Box=event.currentTarget as Box;
revertTarget();
private function dragAccept(event:DragEvent):void
var value:uint = event.dragSource.dataForFormat('value') as uint;
The trigger for the Pop-up should be placed here.
revertTarget();
private function revertTarget():void
fStatement.setStyle("borderThickness", 1);
]]>
</mx:Script>
I'm not sure whether I'm correct to state (in bold, italic, & underline) above that the event trigger for the pop-up should be within that particular function.
The difficulty I'm facing now is that the (structure of the) popup should be written in MXML and yet I have to place them in the ActionScript.
(I sense that I have a fundamental misconception of how this works,so please correct me to the best of your knowledge.)
I would greatly appreciate it if anyone is able to provide me with an example/sample of how this should be done.
With Thanks,
Jord -
How i can do a drag drop between container (grid)?
I am trying to work out a task with Drag and Drop(WPF ,C#)to include in a demo ,i will explain easy showing an example of code in XAML
<Grid x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid x:Name="container1" Grid.Row="0" >
<Grid Name="grid1" Background="Aqua" Margin="15"></Grid>
</Grid>
<Grid x:Name="container2" Grid.Row="1" >
<Grid Name="grid2" Background="blue" Margin="15"></Grid>
</Grid>
<Grid x:Name="container3" Grid.Row="2" >
<Grid Name="grid3" Background="green" Margin="15"></Grid>
</Grid>
</Grid>
My purpose is when the user drag the
grid1 in the
container2 automatically the grid2 will go to place in the
container1 (basically I want to swap the grids) then this process will be used every time need to drag a grid in a container. with a code that i wrote down i can do a simple drag&drop i can drag the "grid1"
to the "container2" but cannot send back automatically the grid2 to container1.
Kindly i ask if you have any advise or tips to make successful this task.
Thank you so much for your attention
Cheers!!!
*********EDIT*********
Using this code as follow i can do the drag&drop but what really i need is the grid "container "is fix and never move just the
"grid" should move between the "container "
<StackPanel Name="sp" AllowDrop="True" Background="SkyBlue" PreviewMouseLeftButtonDown="sp_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="sp_PreviewMouseLeftButtonUp" PreviewMouseMove="sp_PreviewMouseMove"
DragEnter="sp_DragEnter" Drop="sp_Drop">
<Grid Name="grid1" Background="Aqua" Height="120" Width="500"></Grid>
<Grid Name="grid2" Background="Blue" Height="120" Width="500"></Grid>
<Grid Name="grid3" Background="Red" Height="120" Width="500"></Grid>
</StackPanel>
private bool _isDown;
private bool _isDragging;
private Point _startPoint;
private UIElement _realDragSource;
private UIElement _dummyDragSource = new UIElement();
public MainWindow()
InitializeComponent();
private void sp_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
if (e.Source == this.sp)
else
_isDown = true;
_startPoint = e.GetPosition(this.sp);
private void sp_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
_isDown = false;
_isDragging = false;
_realDragSource.ReleaseMouseCapture();
private void sp_PreviewMouseMove(object sender, MouseEventArgs e)
if (_isDown)
if ((_isDragging == false) && ((Math.Abs(e.GetPosition(this.sp).X - _startPoint.X) > SystemParameters.MinimumHorizontalDragDistance) ||
(Math.Abs(e.GetPosition(this.sp).Y - _startPoint.Y) > SystemParameters.MinimumVerticalDragDistance)))
_isDragging = true;
_realDragSource = e.Source as UIElement;
_realDragSource.CaptureMouse();
DragDrop.DoDragDrop(_dummyDragSource, new DataObject("UIElement", e.Source, true), DragDropEffects.Move);
private void sp_DragEnter(object sender, DragEventArgs e)
if (e.Data.GetDataPresent("UIElement"))
e.Effects = DragDropEffects.Move;
private void sp_Drop(object sender, DragEventArgs e)
if (e.Data.GetDataPresent("UIElement"))
UIElement droptarget = e.Source as UIElement;
int droptargetIndex=-1, i =0;
foreach (UIElement element in this.sp.Children)
if (element.Equals(droptarget))
droptargetIndex = i;
break;
i++;
if (droptargetIndex != -1)
this.sp.Children.Remove(_realDragSource);
this.sp.Children.Insert(droptargetIndex, _realDragSource);
_isDown = false;
_isDragging = false;
_realDragSource.ReleaseMouseCapture();
Thanks :)Hello Jonny,
Currently I do not have a sample and I have reviewed this post and find another way which seems more reasonable. Have you cosidered use a ListView instead of common grid. It seems we can do what you want with two common grid however we need to hardcoded
all the things.
If we use ListView, for example, you can see this thread:
http://stackoverflow.com/questions/20573063/creating-icon-view-mode-for-listview-wpf
and this thread:
http://stackoverflow.com/questions/9443695/how-do-i-drag-drop-items-in-the-same-listview
We can drag and drop items instead of grid, which will make this programming much easier than hard code to switch your control's location.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Dear Barry Wang thank you so much for your kind support ,just open me a way to do it ,you can see in this post https://social.msdn.microsoft.com/Forums/vstudio/en-US/55873851-e86c-4a20-9b00-de3419054ba8/get-stuck-to-dragdrop-in-this-case?forum=wpf .
Wish you a Happy New Year .
Sincerley -
Urgent! Adobe killed drag/dropping workflow in CC. Help restore it!
I posted this first FR at the end of another thread, here. Due to the importance of this issue, IMO, I'm giving this FR a new thread, plus adding as second version of the same FR.
My stance is simple. Every change Adobe makes to Premiere Pro should be positive to most or all people. If a change Adobe makes is negative for most or all people, then it must be removed.
Adobe did a negative change in CC, which brings about zero positive improvements (unless proven otherwise which has not been done yet).
In CC, drag-dropping clips no longer = dropping what you're dragging! If you only have a video track source patched, audio doesn't get dragged to the Timeline. If you only have an audio track source patched, video doesn't get dragged to the Timeline.
This is contrary to the way it worked in CS6 (where it made sense): drag drop clip = same clip dropped, regardless of Timeline settings!
Please help fix this by sending the following FRs as your own or writing a FR of your own based on this new problem Adobe introduced in CC. Thank you and God bless all those that care enough about Premiere to take action!
VERSION 1 (revert back to CS6)
*******Enhancement / FMR*********
Brief title for your desired feature:
Drag/Dropping video with audio clip from Source Monitor or Project window to Timeline should include both video and audio... always!
How would you like the feature to work?
The way it did in Premiere Pro CS6:
A. Video with audio dragged from Project window = video with audio dropped in Timeline
B. Three drag/dropping options from Source monitor, regardless of Source Patch settings. Drag/drop:
1. Source Monitor Image = Video + Audio
2. 'Drag Video Only' button = Video only
3. 'Drag Audio Only' button = Audio only
In CC, these options no longer work properly depending on Source Patching. This makes no sense, and provides zero benefits to the editor!
Why is this feature important to you?
Because intelligent workflows matter! There's nothing intelligent or efficient about the Source Monitor's buttons working some times but not others, or drag/dropping a clip from the Project window only to find its audio doesn't appear in the Timeline. When drag and dropping clips, Source Patching should determine default clip PLACEMENT, Not WHAT gets dragged to the Timeline!
VERSION 2 (give us a choice!)
*******Enhancement / FMR*********
Brief title for your desired feature: Preferences window option to disable Source Patching's effect on drag/dropped clips.
How would you like the feature to work?
If Adobe can't/won't revert drag/dropping back to functional CS6 standards, whereby clip dragged = same content dropped regardless of Timeline settings, then please give us the option of turning off CC's new drag/dropping behavior through a new check box option in the Preferences Window: "Source patching affects Drag/dropping".
Checked = CC behavior
Unchecked = CS6 behavior
Why is this feature important to you?
Because respecting workflows matters! CS6 and prior Premiere editors had their workflows disrespected when Adobe suddenly changed drag/dropping behavior with zero apparent benefits in return. Please give us a choice in this matter or revert to CS6's intelligent drag-dropping altogether.I posted this first FR at the end of another thread, here. Due to the importance of this issue, IMO, I'm giving this FR a new thread, plus adding as second version of the same FR.
My stance is simple. Every change Adobe makes to Premiere Pro should be positive to most or all people. If a change Adobe makes is negative for most or all people, then it must be removed.
Adobe did a negative change in CC, which brings about zero positive improvements (unless proven otherwise which has not been done yet).
In CC, drag-dropping clips no longer = dropping what you're dragging! If you only have a video track source patched, audio doesn't get dragged to the Timeline. If you only have an audio track source patched, video doesn't get dragged to the Timeline.
This is contrary to the way it worked in CS6 (where it made sense): drag drop clip = same clip dropped, regardless of Timeline settings!
Please help fix this by sending the following FRs as your own or writing a FR of your own based on this new problem Adobe introduced in CC. Thank you and God bless all those that care enough about Premiere to take action!
VERSION 1 (revert back to CS6)
*******Enhancement / FMR*********
Brief title for your desired feature:
Drag/Dropping video with audio clip from Source Monitor or Project window to Timeline should include both video and audio... always!
How would you like the feature to work?
The way it did in Premiere Pro CS6:
A. Video with audio dragged from Project window = video with audio dropped in Timeline
B. Three drag/dropping options from Source monitor, regardless of Source Patch settings. Drag/drop:
1. Source Monitor Image = Video + Audio
2. 'Drag Video Only' button = Video only
3. 'Drag Audio Only' button = Audio only
In CC, these options no longer work properly depending on Source Patching. This makes no sense, and provides zero benefits to the editor!
Why is this feature important to you?
Because intelligent workflows matter! There's nothing intelligent or efficient about the Source Monitor's buttons working some times but not others, or drag/dropping a clip from the Project window only to find its audio doesn't appear in the Timeline. When drag and dropping clips, Source Patching should determine default clip PLACEMENT, Not WHAT gets dragged to the Timeline!
VERSION 2 (give us a choice!)
*******Enhancement / FMR*********
Brief title for your desired feature: Preferences window option to disable Source Patching's effect on drag/dropped clips.
How would you like the feature to work?
If Adobe can't/won't revert drag/dropping back to functional CS6 standards, whereby clip dragged = same content dropped regardless of Timeline settings, then please give us the option of turning off CC's new drag/dropping behavior through a new check box option in the Preferences Window: "Source patching affects Drag/dropping".
Checked = CC behavior
Unchecked = CS6 behavior
Why is this feature important to you?
Because respecting workflows matters! CS6 and prior Premiere editors had their workflows disrespected when Adobe suddenly changed drag/dropping behavior with zero apparent benefits in return. Please give us a choice in this matter or revert to CS6's intelligent drag-dropping altogether. -
Hi there all,
Does anybody know if there is source code/widgets/extensions
out there to
achieve the same effect as the BBC home page.
http://www.bbc.co.uk/
It's really the ability to drag/drop/dock the panels and the
fact the panel
positions are stored (I'm presuming via a cookie).
Would really appreciate any help at all.
Cheers,
@ndyB@ndyB wrote:
> Hi there all,
>
> Does anybody know if there is source
code/widgets/extensions out there
> to achieve the same effect as the BBC home page.
>
http://www.bbc.co.uk/
>
> It's really the ability to drag/drop/dock the panels and
the fact the
> panel positions are stored (I'm presuming via a cookie).
> Would really appreciate any help at all.
Try this:
http://www.webdesignermag.co.uk/tutorial_files.php?tutorial=19
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html -
Copy/paste and drag/drop not working in Mt. Lion
After two weeks of searching, I can not find the hangup which is causing my iMac 27" 10.8 to stop copy/paste and drag/drop following successfully doing the same shortly after startup. In Safe Mode, it doesn't happen, so I'm wondering how to track down this problem (extension?). I have to restart in order to get it functioning again after a short time of working. There has to be some kind of timing, like a program installed with a time limit which probably was forgotten in Lion and then reared its ugly head in Mt. Lion. Any suggestions for tracking this puppy? Or is there a program I could buy to do so?
Please read this whole message before doing anything.
This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
Step 1
Copy or drag — do not type — the line below into the Terminal window, then press return:
kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
Step 2
Repeat with this line:
sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'
This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
Step 3
launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
Step 4
ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null
Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.
Step 5
osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.
You can then quit Terminal. -
My Finder window doesn't display properly after drag & drop
When I do a drag/drop - maybe to add a mail attachment or insert a picture into Powerpoint - the Finder window changes/freezes in that it I can no longer scroll up or left - any ideas what might be going wrong?
Thanks in advance.Please read this whole message before doing anything.
This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands.
Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
Step 1
Triple-click the line of text below on this page to select it:
kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -ef
Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
Step 2
Repeat with this line:
{ sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; echo; sudo defaults read com.apple.loginwindow LoginHook; echo; sudo crontab -l; } 2> /dev/null | open -ef
This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
Step 3
{ launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; echo; crontab -l 2> /dev/null; } | open -ef
Step 4
ls -A /e*/{cr,la,mach}* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -ef
Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.
Step 5
osascript -e 'tell application "System Events" to get name of every login item' | open -ef
Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output.
You can then quit Terminal. -
Zen V Plus 4GB - drag & drop probl
Hi,
Just got myself the above item - which is great! :manhappy: . Except for one niggling problem - which is probably down to my stupidity, not the machine's.
When I try to drag & drop, copy-and-paste, etc, files (audio, video, and so on) to my Zen I always get the message - "The Device has either stopped refreshing or has been disconnected".
However, when I use the Creative Zen software to effecti've do the exactly the same thing - no problem, does it fine. I am a bit baffled by this anamoly. If anyone got any ideas/solutions for me that would be much appreciated.
All the best,
DANNY?reset it then cleanup>reboot theplayer http://forums.creative.com/creativel...ap&thread.id=3
-
Drag & drop images from Finder into new Photoshop layer?
Is it possible to drag & drop images from Finder into a new Photoshop layer?
I can do it from a web browser, but not the Finder.>I couldn't find a way to do so in Bridge, but also I never use that program. Never got into Bridge's workflow. >
I really do suggest that you re-visit Bridge especially the CS4 version.
I just cannot conceive of trying to use a Digital camera, a Scanner or the Creative Suite programs without using Bridge and ACR.
I can even use it to read PDFs and inDesign documents (all pages!) without opening Acrobat or InD..
>I usually keep a "work" window open with all the files I am using for a project, so it would be far more handy to be able to skim them in the Finder.
It is now far more effective and efficient to do that in Bridge than in the Finder.
This is where you would find the new Collections feature to be invaluable:
Just select all the images and other files connected to a project from any folder and drag their icons into the same Collection.
You then have all aliases (previewable at full-screen slide-view size with one click of the space bar in CS4) to ALL of your files which are now visible in. and openable from, a single panel. -
How to limit the number of sprite being dragged?
Help needed..
I have a sample of coding here, can anyone tell me how do i set the limit of sprite being dragged? I have set the following script to 28 sprites, but now the problem is, how should i freeze the rest of the 26 sprites and stop it from being draggable after dragging 2 sprites into the specified target location?
property spriteNum
property spriteLoc
on mouseDown me
set backingSprites = [:]
sendAllSprites (#IdentifyBackingSprites, backingSprites)
set dragSpriteNum = getaProp (backingSprites, #pickAndDrag)
set orderSpriteNum = getaProp (backingSprites, #changeOrder)
set dropSpriteNum = getaProp (backingSprites, #drop)
if rollover (dragSpriteNum) then
-- Allow this sprite to be dragged anywhere on stage
set spriteLoc = the loc of sprite spriteNum
set delta = spriteLoc - [the mouseH, the mouseV]
repeat while the mouseDown
set the loc of sprite spriteNum = point (the mouseH, the mouseV) + delta
updateStage
end repeat
-- The mouse has been released: where should this sprite go?
if rollover (dropSpriteNum) then
-- Drop sprite (and adjust its position)
set the locV of sprite spriteNum to the bottom of sprite dropSpriteNum
else
-- Return sprite to its original position
set the loc of sprite spriteNum = spriteLoc
end if
end mouseDownNo offense intended, but I am not very fond of that bit code "repeat while the mouseDown...updateStage...". While it may be working for you there are some good reasons not to use that. It also appears that you have not included all of the code in your post to make that work, so it isn't possible to give you specific suggestions on how to modify it. Instead I would like to offer you a different approach. A few assumptions made here (which of course can be changed).
1) The target is actually another sprite (such as a box) and not a screen location
2) Once a sprite is dropped into the target, it can not be moved again.
3) Sprites "snap" to the center of the taget (aligning themselves in a horizontal line).
4) Sprites dropped anywhere other than the target snap back to their original location.
5) Once the maximum number of sprites are dragged into the target, no other sprites can be moved.
Here are two behaviors, one if for the target sprite, and the other is for all drag sprites. The default is to allow no more than two sprites to be dropped on the target, but that can be easily changed through the behaviors parameters window. Also with this code, there is no specific requirement for the target or sprites to appear in a particular order on the score. You might want to create a simple demo movie and try this out.
If you have any questions or problems just reply back. HTH
-- Behavior for all draggable sprites
property spriteNum, pMe, pStartingLoc, pTargetSpriteNum
on beginSprite me
puppetSprite spriteNum, true
pMe = sprite(spriteNum)
pMe.moveableSprite = true
pMe.cursor = 280
pMe.pStartingLoc = pMe.loc
sendAllSprites(#updateDraggableSpriteList, spriteNum)
end
on reportToTarget me, targetSpriteNum
sendSprite(targetSpriteNum, #updateDraggableSpriteList, spriteNum)
end
on setTargetSpriteNum me, targetSpriteNum
pTargetSpriteNum = targetSpriteNum
end
on mouseDown me
if pMe.moveableSprite then pMe.locZ = the lastChannel + 1
end
on mouseUp me
if pMe.moveableSprite then
pMe.locZ = spriteNum
sendSprite(pTargetSpriteNum, #spriteDropped, spriteNum)
end if
end
on setMovable me, moveableState
pMe.moveableSprite = moveableState
if pMe.moveableSprite then
pMe.cursor = 280
else
pMe.cursor = 0
end if
end
on goBack me
pMe.loc = pStartingLoc
end
-- Behavior for the target sprite
property spriteNum, pMe, pDraggableSpriteList, pDroppedSprites, pMaxDroppedSprites, pCombinedWidth
on beginSprite me
pMe = sprite(spriteNum)
pDraggableSpriteList = []
pDroppedSprites = []
pCombinedWidth = 0
sendAllSprites(#reportToTarget, spriteNum)
end
on updateDraggableSpriteList me, draggableSpriteNum
if not pDraggableSpriteList.findPos(draggableSpriteNum) then
pDraggableSpriteList.add(draggableSpriteNum)
sendSprite(draggableSpriteNum, #setTargetSpriteNum, spriteNum)
end if
end
on spriteDropped me, spriteNumDropped
if sprite(spriteNumDropped).intersects(pMe) then
pDroppedSprites.add(spriteNumDropped)
pCombinedWidth = pCombinedWidth + sprite(spriteNumDropped).width
sendSprite(spriteNumDropped, #setMovable, false)
sprite(spriteNumDropped).locZ = pMe.locZ + 1
newLocH = ((pMe.width - pCombinedWidth) * .5) + pMe.left + (sprite(spriteNumDropped).width * .5)
repeat with droppedSprite in pDroppedSprites
sprite(droppedSprite).locH = newLocH
newLocH = newLocH + sprite(spriteNumDropped).width
sprite(droppedSprite).locV = pMe.locV
end repeat
if pDroppedSprites.count = pMaxDroppedSprites then
repeat with draggableSpriteNum in pDraggableSpriteList
sendSprite(draggableSpriteNum, #setMovable, false)
end repeat
end if
else
sendSprite(spriteNumDropped, #goBack)
end if
end
on getPropertyDescriptionList
description = [:]
addProp description,#pMaxDroppedSprites, [#default:2, #format:#integer, #comment:"Maximum number of sprites that can be dropped on the target"]
return description
end -
Does anyone know if there's a hack or a fix for this?
When you drag & drop multiple files (into any program, as far as I know -- if it's a software-specific thing please correct me), they open in a completely random order. This is obnoxious -- and downright frustrating when you're copying from them and closing them... and the app crashes. Because I now have no easy way to tell which ones I've already copied from.
Thoughts? Ideas? Rumors of a fix? I don't recall this being a problem in OS9 -- what, five updates ago? Seems like it should be a simple thing. Now, it would be truly elegant if they would open in the order that the window was sorted by... but I'd settle for ANY kind of order.
Thanks all!Looks like the bug is even more complex than I had known. I usually select the items and double click to open in Preview. As long as the window is in column view they open in order. Just tried dragging to the Dock and....one time they opened wrong, but half a dozen other trials all opened correctly. A little more experimenting, and it seems to me that if you first open a batch from list view they open incorrectly, if you then put into Column view and try to open the same batch again, the will still open incorrectly. Seems like there may be a cache effect of some sort going on.
Photoshop is likely a whole 'nother kettle of fish. I know that in order for things to open at all when you double click or drop on the Dock icon, you have to have the following:
"/Library/ScriptingAdditions/Adobe Unit Types"
What that does with information that gets passed to it is anybody's guess. Personally, if I'm going to batch open Photoshop files I do it from the Photoshop file browser.
Francine
Francine
Schwieder -
ALV Grid Drag & Drop - Cell-specific
Hi ABAPers,
I've referred SAP Standard program / SDN forum and got some logic for ALV Drag & Drop for row-specific, Column-specific and for Trees. But I didn't get for Cell-specific.
My requirement is :
If the user drags a particular cell to another cell in an ALV-grid, then that Cell value should be copied to the 'Dropped-Cell' in the ALV Grid and should be saved to that particular Internal Table.I have referred the SAP standard program BCALV_DND_03 which does from a different tree to a cell. My requirement is from the same ALV grid Table.
I've also referred BCALV_DND_04 which is useful. But here, it does it for the whole row.
Can anyone please help me in this?
Thanks a lot.
Best Regards,
SowmyaTOP INCLUDE:
DATA: BEGIN OF g_t_plan_alv_m OCCURS 0,
header,
count(5).
INCLUDE STRUCTURE g_ze6spw_plan_alv.
DATA: handle_style TYPE lvc_t_styl,
handle_dragdrop TYPE lvc_t_drdr,
tabcolor TYPE lvc_t_scol.
DATA: END OF g_t_plan_alv_m.
CLASS cl_gui_resources DEFINITION LOAD.
CLASS lcl_events_dragdrop DEFINITION DEFERRED.
DATA:
BEGIN OF g_ty_s_outtab OCCURS 0,
header,
count(5).
INCLUDE STRUCTURE g_ze6spw_plan_alv.
DATA: handle_style TYPE lvc_t_styl,
handle_dragdrop TYPE lvc_t_drdr,
tabcolor TYPE lvc_t_scol,
END OF g_ty_s_outtab.
DATA: g_field TYPE lvc_fname.
DATA:
gr_events TYPE REF TO lcl_events_dragdrop,
gr_dragdrop TYPE REF TO cl_dragdrop,
gr_dragdrop_background TYPE REF TO cl_dragdrop.
CLASS lcl_events_dragdrop DEFINITION.
PUBLIC SECTION.
DATA: m_grid TYPE i.
METHODS:
ondrag FOR EVENT ondrag
OF cl_gui_alv_grid
IMPORTING e_row
e_column
es_row_no
e_dragdropobj,
ondrop FOR EVENT ondrop
OF cl_gui_alv_grid
IMPORTING e_row
e_column
es_row_no
e_dragdropobj,
ondropcomplete FOR EVENT ondropcomplete
OF cl_gui_alv_grid
IMPORTING e_row
e_column
es_row_no
e_dragdropobj,
ondropgetflavor FOR EVENT ondropgetflavor
OF cl_gui_alv_grid
IMPORTING e_row
e_column
es_row_no
e_dragdropobj
e_flavors.
ENDCLASS. "LCL_DRAGDROP DEFINITION
* CLASS lcl_dragdrop_obj DEFINITION
CLASS lcl_dragdrop_obj DEFINITION.
PUBLIC SECTION.
DATA: line LIKE g_ty_s_outtab,
index TYPE i.
ENDCLASS. "lcl_dragdrop_obj DEFINITION
CLASS lcl_events_dragdrop IMPLEMENTATION.
METHOD ondrag.
PERFORM event_ondrag USING e_row
e_column
e_dragdropobj.
ENDMETHOD. "ondrag
METHOD ondrop.
PERFORM event_ondrop USING e_row
e_column
e_dragdropobj.
ENDMETHOD. "ondrop
METHOD ondropcomplete.
PERFORM event_ondropcomplete USING e_row
e_column
e_dragdropobj.
ENDMETHOD. "ondropcomplete
METHOD ondropgetflavor.
PERFORM event_ondropgetflavor USING e_row
e_column
es_row_no
e_dragdropobj
e_flavors.
ENDMETHOD. "ondropgetflavor
ENDCLASS. "LCL_objdragdropapp IMPLEMENTATION
FORM set_drag_drop.
DATA: l_effect TYPE i,
l_dragdrop_handle TYPE i,
ls_dragdrop TYPE lvc_s_dd01,
ls_drag_cell TYPE lvc_s_drdr,
lt_drag_cells TYPE lvc_t_drdr,
ls_fcat TYPE lvc_s_fcat,
l_field TYPE lvc_fname,
l_source TYPE char1,
l_target TYPE char1,
l_alv_exclude_tab TYPE ui_functions,
l_variant TYPE disvariant.
FIELD-SYMBOLS: <fs_brcp> TYPE zreceipt,
<fs_bisu> TYPE z_supply.
CREATE OBJECT gr_dragdrop.
CREATE OBJECT gr_dragdrop_background.
CREATE OBJECT gr_events.
SET HANDLER gr_events->ondrag
FOR g_plan_alv.
SET HANDLER gr_events->ondrop
FOR g_plan_alv.
SET HANDLER gr_events->ondropcomplete
FOR g_plan_alv.
SET HANDLER gr_events->ondropgetflavor
FOR g_plan_alv.
LOOP AT g_t_plan_alv_m.
MOVE-CORRESPONDING g_t_plan_alv_m TO g_ty_s_outtab.
APPEND g_ty_s_outtab.
ENDLOOP.
l_effect = cl_dragdrop=>move + cl_dragdrop=>copy.
CALL METHOD gr_dragdrop->add
EXPORTING
flavor = 'Line' "#EC NOTEXT
dragsrc = c_on
droptarget = c_on
effect = l_effect.
CALL METHOD gr_dragdrop->get_handle
IMPORTING
handle = l_dragdrop_handle.
ls_dragdrop-cntr_ddid = l_dragdrop_handle. "auch bei leerem Grid
ls_dragdrop-grid_ddid = space.
ls_dragdrop-col_ddid = space.
ls_dragdrop-row_ddid = space.
ls_dragdrop-fieldname = 'HANDLE_DRAGDROP'.
g_plan_layo-s_dragdrop = ls_dragdrop.
LOOP AT g_t_mat_index.
*Bulk Issues
CONCATENATE c_plan_alvm c_bisu g_t_mat_index-index INTO l_field.
ASSIGN (l_field) TO <fs_bisu>.
CLEAR l_field.
*Bulk Receipts
CONCATENATE c_plan_alvm c_brcp g_t_mat_index-index INTO l_field.
ASSIGN (l_field) TO <fs_brcp>.
CLEAR l_field.
ls_drag_cell-fieldname = <fs_brcp>."l_field.
ls_drag_cell-dragdropid = l_dragdrop_handle.
INSERT ls_drag_cell INTO TABLE lt_drag_cells.
CLEAR ls_drag_cell.
ls_drag_cell-fieldname = <fs_bisu>."l_field. 9th May
ls_drag_cell-dragdropid = l_dragdrop_handle.
INSERT ls_drag_cell INTO TABLE lt_drag_cells.
CLEAR ls_drag_cell.
ENDLOOP.
DATA: l_index TYPE i,
l_erg TYPE i.
LOOP AT g_t_plan_alv_m.
l_index = sy-tabix.
l_erg = sy-tabix MOD 2.
IF l_erg EQ 0.
g_t_plan_alv_m-handle_dragdrop = lt_drag_cells.
g_t_plan_alv_m-tabcolor = lt_tabcolor.
MODIFY g_t_plan_alv_m INDEX l_index "FROM ls_outtab
TRANSPORTING handle_dragdrop
tabcolor.
ENDIF.
ENDLOOP.
LOOP AT g_t_plan_alv_m.
l_index = sy-tabix.
l_erg = sy-tabix MOD 2.
IF l_erg EQ 0.
g_t_plan_alv_m-handle_dragdrop = lt_drag_cells.
g_t_plan_alv_m-tabcolor = lt_tabcolor.
MODIFY g_t_plan_alv_m INDEX l_index "FROM ls_outtab
TRANSPORTING handle_dragdrop
tabcolor.
ENDIF.
ENDLOOP.
CALL METHOD g_plan_alv->set_table_for_first_display
EXPORTING
is_variant = l_variant
i_save = g_save
is_layout = g_plan_layo
it_toolbar_excluding = l_alv_exclude_tab[]
CHANGING
it_outtab = g_t_plan_alv_m[]"gt_outtab_source[]
it_fieldcatalog = g_t_plan_fcat[].
ENDFORM. " DRAGDROP
FORM event_ondrag USING e_row TYPE lvc_s_row
e_column TYPE lvc_s_col
e_dragdropobj TYPE REF TO
cl_dragdropobject. "#EC
DATA:
l_obj TYPE REF TO lcl_dragdrop_obj.
CREATE OBJECT l_obj.
READ TABLE g_t_plan_alv_m INDEX e_row-index. "9thMay
IF sy-subrc EQ 0.
l_obj->line = g_t_plan_alv_m."ls_outtab.
l_obj->index = e_row-index.
e_dragdropobj->object = l_obj.
ENDIF.
ENDFORM. " EVENT_ONDRAG
FORM event_ondrop USING e_row TYPE lvc_s_row
e_column TYPE lvc_s_col
e_dragdropobj TYPE REF TO
cl_dragdropobject. "#EC
DATA: l_obj TYPE REF TO lcl_dragdrop_obj,
ls_outtab LIKE g_ty_s_outtab.
CREATE OBJECT l_obj.
IF e_row-index IS INITIAL.
e_row-index = 1.
ENDIF.
CATCH SYSTEM-EXCEPTIONS move_cast_error = 1.
l_obj ?= e_dragdropobj->object.
ls_outtab = l_obj->line.
MODIFY g_t_plan_alv_m INDEX e_row-index.
ENDCATCH.
IF sy-subrc <> 0.
CALL METHOD e_dragdropobj->abort.
ENDIF.
ENDFORM. " EVENT_ONDROP
*& Form EVENT_ONDROPCOMPLETE
* -->P_E_ROW text
* -->P_E_COLUMN text
* -->P_E_DRAGDROPOBJ text
FORM event_ondropcomplete USING e_row type lvc_s_row
e_column type lvc_s_col
e_dragdropobj type ref to
cl_dragdropobject."#EC
data: l_obj type ref to lcl_dragdrop_obj,
ls_stable type lvc_s_stbl,
lr_grid type ref to cl_gui_alv_grid.
ls_stable-row = c_on."con_true.
ls_stable-col = c_on."con_true.
catch system-exceptions move_cast_error = 1.
l_obj ?= e_dragdropobj->object.
endcatch.
lr_grid ?= e_dragdropobj->droptargetctrl.
call method lr_grid->refresh_table_display
exporting
is_stable = ls_stable.
ENDFORM. " EVENT_ONDROPCOMPLETE
*& Form EVENT_ONDROPGETFLAVOR
* -->P_E_ROW text
* -->P_E_COLUMN text
* -->P_ES_ROW_NO text
* -->P_E_DRAGDROPOBJ text
* -->P_E_FLAVORS text
FORM event_ondropgetflavor USING p_e_row
p_e_column
p_es_row_no
p_e_dragdropobj
p_e_flavors.
ENDFORM. " EVENT_ONDROPGETFLAVOR -
Audio drag & drop = (?) copy to project folder ?
Hi,
sorry for the enigmatic topic title, but it explains what I want to achieve.
I would like Logic to copy an audio file to the projects directory after I drag & drop it in the arrange (just like it is in Cubase).
I'm really confused about the way Logic handles audio files, and reading the manual did not help me at all. I've been working with Logic for the past year and still audio is a bit... difficult. Any advice and tips is highly appreciated.
greetings!Hi
Before you start work on a project, select File"Save As..." and check the 'Include Assets" box.
(This sets the project audio recording path to the project folder).
Hiding under the 'Advanced Options', there is a check box to select "Copy External Audio Files to the Project Folder".
This does what you need!
Please note that you must use Version 8.0.2, as the behaviour has changed. See the Late-Breaking News docs for more info.
HTH
JM -
Autoscolling on mouseMove without Drag & Drop
I would like to create a JPanel that automatically scrolls in the direction of the mouse cursor in the same manner as the automatic scrolling that can be done with Drag & Drop. The difference is that I don't want the user to have to press the mouse button - I want them to simply place the mouse in a region of the panel near the border.
Does anyone suggest how I can do this? I tried using a custom DragGestureRecognizer that would recognize a mouseMove into the border region as a dragStart, but the DragGestureListener that handles the dragging ever only gets dragEnd events (which I take to mean that some JDK code in the middle somewhere is noticing the mouse button is not down so cancels the drag). I've tried having a separate thread that wakes up whenever a mouse enters the region near the border (instead of doing the drag gesture thing) that contiuously scrolls the view until the mouse exits the region, and it sort of works, but the visual effect is a choppy scroll two steps forward, scroll one step back kind of look. I'm guessing I have a multithreading issue where two threads are trying to draw the screen at slightly different views.
Any other suggestions or sample code on how to do such a thing would be appreciated.By searching through these forums I've been able to piece together a solution. I won't show my ugly unrefactored code with bad dependencies, but the description should suffice:
First, I created a JPanel subclass that defines for itself 8 regions near its edges (north, south, east, west, northeast, northwest, southeast, southwest). This class also contains a timer. The constructor takes in the vertical and horizontal JScrollBar of the JScrollPane that will eventually contain it (ugly, I know, but I haven't refactored it yet).
The class has a mouseMotionListener that detects wether scrolling should be done and if so in what direction. It does this by comparing the mouseEvent location to the varoius regions.
When the mouse enters a scroll region from a non-scroll region, the timer starts. If it enters a scroll region from a different scroll region, scroll direction is recalculated. If it enters a non-scroll region, the timer stops.
When the timer fires (it fires periodically until stopped), an actionEvent handler in the class increments or decrements the scrollbars as appropriate.
Sounds rather simple, but it took me countless tries at various things to get it to work.
Maybe you are looking for
-
Error creating a role from the process task adapter - OIM 11g R2 PS1
I have a requirement to create an OIM role dynamically when a resource account is created. Also once the role is created, I need to assign that role to the user dynamically. Following code works perfectly fine if I replace the Platform with OIMClient
-
hi I'm trying to use foreachloop container in order to read the data that i have in several txt files and upload it into MRR table. when i'm trying to run the package, i'm getting the following error: [Flat File Source [2]] Warning: The system cann
-
Dear Experts: I had installed the Oracle 10g product, and I had created three tables and filled them with some data, i tested the content from the SQL windows, and all is OK. even more i installed the ODBC in the same server where I installed the XE
-
Oracle Alert doesn't send the email
Hi all, I have created an Oracle Alert which executes in an "Event Mode" not "periodically". The event triggers when I modified ( insert or update ) the table po_vendors. I set all of the things in Oracle Alert that I need. However when I execute an
-
Urgent Please ! WLS 5.1. Complation Err.
Hi everyone - I am using WLS 5.1 SP 10. When I run my remote interface, I get error. "interface EJBObject not found'. Could you tell me what file I need to include and where. I am compiling my interface from DOS Editor. Thanks.