Nested movie clips and dynamic text assignment

This is a discussion on "Nested movie clips and dynamic text assignment" within the Flash & Multimedia Forum section. This forum, and the thread "Nested movie clips and dynamic text assignment are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 6th, 2007, 06:39
New Member
Join Date: Jul 2007
Location: Bulgaria
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Nested movie clips and dynamic text assignment

I have a weird problem that I'd like some advice on.

I have a movie that has several movie clips inside. Here is the structure:

_level0
.LargeMovieSign (mc)
.large_right (text)
.large_middle (text)
.large_left (text)
.turnright_mc (mc)
.turnright_mc2 (mc)
.signright (text)
.turnleft_mc (mc)
.turnright_mc2 (mc)
.signleft (text)

So briefly, a movie clip LargeMovieSign has 3 text fields within it called large_right,large_left,large_middle (these are all instance names). LargeMovieSign is the instance name for the movie clip.

Then, turnleft_mc is a movie clip which contains another movie clip turnleft_mc2 which has a text field inside called signleft (instance name). And the same for turnright_mc.

In the timeline, LargeMoviesign is postioned at Frame 37, turnright_mc at frame 55 and turnleft_mc at frame 66.

On the main timeline I have an action in frame 37 to set the 3 text fields for LargeMovieSign. This works fine and I see the text at runtime.

My problem is with the text field on turnleft_mc2 and turnright_mc2. Since the text field is inside a nested movie clip, there is some issue.
In the case of turnright_mc2's text field, I see a momentary flash of the text field, instead of it being permanently displayed on the screen.

Here are the actions on the main timeline for the various frames:

Frame 37, action (which works fine):
Code: Select all
LargeSignmovie.large_left.text = "orange";
LargeSignmovie.large_middle.text = "pear";
LargeSignmovie.large_right.text = "banana";
Frame 55, action (which momentarily flashes text on screen):
Code: Select all
turnright_mc.turnright_mc2.signright="right";

Frame 66, action (which doesnt work):
Code: Select all
turnleft_mc.turnleft_mc2.signleft="left";
If I move the text up one level to turnleft_mc or turnright_mc it displays fine - so its as if Flash has a bug or I am doing something wrong when the text is within a nested movie clip. I thought my referencing was fine because it does at least flash briefly with the text for the turnright_mc2.signright (text field).

Anyone got any advice?
Reply With Quote

  #2 (permalink)  
Old Jul 6th, 2007, 06:40
New Member
Join Date: Jul 2007
Location: Bulgaria
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Nested movie clips and dynamic text assignment

Please note, in my posting, it didnt show the structure in the nested format I expected. Just note that signleft and signright are text fields within nested movie clips (in the case of signright, its within turnright_mc.turnright_mc2).
Reply With Quote
  #3 (permalink)  
Old Jul 6th, 2007, 14:12
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Nested movie clips and dynamic text assignment

Interesting...

Is each movieclip just 1 frame long? Or does it have animation within each movie clip...

I've never seen this happen before, I wonder if it is displaying the text field before the entire movie clip is loaded, and then once it is completely loaded it is re-displaying it again...

Sorry mate, I haven't the slightest clue.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
dynamic text, nested movie clips

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding movie clips? monkeygraphik Flash & Multimedia Forum 3 Sep 20th, 2007 14:37
Controling Movie Clips ClrWtrDsgnr Flash & Multimedia Forum 5 Aug 18th, 2007 12:23
Movie Clips and Frames Archel Flash & Multimedia Forum 1 May 4th, 2007 14:39
movie clips won't act as buttons huminuh83 Flash & Multimedia Forum 1 Feb 13th, 2007 16:25


All times are GMT. The time now is 16:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43