LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-20-2007, 08:15 PM
umar umar is offline
Registered User
 
Join Date: Jun 2007
Posts: 3
Rep Power: 0
umar is on a distinguished road
error in action script .... please help .....

frame 1 load swf

function load_css(strCssSource)
{
styCSS = new TextField.StyleSheet();
styCSS.onLoad = function (success)
{
if (success)
{
process_structure(intStartId);
objClipBase.gotoSandStop("loadXml");
} // end if
};
styCSS.load(strCssSource);
} // End of the function
objClipBase = this;
_root.objClipBase = this;
if (run_mode == "live")
{
objClipBase.strCssSource = _root.css;
objClipBase.strXmlSource = _root.xml;
objClipBase.strPathToImages = _root.img_folder;
}
else
{
objClipBase.strCssSource = "../css/style_flash.css";
objClipBase.strXmlSource = "../xml/slides.xml";
objClipBase.strPathToImages = "../img/";
} // end else if
mcLoader.onEnterFrame = function ()
{
this._x = _root._xmouse + 10;
this._y = _root._ymouse + 10;
};
_root.createEmptyMovieClip("mcPreloader", 1);
_root.mcPreloader.onEnterFrame = function ()
{
if (_root.getBytesLoaded() >= _root.getBytesTotal())
{
load_css(objClipBase.strCssSource);
_root.mcPreloader.onEnterFrame = null;
} // end if
};


frame : load xml
function load_new_data_set(strUrl)
{
objXml = new XML();
objXml.ignoreWhite = true;
objXml.onLoad = function (success)
{
if (success)
{
objClipBase.process_xml_data(objXml);
} // end if
};
var _loc1 = new Date().getTime();
_loc1 = "?rand=" + _loc1;
_loc1 = "";
objXml.load(strUrl + _loc1);
} // End of the function
function process_xml_data(objXml)
{
objItemData = new Object();
objItemData = XML2Object.deserialize(objXml);
if (objItemData.data.slide == null)
{
arrItems = new Array();
}
else if (objItemData.data.slide instanceof Array)
{
arrItems = objItemData.data.slide;
}
else
{
arrItems = new Array(objItemData.data.slide);
} // end else if
objClipBase.arrData = arrItems;
objClipBase.gotoAndPlay("slideshow");
} // End of the function

load_new_data_set(strXmlSource);
stop ();
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Modifying Action Script 2 macrat1010 Newbies 1 03-08-2011 07:40 AM
NEED HELP - Action Script 2.0 and CS3 timeline questions snake_eyes_wolf Newbies 5 12-17-2007 09:42 PM
Scanning a .fla file for Action Script ? Ultra Flash 8 1 06-23-2007 02:05 PM
Action script in Flash 2004 younger90 Flash MX 2004 0 03-31-2005 09:17 PM
assigning action script to not-yet-used MC debonaireFlash Flash MX ActionScript 5 06-22-2002 03:01 AM




All times are GMT. The time now is 04:05 PM.