shadowx
Sep 4 2008, 07:14 PM
| | Hi folks. I want to know if its possible to modify the transparency of an image in flash to give a gradual transparent gradient?
EG like the T17 banner where the text "Trap17" reflects.
I know i can do this in the GIMP but i need the background of the image/text to be transparent, and GIF is the onyl format i can do that reliably and of course GIF is indexed and so i cant have a gradual fade effect.
Im really stuck on this one and im no Flash expert so any ideas?
Ive attached a screenie. Thats the effect i want (the black background is there so the effect is easy to see, i want it to be transparent) and its fine in JPG format, but in GIF the gradual effect goes away and i just get a sharp line which is no good. If there is a work around for this in the GIMP, that still leaves the background transparent, or a way of getting the same effect in flash (i have a transparent BG for the movie itself from the publish settings, its only this image that i need to configure) then please let me know! |
Comment/Reply (w/o sign-up)
rvalkass
Sep 6 2008, 09:45 AM
I haven't used Flash in a while, so I may be missing something obvious here, but can't you use a PNG file? PNG will support transparency, and should carry that over to being imported into Flash (unless Adobe haven't implemented it correctly).
Comment/Reply (w/o sign-up)
sonesay
Sep 6 2008, 10:20 AM
For quality transparent PNG > GIF . only thing GIF has over PNG is ability to have animations.
Comment/Reply (w/o sign-up)
Deretto
Sep 8 2008, 06:51 AM
I use paint.net for my transparency. It's very easy to use. Check it out. It works wonders! [link].
Comment/Reply (w/o sign-up)
shadowx
Sep 8 2008, 09:14 AM
Pain.net aint for me. I avoid downloading anything from microsoft! All my stuff, except the OS is open source and free  Ill try a PNG later, going fishing today so ill have to try it when i get back  Thanks. I assumed PNG was the same as GIF in that you couldnt have a smooth transition into transparency, but ill try it.
Comment/Reply (w/o sign-up)
Nabb
Sep 10 2008, 02:13 PM
I've ActionScripted up a solution! CODE import flash.geom.Rectangle; function transparency (MC, s, e, g) { h = Math.ceil (MC._height); w = MC._width; xp = MC._y; var window:Rectangle = new Rectangle (0, 0, w, g); for (c = g; c <= h; c += g) { //when g is small (i.e. 1) and the MC is high, this might lag! duplicateMovieClip (MC, 'dupe' + c, _root.getNextHighestDepth ()); //is it possible to stick them in a container and simply count up the depth - getNext is a bit silly.. _root['dupe' + c].scrollRect = window; //i'm not sure if this would work well with vector drawings, i tested on your bitmap :P _root['dupe' + c]._y = c - g + xp; t = s * (1 - c / h) + e * c / h; if (t < 100) { if (t < 0) { _root['dupe' + c]._alpha = 0; } else { _root['dupe' + c]._alpha = t; } } var window:Rectangle = new Rectangle (0, c, w, g); } MC._visible = false; //if we remove MC, then the dupes are removed } //usage: transparency(MC, s, e, g) //MC: movie clip name //s: starting alpha (100 for not transparent, 0 for invisible - can be set outside) //e: ending alpha - gradient is made from s to e, if outside of [0,100], will be set to 0 or 100. you can have e>s for increasing alpha. //g: gap - the size in pixels of each block. 1 or 2 for a smooth gradient, high number for a nice blocky effect transparency (MV,20,120,6); //i have a clip on stage called MV :) //the clip is split into 6-pixel blocks starting from 20% alpha, and going to 100% alpha for the last 1/5 of the picture... i think.. There you go! If anyone can find a better way, feel free to inform me! In case you don't know Flash that well, here's what you need to do to get it working: 1: Are you using a movie clip? Yes -> 5, No -> 2 2: Bitmap -> 3, or vector -> 4. 3: So it's a bitmap. Right click on it and hit 'Convert to Symbol...'. Make it a movie clip and name it whatever you want. -> 5 4: Highlight everything and do step 3 starting from 'Right click'... -> 5 5: Click on your movie clip. There should be 5 text-boxes in the properties panel at the bottom. Four of them describe size and location. In the fifth (topmost) one, type in whatever you want (MV in my example.) -> 6 6: Click on the background. Hit F9 if the actions panel isn't open. Pasta my code in. Change that last line outside the braces that isn't a comment to what you want. Feel free to remove the comments. -> ?????? -> PROFIT! If you need help, just ask =| If you've already solved the problem... damn! ..I just realised I used xp as the variable name (i.e. x position) when it refers to the y position =.= Can't be bothered changing it now. edit) changed 'it is' to 'is it'.. bloody grammar!
Comment/Reply (w/o sign-up)
shadowx
Sep 10 2008, 03:33 PM
Damn thanks! lol I think this topic is now solved! Ill have a play and see what happens, but for now, thanks everyone!
Comment/Reply (w/o sign-up)
Nabb
Sep 11 2008, 06:57 AM
Seeing as you know PHP it should make some sense, which is good. It's probably not the best method, but I couldn't find a way to use duplicateMovieClip and attach the duplicate inside another movie-clip (something that is easily done with attachMovie - you could change it to createEmptyMovieClip on the first run, change the input parameter to a linkage id, and use attachMovie to attach the clips into the container...) If you need to use it on multiple clips, then you'd need to define another variable (say k) outside of the function call (alternatively check if its defined inside the function call and if not define it). Then change 'dupe' + c to 'dupe' + k and increment k somewhere inside the loop. ..and if it lags, try making the image smaller and then scaling it up via a html parameter.
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : flash, transparency
- Displaying Html In Flash
Using ActionScript (9)
Help Me Flash My Website.
web designing (7) Hey...guys ...I have a website ...which is sort of a personal website.. But now I want to change it
to a blog site for my college... I want the site to be cool...and awesome Its an engineering
college....so I want the site to look...techie...sci-fi...you know what I mean... I know that I can
make it look that way if I use..flash ... I want the site to look just a little bit like the
www.2advanced.com...u will what I mean if u visit that site.. I have no experience in flash so
what I want is -how to include flash in my website -what softwares do i need -where can i g....
How To Add The Flash In Our Website ?
Animated image in website make the site atractive, but take more time (4) Animation in this world: We see in most of the website that company icon, logos, memorandom,
Advertisement, smily,even todat Button etc. in the website are animated in a sequencial manner so
any body who see this get impressed, even so many time i also get impressed and want to give thanks
that one who creates this logic a fantastic idea, adobe website we read some articles, i want a
proper process or command from starting to end till image(how many types of image) animated in my
website. what software, hardware, required to do complete this task. any idea, tutorial, not....
Flash Navbar: Populate From Center
Looking for advice or a tutorial (0) I'm working with Flash CS3, ActionScript 3, and items in an XML document. I'm looking for
advice or a tutorial on making a navigation bar that loads items dynamically and populates from the
center of the bar rather than the left side. I know there'll be some coordinate math to be done,
but I'm unsure where to begin. Can you suggest a site like gotoandlearn, or is there something
already there that I'm missing? Thanks in advance.....
Flash Header Edit?
flash header edit (2) Can someone help me edit a flash header from a template. I can figure out MX 2004. I am a novice web
designer at best and need some help editing this header. Thanks so much ....
Cms For Video, Embedding Flash
(4) Hello, I was wondering if anyone knew of a good open source CMS that allows dynamically embedding
flash videos such as those from youtube (needs to be able to embed flash with parameters), and also
allows uploading any type of file to the main server. Thanks! =)....
Scroll And Pan The Screen Via Mouse In Flash
does anyone know how to pan across the screen using the mouse in flash (2) Hi Need help for a project , hope u guys could help out and teach me a little something. I saw some
flash that if you click on a icon or if u point ur mouse to the left of the screen it will keep
going left, and if right it'll keep scrolling right, as if ur checking out a room Or something
like this website.. www.mcdonalds.com.au , and choose broadband if you see on that site, when user
clicks on the icon to the right. the rest of the icons would kinda shift.. does anyone know how to
do that or know if there is anywhere out there a tutorial to do that? if u do.. it&....
Flash Media Into Html/css Website
does anyone know how to import a flash into a webpage with transparenc (3) Hi I need some help , Im designing this website for school studies However, I made a flash drop down
menu, works perfectly, but you know how flash has a background when you export it in to a SWF file?
For example my flash is width= 800, and height = 200 but my div box on my html page for my
navigation is only 50 px my buttons is width of 50px and the rest of the content is the drop down
animations i want to insert it into my navigation div box but i want to set the flash background to
transparent so that when the drop down menu comes down it overlaps the text or whateva....
Flash Newbie Question
question (6) hello i'm new to flash. i have a .swf movie which i decompiled with Sothink SWF Decompiler in
.fla and I also exported the resources. so far so good, i entered the resources directory,i changed
the names and texts with my own and now I am wondering how do i rebuild the whole "resources"
directory as a .swf ? can someone help ? thanks.....
I Need Some Help With Flash And Div Overlay
using wmode in IE problems (6) Hi guys, I have a problem with one of my designs at the moment. Here's the problem: I have a
flash game in the middle of a page. However, the site navigation has dropdown menus that go on top
of the flash. Now, the navigation works if I use "wmode = transparent" or "wmode = opaque" in the
flash code. Yet, there is another problem: In Internet Explorer (I'm running version 7) the
arrow keys "up" and "down" in most flash games will not work properly. Instead, they will make the
page scroll up and down, even if the flash file has focus. This situation does not exi....
Delaying The Time Until A Flash Button Can Be Pressed
using actionscript (3) Can anyone tell me how can i make in flash a button that can not be pressed until an amount of time
has past? let's say... about 5 mins i need this because i want to hold my visitors looking at
the content on the page before they can advance further.....
Myspace Css And Flash Profiles
Who's got one? (0) Just out of curiosity, who's got a MySpace and a CSS or Flash profile? I know only a handful of
people who have tackled the limitations and the frustrations of coding a nice profile around
MySpace's crappy filters. I also like looking at other people's profiles just to see how
they did them up, what code they used, and even get inspirations for my next profile. I have a
Flash profile. I started doing them about a couple of months after having a regular layout... I
actually learned CSS, Flash, and ActionScript because of MySpace. It actually evolved from u....
Embedded Object Transparency
Making an object transparent (10) Hi, does anyone know if it is possible to make a control panel of an embedded object transparant,
and if so, could you let me know how it is done? I put a piece of music on my web site earlier,
with a control panel to adjust the volume, start/stop etc. The problem is, I have also put a
Christmassy background on the site and the white area around the control panel makes it look
somewhat untidy. Here is the code I used for the embedding: CODE If anyone knows a
solution to my problem I would be extremely grateful. Thanks in advance.....
Flash Actionscript Help
i need help on some actionscript for flash galleries and such (10) Hi guys i was hoping if anyone that is good at coding could pretty please help me out im rather
good at designing compared to coding for flash.. so here goes.. Im trying to make a flash gallery..
ive started. and i know how to make buttons to go nxt and back and so forth... but i want to know if
anyone knows the actionscript to make a thumbnail .. so that you click on it .and it will load the
larger version on a little flash popup screen or just somewhere on the page.. its hard to explain
but ill try to find an example to show u /smile.gif" style="vertical-align:middl....
Geturl In Flash
(0) I posted this in the wrong place the first time: I searched the internet for about 2 hours on the
topic of using relative links in flash movies. I created my entire portfolio website in flash and at
the time I made it, i created all absolute links which turned out to be aweful. I couldn't find
anywhere to to use relative links and every time I tried nothing worked. I finally figured it out
yesterday. In order to get relative links to work you need to have the flash movie file in a
directory beyond all of your other content for the site. In my case my flash .swf fil....
Macromedia Flash 8
(5) Hey there.I wanna help from someone to tell me where can i find really good and usefull tutorials
for creating website in Macromedia Flash 8....
Giving A Flash Button A Link
i get errors (15) oke well i made my button and i addet the actionscript to give the button an url,see the screenshot
below now for some reason it gives me errors,and i don't know what i did wrong to be
honest,so can some one help me out with this p.s i do use flash cs3 so i dunno maybe its another
way to put an url on ur button with this version cause with flash pro8 and mx i never had a problem
with this....
How Do I Put A Flash Image In My Website
(10) oke i got flash now and i made this button http://www.crazydesign.trap17.com/coolflashthingy.swf
this button i wanne use for my website now my question is, what do i need to put it online do i need
a special code or something,i'm not experienced with this,i heard something about a special code
u need for it,but i dunno wichi'm just used to using tis QUOTE ....
Getting Flash Images On A Site
(1) well, i don' t have a site yet, but about 6 months ago i made a template, with flash buttons and
all, with sound and everything i was so proud so i tryed to put em on there with a special code u
needet or something ,so i did, but i got blank images,, i even tryed uploading it on the site it
didn't work, so i asked around they said u can' t install them on a cpanel, u need ftp, so i
downloadet the program needet and i got stuck there, so basicly how do u do that,and could some1
help me out how to get it working on a cpanel....
How To Use Html In Flash
I need to import html into an iframe like box (1) As of this post I am trying to convert my current html website to a flash site. I use iframes in my
html site and i am wondering if i can import html into a dynamic text box. I am wondering if i will
need to redo the entire design in flash or if I can just import the html. If anything is confusing,
please tell. Thanks in advance for the help /biggrin.gif" style="vertical-align:middle" emoid=":D"
border="0" alt="biggrin.gif" />....
How Do I Import Video In Flash
(2) please i will like to know how to import video in flash. i use flash mx ....
How Can I Make A Flash Player Like The One Youtube Has ?
(6) hi, i was wondering if there are any tutorials on how to make flash players like youtube's, is
it easy or hard do you need a lot of skill, i really want to make one, can someone help me please
/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> thank you
scan /cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" />....
Check Out This Site I Made
The site belongs to CSI-DCE and was developed using Flash (12) What do you think about this site? I made it for computer society of india dce branch. There are
some adjustments to be done (font size etc.) but otherwise I think it looks great. This was also the
first time I integrated php in a flash page (for registeration). URL: www.csi.dce.edu....
I'm In Need Of A Good Flash Tutorial For Web Design And Creation.
(5) does anyone know where i can find a good flash tutorial on web design and building websites with
flash 8? i searched google and couldnt find any i understood.....
Flash Programs
(3) Does anyone of you have any FREE FLASH program or mybe link to there? Something like Menu FX
Flash, Flash Saver, SWF text but thay most be registred (full versions) If you have send me on
e-mail: matejhalgas@yahoo.com If you have any link please tell me. _Thanks_ ....
Best Free Html/flash Templates
(13) Before I began creating websites myself, i used templates. The best selection of free ones is here:
TemplatesBox . Tons of free HTML and Flash templates (although you need to pay for the nicer ones),
I'm not affiliated with them I just thought there were alot of threads looking for templates and
this is a great resource.....
Making A Scroll Bar In Flash
with an image and words on it (7) does anybody know how to make a scrollbar for my game page I am making on my site. This whole site
is completely in flash. I know how to make a scrollbar for just words but not when there is an
image on there also. Does anybody know?....
Flash Photo Album
(20) I'm building a website for my home school group for my final project in a web design class
I'm taking. I would like to add a flash scrapbook/photo album, but I'm not quite sure where
to start. Does anyone know how to do this? I tried googling for a tutorial of some sort, but I
didn't have any luck. Thanks!....
Macromedia Flash
type in farsi language (1) hi for type the language farsi in flash you need a ipt 5 this is a symble font for farsi language
you can downlado it from : www.ipt5.com....
Best Free Flash Editor
(12) Anyone know where I can find the best free Flash editor?....
Looking for flash, transparency
|
Searching Video's for flash, transparency
See Also,
|
advertisement
|
|