Adobe Dreamweaver Forums



Last 10 THreads :         PS CS4 "Save As ..." format choices appear in duplicate (Last Post : Dan_Dill@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Colour differences on the web (Last Post : g_ballard@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: SFW and date created (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: sRGB vs. Adobe (1998) RGB (Last Post : Neil_Keller@adobeforums.com - Replies : 0 - Views : 1 )           »          help my flash site opens pop ups? (Last Post : Awebus - Replies : 2 - Views : 3 )           »          Flash IDE randomly creating Symbols (Last Post : MediaMackenzie.com - Replies : 0 - Views : 1 )           »          Wishing I could make Sprite Symbols using F8 (Last Post : MediaMackenzie.com - Replies : 0 - Views : 1 )           »          3 overlapping background images on same page (Last Post : brad_goldstein - Replies : 8 - Views : 9 )           »          help me with adjustments layers in CS4 (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 4 - Views : 5 )           »          Re: Help authenticating installer (Last Post : Awebus - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-04-2008, 09:02 AM
stigbn
 
Posts: n/a
Diggs:
Default dragProxy problems

Hi

I am trying to use a custom drag proxy object when dragging an SWFLoadere
objejt around the screen. I am using a bitmap asset where i draw a bitmap copy
of the UIcomponen that I drag. This works fine, except that what looks like the
"default proxy" rectangle is shown in the background.

Here is my code:

private function onLoaderMouseDown(evt:MouseEvent):void
{
var initiator:MSP_SWFLoader = evt.currentTarget as MSP_SWFLoader;
var dragProxy:BitmapAsset = new BitmapAsset();
// dragProxy.opaqueBackground = null;
dragProxy.bitmapData = new BitmapData( initiator.width, initiator.height
);
dragProxy.bitmapData.draw(initiator);
var dragSourceragSource = new DragSource();
DragManager.doDrag( initiator, dragSource, evt,dragProxy,0,0,1.00);
}

What do I do wrong here ? I just want the bitmap image to be shown - without a
rectangle in the background.

best regards Stig



Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:18 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk