Go Back   Flashtory Support Forum > Flash Files Support > Flash Galleries > Versatile Resizable Gallery

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2009, 09:38 PM
Junior Member
 
Join Date: Feb 2009
Posts: 4
Default Changing Attributes

In the Description class for this .fla, I'm needing to change the attribute assigned to the TitleTxt variable. For example, from this

private function changeTitle() {
// change title text
TitleTxt.text = node.attributes.title;

to this

private function changeTitle() {
// change title text
TitleTxt.text = node.attributes.header;

I've tried doing this as I've noted above (and changed the data.xml file to reflect the change from title="something" to header="something", but can't get the TitleTxt content to show up. Am I needing to make another change somewhere to make this work?

The TB.data from that same class is showing fine and I can see that ThumbnailsList is getting the _global.FDESCR data due to being able to see the TB.data.

I can provide all code info if needed, but if this "title" attribute can't be changed, please let me know. I'm looking to purchase a special commercial license of this product, but have to know I can make it work as I need it to.

Thanks...
Reply With Quote
  #2 (permalink)  
Old 02-12-2009, 02:11 AM
Flashtory Staff
 
Join Date: Feb 2009
Posts: 26
Send a message via Skype™ to Adrian
Default

Hello,
Have you republished the swf after making the change ? I don't see any errors in your code
Reply With Quote
  #3 (permalink)  
Old 02-13-2009, 03:04 PM
Junior Member
 
Join Date: Feb 2009
Posts: 4
Default

Thanks for letting me know I was on track. The code did work in your original fla/XML, I believe the problem is a conflict with childNodes I've added to your fla/XML data. The childNodes use text fields as well and the best I can guess is that those text fields are interfering with the original Title text field, even those their at different "nodes" and even when the original text field node attribute has been changed. Do you think having a text field in the rootNode as well as text fields in childNodes would be a problem?

Still hoping for a solution, but might just load a graphic image for the "title" if I can't get a text field to show up. Tbanks!
Reply With Quote
  #4 (permalink)  
Old 02-13-2009, 10:33 PM
Flashtory Staff
 
Join Date: Feb 2009
Posts: 26
Send a message via Skype™ to Adrian
Default

Contact me on skype and I'll try to assist you (Click the skype icon on top-right corner of this message).
Reply With Quote
  #5 (permalink)  
Old 02-13-2009, 10:59 PM
Junior Member
 
Join Date: Feb 2009
Posts: 4
Default

Adrian, thanks for responding. I went ahead and loaded a graphic via a mc for the title, works fine and I don't think my client will mind. I'd still like to discuss with you, so if you're available I'll check in with you Monday. Thanks for the great response time!
Reply With Quote
  #6 (permalink)  
Old 02-13-2009, 11:03 PM
Junior Member
 
Join Date: Feb 2009
Posts: 4
Default

Sorry, forgot to mention that I assigned the mc graphic to nodes.attribute.header as noted above and it pull jpgs from a folder just like the thumbs and images. Gets the job done. ;-)
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
based on a modified theme of CompleteGFX