Using Textarea Component In Kirupa XML Tutorial
I have a Flash/XML app which was helped along with your tutorial (thanks!)http://www.kirupa.com/web/xml/exampl...rrelfinder.htmAs the content of my pop ups varies from 1 line to 2/3 paragraphs, what id like to do is get the variable content to populate a textarea component.I have tried everywhich way i know possible, i initially thought it should be as simple as targeting the instance, but i don't seem to be able to get the variable content into the textarea. I'm assuming its somethingscope related, but am at a bit of a dead end.Many thanks for anything you can offer.J
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-10-2005, 05:51 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Using Textarea Component In Kirupa XML Tutorial
I have a Flash/XML app which was helped along with your tutorial (thanks!)
http://www.kirupa.com/web/xml/exampl...rrelfinder.htm
As the content of my pop ups varies from 1 line to 2/3 paragraphs, what id like to do is get the variable content to populate a textarea component.
I have tried everywhich way i know possible, i initially thought it should be as simple as targeting the instance, but i don't seem to be able to get the variable content into the textarea. I'm assuming its somethingscope related, but am at a bit of a dead end.
Many thanks for anything you can offer.
J
Help With TextArea Component Calling Javascript From Link In TextArea
Can anyone help me?
I have a TextArea Component that gets populated from a XML. I have the text with links and I want to be able to click on the link and call my javascript on my page. Can I do this? of what will I need to do to accomplish this. if you can provide an example that would be great.
Thanks in advanced
Kirupa Tutorial ?
I followed the full website tutorial found it great _ But the only thing I didn't get was how did you inbedded the text in the buttons
EX when you presed the membership button __ the text --a membership is open to everyone pops up_ how was this done ??
On my page I assigned an action to the button(about)_ on (release) {
gotoAndStop("about");
}
Heres the thing i assigned the same script for a news button too
But when i test the movie you can press the about button and get info _ but the news button doesn't work
But if you refresh and click the news button first it works fine but the about button doesn't work -- what to do
another quick ?
On my site i have a porfolio button _ the page shall contian small tumbnails _ when clicked they inlarge _ Can I do all this in the same layer as my main frame or do I have to build it in a new layer or movie clip ????
Thanks for your time and help
Tutorial In Kirupa
hello m8s.. i wonder if i can do this tutorial in another way?
http://www.kirupa.com/developer/acti...entication.htm
the tutorial is about login and password trough flash. But to be a member, the tutorial maker have made a .php file to write in username etc... I wonder if it couldnt be done in flash??
Please Post !
Kirupa Tutorial Help
I'm having a hard time getting this tutorial to work for me. I'm new to the whole "component" feature in Flash and I need some help or clarification.
Here's the link to the tutorial I'm trying to complete:
http://www.kirupa.com/developer/mx/newsflasher.htm
Please help me if you can!
XML Tutorial On Www.kirupa.com
there's a great 40+ page tutorial here
http://www.kirupa.com/web/xml/index.htm
I would like a printable version of this. Is there any way I could get the document so I can print it and not have to go to every page and print. thanks
About Kirupa Tutorial
i built my website accroding to the tutorial "creating a full flash site" in Kirupa tutorial section.
the main page is empty and has an empty target MC.
whenever i click on any of the navigation buttons, an external SWF is called and loaded in the target MC.
how can i make the empty main page load immediately the "about" page ?? i dont want it to be empty. i want the first empty page to calls the "about.swf".
i have attached screnshots of the main, about and pictures pages.
anyone can help ???
Kirupa Tutorial Help Plz
hi im building my first flash site and am trying to make my buttons make my text appear on the screen in a certian area, and im doing the "creating a full flash site" tutorial to learn it.
my problem is i dont understand..... i no when you publish you get your .swf file but how do you make the information you want to appear, a .swf file,
plz help a zamma
Kirupa Tutorial
I've been playing with the flash and XML slide show (http://kirupa.com/developer/mx2004/xml_slideshow.htm) tutorial from this site. I have changed it a bit so it uses the loader component to load swfs instead of jpgs into a movie clip. I have my component set to scale the content of the swfs when they are loaded so they completely fit in the 647X80 I am loading them into the loader but its not rescaling them, Any ideas?
Thanks in advance
ActionScript Code:
delay = 60000;//----------------------- function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; image = []; total = xmlNode.childNodes.length; for (i=0; i<total; i++) { image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue; } firstImage(); } else { content = "file not loaded!"; }}xmlData = new XML();xmlData.ignoreWhite = true;xmlData.onLoad = loadXML;xmlData.load("images.xml");///////////////////////////////////// p = 0;this.onEnterFrame = function() { filesize = picture.getBytesTotal(); loaded = picture.getBytesLoaded(); if (loaded != filesize) { preloader.preload_bar._xscale = 100*loaded/filesize; } else { preloader._visible = false; if (picture._alpha<100) { picture._alpha += 10; } }};function nextImage() { if (p<(total-1)) { p++; if (loaded == filesize) { picture._alpha = 0; picture.loadMovie(image[p], 1); picture_num(); slideshow(); } }}function firstImage() { if (loaded == filesize) { picture._alpha = 0; picture.loadMovie(image[2], 1); picture_num(); slideshow(); }}function slideshow() { myInterval = setInterval(pause_slideshow, delay); function pause_slideshow() { clearInterval(myInterval); if (p == (total-1)) { p = 0; firstImage(); } else { nextImage(); } }}
Kirupa Tutorial Help
Hey all,
I'm new to flash and found the Kirupa website that I like the desgin of
I'm doing the tutorial 'Creating a Simple Flash 8 Animation' and on page 3 it tells me to change the text to 'alpha'. I've looked everywhere and I can't where I change it. Can anyone help me?
Thanks,
DarkArrow
Help With A Kirupa Tutorial
I want to alter some code within this tutorial from kirupa:
http://www.kirupa.com/developer/acti...dom_motion.htm
I'll only have one movieclip flying around the stage, but I need to restrict it from entering a certain area.
My stage is 600x450 and in the middle of the stage I want to put a text area that is approx 450x250 and I'll populate this with text from xml doc. But basically I don't want my flying object to go into the text area... so it either bounces off of or swerves away from it when it gets near it.
I'll probably make the boundaries larger than the stage so my object flys out of view every now and then.
Here is the code from the above tutorial:
Code:
onClipEvent (load) {
//data you may want to change
width = 700;
height = 550;
speed = Math.round(Math.random()*2)+1;
//initial positions
x = Math.random()*width;
y = Math.random()*height;
this._x = x;
this._y = y;
x_new = Math.random()*width;
y_new = Math.random()*height;
}
onClipEvent (enterFrame) {
//x movement
if (x_new>this._x) {
sign_x = 1;
} else {
sign_x = -1;
}
dx = Math.abs(x_new-this._x);
if ((dx>speed) || (dx<-speed)) {
this._x += sign_x*speed;
} else {
x_new = Math.random()*width;
}
//y movement
if (y_new>this._y) {
sign_y = 1;
} else {
sign_y = -1;
}
dy = Math.abs(y_new-this._y);
if ((dy>speed) || (dy<-speed)) {
this._y += sign_y*speed;
} else {
y_new = Math.random()*height;
}
}
I'd really appreciate any help with this.
Thanks
Mark
Kirupa Pop Up Tutorial?
hi, i am trying to use this tutorial
http://www.kirupa.com/developer/mx/centered_popup.htm
to produce a pop-up window showing a movie called noticeboard.swf
I have managed to achieve this in a test movie by changing one line of code (the target URL) which you can see if you click on the right hand button at this link
www.piscesswimschool.net/cpopup.html
The problem is when i try to use the same button with the same actions applied to it in my actual website...it does nothing at all!!you can see this by going to the "about us" page at
www.piscesswimschool.net/layout1.html
The only difference i can think of is that it is contained in a longer movie and i may not have pasted the actions that appear in frame 1 of the tutorial into the correct frame in the main website. Where should these actions go?? Or is the problem something else??
please help me, im going out of my mind.
Kirupa Tutorial ?
I followed the full website tutorial found it great _ But the only thing I didn't get was how did you inbedded the text in the buttons
EX when you presed the membership button __ the text --a membership is open to everyone pops up_ how was this done ??
On my page I assigned an action to the button(about)_ on (release) {
gotoAndStop("about");
}
Heres the thing i assigned the same script for a news button too
But when i test the movie you can press the about button and get info _ but the news button doesn't work
But if you refresh and click the news button first it works fine but the about button doesn't work -- what to do
another quick ?
On my site i have a porfolio button _ the page shall contian small tumbnails _ when clicked they inlarge _ Can I do all this in the same layer as my main frame or do I have to build it in a new layer or movie clip ????
Thanks for your time and help
Tutorial In Kirupa
hello m8s.. i wonder if i can do this tutorial in another way?
http://www.kirupa.com/developer/acti...entication.htm
the tutorial is about login and password trough flash. But to be a member, the tutorial maker have made a .php file to write in username etc... I wonder if it couldnt be done in flash??
Please Post !
Kirupa Tutorial Help
I'm having a hard time getting this tutorial to work for me. I'm new to the whole "component" feature in Flash and I need some help or clarification.
Here's the link to the tutorial I'm trying to complete:
http://www.kirupa.com/developer/mx/newsflasher.htm
Please help me if you can!
XML Tutorial On Www.kirupa.com
there's a great 40+ page tutorial here
http://www.kirupa.com/web/xml/index.htm
I would like a printable version of this. Is there any way I could get the document so I can print it and not have to go to every page and print. thanks
Kirupa Tutorial Help Plz
hi im building my first flash site and am trying to make my buttons make my text appear on the screen in a certian area, and im doing the "creating a full flash site" tutorial to learn it.
my problem is i dont understand..... i no when you publish you get your .swf file but how do you make the information you want to appear, a .swf file,
plz help a zamma
Modifying A Kirupa Tutorial
Hi,
Can someone please modify this tutorial (http://www.kirupa.com/developer/mx2004/transitions.htm) so that it does this:
one of the external swf's has a button in it that loads another external swf in a different area of the stage, so now there would be 2 external swf's displayed on stage. Then, when one of the main buttons is clicked, the exit animation of the 2nd swf is played, then the exit animation of the 1st swf is played, then the new external swf is loaded in the same spot that the 1st one was.
Thanks!
Help Needed On Kirupa Tutorial Re: XML
on the following Link http://www.kirupa.com/developer/flas...ml_as3_pg6.htm
in the section "Filtering Attribute Information"
Kirupa takes you through filtering by the ISBN number, these results include the XML tags as well could anybody advise me how i would eliminate them in this section:
function ParseBooks(bookInput:XML):void {
trace("XML Output");
trace("------------------------");
var authorList:XMLList = bookInput.Book.(@ISBN == "0743203178");
trace(authorList);
}
i beleive its using the .text(); function but i can't find where to put it.
also, in order to load this information into a dynamic text box do i just replace trace with the destination of my text box?
Thanks
Daniel Hodkinson
Request A Kirupa Tutorial?
How do I contact Kirupa?
I would like to request that kirupa adds a tutorial to his tutorial list. Its a buttons one and is a very nice effect. It can be seen at:
http://www.stellamccartney.com
It's the way the light yellow movieclip glides across the buttons from end to end and the way the text appears underneath.
If you know how I can do a request, please respond.
Thank you.
Kirupa Tutorial Problem?
I have been following claudio's tutorial on creationin a transition and preloader.
However for some reason my movie will not play the "opening" sequence so that the swf file behind the transition is visible.
I've included the file so hopefully someone could help me, please.
One think I have noticed is that the function command looks for "_root.section" and I don;t know if this is action script or if it is looking for a label?
thanks
Question About Tutorial In Kirupa.com
I am going through the tutorial in Flash MX under Basic in Kirupa.com. I came across "Creating Drop-down menu" and I am tried to download the unfinished field to working on, but after I finished download it and open it, it give me a message in Flash program "Unexpected Format". I did save it as "ddm.fla". Please help me. Thank you very much.
Kirupa Snow 2.0 Tutorial
How can I make the snow go rising and not falling, like bubbles ? (inverted)
This is the tut btw: http://www.kirupa.com/developer/mx2004/snow.htm
About Kirupa's XML In Flash Tutorial
URL: http://www.kirupa.com/web/xml/examples/portfolio.htm
Does anyone have a clue how I can edit the portfolio, so that I use text instead of thumbnails to list all my entries.
And, another thing. How can I get all entries (text) to be displayed in vertical direction?
Best Regards
Eirik Fjellaksel
Problem With Kirupa Tutorial
Hello
I am trying to make this kirupa tutorial work but am not having any luck
http://www.kirupa.com/developer/mx/photogallery.htm
I don't understand why it isn't working (when I run the script I don't see anything. just a blank screen, no pictures are loading. I am not getting an error path when opening the pics so I know that the path is correct)
the only line I changed was this one
Code:
from
this.pArray = ["image0.jpg", "image1.jpg", "image2.jpg", "image3.jpg", "image4.jpg", "image5.jpg", "image6.jpg", "image7.jpg", "image8.jpg", "image9.jpg"];
to
this.pArray = ["fruit0.jpg", "fruit1.jpg", "fruit2.jpg", "fruit3.jpg", "fruit4.jpg"];
the pictures in the animation folder are now named fruit0.jpg", "fruit1.jpg", "fruit2.jpg", "fruit3.jpg", "fruit4.jpg
what am I missing?
if I run the script as it is in the zip file(before I make the changes) all works fine.
I am puzzled...
Can anyone help me out?
thank you
bsw
Kirupa Tutorial Problem
I'm having trouble with the Loading random movies tutorial on Kirupa. Everything worked fine, however when the external movie was loaded, the animation was blown up by about 500%. How can I fix this problem?
Kirupa Authentication Tutorial Help
hey everyone,
I followed the kirupa authentication tutorial to the T and everything works great, except for the checklog function. my movie will not go to frame 2 or 3 yet the status window says you're in! Any ideas why this is??
Thanks in advance!
Snow > Kirupa Tutorial
The Flash MX 2004 Tutorial on Snow..
How do I invert the gravity so the snow goes Up?
likewise how do I slow the speed down on it.
thanks so much..
The movie parims are 648x486
Kirupa's Thumbnail Tutorial
Hey All,
I just got done with Kirupa's thumbnail gallery found here http://www.kirupa.com/developer/mx2004/thumbnails.htm and I havent figured out how to set up the xml or flash AS for making the thumbnails "clickable". He doesnt go into detail on how to do this in the tutorial although his tutorial clearly shows it. If anyone knows what needs to be done, please contact me or post here in this thread. Thanks,
Jonathan
Modifying A Kirupa Tutorial
Hi,
Can someone please modify this tutorial (http://www.kirupa.com/developer/mx2004/transitions.htm) so that it does this:
one of the external swf's has a button in it that loads another external swf in a different area of the stage, so now there would be 2 external swf's displayed on stage. Then, when one of the main buttons is clicked, the exit animation of the 2nd swf is played, then the exit animation of the 1st swf is played, then the new external swf is loaded in the same spot that the 1st one was.
Thanks!
Kirupa Scrollbar Tutorial
Hi there guys...
Im having a bit of a problem with the Flash MX scrollbar skinning tutorial from Phil Barker on the homepage: http://www.kirupa.com/developer/mx/s..._scrollbar.htm
Ive pretty much followed it step by step but some parts are really ambiguous, so i was wondering if anyone could give it a go and send me the .fla for me to work from, or if you have it lying around anywhere just send it to me (please lol)
Cheers...
Kirupa Tutorial Php5
http://www.kirupa.com/developer/flas...ets_flash8.htm
i'm trying to do this, but i got problems in setting the apacher and php5.0.
i think the problems is i my pc pre-installed iis from microsoft, which i have other set of localhost directory in the "Inetpub" folder.
anybody having the same problems as me?
please give me some guidelines..
thanks..
Kirupa's PHP Socket Tutorial
Link to the recent tutorial
Will this tutorial work on servers like this? I read through the tutorial and the author links to his own socket server. Do we have to pay big bucks for our own socket server or can a regular cheap host's server be converted to one?
Kirupa XML Slideshow Tutorial
Hi
I recently used the Kirupa XML Slideshow tutorial:
http://www.kirupa.com/developer/mx2004/xml_slideshow.htm
I really loved this. However I now have a need to include another feature. I need to create a fade out/fade transition between the images as it cycles through the XML. At present the image just dissapears and a new one fades in, I need a transition between the two. I have played with the script but to no avail.
If you have any suggestions or any snippets of code I could just drop in to achieve this.
Thanks again for you help. Your website is great and I use it a lot.
Thanks
Dave
Xml Gallery From Kirupa Tutorial
hi all. i've used the tutorial here for the photo gallery with scrolling thumbnail. everything works fine except the thumnails are aaaaaalllll the way to the right. they don't come up where they're supposed to. I'm looking at it and it's not even showing the thumbnails on the site... I don't know what's wrong. They show up on the swf file way to the right but they don't show at all on the site. Can someone tell me what do I need to do to get the thumbnails in place?
Below is the link to the site I'm working on click on "photo gallery"
http://www.africandancelady.com
stop();
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("pics.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._heig ht)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
Kirupa Tutorial Customiztion..
Hi all,
My question is regarding a tutorial on Kirupa website.The link to the tutorial is:
http://www.kirupa.com/developer/mx/infinite.htm
I just want to know how to change the speed of the moving menu.In fact,i want to make it still slower.Added to that,I do not want the scrolling to occur.By default,I want it to be static and not move anywhere.It should move only when I hover over the menu.
Also I was wondering if there is any way to reverse the direction of the scroll.What I mean by this is that currently, when I hover over the right portion of the menu,the menu tends to move from left to right.I want to change this & make it move from right to left. Similarly when I hover over the left portion of the menu,the menu tends to move from right to left.I want to change this & make it move from left to right.
Also I would like to know if there is anyway I can load images from external folder and not just embed in the movie clip itself.Basically Iam trying to create a scrolling Photo Gallery and would like to have the ease & functionality of being able to add images in a folder & let the scrolling menu update itself.I have heard that it is possible by using XML but I am a newbie and I dont know anything about it.
An early help in this regard is highly appreciated.
Kirupa Thumbnail Tutorial..
In Kirupa's tutorial on adding thumbnails to the gallery he mentions displaying them in a grid. Is this possible?
http://www.kirupa.com/developer/mx2004/thumbnails.htm
If, so could some one help me out a little please? lol
Cheers.
Kirupa Tutorial Problem
I just completed this tutorial on Kirupa:
http://www.kirupa.com/developer/mx20...otogallery.htm
I am getting 2 error messages pertaining to the code that was copied to the actions frame:
**Error** Scene=Scene 1, layer=action, frame=1, Line 79: Statement block must be terminated by '}'
function picture_num() {
**Error** Scene=Scene 1, layer=action, frame=1, Line 81: Syntax error.
pos_txt.text = current_pos+" / "+total;
Total ActionScript Errors: 2, Reported Errors: 2
I just copied this from the tutorial, so could this be a CS3 compatibility issue?
Using XML In Flash CS3/AS3 - Kirupa Tutorial
Hi guys,
Just going through and teaching myself some AS3 using the above tutorial and getting data from an XML file.
At a basic level im able to access the XML and then output it to a text field. Now Im trying to pull out all the Name fields, from the XML, of which in my sample there are 2.
When I do a trace() it outputs the 2 values Though when I attempt to spit them out to a text field I only get the last value printed in my text field.. Im assuming that the text field can only accept 1 value from the For Loop and each time the loops goes through it overwirtes the value in the field. Does this sound right?
Im using a For loop as below:
Code:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("http://wwwdev/_tools/parties_act.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseDivInfo(xmlData);
}
function ParseDivInfo(divInput:XML):void {
// Create new XML list
var PartyNameList:XMLList = divInput.DivisionInfo.PartyName;
for (var i:int = 0; i < PartyNameList.length(); i++)
{
var nameElement:XML = PartyNameList[i];
rawXML.text = nameElement;
trace(nameElement);
}
}
XML file
Code:
<divisions>
<DivisionInfo>
<ID>101</ID>
<Name>Canberra</Name>
<State>ACT</State>
<CandidateID>17614</CandidateID>
<CandidateName>Annette</CandidateName>
<CandidateSurname>ELLIS</CandidateSurname>
<PartyName>Australian Labor Party</PartyName>
<PartyAb>ALP</PartyAb>
</DivisionInfo>
<DivisionInfo>
<ID>102</ID>
<Name>Fraser</Name>
<State>ACT</State>
<CandidateID>17613</CandidateID>
<CandidateName>Bob</CandidateName>
<CandidateSurname>McMULLAN</CandidateSurname>
<PartyName>Liberal</PartyName>
<PartyAb>LP</PartyAb>
</DivisionInfo>
</divisions>
Kirupa Tutorial Problem
Hi! I've got a small problem w/ this tutorial:
http://www.kirupa.com/developer/flas...flash_site.htm
Better, I've got no problem doing it, but the point is: stylesheets show fine in flash preview, but font-family doesn't works when I load my page in some browser - I always see a sort of Times, instead of tahoma. NOTE: SAME PROBLEM WITH DOWNLOADED TUTORIAL FILE, so It seems I didn't do any mistake.
Can you help me plase?
Tkz!
How Can I Add Scrollpane To Kirupa's MP3 Tutorial?
Hi There,
I'm guessing I am not the first to ask this nor am I confident I am asking it in the correct location. Please don't be mad at my rookie mistakes. I tried get this answer on my own but either I am not sure where to look or what I am looking for but I can not do this on my own. Anyone's help would be greatly appreciated. I used the tutorial below to a tee and if I only had 4 songs I would be set. But I have 12 so they over flow the movieclip's dimensions. I think a scroll pane is the fix but I can't get it to work. Below is a link to the tutorial for those not familiar.
http://www.kirupa.com/web/xml/examples/MP3playlist.htm
Below is currently what I have in AC. I have not included any scrollpane attemps nothing seemed to work so I figured it would just be more trouble than it's worth.
XMLNode.prototype.moveBefore = function(beforeNode){
if (this == beforeNode) return (0);
beforeNode.parentNode.insertBefore( this.cloneNode(true), beforeNode);
this.removeNode();
}
Clamp = function(min, n, max){
if (n<min) return min;
if (n>max) return max;
return n;
}
var song_spacing = 20;
var over_node;
GenerateSongListing = function(playlist_xml, target_mc){
target_mc = target_mc.createEmptyMovieClip("list_mc",1);
var songs = playlist_xml.firstChild.childNodes;
for (var i=0; i<songs.length; i++){
var song_mc = target_mc.attachMovie("song", "song"+i, i);
song_mc._y = i*song_spacing;
song_mc.node = songs[i];
song_mc.title_txt.text = songs[i].attributes.title;
song_mc.moved = false;
song_mc.select_btn.onPress = function(){
this._parent.onMouseMove = function(){
if (!this.moved){
dragline_mc._visible = true;
dragline_mc._y = playlist_mc._y + this._y;
highlight_mc._visible = true;
highlight_mc._y = playlist_mc._y + this._y;
this.moved = true;
}
}
}
song_mc.select_btn.onDragOver = function(){
over_node = this._parent.node;
dragline_mc._y = playlist_mc._y + this._parent._y;
}
song_mc.onMouseUp = function(){
if (this.onMouseMove){
delete this.onMouseMove;
dragline_mc._visible = false;
highlight_mc._visible = false;
if (this.moved){
this.node.moveBefore(over_node);
GenerateSongListing(playlist_xml, playlist_mc);
}
}
}
song_mc.select_btn.onRelease = function(){
if (!this._parent.moved){
SetSong(this._parent.node);
}
}
}
}
var playlist_xml = new XML();
playlist_xml.ignoreWhite = true;
playlist_xml.onLoad = function(success){
if (success){
GenerateSongListing(this, playlist_mc);
}else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
playlist_xml.load("mp3.xml");
dragline_mc._visible = false;
highlight_mc._visible = false;
show_mc._visible = false;
show_btn.onRelease = function(){
show_mc._visible = true;
var songs = playlist_xml.firstChild.childNodes;
show_mc.display_txt.text = playlist_xml;
show_mc.display_txt.text = show_mc.display_txt.text.split(">").join(">
");
}
Any help to get my mp3 playlist to stay within the movieclips dimensions and be able to scroll from song to song would be great.
And if it's not too much trouble what do I change to eliminate the ability for the user to rearrange the songs? And how do I get the play list to play all the way through without stopping at the end of each song?
I promise I have spent weeks trying to find these answers myself. No one seems to want to help. I'm hoping someone out there will.
Thanks in advance.
Kirupa Tutorial Good?
Any comments abt Kirupa tutorials??
I had tried few of Kirupa tutorials and I found the tutorial is not tht complete or not user friendly.
I prefer more tutorial on the picture tht enable us to follow step by step rather than looking at lots of explanation tht can't help us to see the outcome.
I did follow the instructions, but in the end the output is totally difffent frm the tutorial one because it lacks of guideline.
I am very happy with the provided tutorials but I am very disappointed when I can't make it workable.
And, sometimes the ready made flash file enabled us to download also made me confuse. Don't knw how they make it n jz blindly follow the instructions in order to get the output.
When ppl ask you how to do this/tht part n your answer is "I dunno, I downloaded it frm Kirupa tutorial". ...
May b it's my problems to understand the tutorials but I jz want to share with you all my opinion abt the Kirupa tutorials.
Pls do not hesitate to rp and share with us ur comments, thanks!!
Kirupa Tutorial Clock
I just finished the clock tutorial on this site and placed it on my web site. the clock says "am" although it's a 24 hour clock. right now it displays 13:5:24 am (one o'clock, five minutes and twenty-four secs). can somebody tell me how to fix this?
Problem With Kirupa Tutorial
Hi everyone,
I'm trying to adjust a kirupa tutorial so it will fit my needs.
The tutorial I'm talking about can be found here:
http://www.kirupa.com/developer/flash8/slidingMenu5.htm
What I'm trying to do is make the colors move not only horizontal but vertical as wel.
The problem is that it only works for one direction, horizontal or vertical. How can I combine these to movements?
Code:
var currentPositionX:Number = contentHold.content1._x;
var currentPositionY:Number = contentHold.content1._y;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {
if (startFlag == false) {
startFlag = true;
var finalDestinationX:Number = input._x;
var distanceMovedX:Number = 0;
var distanceToMoveX:Number = Math.abs(finalDestinationX-currentPositionX);
var finalSpeed:Number = .3;
var currentSpeedX:Number = 0;
var dirX:Number = 1;
if (currentPositionX<=finalDestinationX) {
dirX = -1;
} else if (currentPositionX>finalDestinationX) {
dirX = 1;
}
var finalDestinationY:Number = inputY._y;
var distanceMovedY:Number = 0;
var distanceToMoveY:Number = Math.abs(finalDestinationY-currentPositionY);
var finalSpeedY:Number = .3;
var currentSpeedY:Number = 0;
var dirY:Number = 1;
if (currentPositionY<=finalDestinationY) {
dirY = -1;
} else if (currentPositionY>finalDestinationY) {
dirY = 1;
}
this.onEnterFrame = function() {
currentSpeedY = Math.round((distanceToMoveY-distanceMovedY+1)*finalSpeedY);
currentSpeedX = Math.round((distanceToMoveX-distanceMovedX+1)*finalSpeed);
distanceMovedY += currentSpeedY;
distanceMovedX += currentSpeedX;
contentHold._y += dirY*currentSpeedY;
contentHold._x += dirX*currentSpeedX;
if (Math.abs(distanceMovedX-distanceToMoveX)<=1) {
contentHold._x = maskMovie._x-currentPositionX+dirX*distanceToMoveX;
currentPositionX = input._x;
startFlag = false;
delete this.onEnterFrame;
}
};
}
};
b1.onRelease = function() {
menuSlide(contentHold.content1);
};
b2.onRelease = function() {
menuSlide(contentHold.content2);
};
b3.onRelease = function() {
menuSlide(contentHold.content3);
};
b4.onRelease = function() {
menuSlide(contentHold.content4);
};
b5.onRelease = function() {
menuSlide(contentHold.content5);
};
b6.onRelease = function() {
menuSlide(contentHold.content6);
};
Request A Kirupa Tutorial?
How do I contact Kirupa?
I would like to request that kirupa adds a tutorial to his tutorial list. Its a buttons one and is a very nice effect. It can be seen at:
http://www.stellamccartney.com
It's the way the light yellow movieclip glides across the buttons from end to end and the way the text appears underneath.
If you know how I can do a request, please respond.
Thank you.
Kirupa Tutorial Problem?
I have been following claudio's tutorial on creationin a transition and preloader.
However for some reason my movie will not play the "opening" sequence so that the swf file behind the transition is visible.
I've included the file so hopefully someone could help me, please.
One think I have noticed is that the function command looks for "_root.section" and I don;t know if this is action script or if it is looking for a label?
thanks
|