الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

هل يمكن اضافة قوائم فى برنامج الفلاش ؟؟؟

مغلق
بدأه dev_a_salah في 20 ديسمبر 2006 · 2 رد · 738 مشاهدة · في التصميم والفلاش والبرامج الرسومية
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

هل يمكن عمل او إضافة قوائم فى برنامج الفلاش ؟؟؟

سواء برمجيا او عن طريق كراك او اى برامج اخرى ؟؟؟

أحمد صلاح

#2
CustomActions.install method


install (CustomActions.install method)
public static install(name:String, data:String) : Boolean

Installs a new custom action XML definition file indicated by the name parameter. The contents of the file is specified by the string customXML. 

The name of the definition file must be a simple filename, without the .xml file extension, and without any directory separators (':', '/' or '\'). 

If a custom actions file already exists with the name name, it is overwritten.

If the Configuration/ActionsPanel/CustomActions directory does not exist when this method is invoked, the directory is created.

Availability: ActionScript 1.0; Flash Player 6

Parameters
name:String - The name of the custom action definition to install.

data:String - The text of the XML definition to install.

Returns
Boolean - A Boolean value of false if an error occurs during installation; otherwise, a value of true is returned to indicate that the custom action has been successfully installed.

Example
The following example installs information into the Actions panel from an XML file. Open a text editor and save a new document called dogclass.xml. Enter the following code: 

<?xml version="1.0"?>
<customactions>
	<actionspanel>
	<folder version="7" id="DogClass" index="true" name="Dog" tiptext="Dog Class">
		<string version="7" id="getFleas" name="getFleas" tiptext="gets number of fleas" text=".getFleas(% fleas %)" />
	</folder>
	</actionspanel>
	<colorsyntax>
		<identifier text=".getFleas" />
	</colorsyntax>
	<codehints>
		<typeinfo pattern=" _dog" object="Dog"/>
	</codehints>
</customactions>

Then open a new FLA file in the same directory and select Frame 1 of the Timeline. Enter the following code into the Actions panel:

var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
	trace(success);
	CustomActions.install("dogclass", this.firstChild);
	trace(CustomActions.list());
};
my_xml.load("dogclass.xml");

Select Control > Test Movie, and if the XML loads successfully, you will see true, and an array containing the names of all the custom actions that are registered with the Flash authoring tool in the Output panel. Close the SWF file, and open the Actions panel. You will see a new item in the Actions toolbox called Dog, and inside that folder you see getFleas.

--------------------------------------------------------------------------------

اذا اراد الله بعبد خيراً فقهه في دينه

((إياكم والغلو في الدين فإنما هلك من كان قبلكم بالغلو في الدين )).

( إن هذا الدين يسر ولن يشاد هذا الدين إلا غلبه فأوغلوا فيه برفق )

( هلك المتنطعون ، هلك المتنطعون ، هلك المتنطعون )

<span style='font-size:14pt;line-height:100%'>طريقة سريعة لحفظ كتاب الله العزيز</span>

<span style='font-size:14pt;line-height:100%'>تعرف على عباقرة الكذب</span>

#3

شكرا جزيلا على الرد

جزاكم الله خيرا

أحمد صلاح

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…