1084: Syntax error: expecting identifier before this

  • bachpro89
  • Born
  • Born
  • bachpro89
  • Posts: 3

Post 3+ Months Ago

I have used Sothink SWF Decompiler software to decompile a flash files but when I finished and a test run but the error correction and I do not know how? Who can help me detect and correct errors? errors that I encounter is:

1086: Syntax error: expecting semicolon before ")(".
1084: Syntax error: expecting identifier before this.
1084: Syntax error: expecting rightbrace before ")(".
You please help me with
nick yahoo of me: bachpro8
here code:
ACTIONSCRIPT Code: [ Select ]
package
{
    import com.asual.swfaddress.*;
    import flash.display.*;
    import flash.events.*;
   
    import flash.utils.*;
 
    public class skinned_cathegory_video_player extends controllable_movieclip
    {
        var tm:Timer;
        public var cathegory_list_buttons_:MovieClip;
        public var smoothing:Boolean;
        public var hide_search:Boolean;
        public var repeat_mode:String;
        public var default_language:String;
        public var fullscreen_only_video:Boolean;
        public var cathegory_video_player_:cathegory_video_player;
        public var default_volume:Number;
        var cathegoty_link:String = "";
        public var single_click_play:Boolean;
        public var use_languages:Boolean;
        public var cathegories_path:String;
        var path:Array;
        public var cathegories_data:XML;
        public var languages_:MovieClip;
        public var buffer_time:Number;[code][/code]
        public var clock_backward:Boolean;
        public var deblocking:Number;
        public var logo_path:String;
        var video_link:String = "";
 
        public function skinned_cathegory_video_player()
        {
          <span style="font-weight: bold">  cathegories_data = <data><cathegory_list><cathegories/></cathegory_list></data>")("<data><cathegory_list><cathegories/></cathegory_list></data>;</span>
            path = ["0", "0"];
            tm = new Timer(100, 1);
            addEventListener(Event.ADDED_TO_STAGE, addedToStage);
            return;
        }// end function
 
        function onResize_(event:Event = null)
        {
            if (event && event.target != event.currentTarget)
            {
                return;
            }
            var _loc_2:* = getChildAt(0) as cathegory_video_player;
            if (_loc_2)
            {
                _loc_2.setSize(stage.stageWidth, stage.stageHeight);
                var _loc_3:int = 2;
                _loc_2.y = 2;
                _loc_2.x = _loc_3;
                if (cathegory_list_buttons_)
                {
                    cathegory_list_buttons_.x = stage.stageWidth - 2;
                    cathegory_list_buttons_.y = stage.stageHeight - 2;
                }
            }
            languages_.x = stage.stageWidth - 10;
            languages_.y = stage.stageHeight - 15;
            return;
        }// end function
 
        function onCathegory(event:Event = null)
        {
            var _loc_2:* = Number(path[0]);
            path[0] = event.target["parent"].getChildIndex(event.target);
            if (_loc_2 != path[0])
            {
                path[1] = "";
            }
            cathegory_video_player_.path = path;
            SWFAddress.setValue(path.join("/"));
            return;
        }// end function
 
        function set_cathegory_data(param1:Object = null)
        {
            var _loc_2:XML = null;
            var _loc_3:Number = NaN;
            var _loc_4:XMLList = null;
            if (param1 is Event)
            {
                cathegories_data = new XML(param1.target.data);
                return set_cathegory_data(0);
            }
            _loc_3 = Number(param1);
            if (isNaN(_loc_3))
            {
                _loc_3 = 0;
            }
            _loc_4 = cathegories_data.cathegory_list[0].children();
            _loc_2 = _loc_4[_loc_3];
            cathegory_video_player_.data = _loc_2;
            return;
        }// end function
 
        function handleSWFAddress(event:Event)
        {
            var _loc_2:String = "Cathegory Video Player";
            var _loc_3:* = SWFAddress.getValue();
            path = _loc_3.split("/").slice(1);
            cathegory_video_player_.path = path;
            SWFAddress.setTitle(_loc_2);
            return;
        }// end function
 
        function onVideo(event:Event = null)
        {
            path[1] = event.target["parent"].getChildIndex(event.target);
            cathegory_video_player_.path = path;
            SWFAddress.setValue(path.join("/"));
            return;
        }// end function
 
        function addedToStage(event:Event = null)
        {
            var _loc_2:URLRequest = null;
            var _loc_3:URLLoader = null;
            removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;
            cathegories_path = loaderInfo.parameters.data;
            logo_path = loaderInfo.parameters.logo;
            smoothing = loaderInfo.parameters.smoothing == "true";
            deblocking = Number(loaderInfo.parameters.deblocking);
            buffer_time = Number(loaderInfo.parameters.buffer_time);
            fullscreen_only_video = loaderInfo.parameters.fullscreen_only_video == "true";
            hide_search = loaderInfo.parameters.hide_search == "true";
            clock_backward = loaderInfo.parameters.clock_backward == "true";
            single_click_play = loaderInfo.parameters.single_click_play == "true";
            repeat_mode = loaderInfo.parameters.repeat_mode;
            use_languages = loaderInfo.parameters.use_languages == "true";
            default_language = loaderInfo.parameters.default_language;
            default_volume = Number(loaderInfo.parameters.default_volume);
            cathegories_path = cathegories_path ? (cathegories_path) : ("data/data.xml");
            logo_path = logo_path ? (logo_path) : ("data/logo.png");
            buffer_time = isNaN(buffer_time) ? (1) : (buffer_time);
            repeat_mode = repeat_mode ? (repeat_mode) : (repeat.NONE);
            default_volume = isNaN(default_volume) ? (50) : (default_volume);
            default_language = default_language ? (default_language) : ("en");
            video_player.bufferTime = buffer_time;
            video_player.smoothing = smoothing;
            video_player.deblocking = deblocking;
            cathegory_video_player.logo = logo_path;
            controlls.clock_backward = clock_backward;
            cathegory_video_player.single_click_play = single_click_play;
            cathegory_video_player.use_languages = use_languages;
            controlls.repeat_mode = repeat_mode;
            cathegory_video_player.default_volume = default_volume;
            cathegory_video_player.fullscreen_only_video = fullscreen_only_video;
            cathegory_video_player.hide_search = hide_search;
            cathegory_video_player_.set_language(default_language);
            languages_.visible = use_languages;
            if (cathegories_path)
            {
                _loc_2 = new URLRequest(cathegories_path);
                _loc_3 = new URLLoader(_loc_2);
                _loc_3.addEventListener(Event.COMPLETE, set_cathegory_data);
            }
            else
            {
                set_cathegory_data();
            }
            onResize_();
            tm.addEventListener(TimerEvent.TIMER_COMPLETE, onResize_);
            tm.start();
            stage.addEventListener(Event.RESIZE, onResize_);
            addEventListener(cathegory_button.onCathegory, onCathegory, true);
            addEventListener(item.onVideo, onVideo, true);
            SWFAddress.addEventListener(SWFAddressEvent.CHANGE, handleSWFAddress);
            return;
        }// end function
 
    }
}
  1. package
  2. {
  3.     import com.asual.swfaddress.*;
  4.     import flash.display.*;
  5.     import flash.events.*;
  6.    
  7.     import flash.utils.*;
  8.  
  9.     public class skinned_cathegory_video_player extends controllable_movieclip
  10.     {
  11.         var tm:Timer;
  12.         public var cathegory_list_buttons_:MovieClip;
  13.         public var smoothing:Boolean;
  14.         public var hide_search:Boolean;
  15.         public var repeat_mode:String;
  16.         public var default_language:String;
  17.         public var fullscreen_only_video:Boolean;
  18.         public var cathegory_video_player_:cathegory_video_player;
  19.         public var default_volume:Number;
  20.         var cathegoty_link:String = "";
  21.         public var single_click_play:Boolean;
  22.         public var use_languages:Boolean;
  23.         public var cathegories_path:String;
  24.         var path:Array;
  25.         public var cathegories_data:XML;
  26.         public var languages_:MovieClip;
  27.         public var buffer_time:Number;[code][/code]
  28.         public var clock_backward:Boolean;
  29.         public var deblocking:Number;
  30.         public var logo_path:String;
  31.         var video_link:String = "";
  32.  
  33.         public function skinned_cathegory_video_player()
  34.         {
  35.           <span style="font-weight: bold">  cathegories_data = <data><cathegory_list><cathegories/></cathegory_list></data>")("<data><cathegory_list><cathegories/></cathegory_list></data>;</span>
  36.             path = ["0", "0"];
  37.             tm = new Timer(100, 1);
  38.             addEventListener(Event.ADDED_TO_STAGE, addedToStage);
  39.             return;
  40.         }// end function
  41.  
  42.         function onResize_(event:Event = null)
  43.         {
  44.             if (event && event.target != event.currentTarget)
  45.             {
  46.                 return;
  47.             }
  48.             var _loc_2:* = getChildAt(0) as cathegory_video_player;
  49.             if (_loc_2)
  50.             {
  51.                 _loc_2.setSize(stage.stageWidth, stage.stageHeight);
  52.                 var _loc_3:int = 2;
  53.                 _loc_2.y = 2;
  54.                 _loc_2.x = _loc_3;
  55.                 if (cathegory_list_buttons_)
  56.                 {
  57.                     cathegory_list_buttons_.x = stage.stageWidth - 2;
  58.                     cathegory_list_buttons_.y = stage.stageHeight - 2;
  59.                 }
  60.             }
  61.             languages_.x = stage.stageWidth - 10;
  62.             languages_.y = stage.stageHeight - 15;
  63.             return;
  64.         }// end function
  65.  
  66.         function onCathegory(event:Event = null)
  67.         {
  68.             var _loc_2:* = Number(path[0]);
  69.             path[0] = event.target["parent"].getChildIndex(event.target);
  70.             if (_loc_2 != path[0])
  71.             {
  72.                 path[1] = "";
  73.             }
  74.             cathegory_video_player_.path = path;
  75.             SWFAddress.setValue(path.join("/"));
  76.             return;
  77.         }// end function
  78.  
  79.         function set_cathegory_data(param1:Object = null)
  80.         {
  81.             var _loc_2:XML = null;
  82.             var _loc_3:Number = NaN;
  83.             var _loc_4:XMLList = null;
  84.             if (param1 is Event)
  85.             {
  86.                 cathegories_data = new XML(param1.target.data);
  87.                 return set_cathegory_data(0);
  88.             }
  89.             _loc_3 = Number(param1);
  90.             if (isNaN(_loc_3))
  91.             {
  92.                 _loc_3 = 0;
  93.             }
  94.             _loc_4 = cathegories_data.cathegory_list[0].children();
  95.             _loc_2 = _loc_4[_loc_3];
  96.             cathegory_video_player_.data = _loc_2;
  97.             return;
  98.         }// end function
  99.  
  100.         function handleSWFAddress(event:Event)
  101.         {
  102.             var _loc_2:String = "Cathegory Video Player";
  103.             var _loc_3:* = SWFAddress.getValue();
  104.             path = _loc_3.split("/").slice(1);
  105.             cathegory_video_player_.path = path;
  106.             SWFAddress.setTitle(_loc_2);
  107.             return;
  108.         }// end function
  109.  
  110.         function onVideo(event:Event = null)
  111.         {
  112.             path[1] = event.target["parent"].getChildIndex(event.target);
  113.             cathegory_video_player_.path = path;
  114.             SWFAddress.setValue(path.join("/"));
  115.             return;
  116.         }// end function
  117.  
  118.         function addedToStage(event:Event = null)
  119.         {
  120.             var _loc_2:URLRequest = null;
  121.             var _loc_3:URLLoader = null;
  122.             removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
  123.             stage.scaleMode = StageScaleMode.NO_SCALE;
  124.             stage.align = StageAlign.TOP_LEFT;
  125.             cathegories_path = loaderInfo.parameters.data;
  126.             logo_path = loaderInfo.parameters.logo;
  127.             smoothing = loaderInfo.parameters.smoothing == "true";
  128.             deblocking = Number(loaderInfo.parameters.deblocking);
  129.             buffer_time = Number(loaderInfo.parameters.buffer_time);
  130.             fullscreen_only_video = loaderInfo.parameters.fullscreen_only_video == "true";
  131.             hide_search = loaderInfo.parameters.hide_search == "true";
  132.             clock_backward = loaderInfo.parameters.clock_backward == "true";
  133.             single_click_play = loaderInfo.parameters.single_click_play == "true";
  134.             repeat_mode = loaderInfo.parameters.repeat_mode;
  135.             use_languages = loaderInfo.parameters.use_languages == "true";
  136.             default_language = loaderInfo.parameters.default_language;
  137.             default_volume = Number(loaderInfo.parameters.default_volume);
  138.             cathegories_path = cathegories_path ? (cathegories_path) : ("data/data.xml");
  139.             logo_path = logo_path ? (logo_path) : ("data/logo.png");
  140.             buffer_time = isNaN(buffer_time) ? (1) : (buffer_time);
  141.             repeat_mode = repeat_mode ? (repeat_mode) : (repeat.NONE);
  142.             default_volume = isNaN(default_volume) ? (50) : (default_volume);
  143.             default_language = default_language ? (default_language) : ("en");
  144.             video_player.bufferTime = buffer_time;
  145.             video_player.smoothing = smoothing;
  146.             video_player.deblocking = deblocking;
  147.             cathegory_video_player.logo = logo_path;
  148.             controlls.clock_backward = clock_backward;
  149.             cathegory_video_player.single_click_play = single_click_play;
  150.             cathegory_video_player.use_languages = use_languages;
  151.             controlls.repeat_mode = repeat_mode;
  152.             cathegory_video_player.default_volume = default_volume;
  153.             cathegory_video_player.fullscreen_only_video = fullscreen_only_video;
  154.             cathegory_video_player.hide_search = hide_search;
  155.             cathegory_video_player_.set_language(default_language);
  156.             languages_.visible = use_languages;
  157.             if (cathegories_path)
  158.             {
  159.                 _loc_2 = new URLRequest(cathegories_path);
  160.                 _loc_3 = new URLLoader(_loc_2);
  161.                 _loc_3.addEventListener(Event.COMPLETE, set_cathegory_data);
  162.             }
  163.             else
  164.             {
  165.                 set_cathegory_data();
  166.             }
  167.             onResize_();
  168.             tm.addEventListener(TimerEvent.TIMER_COMPLETE, onResize_);
  169.             tm.start();
  170.             stage.addEventListener(Event.RESIZE, onResize_);
  171.             addEventListener(cathegory_button.onCathegory, onCathegory, true);
  172.             addEventListener(item.onVideo, onVideo, true);
  173.             SWFAddress.addEventListener(SWFAddressEvent.CHANGE, handleSWFAddress);
  174.             return;
  175.         }// end function
  176.  
  177.     }
  178. }
Moderator Remark: Please remember to put [actionscript][/actionscript] bbcode around any code to make it easier to read
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Try removing this from your code that you posted above:

Code: [ Select ]
     <span style="font-weight: bold"> cathegories_data = <data><cathegory_list><cathegories/></cathegory_list></data>")("<data><cathegory_list><cathegories/></cathegory_list></data>;</span>


or fix it to be correct code.
  • bachpro89
  • Born
  • Born
  • bachpro89
  • Posts: 3

Post 3+ Months Ago

please show me how to fix duwoc or not? I did not try to fix that? I do not know the original files up on another forum how the forum is not my vid link up to? someone help me, please add nick yahoo bachpro89 to help me I will send the original files through your link
I used the software Sothink SWF Decompiler to decompile files preview.swf when reverse is an error in
the. please load video at forder data
Attachments:
video.zip

(116.05 KiB) Downloaded 406 times

video

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

I am not sure what you are saying, what is duwoc? In the above code that you pasted there is code that I specified in the last post that needs to be modified or removed as its causing syntax errors.
  • bachpro89
  • Born
  • Born
  • bachpro89
  • Posts: 3

Post 3+ Months Ago

I have fixed the two errors, now is an error 1084: Syntax error: Expecting identifier before this. Is it all is correct please help me study.
I have put up the original files in attachments

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.