Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Os-x Style Dockbar Tutorial In Webdesigner Issue 86



Does any one who has followed the tutorial mentioned tell me how to make the buttons more usable and navigate to ie: other swf files.

i have included the code, so check it out and please get back to me.

chris



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 02-18-2004, 02:08 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Os-x Style Dockbar Tutorial In Webdesigner Issue 86
Does any one who has followed the tutorial mentioned tell me how to make the buttons more usable and navigate to ie: other swf files.

i have included the code, so check it out and please get back to me.

chris

Freelance Webdesigner
Hi, I am Fabien LESBORDES, a freelance webdesigner, here is my Flash portfolio. I am specialised in flash design, graphic charters, flash banners and logos. Feel free to contact mefor any business request. I am a flash user since Flash 4 , I love Flash :)

Newbie Webdesigner Needs Help With Actions
Hello,

I am just now getting back into building websites using the new Flash CS3 professional kit and I cannot remember how to do any kind of actionscript and I was hoping someone could lead me in the right direction.

I only need basic actionscript for a preloader and actionscript for buttons to play a new scene or make a movieclip play.. just basic actions everyone should know that I have completely forgot how to do.

If someone could maybe give me a link to a good tutorial or a fla file i can just copy the action script off of. Or whatever you think could help me... I have already designed the website I just dont have any action script and Im having a hard time using the tutorials on flashkit

Si Scott Web Style Flash Tutorial
hi all.

i've been trying the way to develop a menu in the style of http://www.siscottstudio.com with three sections that slide to show buttons linking to different works.

i don't have much control with flash, but i need to do something like this for the web of the company i work at.

does anyone know where i can find a tutorial, or code to make something like this?

thank you very much. regards.

What Programs Or Stuff To Learn....To Be A WebDesigner
I have a basic and growing understanding of Flash, and have created a few web pages with only Flash. I am now very interested in becoming a competent quality web designer.

I only no Flash and Photoshop, so I know I have a long way to go, but what should I be directing my energy toward? What should I be ignoring? I am very good at learning software quickly.

What are the limits of Flash?, and what programs...or languages (gulp...) should I be learning to overcome this?

Text Style Issue
This code I use to change the value and looks of some text in my form.

The text is changed correct... but the style isn't.
where did I go wrong?.


Code:
originalText1 = "Vul hier uw naam in";
originalText2 = "Fill this0";
originalText3 = "Fill this1";
originalText4 = "Fill this2";
originalText5 = "Fill this3";
originalText6 = "Fill this4";

var my_fmt_original:TextFormat = new TextFormat();
my_fmt_original.color = 0x999999;
my_fmt_original.underline = false;
my_fmt_original.font = "Verdana";
my_fmt_original.size = 9;

this.wisknoppie.onRelease = function(){

txt11 = "";
txt = "";

txt1.text = originalText1;
this.txt1.setTextFormat(my_fmt_original);
txt1.onSetFocus = function() {
if (txt1.text == originalText1) {
txt1.text = "";

}
}

txt2.text = originalText2;
this.txt2.setTextFormat(my_fmt_original);
txt2.onSetFocus = function() {
if (txt2.text == originalText2) {
txt2.text = "";

}
}

txt3.text = originalText3;
this.txt3.setTextFormat(my_fmt_original);
txt3.onSetFocus = function() {
if (txt3.text == originalText3) {
txt3.text = "";

}
}

txt4.text = originalText4;
this.txt4.setTextFormat(my_fmt_original);
txt4.onSetFocus = function() {
if (txt4.text == originalText4) {
txt4.text = "";

}
}

txt5.text = originalText5;
this.txt5.setTextFormat(my_fmt_original);
txt5.onSetFocus = function() {
if (txt5.text == originalText5) {
txt5.text = "";

}
}

txt6.text = originalText6;
this.txt6.setTextFormat(my_fmt_original);
txt6.onSetFocus = function() {
if (txt6.text == originalText6) {
txt6.text = "";

}
}


}

[F8] Memory Style Card Game Card Flipping Issue
Hey guys,

I need a little help with a project I'm doing for school. I'm designing a memory style card game where you flip cards over and if they match they go away and stuff. You know what I mean. Anyway, I can't figure out how to tell both cards to revert to their original state if you guess wrong.

I have the last card you pressed flipping back over no problem. It's just the first one that won't do anything and I can't figure out how to reference it.

If anyone can help that'd be great.

First Tutorial Issue
Sorry if I posted this in the wrong place. I followed the tutorial Video Basics Part 1 as best as I could. I got my "action" and "video" script in the right order and both were locked. But I'm using Flash 8 so it's different for me.

So, lemme get this straight... What I do is I add the code that Lee adds (which I've done), but how do I add the video exactly? When I click that "New Video" thing in the library it asks me to import the .flv video file right then and there, but Lee's Flash MX 2004 doesn't do that. So what I did is I opened up a different new flash document and saved out my video in a .flv file with that. Then went back to the first file (with my actionscript and all) and imported my .flv in the Library's "New Video" choice. Then I dragged out the video and it worked. But I really feel I did something wrong, my actionscript of course has the file ("MoNht1.flv") in the last line which is my file instead of Lee's file ("vegas.flv"). When I test it out, the sound in my video sounds like crap and I don't know if I did it all 100% correct. Any help?

Actionscript Tutorial Issue ?
I was reading Eddie Carrol's (sp?) tutorial on operators......well to get to the point, in one part he discusses the NOT operator...and give some lines of code:

On (Release)
If ( not on = 0)
Set Variable: "output" = "not on"
Else
Set Variable: "output" = "on"
End If
End On

I seem to have a problem with line 2..when i type it inside flash's actions, it tells me: The operator 'not' must be followed by an operand.
I am using flash 5, is Eddie's code outdated? If so what is the current way to use the NOT operator?

Remoting Tutorial Issue
home / tutorials/ Flash MX (PHP) Remoting

Following along with the above tutorial running locally on MAC OS 10.2.8:
localhost/~username/test_services, current dir structure.


Reached the trace portion, but the only strings returned to the output window are:

Calling returnString
Calling returnNumber
Calling returnArray

I searched but was unable to find anything.

Carousel 2 Tutorial Issue.
Hello everyone and Merry Christmas!(Yeah I know, I'm late)

Well. In order to train and familiarize myself to flash (Macromedia flash professionnal 8 version), I decided to follow and put in application the Carousel 2 tutorial.

Everything worked fine since my last carousel swf build. My main problem is that the text is not displayed in the tooltip box. And I don't know why. My code seems to be nearly the exact copy of the one's which is given in the tutorial, but the tooltip box remains empty. A notice: When I put the text to "static", it is shown, not the case when I check "dynamic". Here is my actionscript code:

Code:

import mx.utils.Delegate;

var numOfItems:Number;
var radiusX:Number = 280;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.05;
var perspective:Number = 100;
var home:MovieClip = this;


var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.load("icons.xml");

xml.onLoad = function()
{
  var nodes = this.firstChild.childNodes;
  numOfItems = nodes.length;
  for(var i=0;i<numOfItems;i++)
   {
     var t = home.attachMovie("item","item"+i,i+1);
     t.angle= i* ((Math.PI*2)/numOfItems);
     t.onEnterFrame = mover;
    t.toolText = nodes[i].attributes.tooltip;
    t.icon.inner.loadMovie(nodes[i].attributes.image);
    t.ref.inner.loadMovie(nodes[i].attributes.image);
    t.icon.onRollOver = over;
    t.icon.onRollOut = out;
   }
}

function over()
{
   home.tooltip.tipText.text = this._parent.toolText;
   home.tooltip._x = this._parent._x;
   home.tooltip._y = this._parent._y - this._parent._height/2;
   home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
   home.tooltip._alpha = 100;
}

function out()
{
   delete home.tooltip.onEnterFrame;
   home.tooltip._alpha = 0;
}

function moveTip()
{
   home.tooltip._x= this._parent._x;
   home.tooltip._y= this._parent._y - this._parent._height/2;
}

function mover()
{
   this._x = Math.cos(this.angle)* radiusX + centerX;
   this._y = Math.sin(this.angle)* radiusY + centerY;
   var s:Number = (this._y - perspective) / (centerY+radiusY - perspective);
   this._xscale = this._yscale = s * 100;
   this.angle += this._parent.speed;
   this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
   speed = (this._xmouse-centerX)/2500;
}


Here is my xml code:

Code:

<icons>

<icon image="earth.png"   tooltip="Reseau" />
<icon image="add.png"     tooltip="Ajouter" />
<icon image="del.png"     tooltip="Supprimer" />
<icon image="members.png" tooltip="Membres" />
<icon image="seek.png"    tooltip="Rechercher" />
<icon image="help.png"    tooltip="Aide" />
<icon image="email.png"   tooltip="Email" />
<icon image="home.png"    tooltip="Accueil" />

</icons>


Can someone help me find the "bug" please? Thanks in advance and sorry if the problem have already been posed (I made a search but find nothing related to my issue...).

Edit: I searched more and I downloaded the carousel2 version of the tutorial. Seems that the issue was bound to my tooltip movie clip. The way I made it was obviously wrong. I need to train myself more. Sorry to have bothered.

P.S: M.Lee, Thank you very much for your effort. I know this is not so simple to make such tutorials. Hope there were more people like you on the net.

Photo Gallery Tutorial Issue
I finished the photo gallery tutorial, and I'm having an issue with it. When you play the photo gallery, the pictures coming up in the lower right hand corner. I found this issue posted on the forum, to be honest with you, i have no idea what the fix was ... could someone do me the favor of looking at my files and let me know what i need to do to fix it?

Z



(it keeps telling me that my file is too big (and it's not) so i'm going to have to break them up into about 3 differnt postings

Transitions Between External Swf Tutorial Issue
Hi,
This is my first post...so let me know if I should be doing something different!
I have been working with this tutorial ¨Transitions between external swfs¨ from kirupa.com. I downloaded the zip and then tried to modify it with my own external swfs...worked fine as long as the swfs I swapped in were simple. But when I tried it with swfs that included galleries or any other kind of interactivity it seemed to break down. Made me wonder if I need to modify something additional when working with these kinds of slightly more complex swfs...
Does anyone have an answer for this? I can post what I am doing if that helps...
M

Photo Gallery Tutorial Issue
I finished the photo gallery tutorial, and I'm having an issue with it. When you play the photo gallery, the pictures coming up in the lower right hand corner. I found this issue posted on the forum, to be honest with you, i have no idea what the fix was ... could someone do me the favor of looking at my files and let me know what i need to do to fix it?

Z



(it keeps telling me that my file is too big (and it's not) so i'm going to have to break them up into about 3 differnt postings

Issue With Double Helix Tutorial...
Ok I got the double helix to work fine in the main stage but I want to put it into a movie clip. So basically i'll have the base pair movieclip inside another movieclip which will be put onto the main stage. The problem is that it won't work when I try to do it this way. Someone suggested that I read about paths but I couldn't find anything on it. So if someone could help me I would be greatful, thankyou.

Flash Mp3 Player - Tutorial 1 Issue
Hi all.

I have followed the tutorial and found it very useful. However, after finishing the tutorial and testing my movie, I found that the tracks didnt play and I also got the following message in flash Cs3

Error opening URL 'file:///F|/mp3/undefined'

I figured that it was because of where everything was on my computer so uploaded it to my server and im still having the same problem. Could anyone shed some light on this for me ?

Cheers


Ash

Mail With PHP Tutorial - Small Issue
Hello my fellow Flash enthousiasts!

I'm relative newcomer to the Flash scene and over the course of time have learned many of my 'basic skills' through tutorials on the web. Amasingly, not until recently I encountered this great site, which offers really comprehensible video's and actually has a forum where people tend to post AND solve problems in a gently manner

So let's put aside the cheering and come down to my issue.

I've followed the tutorial "Mail with PHP" step by step and thus coded my php en flash files like the Japanese copied the transistor radio, that is to say, I did it thoroughly
But some problems surfaced and my email would receive blank emails. I researched your forum a bit, and a nice guy named Thomas already posted the solution after running into the same problem. Now I get the emails correctly, with the fields filled in and I can reply to the sender.

I still have two issues left though and I think it has got to do with my flash file.
FIrst of, when I hit 'Test Movie', fill in all of the fields, I do get an email, but my flash movie displays the portion designed to say: "Your message was not sent". Odd, isn't it? It should say "Message has been sent ", because indeed it did arrive. Yes, the right text is written in the appropiate keyframes.
Secondly, my flash movie won't load in my test browser when I put it in my site in dreamweaver. Yes, I have ignored all of the security warnings the browser tends to trow upon you these days. It must be something with my flash file itself.

Here's my code as well:
Flash
Code:

stop();

var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();

sender.onRelease = function() {
   senderLoad.theName = theName.text;
   senderLoad.theEmail = theEmail.text;
   senderLoad.theMessage = theMessage.text;
   senderLoad.sendAndLoad("http://www.***********.com/contactform.php",receiveLoad,"POST");
}

receiveLoad.onLoad = function() {
   if(this.SentOk) {
      _root.gotoAndStop("success");
   }
   else {
      _root.gotoAndStop("failed");
   }
}


My PHP bit in Dreamweaver
Code:

<?PHP
$theName = $_POST['theName'];
$theEmail = $_POST['theEmail'];
$theMessage = $_POST['theMessage'];
$to = "******@gmail.com";
$subject = "Contact form entry";
$message = "Name: " . $theName;
$message .= "
Email: " . $theEmail;
$message .= "

Message: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "
Reply-To: $theEmail";
$sentOk = mail ($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;

?>

I know I'm a giddy goat to reveal my utter noobishness...but we all have to go through that Trial and Error phase I guess. Hope someone can help me out! And thanks in advance! Cheers.

SMOOTH TRANSITION TUTORIAL - PATH ISSUE - HELP
Hi there
I'm using the tutorial found here to transition smoothly between my external swfs. This method calls the swfs into a container, called location, on stage. However, I have 2 problems:

1. The method in the tutorial only shows how to to do it from the mainline, which I am not doing.

2. My navigation is already in a container, called container, which I am unsure of how this will affect the path.

Quickly, home.swf is loading image1.swf into a container (called location) on stage. Image1.swf contains my menu. The menu will not call the relevant swf's when clicked. I know it's a path issue, but I am fairly code illiterate and could desperately use someone else's eyes on this for 3 minutes to let me know what and where the path needs to change to...

PLEASE DOWNLOAD THE FILES (3 MEGS) FROM MY SERVER... too large for upload here. Download them at http://www.moggey.com/help.zip

I've included the two fla's I am using, plus the relevant swf's that would be called were the navigation working properly.



If someone would be kind enough to take a quick look at my button A/S it would be soo appreciated!

THANK YOU IN ADVANCE!
Wade

Scroller Based On Kirupa Tutorial Issue...help.
Hello,
I have been playing with the Kirupa scroller tutorial (http://www.kirupa.com/developer/flash8/scrollbar.htm ). I have been able to get it to work as a separate independent movie and swf file, but when I try to use the same steps and embed it within another movie it stops working.

What I have been trying: while in the main timeline of the main movie, I build a new movie clip using the tutorial. When I place an instance of the scroller movie clip on the main timeline, it will not function.

Should I be making some adjustments to the actionscript to get the scroller to work?

I hope I have given enough information for someone to give me a suggestion.
Thanks for your help in advance.

Ray

Issue With Kirupa.com Flash/PHP Form Tutorial
I've scoured the web high and low and cannot find a tutorial for this that actually works despite my efforts at checking and rechecking it. I never receive any email. Any help would be appreciated. I'll try and lay everything out.

Three input fields: Name, Message and Email Address. All have assigned var names as name, message and email. Fields are within a mc called "form".

Submit button has this code:

on (release) {
form.loadVariables("emailForm.php", "POST");
gotoAndStop(2);
}


The Form mc has this code:

onClipEvent(data){
nextFrame();
}


My PHP file has this code:

<?php
$sendTo = "name@domain.com"; I inserted my actual email here, I deleted it because I don't want the world knowing it from here
$subject = "From My Web Site";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>


Does anyone happen to know why this doesn't work? I also tried creating the PHP form using my ISP's web hosting tools (AT&T Yahoo). If anyone happens to know if there is something specific I need to do to get it to work with AT&T Yahoo that would be great. I'll also need to know if there's anything specific to Network Solutions.

I appreciate any and all help very much!

Hasans' Web Services Tutorial: Small Issue
Hey guys, I am having a problem with this code.
Code:

import mx.services.WebService;
import mx.services.PendingCall;
var earl:String = "http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl";
var ws:WebService = new WebService(earl);
var pc:PendingCall;
function getRates():Void {
   pc = ws.getRate("United States","Canada");
   pc.onResult = onResponse;
}
function onResponse(rate:Number) {
   xRate_txt.text = "The current exchange rate is: " +rate;
}
pc.onFault = function():Void  {
   xRate_txt.text = "Error with request";
};


The problem is that I just want the rate to be displayed in a dynamic text field called"xRate_txt.text" I know it is something tiny I am overlooking. Thanks in advance!

Fixing The Flash/Embed Issue Kirupa Tutorial, Not Working For Me In IE
Hey all

Have just run through the flashobject fix for this issue. It works fine in Firefox but when I run the webpage in IE no flash movie shows up. Am i doing anything wrong?

(Im on XPPro SP2, but not many hotfixes installed, (as it crashed my PC))


<script type="text/javascript" src= "flashobject.js"></script>

<div id="flashcontent" style="width: 785px; height: 330px"></div>

<script type="text/javascript">
var fo = new FlashObject("/images/final_portfolio.swf?<%response.write qs%>", "final_portfolio.swf", "785", "330", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>

Have tried without the ?ASP. Any suggestions?

To The Tutorial Writing Staff: XML Portfolio Tutorial
Hi guys!

I'm a basic actionscript user which knows the basics of xml and actionscript. I've been seaching for a tutorial for a long time now how to make a portfolio which is dynamic and loads info from an external .xml file.

Since i couldn't find any tutorial like this i've tryed to make my own script out from this xml file:


Code:
<portfolio thumburl="thumbs/" imgurl="images/">
<project hdline="my first project" client="none" date="2007-01-02" category="website" weburl="http://website.com">
<image url="image1.jpg"/>
<image url="image2.jpg"/>
<image url="image3.jpg"/>
<description><![CDATA[This describes my first project]]></description>
</project>
</portfolio>
I have hade in mind that you should see a bunch of thumbnails first in a table format (like 6 cols and 3 rows) on each page, then you should be able to select page with next and prev buttons. When you press on a thumnail a box with the bigger image shuld pop-up and you should be able to read the other information in the xml file (such as client, date etc etc).

I've tryed to make this but it's to advanced. And my version is very buggy, aswell.

Here is what i've done sofar:
www.vmgcomputers.com/xml/portfolio3.swf

I don't know if this helps but here is a "multiple loader" i found:
http://www.johnnyslack.com/content/d...der_jslack.zip


I think there are many guys who are looking for a tutorial about this so please consider to make one, all professionals out there!

[CS3] Still Having Clock Time Zone Issue---and Dynamic Text Box Issue
I'm trying to do a clock that displays another time zone. The problem I'm having is that instead of running on a 12 hour clock, its on a 24hr one.

any insight as to how I can change the time?
Currently the clock is displaying
23:00p-Jul.22

I want it to display 11:00p-Jul.22

var dayText:String;
var dateText:String;
var monthText:String;
var AmPm:String;
_root.onEnterFrame = function() {
var myDateate = new Date();
//var sec:Number = myDate.getSeconds();
var min:Number = myDate.getMinutes();
var hour:Number = myDate.getHours();
var day:Number = myDate.getDay();
var date:Number = myDate.getDate();
var month:Number = myDate.getMonth();
//var year:Number = myDate.getFullYear();
//sec = sec<10 ? "0"+sec : sec;
min = min<10 ? "0"+min : min;

//AM/PM
if (hour>12) {
hour = hour-12;
AmPm = "p";
} else {
AmPm = "a";
}


//day
if(date == 1 || date == 21 || date == 31) {
dateText = date+"";
} else if(date == 2 || date == 22) {
dateText = date+"";
} else if(date == 3 || date == 23) {
dateText = date+"";
} else {
dateText = date+"";
}

//month
if (month == 0) {
monthText = "jan";
} else if (month == 1) {
monthText = "feb";
} else if (month == 2) {
monthText = "mar";
} else if (month == 3) {
monthText = "apr";
} else if (month == 4) {
monthText = "may";
} else if (month == 5) {
monthText = "jun";
} else if (month == 6) {
monthText = "jul";
} else if (month == 7) {
monthText = "aug";
} else if (month == 8) {
monthText = "sep";
} else if (month == 9) {
monthText = "oct";
} else if (month == 10) {
monthText = "nov";
} else if (month == 11) {
monthText = "dec";
}

//display
dateDisplay.text = hour+":"+min+ AmPm + "-" + monthText+"."+ dateText;
};

Tutorial For Making A Flash Tutorial
I would like to find a tutorial on how to make a Flash Tutorial like this one or something similar.

Any help would be greatly appreciated!

XML - Mix The Squirrel Tutorial And The Portofolio Tutorial
Hello,

I'm trying to mix 2 tutorials: the Squirrel Finder (http://www.kirupa.com/web/xml/exampl...rrelfinder.htm )and the Portfolio ( http://www.kirupa.com/web/xml/examples/portfolio.htm ).

Actually i want to create a list of buttons based on loaded xml and when the buttons are cliked i want to displays information obtained from the xml
associated with that button (this part is ok).Now the things is that i also want to add to each "squirrel" a portofolio but i can 't figure out how to write the AS.

here are my codes

the xml


Code:
<?xml version="1.0" ?>
<menu>
<menuitems sourceurl="http://spot.colorado.edu/~halloran/sqrl.html">
<item type="squirrel">
<species>Abert Squirrels</species>
<location>
<![CDATA[Abert squirrels (Sciurus aberti) are only found in mountain regions of North America. In the United States their range extends from extreme south-central Wyoming to New Mexico and Arizona. There are six valid subspecies including S.a. ferreus, True, the subspecies that is found along the Front Range of the Rocky Mountains in Colorado. Abert squirrels are limited to Ponderosa pine (Pinus ponderosa) forests in which they feed and build their nests.]]>
</location>
<portfolio>
<picturetitle= "Tiny Disk"
thumb= "portfolio_images/thumbs/tinydisk.jpg"
description= "portfolio_text/tinydisk.txt"
image= "portfolio_images/tinydisk.jpg" />

<picturetitle= "Plug"
thumb= "portfolio_images/thumbs/plug.jpg"
description= "portfolio_text/plug.txt"
image= "portfolio_images/plug.jpg" />

<picturetitle= "Disk Collection"
thumb= "portfolio_images/thumbs/diskcollection.jpg"
description= "portfolio_text/diskcollection.txt"
image= "portfolio_images/diskcollection.jpg" />
</portfolio>
</item type="squirrel">

<item type="squirrel">
<species>Douglas Squirrels</species>
<location>
<![CDATA[Douglas squirrels (Tamiasciurus douglasii) are found throughout the coniferous forests of Southwestern British Columbia, western Washington, western Oregon, and western California.]]>
</location>
<picturetitle= "Tiny Disk"
thumb= "portfolio_images/thumbs/tinydisk.jpg"
description= "portfolio_text/tinydisk.txt"
image= "portfolio_images/tinydisk.jpg" />

<picturetitle= "Plug"
thumb= "portfolio_images/thumbs/plug.jpg"
description= "portfolio_text/plug.txt"
image= "portfolio_images/plug.jpg" />
</portfolio>
</item>
<item type="squirrel">
<species>Eastern Grey Squirrels</species>
<location>
<![CDATA[Eastern gray squirrels are found throughout the eastern United States; their natural range extends from Florida, north to Canada, and west to where the deciduous forests meet the great plains grasslands. There are 5 subspecies of eastern grey squirrels, S. carolinensis carolinensis is the subspecies found in most of the south from northern Florida, to North Carolina, west to Missouri, and eastern Texas.]]>
</location>
</item>
</menuitems>
</menu>
the as


Code:
function DisplayInfo(){
menu_mc._visible = false;
infobox_mc._visible = true;
infobox_mc.content_txt.text = this.location_text;
}

infobox_mc.close_btn.onRelease = function(){
menu_mc._visible = true;
infobox_mc._visible = false;
infobox_mc.content_txt.text = "";
}
infobox_mc._visible = false; // start the info box hidden


// define basic variables for setting up the menu
var item_spacing = 28; // how far menu items are spaced veritcally
var item_count = 0; // counts menu items as they are added from the XML
// var for the portofolio
var thumb_spacing = 40;

// load variables object to handle loading of text
var description_lv = new LoadVars();
description_lv.onData = function(raw_text){
description_txt.text = raw_text;
}


// CreateMenu creates a menu based on the XML object passed.
// It loops through all the items with a for loop adding clips to the menu_mc
// movieclip on the timeline, defining the appropriate text where needed
function CreateMenu(menu_xml){
// start with the first item in the XML
var items = menu_xml.firstChild.firstChild.childNodes; // menu -> menuitems -> child nodes array
for (var i=0; i<items.length; i++) {
// only continue if the type of this item is a squirrel
if (items[i].attributes.type == "squirrel") {
// create variables for our elements
var species = items[i].firstChild; // same as items[i].childNodes[0]
var location = items[i].childNodes[1]; // second child node

//function GeneratePortfolio(portfolio_xml){
//var portfolioPictures = portfolio_xml.firstChild.childNodes;
//for (var i = 0; i < portfolioPictures.length; i++){
var currentPicture = portfolioPictures[i];

var currentThumb_mc = menu_mc.createEmptyMovieClip("thumbnail_mc"+i,i);
currentThumb_mc._x = i * thumb_spacing;

currentThumb_mc.createEmptyMovieClip("thumb_container",0);
currentThumb_mc.thumb_container.loadMovie(currentPicture.attributes.thumb);

currentThumb_mc.title = currentPicture.attributes.title;
currentThumb_mc.image = currentPicture.attributes.image;
currentThumb_mc.description = currentPicture.attributes.description;


currentThumb_mc.onRollOver = currentThumb_mc.onDragOver = function(){
info_txt.text = this.title;
}
currentThumb_mc.onRollOut = currentThumb_mc.onDragOut = function(){
info_txt.text = "";
}
currentThumb_mc.onRelease = function(){
image_mc.loadMovie(this.image);
description_lv.load(this.description);
}
}
}

// Create a menu item movie clip in the menu_mc instance on the main timeline
// for each item element offsetting each additional further down the screen
var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc._y = item_count * item_spacing;
item_count++;

// assign text using nodeValue to get the text
// from the text nodes and CDATA sections
item_mc.species_txt.text = species.firstChild.nodeValue;
item_mc.main_btn.location_text = location.firstChild.nodeValue;
// set the onRelease of the item button to the DisplayInfo function
item_mc.main_btn.onRelease = DisplayInfo;
}
}
}



var squirrel_xml = new XML();
squirrel_xml.ignoreWhite = true;
squirrel_xml.onLoad = function(success){
if (success) CreateMenu(this);
else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
squirrel_xml.load("squirrel_finder.xml");
Thanks for the help

Complex Audio Issue..or Maybe Just Syntax Issue
what's up peoples. I'm building a new site for my studio and having some audio issues i can't explain very well, so here goes:

I've got an external .swf successfully loading into _level6 of my project with it's own audio. and from reading thse forums, i know that if i want to control the audio independently of other audio, i need to attach the sound object to a seperate movieclip, which i'm doing and I can control the audio just fine. However, when i click to load in a dynamic image into a dynamicly loaded movieClip, the volume button no longer works. Both the soundobject's mc and the dynamic mc's are being loaded into the nextHighestDepth() so i don't think one is kicking out the other. Here's what i've got:

Code to attach the soundObject when the section starts:

Code:
this.createEmptyMovieClip("soundstage6",this.getNextHighestDepth());
work_sound = new Sound(soundstage6);
work_sound.attachSound("myaudiofile");
work_sound.start(0, 999);
Code to control the volume:

Code:
this.testVol.onPress = function () {
this._parent.work_sound.setVolume(0);
}
Code that loads in my dynamic images:

Code:
this.testLoad.onPress = function () {
_root.attachMovie("infoClip", "infoClip", this.getNextHighestDepth(), {_alpha:0, _x:491.1, _y:193.9});
}
that testLoad button does severl other things when clicked, but when i comment out that particular line of code, the volume control button contines to work. I'm sure this has something to do with the fact that all of this is occuring on _level6 but i have no idea why or how to fix it!!!

Anybody have any ideas? Sorry for the long and complex explination!!

Mac Textinput Issue + New Player Fullscreen Issue
Please inform me if I am a total idiot,... but it appears that holding down backspace while in a TextInput on a mac will only delete one character rather than deleting chars as long as the button is held down. I have tried making the simplest project consisting of only a base sprite and a textinput, and it fails (i thought i may have been preventing the event from bubbling or something.) I tested the movie on PC and holding down backspace works fine. Is this a known issue? and so I just have to extend textInput?...

Also, it seems like when coming back from fullscreen in a swf embedded on a page causes some flickering of the swf content upon resizing the browser window, 3 people I know have also encountered this problem.

Thanks for any help,

Chris Laan

Button Issue In Flash - Program Issue
all of a sudden when i create a button and place it on stage i cant click it to drag it, scale or whatever...instead when i hover over it it behaves as in a compiled swf file (cursor changes into a hand,...).
How can i change that to the way it was? Anyone had this problem before? It is becoming really irritating.

Possible AI? Pac Man Style
Hi there,

I'm at the moment building a game where the characters need to follow the main character if he enters there space.

Is it possible in flash and if so does anyone know of any tutorials or articles about it..or samples

cheers, stu

GTA Style Map
OK, ive been working on a GTA stile game. i have the car etc all working fine.

http://frosty4321.homestead.com/files/cargame.swf

if your interested.
however i have no idea how to go about making the city to drive around in
i could just draw a giant city and make that move about, but that would each processing power and memory, so i need some way of clipping the city so only a small part gets loaded. either that or map the city out in code and load up the correct part depending on where you are.

can anybody help?


P.S.
MOOOO!

CSS Style
hi there..

could somebody help me in making the CSS Styleswitcher works?

I need to make a Flash which is able to switch the CSS of a page.
But I don't know how I should do it..

I have copied the whole styleswitcher.js to the Flash and trying to switch the css from the Flash, but it doesn't work.

Here is a URL as an example of CSS switching:
http://www.veerdee.com/

Note: Just click the color scheme box.

Please help
Thank you

Mad-Lib Style
I'm currently working on a project involving taking text input by users and incorporating that into a larger block of text, much like the mad-lips some of us did when we were younger.

Currently, I've got one large block of static text with the bulk of my writing, with large areas spaced open, overlapped with several dynamic text boxes, loading variables that the users had input on a prior screen.

I'm sure there has to be a better way...like, some way to load the variables within the larger text box, perhaps? Any suggestions welcome. Otherwise, I've either got unsightly open spaces, or my variables get cut short.

Jib Jab Style
Don't really know where to start...
In it's simple form I need to create a micro site where users can upload their video and then drag some pictures on top of the video (overlay) then save it. Then users should be able to watch the video with the images in it. A bit like jib jab but instead the user provide the video. My main thing is that this has to happen live. Anyone can point me where to start? I've googled all possible things regarding this but still nothing. I know it's more of a backend worl but any suggestion will be mostly appreciated.
Thanks

AS2-style
IceCo told me a while ago :

"You might also want to try to write functions in a more AS2 style:

ActionScript Code:
function xLoadVisual (Src:String, Targ:MovieClip):Void {
// your code
}
"
Is there an overview of AS2-style somewhere?
(that might also explain what that "void" means)

Anyone Know How To Do This Style?
Not to bother anyone, but does anyone know how to do the animation style in Rat Race. It is at the beginning at the title and credits. Yo can find an example here--> http://www.jibjab.com/thisland.html Click on AtomFilms.
I would really like to know.

- What's Your Style -
Hiya peoples. Just outta the blue I would like to know how everyone draws. I've always been obsessed in flash drawing ever since I got flash. Is there a specific way you draw...a cartoonish one maybe? Some people can draw like Invader Zim in flash....

Anyone Know How To Do This Style?
Not to bother anyone, but does anyone know how to do the animation style in Rat Race. It is at the beginning at the title and credits. Yo can find an example here--> http://www.jibjab.com/thisland.html Click on AtomFilms.
I would really like to know.

Style Sheets?
Hello,
Knows someone how I can make style sheets like CSS or something ??
please help

Windows Style?
Howdy,
Guys and girls,I'm Currently built a whole flash site. And I've made it looks much like microsoft windows style. But I feel badly with creating these windows. Lots of questions ,such as detect active windows, assign array of windows titles,make it resizable,load txt outside and make windows size just fit for it and with scroll bars,make title bar, body,button(close , minimize , maximize),menu combined together.... And I feel deep lost in such kind of things.

I don't wanna to make every window as outside swf files and then load them into main interface file.Just wanna to create a function such as creatwindows with one body of it duplicate different windows.I feel it's much more effective.

Maybe my question is so big,but I just wanna you to give me some suggestions, or share your experience.Thanks a lot.


=^_^=
[Edited by udreamer on 11-03-2001 at 07:38 PM]

2A Style Actionscripting?
Hello there. My name is Young.

What I am going to ask you is something that made me trouble so much that I couldn't eat, sleep & talk several days. It might easier thing for you but this one is very important to me. Pleae help me..

I just got uploaded my website. It's at http://www.youngnak.ca/KM/groups/ynkcc3/
I spent months to bulid this.. There are buttons like rx-7, profile, portfolio etc.. When you press one of those buttons, it's supposed to import & load that section of flash movie into main movie which is already showed. And it's working okay but.. the problem is the main movie suposed to hold showing that importing movie until it knows it's all downloaded. Then once it's done it's supposed to show it. And my actionscript is not working..
It's like 2A style. You know you press button main movie close sliding door then once it's loaded it opens.

Please help me guys.. I think I can't rest until I solve this..


God bless.

young.

An Old Style Calendar?
do you remember the old calendar in the praystation page?
I think surely yes!!...cause was one of the innovations of the guru....
I was searching a tutorial or a fla to study cause i like to make my own and understand how it works...

well, I don't find it nowhere...
please help:
do you know where to find?

tnx
Al

Mac OS X Menu Style
I have been working on developing a site menu like the one in the tutorial for building a Mac OS X style menu but I am having problems debugging (the tutorial doesn't provide the .fla file). Does anyone know where I could find a similar tutorial that includes an .fla?

TEXT STYLE
how we can chane text style using actionscript

Osx Style Menu - Ne1 Seen One
has anyone seen some source code for an OSX Dock style menu?

VCR-style RW/FF Buttons
I've read various threads about creating rewind and fast-forward buttons, and made various attempts to use the suggestions, but can't seem to get apply any of this learned knowledge correctly. I'm making a demo video that will be exported as a QuickTime movie with a Flash interface (and a couple of other elements), and I've got a control panel with the usual VCR buttons. Is it possible to write a loop that just continuously does: on (press) gotoAndPlay (prevFrame) ? I've tried "do while" and some other conditional loops, and no luck.
For some reason, gotoAndPlay (_currentframe - 5) sends it back to the beginning. Any help would be appreciated.

Generate Swf From Swf? Cms Style
generate swf from swf? cms style
I created a slideshow, and what I want is CMS functionality, so user can select say frames 1,5,34,56 (tick box on frame), and then they can make a new swf with only those frames.(from a button generate swf)

Is this possible?

Cheers

Maria
generate swf from swf? cms style

Generate Swf From Swf? Cms Style
Generate swf from swf? cms style

I created a slideshow, and what I want is CMS functionality, so user can select say frames 1,5,34,56 (tick box on frame), and then they can make a new swf with only those frames.(from a button generate swf)

Is this possible?

Cheers

Maria

Style In Flash
Is it possible to create something like HTML style <style></style>
in flash so when you use render text as HTML option for text, it create rollovers or what ever from defined style?

Copyright © 2005-08 www.BigResource.com, All rights reserved