Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
List Mod and Smooth Scroller double load. (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: List Mod and Smooth Scroller double load.
#4434
Bowie ()
User Offline Click here to see the profile of this user

 
List Mod and Smooth Scroller double load. 8 Months, 3 Weeks ago
Had some issues with the list module loading an xml news list twice, and showing some blank space at the top of the smooth scroller2 module. This might have had something to do with the way i had put my site together, either through updating or possibly from using swfAdress.

This was only happening if I reloaded the browser page to that list module.

I added this code to the XML- AS layer in the attached list module to test if the list had already been loaded.

Code: :

 var loaded false; var adminMode:Boolean false; Flashblocks.user.watch("loggedIn"loggedInFunction); function loggedInFunction (propoldValnewVal) {     //trace("Logged In! Level:"+Flashblocks.user.level+" id:"+Flashblocks.user.id+" name:" +Flashblocks.user.name)     adminMode true; }



and this in the edit block function:

Code: :

     if ((file && !loaded) || (file && adminMode)) {         loaded true;         //    set editor tags from here rather then from editblock component inspector.         obj.target.editblockHeader file                  totalY 0         loadMenu(file)     }



The orig demo code that my clients purchased using was a couple of versions old. What I'm doing would cause issues if you are dynamically changing the datasource. Has anyone been doing that by the way? Changing the datasource of an element dynamically?
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/29 02:51 By Bowie.
  The administrator has disabled public write access.
#4435
Bowie ()
User Offline Click here to see the profile of this user

 
Re:List Mod and Smooth Scroller double load. 8 Months, 3 Weeks ago
Actually the problem is still happening. Very intermittently.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4436
Bowie ()
User Offline Click here to see the profile of this user

 
Re:List Mod and Smooth Scroller double load. 8 Months, 3 Weeks ago
Correction the code addition is to the XML layer in the attached list module. I will edit the above post. cheers.

You may choose to use a more appropriate boolean than "loaded"
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/16 01:44 By Bowie.
  The administrator has disabled public write access.
#4507
Bowie ()
User Offline Click here to see the profile of this user

 
Re:List Mod and Smooth Scroller double load. 8 Months, 1 Week ago
New correction. Had to detect to see if we were logged in to the system, otherwise I could not get the list item to display. The new code has been added above.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Thank you