Getting mouse position into flash from JavaScript?
Is there a way to get mouse coordinates in a browser that is
cross browser compatible? I am able to track the mouse coordinates
in all browsers except FireFox (Windows). In Windows firefox I can
track the coordinates outside of the flash object but not inside
the flash object. I am using the below script. Any help in this
would be greatly appreciated. Thanks in advance.
Regards,
Beau
I guess the easiest way is still to use a MouseMotionListener that you could add to your top level container. You could then store the value of the last position and still be able to access it even if the mouse hasn't moved.
You might also want to use the following method : SwingUtilities.convertPointFromScreen(Point p, Component c);
Similar Messages
-
How do I get video clips into Organizer from Elements?
I have broken my raw video into pieces in elements but can't get it to import into organizer.
I am using Elements 11 Trial.The video is actually a football highlight film for our son and came to us as a single mp4 file with about 60 plays of video on it.
What I am trying to do is
1) Cut it down into 60 individual videos (which I did and currently have in my project).
2) Save the pieces off as individual video clips.
3) Get the ability to rank/rate each video and select the 25 or so that will make up the final video.
4) Polish/edit those that make the grade.
5) Organize and assemble.
Does this make sense?
t
Date: Mon, 19 Nov 2012 14:44:31 -0700
From: [email protected]
To: [email protected]
Subject: How do I get video clips into Organizer from Elements?
Re: How do I get video clips into Organizer from Elements?
created by whsprague in Premiere Elements - View the full discussion
karaannmbb wrote: I have broken my raw video into pieces in elements but can't get it to import into organizer. I am using Elements 11 Trial.Place the "Work Area Bars" (located on the time line) so that only a "piece" is covered. Then "Share" to a computer file. Pick a file type that suits your needs. Be sure to check the box titled "Share WorkArea Bar Only". Unfortunately, the clip piece will be re-encoded. PrE11 will do that well, but not perfect because any encoding always seems to loose a little. You did not say what camera you are using. The software that came with my Sony and Panasonic camcorders is much better for splitting clips into smaller clips. Some sort of magic is in them where re-encoding does not take place. The pieces have the same picture quality as the original. So, when I do what you want, I break it into pieces with the camcorder software, the put the video together in PrE with all the creative tools it offers. Bill
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4859754#4859754
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4859754#4859754
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4859754#4859754. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Premiere Elements by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Get mouse position during Custom UI Draw event?
I am building a Custom UI for one of my plugin effect.
I want to get the mouse position during the Custom UI Draw event (PF_Event_DRAW), but cannot manage to get it.
From what I understand, it seems we can only get the mouse position during the events PF_Event_DRAG, PF_Event_DO_CLICK, and PF_Event_ADJUST_CURSOR.
I tried to use PFAppSuite4::PF_GetMouse() too, but this resulted in the error message "After Effects error: internal verification failure, sorry! {PF_GetMouse can only be called during valid events.}".
Therefore I want to store the mouse position during PF_Event_ADJUST_CURSOR, and use it later during PF_Event_DRAW.
Where can I store those values in a "clean" way (ensuring there will not be conflicts if two instances of the same effect are running, etc)?
Or is there an easier method to get the mouse position during a Custom UI Draw event?//SequenceDataVars is the name of your data structure
//this is how you create the sequence data
out_data->sequence_data = PF_NEW_HANDLE(sizeof(SequenceDataVars));
SequenceDataVars *seqData =
(SequenceDataVars*)PF_LOCK_HANDLE(out_data->sequence_data);
//and now you can store stuff in it.
seqData->var1 = 7;
//after it's created, on other calls, you just do a simple cast
SequenceDataVars *seqData = *(SequenceDataVars **)out_data->sequence_data;
seqData->var1 = 100;
//this is how you delete it. (if you don't delete it, it will be saved with
the project, and loaded on the next session. (if you want)
PF_DISPOSE_HANDLE(out_data->sequence_data);
there's more to know, so look up SequenceSetup, SequenceSetdown, ect in the
sample project. -
Getting mouse position without a listener
Hi all,
I'm trying to achieve the equivalent of Component.getMousePosition() that Sun
so kindly put into 1.5, without forcing all my users to immediately upgrade to 1.5.
Any ideas? Just the normal relative-to-component mouse position is all I need, but I have to get it even if the mouse hasn't moved, so there are no events.
Thanks a lotI guess the easiest way is still to use a MouseMotionListener that you could add to your top level container. You could then store the value of the last position and still be able to access it even if the mouse hasn't moved.
You might also want to use the following method : SwingUtilities.convertPointFromScreen(Point p, Component c); -
Why do images brought into flash from a psd appear differently when publish
I am creating a flash banner using a layered psd. The account team is happy with the look of the psd. BUT, when I bring the images into flash and publish the file, the colors look different. I import them into flash at the highest quality yet they don't look the same. Any advice?
The answer relates to color spaces (profiles) and color management in Flash.
In the other creative suite applications you work with a color space to define the colors your using—i.e., if you have #ff0000 full red this will be a different color in sRGB (an RGB color space) than Adobe 1998 (a different RGB color space). You need to have a color space (profile) to make sense of the color values.
Flash doesn't honor profiles currently, which means it ignores these profiles. By default in Flash Player 10, and the only option in all players before 10, it gives these color numbers to the operating system without a color space, so the operating system is in charge of making sense of these numbers. In Windows it will assume these numbers are in the sRGB color space, on Mac it will assume that these numbers are in the monitor's color space (on my macbook this is Color LCD, which I believe is the color space for all macbooks by default).
The way to get the colors to look the best in Flash is to make sure that the document is sRGB before you bring it into Flash. In Photoshop you can convert the colors into the sRGB color space, which will change these color values into the sRGB color space, by going to Edit -> Convert to Profile, and find sRGB in the RGB dropdown. Another way to do it if you are saving just a flat image is to use File -> Save For Web & Devices and check the Convert to sRGB checkbox on the right. Now when you bring the image in to Flash and publish it it should look right on Windows, and probably better on Mac.
Flash Player 10 adds a feature where you can say that all the images are in the sRGB color space and it will hand the color values to the operating system as sRGB numbers. This makes it work better on Mac, if the swf file is viewed in an environment that honors profiles (Mac and Windows honor profiles but most browsers still ignore profiles, but that's getting better). You can turn this feature on by putting this code into your Flash file: stage.colorCorrection = ColorCorrection.ON;. Read more on that at this link: http://blogs.adobe.com/jnack/2008/10/get_better_color_through_fp10.html. I also gave a presentation on color management and blogged about it, which you can read about and watch here: http://blog.elliselkins.com/2009/02/flying-through-color-space-uflash.html.
Feel free to ask me anything. Hope this helps. -
How to link into flash from outside
This is something I have on my todo - or lookinto list if you
will - for a long time.
Is it possible to push commands into a flash site from the
outside? For instance navigating to a specific frame inside the
flash movie? I haven't a way myself, or seen sites that do this
trick yet, butperhaps AS3 will allow this?
Regards,Sure you can do that, implement it via the
Flash.ExternalInterface class.
Cheers,
Gorka
www.AquiGorka.com -
How to get the position category field from PO13?
Hi all,
Anyone knows the logic of retrieving the Position Category Field? I am given the Person's position p0001-PLANS
Goto Tcode Po13.
Enter plan version: 1
Position: pernr (70000002)
Click on general attribute maint. infotype
I need the value displayed. It is from structure PT1222-low
May I know from where structure PT1222 takes values from?
I have checked the table HRP1222. Somehow there is no field to indicate the position category.
The structure for the general attribute maintenance
Edited by: Siong Chao on Jan 9, 2012 10:37 AMHi,
You can get the data from the tables HRP1222 and HRT1222. Read the TABNR value from HRP1222 and use the TABNR to get further data from the table HRT1222.
~~~Ganesh Kumar K. -
Get mouse position outside application
Hi,
I need to know the position outside my java application, but I don't know on what I should add the MouseMotionListener. Any suggestions anyone?
I'm running Microsoft Windows..
Thanx,
Jessecan't do that without JNI and a mouse hook.
-
Cant get my movies into itunes from my cpu
i dont now how to get movies i have into itunes!!!!
ive tried dragging them over but still wont work...
tried converting the movies into mp4 still wont work..Try opening one of your "converted to mp4" movies in Quicktime. If it won't open in Quicktime ... then iTunes won't add it because the file is incorrectly converted and/or corrupt.
-
Why am i getting mouse lag after wake from sleep?
both cordless mmouse and corded wacom tablet are displaying lag after waking from sleep. restart usually, but not always, helps. usb devices are on a powered external hub. noticing this after upgrading from nvidia geforce 8800 to ati 5770. compatibility issue?
specs are:
Hardware Overview:
Model Name: Mac Pro
Model Identifier: MacPro3,1
Processor Name: Quad-Core Intel Xeon
Processor Speed: 2.8 GHz
Number Of Processors: 2
Total Number Of Cores: 8
L2 Cache (per processor): 12 MB
Memory: 8 GB
Bus Speed: 1.6 GHz
Boot ROM Version: MP31.006C.B05
SMC Version (system): 1.25f4
ATI Radeon HD 5770:
Name: ATY,Hoolock
Type: Display Controller
Driver Installed: Yes
MSI: Yes
Bus: PCI
Slot: Slot-1
Vendor ID: 0x1002
Device ID: 0x68b8
Subsystem Vendor ID: 0x106b
Subsystem ID: 0x00cf
Revision ID: 0x0000
Link Width: x16
Link Speed: 5.0 GT/s
NVIDIA GeForce GT 120:
Name: NVDA,Display-B
Type: Display Controller
Driver Installed: Yes
MSI: Yes
Bus: PCI
Slot: Slot-2
Vendor ID: 0x10de
Device ID: 0x0640
Subsystem Vendor ID: 0x106b
Subsystem ID: 0x0010
ROM Revision: 3386
Revision ID: 0x00a1
Link Width: x16
Link Speed: 5.0 GT/sThat's normal. It just lets you know the call has ended.
-
Pass Variables into Flash from URL
I have a real simple request for some reason cannot pull it
off. I have a url that looks like this:
http://mywebserver/directory1/directory2/webpage.html?name=Mark
I am trying to pull the variable "mark" into a swf. The URL
will change depedning on the user and I plan on adding additional
variables as well (lastname, state, age, etc).
Easy answer to this? If so, please excuse my ignorance. I use
actionscript 2 but would consider myelf a novice as I am more into
design.Using FlashVars would work, as would SWFObject - which is
what I'd use. Glad
yout got it though.
Dave -
www.offroadfire.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Loading Image from HTML page into Flash component
Ok, after doing much research on the internet, I am pretty
sure you have to be a Flash and Actionscripting Jedi in order to
solve this issue. Here we go:
I have created an HTML page using PHP and MySql that displays
image thumbnails. When a user chooses and clicks on one of the
thumbnails, I want the larger image to be loaded into my swf. It is
a jigsaw puzzle component I picked up here: www.crifano.com. Here
is the puzzle on my page with an image manually inserted using
Flash 8 (Note: This is only working in Internet Explorer right now,
for whatever reason):
http://premieretans.com/puzzle/jigsaw.php.
I want the image on this page to be chosen by the user from a
number of images that are populated on a regular PHP/HTML page from
a MySql database. What is the best way to go about this?
Thanks so much for the help on this matter. I know I am not
the only person who has run into this dilemma, so I hope your
knowledge will save others with a similar problem the hours I have
spent on this issue myself. Thank you!
Cheers-
CharlesHi,
There's no direct support for this. But you could implement
drag and drop the way you normally would in javascript. Except
here, on mouseUp over a div encapsulating the object or embed tag
(the flash object), you'll need to make a call into actionscript
from javascript indicating that a drag and drop happened.
For more info, see
how
to drag and drop using javascript and
actionscript
and javascript communication -
Getting events into WLI from External JMS Queue
Hi,
I can't figure out how to get an event into WLI from an external JMS queue.
I can send an XML message to an external queue but can't figure out how to get
a message from an external queue into WLI. I have created the MDB using the generator
program provided and have deployed. How does this MDB now send these messages
into WLI?
I have also posted this same question in weblogic.interest.jms newsgroup.
-- BillHi Bill.
Actually this is really simple. Here are the steps:
Connect your MDB to the external JMS queue by modifying the weblogic-ejb-jar.xml
The MDB onMessage(Message m) method will receive a message from the external JMS
queue. It will then use JNDI to bind to the EventQueue of WLI and submit the event
as XML into that queue.
Obvously the onMessage() operation must be transacted using container managed
transactions so the scope will spawn both de-queuing from the external JMS queue
and enqueing into the WLI Evnet Queue.
"Bill Ozeroff" <[email protected]> wrote:
>
Hi,
I can't figure out how to get an event into WLI from an external JMS
queue.
I can send an XML message to an external queue but can't figure out how
to get
a message from an external queue into WLI. I have created the MDB using
the generator
program provided and have deployed. How does this MDB now send these
messages
into WLI?
I have also posted this same question in weblogic.interest.jms newsgroup.
-- Bill -
Bringing php data into flash file
I've got a php file, below is the code from it:
<?php
$dir = "photos/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
$fileList = "";
while (($file = readdir($dh)) !== false) {
if ($file != "." && $file != "..") {
If ($fileList == "") {
$fileList = $file;
else
$fileList = $fileList . ", " . $file;
echo "&newVar=$fileList";
closedir($dh);
?>
it returns a full list of files in a specified directory on
the server.
I need to pass that data into flash, so that it can build an
array, and do
other things with it.
i can use:
loadVariables("filename.php", "");
and then create a text box with the variable value of
"newVar" and it will
display the file list, but I can't seem to get that string
into a workable
variable that i can do things to it.
could someone point me to how to do this, or let me know if
you need more
info on it.
thanks.I'm able to get the list into flash as it's currently
written, but I can
only get it to display in a text box instead of haveing it in
a format that
i can do things go.
fileListArray = fileList.split(",");
I've been using this code to split the php's return into an
array of the
file names. I just can't seem to get it to work with the
loadvars/loadvariables stuff.
for example, the below code works perfectly:
var fileList:String;
var fileListArray:Array;
fileList = "01.jpg,02.jpg,03.jpg,04.jpg,05.jpg,06.jpg";
fileListArray = fileList.split(",");
when i try to display fileListArray[2] as the above code is
written, it
displays the correct .jpg file name. i just can't seem to
find a way to get
the php's return to work the same way.
"DMennenoh **AdobeCommunityExpert**"
<[email protected]> wrote in
message news:f0amga$ldh$[email protected]..
> You're close, but you don't want to return all the files
in one variable -
> return them all as something like file1 - filen. Then
you can iterate file
> in your onLoad.
>
> Change your PHP like so:
>
> <?PHP
> $dir="photos/";
>
> // Open a known directory, and proceed to read its
contents
> if (is_dir($dir)) {
> if ($dh = opendir($dir)) {
> $ind = 1;
> $fileList = "";
> while (($file = readdir($dh)) !== false) {
> if ($file != "." && $file != "..") {
> $fileList .= "&file$ind=".$file;
> $ind++;
> }
> }
> echo($fileList);
> closedir($dh);
> }
> }
> ?>
>
>
> Now, in your onLoad function you can do like so:
>
> myLoader.onLoad = function(success){
> var ind = 1;
> while(this['file' + ind]){
> trace(this['file' + ind]);
> ind++;
> }
> }
>
> Of course, you can then stick the files into an array...
>
>
> HTH
>
> --
> Dave -
> Head Developer
>
http://www.blurredistinction.com
> Adobe Community Expert
>
http://www.adobe.com/communities/experts/
> -
Adding items to a selectOneListbox from Javascript
In my JSF page I have...
<h:form id="alternateDeviceSelectForm">
<h:selectOneListbox id="selectBox"/>
<h:commandButton id="okButton" value="#{i18n.ok}" action="#{aBean.anActionMethod}"/>
</h:form>I also have this Javascript...
for (var i=0; i < devices.length; i++) {
var device = devices;
// a String
var id = device.getId();
// another String
var displayName = device.getDisplayName();
this.selectBox.options[i] = new Option(displayName,id);
This creates the listbox and when the Javascript method fires, the appropriate items are listed in as list items. However, when I hit the OK button, I get a JSF message about a validation error. I'm not using any custom validation at all.
Here's the error message I get... "alternateDeviceSelectForm:selectBox: Validation Error: Value is not valid"
Any ideas on how I can get this working? (I have to get the listbox item values from Javascript because that is the interface to a browser plugin that is involved in this process.)dalearyous wrote:
the only thing is there is no data to begin with. after you choose the data structure there is a text field to type in something like apple and then you click add. then you can type in something like pear and click add.If you do it right, the part that controls the data structures won't need to directly interact with the part that adds/removes the elements in the data structures -- they'll be independent units. That's what we call "orthogonal", and it helps make programs much easier to develop and maintain. To do that, you have a common set of add/remove operations across all data structures -- just like in the Collections framework, which you should use unless your teacher is telling you that you must make your own. (And even if you do, ask your teacher if you can use the interfaces from the Collections framework, if not the implementations.)
The example I showed you supports that, in that it doesn't assume that the data structures initially contain any data. (Though it might be better to create empty Collections in your constructor, rather than ever letting existingCollection go null.
Maybe you are looking for
-
How Can I use Microsoft Dynamics CRM to SharePoint
I did the integration of CRM with SharePoint, but I would to know if I need buy a license to this product, because i bought SharePoint Server, or is sufficient with the integration about the file list.wsp Thans.
-
Hello, I hope I'm not in the wrong forum for this. I am using a multi function printer/scanner to create multi page PDF's. Due to email server restrictions the PDF's cannot exceed 10 meg. For some reason this seems to hit when the PDF has scanned 30
-
Sum calculated field in report
Hi, I have a report that groups by employee then by machine. In this report I sum several fields, but need to sum a calculated field and can't figure it out. This is the calculation: <?( QTY_MOVED) div ( TIME +.001 ) div ( INVERSE + .001)?> This is a
-
Add Backspace function to PL/SQL button
Hello, I am implementing a POS interface in oracle forms 6i and I am confused upon how to create the backspace function on a pl/sql button. I have added these to the WHEN-BUTTON-PRESSED trigger: SELECT substr(:system.current_item, 1, (LENGTH(:system.
-
SCCM2012 SP1 - Problem with language SCCM Client
Hello all, I have upgraded my primary server with SCCM2012 Sp1 last week. I used OSD System to deploy workstation : Windows 7 SP1 French. And now, when i open my Software Center, the language is English and not French. I dont understand why When i go