4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled Moderator says
I have a problem when coding an element from the library. I’ve loaded it into the stage like so
var footer:footerContainer = new footerContainer 
addChild(footer);
footer.alpha = 0 

It’s not making it transparent. I’ve tried adding this before the addChild, after it, tween, and the strange part, above everything else I already define another variable for the menu and that worked like a charm.

I even tried defining the variable as a movieclip var footer:MovieClip = new footerContainer , still not working…

Anyone else experienced this issue?

111 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
savorks says

check if footerContainer have code which effect alpha/visible/transform/blendMode properties in timeline ?

Anyway make class name with capitalization start like FooterContainer is better habit :)

4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled Moderator says

check if footerContainer have code which effect alpha/visible/transform/blendMode properties in timeline ? Anyway make class name with capitalization start like FooterContainer is better habit :)

Has the same identical properties to the menuContainer. :| They are 2 separate movieclips in the library called onto stage in the same way…. menuContainer.alpha = 0 responds to the command, footer does not :| this is driving me crazy.

4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled Moderator says

Nevermind. I figured it out. Damn text embedding… D’OH!!!!

111 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
savorks says

try monitor it’s alpha value see if really something changed it after constructed? for example :

var footer:footerContainer = new footerContainer();
footer.addEventListener(Event.ENTER_FRAME, checkAlpha);
footer.alpha = 0 
addChild(footer);

trace('init alpha check = ' + footer.alpha);

function checkAlpha(evt:Event):void
{
    var footer:footerContainer = footerContainer(evt.currentTarget);
    trace('enter frame alpha check = ' + footer.alpha);
}
4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled Moderator says

I forgot to embed the fonts in the footer. Now everything is working smoothly.

2010 posts
  • Has referred 50+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
bitfade says

Nevermind. I figured it out. Damn text embedding… D’OH!!!!
4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled Moderator says

Don’t feel bad. It has happened to me quite a few times. :)

Yeah, I worked so fast to the structure done, I forgot about fonts …

212 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Located in Australia
  • Has sold $40,000+ on Envato Market
+6 more
tahadaf says

when I saw your title, I knew this must be something with font embedding… This has happened a lot of times for me also :) no relation between the font embedding and alpha not working! but that’s what happens!!

and another wired thing about alpha… when you’re trying to load some external sources, like I donno, YouTube video, it is probable that some of your sprites which have BitmapData calls in them, would automatically disappear!!! that drived me crazy for 2 days!!

4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled Moderator says

when I saw your title, I knew this must be something with font embedding… This has happened a lot of times for me also :) no relation between the font embedding and alpha not working! but that’s what happens!! and another wired thing about alpha… when you’re trying to load some external sources, like I donno, YouTube video, it is probable that some of your sprites which have BitmapData calls in them, would automatically disappear!!! that drived me crazy for 2 days!!

Good to know. If I come over that error, I’ll drop you a mail :D

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by