Flash object in DesktopX with transparency to reveal desktop
Sunday, July 2, 2006 by Boz011 | Discussion: DesktopX
Is there a way to do this?
I have a simple PNG with transparency animation sequence that I imported in flash and created a SWF. I want to load that swf as an object or widget or in any way possible so I preserve the transparency. With Web Browser control I only get white background.
I don't understand with DesktopX 3 Pro, I see several controls Shockwave ActiveX, Shockwave Flash Object, MS Web Browser and Flash Factory Object. I keep getting some errors when I try to use Shockwave Flash Object.
I'm just stuck. I really want to use DesktopX features because I think there's a lot of potential but I must use Flash since the whole interactive application is written in Flash.
If anyone could help, I would really appreciate it.
Thanks.
Reply #2 Monday, July 3, 2006 2:14 PM
You can, though, have transparency with some of the ActiveX controls. There is a trick to it though. First, the ActiveX control must be a Child of another Object. The ActiveX control must have a parent defined, and also be set as a Child "Yes".
Once that is done you can adjust the ActiveX control's transparency in whatever manner you want. (On the panel or in a script). You can also set the transparency of the Parent object as low as 1, which is for most intents and purposes invisible (but the parent object must have at least some technical visibility - not zero). This is an overall transparency, not a color mask or other method.
Back up your project by exporting it all as a dxpack before making changes to ActiveX transparencies.
Reply #3 Monday, July 3, 2006 4:04 PM
rapidrobot, I read about the masking hack for web browser control and flash, but that doesn't work for me either. This hack makes a static mask, my application with loading/unloading objects in it, some 3d stuff etc, changes the shape of the whole DX object so the static mask won't work.
I just don't understand, why is it so hard for them to utilize just plain swf files? Flash does have transparency and if you try to select a Shockwave Flash Control in DesktopX you would see a bunch of options among many there's a wmode etc that makes the flash object holder transparent.
I don't know what's the point of having a Shockwave Flash Control when you can't use it and you have to use web browser control.
Too bad, I really thought DesktopX had a lot of potential, but with lack of support like this, it still remains just a toy.
Reply #4 Tuesday, July 4, 2006 5:10 AM
Reply #5 Monday, July 24, 2006 3:14 AM
Reply #6 Monday, July 24, 2006 7:14 PM
| Too bad, I really thought DesktopX had a lot of potential, but with lack of support like this, it still remains just a toy. |
Not really. Depends on how you use it. The thing is, DesktopX is s development platform. The same is Flash. What you are trying to do is host one development platform inside another.
| I have a simple PNG with transparency animation sequence that I imported in flash and created a SWF |
So you got a PNG animation which you imported into Flash and want to bring that into DesktopX? That seems to overcomplicate things. DesktopX allows you to have PNG animations. What you need to do it put all the frames into one PNG with the frames next to each other, import the image into DX and set the number of frames. No need to take it into Flash. That is unless there's more happening in the Flash file which you haven't mentioned.
Reply #7 Thursday, July 27, 2006 2:11 PM
Hope your all well ...
This is my first post ever so here it goes ...
What version of 'Flash' are you using Boz ?? I'm using 'Flash MX 2004' ...
If you're still at a loose end, this is how I go about it ...
I'm not too too sure of the capabilities of previous versions of 'Flash',
but this is how I do it with 'Flash MX 2004' ...
1. Prepare your animation and make sure the stage accommodates all the frames.
2. Click File > Export > Export Movie
3. Create a new folder with whatever name and open it
4. Enter a base filename eg. 'mymovie'
5. Select 'PNG Sequence' as the file type and click save.
A window will pop-up ...
Choose these options:
Resolution: ??
Include: Full document size
Colors: 24 bit with alpha channel
Filter: None
Interlaced: Off
Smooth: Off
Dither solid colors: Off
Make sure you choose '24Bit with alpha channel' for the one option,
as for the rest of it, it's up to you ... That's just how I have mine ...
However, feel free to experiment.
If you make the DPI higher the actual pixel dimensions will increase. You could also make the DPI higher and resample the image in Photoshop.
But I don't think that's necessary, 'cause I think 72DPI is fine for the desktop environment. If you need help with Resampling images then just say so ...
6. Find your DesktopX folder and run AniUtil.exe
7. Uncheck 'Optimize' because your stage size should just contain your contents
8. Set 'Tolerance' to 0 and then click 'New job'
9. Find the folder you created and select all the files.
(I always select the last one first, then hold shift and click the first one)
10. Give the file a name and turn it into a DesktopX object ...
(I'm sure you know how to do that)
You should be 'A for away' if you do it like this ...
Bringing Flash movies into Photoshop for effects is a pretty similar process, obviously a little more compicated ... but speak up if you need help with that too.
Anyway, I hope this little "tutorial" solves your problem ...
Good Luck
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Monday, July 3, 2006 3:52 AM
Is there no way to rewite the application in DX?