سلام عليكم ورحمة الله وبركاته
الان قم بدمج الـ html و css في الفلاش
الدرس بسيط جدا فوق ما تتصورون يا اخواني
الدرس لا يطلب الكثير
تعلم بسيط كيف تستخدم css في الهتمل فقط لا غير
وهذا مثال صغير للعمل الي يحب يسوي ويدمج ويتعرف على الفلاش
1- قم بصنع ملف css وهي عن طريق النتوته او احد برامج الـ css
كود:
p {
color: #000000;
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
display: inline;
}
a:link {
color: #FF0000;
}
a:hover{
****-decoration: underline;
}
.headline {
color: #000000;
font-family: Arial,Helvetica,sans-serif;
font-size: 18px;
font-weight: bold;
display: block;
}
.byline {
color: #666600;
font-style: italic;
font-weight: bold;
display: inline;
}
هذا مثال صغير قم بوضعه في نوته ثم قم بحفظه على هئية وبأسم ( html_styles.css )
لمن اراد تعلم لغة css من هنا
http://www.w3schools.com/css/default.asp
الان نوتجه الى احد برامج صنع صفحات الأنترنت ونضع هذا الكود
كود:
<p class='headline'>Flash adds advanced anti-aliasing rendering technology!</p><p><span class='byline'>San Francisco, CA</span>--Adobe Inc. announced today a new version of Flash that features a brand new font rendering technology called Advanced Anti-Aliasing, most excellent at rendering small **** with incredible clarity and consistency across platforms. For more information, visit the <a href='http://www.adobe.com'>Adobe Flash web site.</a></p>
ونقوم بحفظه بهذا الاسم مع الملف السابق
قم بحفظه باسم ( my****.htm )
2- قم بفتح عمل جديد في الفلاش ثم توجه الى الير الاول من العمل وقم بوضع هذا الكود
كود:
this.create****Field("news_txt", 99, 50, 50, 450, 300);
news_txt.border = true;
news_txt.html = true;
news_txt.multiline = true;
news_txt.wordWrap = true;
// Create a new style sheet and LoadVars object.
var myVars_lv:LoadVars = new LoadVars();
var styles:****Field.StyleSheet = new ****Field.StyleSheet();
// ******** of CSS and **** files to load.
var txt_url:String = "my****.htm";
var css_url:String = "html_styles.css";
// Define onLoad handler and Load CSS file.
styles.onLoad = function(success:Boolean):Void {
if (success) {
/* If the style sheet loaded without error,
then assign it to the **** object,
and assign the HTML **** to the **** field. */
news_txt.styleSheet = styles;
} else {
trace("Unable to load CSS file.");
}
};
styles.load(css_url);
// Define onData handler and load **** to display.
myVars_lv.onData = function(src:String):Void {
if (src != undefined) {
news_txt.html**** = src;
} else {
trace("Unable to load HTML file");
}
};
myVars_lv.load(txt_url);
شرح بعض اكواد الفلاش في عملية الاستدعاء
كود:
this.create****Field("news_txt", 99, 50, 50, 450, 300);
قياسات العمل x و y
كود:
news_txt.border = true;
news_txt.html = true;
news_txt.multiline = true;
news_txt.wordWrap = true;
بعض خصائص العرض من خط خارجي وعرض للاكواد وخصائص التركيب
اما باقي الاكواد عاد عليكم يا فانانين
الدرس مأخوذ من الـ help الخاص بالفلاش 9
وللعرض باللغة العربية
http://vb.eyesweb1.net/showthread.php?t=10997
وان شاء الله يفيدكم الدرس يا مبدعينا مع مرعات استخداماتكم لاكواد التهمل في العمل يجب ان تكون مترابطه مع بعضها البعض مع اختلاف خصائصها
يوفقكم يا رب
ابو شوق