|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
dynamic Text inside a loaded swf
I have my MAIN FLASH WEBSITE that loads a PROFILE section which is a separate SWF file.
Inside the profile.swf, I have the sub nav button 'experience' dynamically pulling a text file into my text box. If you view the 'profile.swf' file alone, the text is being pulled fine. However, If you view the MAIN FLASH WEBSITE, choose 'Profile' link, then 'Experience' Link. The text box DOES load the text, but you can't SEE it. You can tell it is loading the text files because the scroll bar becomes active, and I can cut and paste the invisible text into my notepad program. Why is my text invisible? Here is my Sub navigation code for the 'experience' button located on 'profile.swf': CODE: on (release) { loadText = new loadVars(); loadText.load("profile_experience.txt"); loadText.onLoad = function(success) { if (success) { // trace(success); scroller.html = true; scroller.htmlText = this.myText; } }; } I am new to actionscript, I don't know at this point what to do. Thank you in advance for any help with this! - Govinda |
|
#2
|
||||
|
||||
|
I haven't looked at your site, but I can guess what your problem is without even looking. (neither one is loading) This is a very common problem. Chances are the main flash movie has a mask layer somewhere in it that overlaps the area where profile.swf is loaded into the main movie.
Flash does not display dynamic text when masked. This has always been a pet pieve of mine. There are some workarounds. Options 1. Get rid of the mask. (boring but easy) -getting rid of the offending mask will cure the problem but probably kill the look of your movie, which is why I never choose this option. 2. Load the movie on top of the mask (better)- Load the .swf on top of any mask layers. Either move the MC in which you are loading your other .swf files on top of the mask in the timeline or load in into a higher level than the movie with masks. 3. Use pixel fonts. Pixel fonts do not 'disappear' when masking, however they have other limitations. More info on pixel fonts for Flash can be found in google. Good luck.
__________________
--the key to life is avoiding death-- |
|
#3
|
|||
|
|||
|
THANK YOU!!!!!!
You are the first person to suggest that it is the MASK!! And you didn't even look at my files!!! Sorry, bout the excitement...I have been struggling with this for a week on about 5 forums, and no help until now helped! Actually, it is okay that I delete the mask, didn't really need it for the transition effect which is only a white fad inbetween each loaded SWF. Now I can progress with my website! THank you Again! - Govinda |
|
#4
|
||||
|
||||
|
Your welcome.
btw, I had to learn that lesson the hard way too. ![]() |
|
#5
|
||||
|
||||
|
Very Interesting Macromedia issue!
I was wondering if anyone has explored further on actionscript masking efforts on this issue. Friends of ed have this: masking caguru: Very good pionts! Thank you very much for sharing your experience! I remember this crap too! Your number 2 option reminds me of dealing with a layer issue long ago. By the way how is the superbowl hype going! |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > dynamic Text inside a loaded swf |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|