4128 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer 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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 1 000 and 5 000 dollars
  • Taiwan
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 :)

4128 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer 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.

4128 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer moderator says

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

111 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 1 000 and 5 000 dollars
  • Taiwan
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);
}
4128 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer moderator says

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

1989 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Has been a member for 4-5 years
  • Author had a Free File of the Month
  • Won a Competition
  • Bought between 10 and 49 items
+4 more
bitfade says

Nevermind. I figured it out. Damn text embedding… D’OH!!!!
4247 posts
  • Attended a Community Meetup
  • Bought between 10 and 49 items
  • Contributed a Blog Post
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 10 000 and 50 000 dollars
  • United States
Aw_Shucks says

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

4128 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer 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 …

205 posts
  • Australia
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 100 and 199 users
+1 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!!

by
by
by
by
by
by