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




Trouble With 1st Kirupa Flash 8 Tween Tutorial



Hi,

I'm on a Mac and a Flash MX 2004 user. I attempted to do Kirupa's very basic animation tweening tutorial to get myself going with Flash 8, but I cannot get it to work.

The motion works fine, but when I introduced the alpha part, it started behaving erratically. It just won't fade IN.

I am familiar and comfortable with animation tweens involving motion and fades in MX 2004...

I tried just doing a fade in for a single letter, not even inside a movie clip (as the tutorial has you do), and didn't use motion -- just a fade in: Can't even get that to work.

Any ideas? Some silly thing I overlooked??

Thanks!

SL



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 03-03-2006, 11:48 AM


View Complete Forum Thread with Replies

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

Trouble With Pop Up Window From Kirupa Tutorial
I have a pop window in a site that has worked fine until recently when I updated the swf file and changed the player to Flash PLayer 8. Now it will not launch the window. I can't use the Player 5 setting because it limits some rollovers that I have in a upper navigation.

The following code is for the Javascript which is in the first action keyframe and the second code is attached to the button to launch the window:

First code:

Stage.align = "C";
// *** Stop the stage from scaling with the browser window.
Stage.scaleMode = "noScale";

_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL("javascript:window.open('"+url+"','"+winNam e+"','"+"width="+w+",height="+h+",toolbar="+tool ba r+",location="+location+",directories="+director ie s+",status="+status+",menubar="+menubar+",scroll ba rs="+scrollbars+",resizable="+resizable+",top='+( ( screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"');void(0);");
};
Second Code:

on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://www.imarkmolding.com/iMARK_email.swf";
target_winName = "iMARK_email";
width = 640;
height = 544;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}




I am assuming there must be someway to get this to launch using Flash PLayer 8 or higher...is'nt there?

Any guidance would be greatly appreciated....thanks!!

Tween Class Trouble (based On The Tutorial)
Hey hey hey.

I was gonna have a fiddle with this tutorial http://www.kirupa.com/developer/actionscript/tween.htm
so I downloaded, unzipped, saved and published it. I didn't have a chance to fiddle with anything and it's already broken! I get this:

**Error** Scene=Scene 1, layer=actions, frame=1:Line 5: There is no property with the name 'onMotionFinished'.
xScaleT.onMotionFinished = function() {

**Error** Scene=Scene 1, layer=actions, frame=1:Line 8: There is no property with the name 'onMotionFinished'.
xPosT.onMotionFinished = function() {

Total ActionScript Errors: 2 Reported Errors: 2


Any ideas why guys? Cheers in advance.

<"))))><

Edit: MX04 by the way.

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

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>

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

Problems With Kirupa Php/flash Tutorial
Hi,

I have downloaded the tutorial Flash-Based Email Form Using PHP
from this site but I have problems sending the information from the .swf fields (name, message and email) to my php page. All I get is an email forwarded my mail adress but there are no information included.

The code: $_POST should be global and thus sending the information to the php site. I don´t get it. All I have changed is the mail adress in the php.

Any suggestions ?

Best regards

This Kirupa Tutorial Not Working In Flash 8
http://www.kirupa.com/developer/acti...t/dragdrop.htm
this tutorial is not working in flash 8 I can drag the objects but when I am dropping the object on target target is not changing color . Can anybody suggest bwhai will be the new script???

Help With XML/Flash Gallery - Kirupa Tutorial
I've been working through this tutorial here: http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

Its a nifty little gallery and i'm going to utilise it but i have hit a little stump regarding displaying the images. The images in this tutorial all appear to be 300 x 200. I'm wanting to display (for example) 5 images all of different size. Thing is, if i go into the XML file and change the locations of the images to bigger than that of 300 x 200 then it only displays a fraction of the image i have changed it too.

How can i make it so that the images (varying in widths and height) will all display as their original sizes?

I can paste some AS code if you need to have a look.

P.S - if i adjust the size of the MC that displays the images this seems to display the fraction of the larger image, but at a zoomed in size.

Thanks all.

Problems With Kirupa Php/flash Tutorial
Hi,

I have downloaded the tutorial Flash-Based Email Form Using PHP
from this site but I have problems sending the information from the .swf fields (name, message and email) to my php page. All I get is an email forwarded my mail adress but there are no information included.

The code: $_POST should be global and thus sending the information to the php site. I don´t get it. All I have changed is the mail adress in the php.

Any suggestions ?

Best regards

Kirupa Tutorial Flash/PHP Form But Add Checkbox?
Hello All,
I have used much of the resources on kirupa.com but this is my first post here. basically i am clueless. I have gone through threads, even looked at the components tutorial here, and i'm a lost as ever.

I have set a form exactly like the perfectly simple Flash based Email form using PHP tutorial but have added input fields to 8, (which was successful, i might add. Didn't I feel like I had somewhat of a clue then). Now i wish to add two check boxes. i have tried to assign variables to the checkbox's states with this code and now I am not getting the email. Did I depart to much from Kirupa's tutorial with the simple on release loadVariables and onclip(data)? Is my PHP the problem? Am i assigning variables correctly to the true or false states of the checkboxes?

Thanks I'd really appreciate some help since it's almost 1:30 AM in sweden right now!



PHP Code:



on (release){ 
form = new LoadVars(); 
form.firma = ""; 
form.navn = ""; 
form.stilling = ""; 
form.adresseOne = ""; 
form.adresseTwo = ""; 
form.telefon = ""; 
form.email = ""; 
form.komentar = ""; 
form.jegOnsker = value; 
form.kontaktMig = value; 

myArray = [jegOnsker,kontaktMig]; 
for (var i in myArray) { 
myArray[i].setChangeHandler("myHandler"); 

function myHandler (component) { 
value = component._name+" = "+component.getValue(); 
trace(value); 


function submit() { 
form.loadVariables("kontakt.php","POST"); 







PHP Code:



<? 
// kontakt.php 

$message = " 

--------------------------------- 
$firma, 
$navn, 
$stilling, 
$adresse1, 
$adresse2, 
$telefon, 
($email) 

--------------------------------- 
kommentar: $komentar 

jegOnsker: $jegOnsker 
kontaktMig: $kontaktMig"; 

$sendTo = "mailexample@mail.com"; 
$subject = "website kommentar"; 

$headers = "From: " . $_POST["navn"]; 
$headers .= "<" . $_POST["email"] .">
"; 
$headers .= "Reply-To: " . $_POST["email"]; 

mail($sendTo, $subject, $message, $headers); 

?>

Kirupa's Flash/PHP Email Form Tutorial
I was trying out Kirupa's Flash/PHP email form tutorial:
http://www.kirupa.com/developer/acti..._php_email.htm

However.. the tutorial uses input text fields. Ech textfield has a 'var:' in the property inspector where I am supposed to name each field in order to send the input to EMAIL.PHP.

Now I would like to make the same form, but using Flash MX 2004 built-in components instead of the standard input text fields. How do I make it work so that the input in each field is sent to the PHP file? I can't find the 'var' option anywhere in the component inspector nor in the properties.

Any help would be appreciated. I'm a complete newbie at Flash and Actionscript, so please help me out.

Kirupa's Full Flash Site Tutorial?
Hi I have Flash 5 and when I tried to unzip the "Full site.zip"
file in "Creating a full flash site tutorial" I keep getting uexpected file format for the .FLA file. None of them seem to work/open for me.

I really want to try this tutorial and learn a few tips but the zip file does not work....

Full Site Tutorial

Can anyone please help? Does the zip file work for you?

Thanks

Sahiba

Photo Gallery Using XML And Flash Tutorial By Kirupa
ok this is the deal.. i did the tutorial on here of the photo gallery using xml with thumbnails, and i can't get my pictures to be centered. Im in desperate need of some help.. to see what i mean check out this link http://www.priscillamarie.com/private/photos.html

the FLA is too big so if you think you can help i will email it too you....



Kurve

Hi Is There Any Rights To Use KIRUPA's Flash Tutorial In Our Site
I am going to do a photo gallery in flash and xml using the example in KIRUPA's tutorial. To use the Flash gallery code do i need to get any right from u... Pls. any one reply me. I don't know to whom i want to ask...

Waiting for reply

Help With Kirupa Tutorial...Proper Flash Structure
Hello,

I was going over a tutorial on the site called Proper Flash Structure. It creates a menu/nav from xml files. I notice that it loads the same image for the background of each button. Is there a way to load a specific different image for each button?

I am looking to make a thumb nav of products, with the image, text, and link all matching up. Right now, the text and link match up, but the image for each button is off.

If you are familiar with this tutorial, any help would be greatly appreciated.

Thanks!

You can find the tutorial here....
http://www.kirupa.com/developer/flas...flash_site.htm

{F8} Flash Newbie Vrs Kirupa Hit Test Tutorial
Hi there!
I've just used the hit test tutorial for my scrolling gallery, now I want to add roll over buttons on the sides to reverse the movement of the movie.
Here is the hit test script:
onClipEvent (enterFrame)

{ move = this._x;
if (number == 1) {
this._x = move-1;
}
if (number ==2) {
this._x = move+1;
}


if (this.b, hitTest(_root.right1)) {
number = 1;
}
if (this.a, hitTest(_root.left1)) {
number = 2;
}
}

and here is the button...
on (rollOver) {
}
I have no idea what to put inside! something saying if this = ._x +1; then make it do this._x - 1; and vise versa....
Can someone let me know or what tutorial will teach me how to write it?
Thanks you!

Kirupa Tutorial On Php Socket Server And Flash 8
Hi,
I was reading the tutorial, which gave information on getting the socket server running with a .bat file; does anyone know a way to get it running on linux? (linux doesn't run .bat files)

I read about shell scripts, but I don't quite understand how to get it running.

Thanks,
-Danny

Kirupa Drag & Drop Tutorial For Flash 8
I've used the Kirupa Drag/Drop tutorial, found here.

When I publish a .swf that utilizes the AS used in the above tutorial for Flash Player 8, it does not work. However, when I publish it for Flash player 5, it works perfectly.

Is there a particular reason for this? How could I have similar drag/drop functionality for a Flash 8 player?

Thanks in advance.

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!

Kirupa's Full Flash Site Tutorial
I'm confused on how those circles are moving in the back. Could someone explain this to me? Thanks.

AS 2 Kirupa Text Flash/CSS Tutorial Query
Hello

I am trying to follow the Kirupa tutorial here:

http://www.kirupa.com/developer/mx2004/css.htm

I have a dynamic text box with multiline set to no wrap and the dynamic text box with an instance name of output. I have removed the www.kirupa link to the flash.css in the tutorial and placed a file called flash.css in the same directory as everything else on my server.

So I have:


Code:
var format = new TextField.StyleSheet();
var path = "flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p><br><p class='two'>The quick Kirupa jumps over the lazy dog.</p><br><p class='three'>The quick Kirupa jumps over the lazy dog.</p><br><p class='four'>The quick Kirupa jumps over the lazy dog.</p>";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
output.styleSheet = format;
output.text = quick;
} else {
output.text = "Error loading CSS file!";
}
};
I am using the AS as posted in the tutorial, but can't see any text at all. I have the <> HTML button pressed down.

What might be wrong with this?

Thanks.

Steve

Kirupa Tutorial Flash/PHP Form But Add Checkbox?
Hello All,
I have used much of the resources on kirupa.com but this is my first post here. basically i am clueless. I have gone through threads, even looked at the components tutorial here, and i'm a lost as ever.

I have set a form exactly like the perfectly simple Flash based Email form using PHP tutorial but have added input fields to 8, (which was successful, i might add. Didn't I feel like I had somewhat of a clue then). Now i wish to add two check boxes. i have tried to assign variables to the checkbox's states with this code and now I am not getting the email. Did I depart to much from Kirupa's tutorial with the simple on release loadVariables and onclip(data)? Is my PHP the problem? Am i assigning variables correctly to the true or false states of the checkboxes?

Thanks I'd really appreciate some help since it's almost 1:30 AM in sweden right now!



PHP Code:



on (release){ 
form = new LoadVars(); 
form.firma = ""; 
form.navn = ""; 
form.stilling = ""; 
form.adresseOne = ""; 
form.adresseTwo = ""; 
form.telefon = ""; 
form.email = ""; 
form.komentar = ""; 
form.jegOnsker = value; 
form.kontaktMig = value; 

myArray = [jegOnsker,kontaktMig]; 
for (var i in myArray) { 
myArray[i].setChangeHandler("myHandler"); 

function myHandler (component) { 
value = component._name+" = "+component.getValue(); 
trace(value); 


function submit() { 
form.loadVariables("kontakt.php","POST"); 







PHP Code:



<? 
// kontakt.php 

$message = " 

--------------------------------- 
$firma, 
$navn, 
$stilling, 
$adresse1, 
$adresse2, 
$telefon, 
($email) 

--------------------------------- 
kommentar: $komentar 

jegOnsker: $jegOnsker 
kontaktMig: $kontaktMig"; 

$sendTo = "mailexample@mail.com"; 
$subject = "website kommentar"; 

$headers = "From: " . $_POST["navn"]; 
$headers .= "<" . $_POST["email"] .">
"; 
$headers .= "Reply-To: " . $_POST["email"]; 

mail($sendTo, $subject, $message, $headers); 

?>

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?

Cannot Load Content (mixing Kirupa Tutorial And Flash PhotoViewer Model)
Cannot load content (mixing Kirupa tutorial and Flash PhotoViewer model)

I would like to load a swf file into another one...
like today I read here http://www.kirupa.com/developer/mx/full_site.htm

I would like to load photo viewer Model of Flash MX ... but even if in its preview it works, when I load it like a flash movie... it does not work well...

Can some one explain me where is the error ???

Thanks,
Marco

Cannot Load Content (mixing Kirupa Tutorial And Flash PhotoViewer Model)
Cannot load content (mixing Kirupa tutorial and Flash PhotoViewer model)

I would like to load a swf file into another one...
like today I read here http://www.kirupa.com/developer/mx/full_site.htm

I would like to load photo viewer Model of Flash MX ... but even if in its preview it works, when I load it like a flash movie... it does not work well...

Can some one explain me where is the error ???

Thanks,
Marco

Kirupa Flash And Php Tutorial>>does It Work In Flash 8?
hi guys! good day. i've been doing my research and been working on my mail contact form for a client's website, but the thing is, there are so many tutorials and source files available, and i'm not sure which ones are working FOR FLASH 8. i've been searching the net for contact forms that work with flash 8, but most are only for flash mx i think.

anyway.. my question is: have you guys ever tried the kirupa flash-php contact form tutorial on flash 8? i've tried this on phpnet.us and bravenet.com, i haven't received any emails. so i suspect that it's the server's mistake. i am currently using orgfree.com, because the php mail is enabled automatically on all their servers. soo.... any of you tried using the flash-php contact form tute of kirupa? here's the link:

http://www.kirupa.com/developer/acti..._php_email.htm

please enlighten me on this. i've been searching the forums for quite sometime now. hehe. anyone? or are there any of you who's willing to give me source files for flash 8 contact form? thanks in advance.

Greg

Having Trouble With Tween Navigation (New To Flash)
http://douglas.mackenzie.natcoll.net...lash/index.swf
http://douglas.mackenzie.natcoll.net...lash/index.fla
is the link to the flash file.

The problem I am having is that it only tweens once. I wanted to be able to go back and forth - It just doesn't seem to respond after the first click.

Also it always goes the same way no matter where it's clicked. Can anyone work this out?

If anyone has time to read over this code it would be greatly appreciated.

Thanks


Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

var xTween:Tween;
var yTween:Tween;

var castMc:cast = new cast;
addChild(castMc);
castMc.x = -580;
castMc.y = 145;
//castMc.buttonMode = true;

var trailerMc:trailer = new trailer;
addChild(trailerMc);
trailerMc.x = 120;
trailerMc.y = 145;
//trailerMc.buttonMode = true;

var datesMc:dates = new dates;
addChild(datesMc);
datesMc.x = 820;
datesMc.y = 145;
//datesMc.buttonMode = true;

castMc.addEventListener(MouseEvent.CLICK, navigate);
trailerMc.addEventListener(MouseEvent.CLICK, navigate);
datesMc.addEventListener(MouseEvent.CLICK, navigate);

var castXposFarLeft:Number = -1280;
var castYposFarLeft:Number = 145;

var castXposLeft:Number = -580;
var castYposLeft:Number = 145;

var castXposMiddle:Number = 120;
var castYposMiddle:Number = 145;

var trailerXposLeft:Number = -580;
var trailerYposLeft:Number = 145;

var trailerXposMiddle:Number = 120;
var trailerYposMiddle:Number = 145;

var trailerXposRight:Number = 820;
var trailerYposRight:Number = 145;

var datesXposFarRight:Number = 1280;
var datesYposFarRight:Number = 145;

var datesXposRight:Number = 820;
var datesYposRight:Number = 145;

var datesXposMiddle:Number = 120;
var datesYposMiddle:Number = 145;

function navigate(event:MouseEvent):void
{
if(event.currentTarget.name == "castMc")
{
setTweenCast(castXposMiddle, castYposMiddle);
setTweenTrailer(trailerXposRight, trailerYposRight);
setTweenDates(datesXposFarRight, datesYposFarRight);
}
else if(event.currentTarget.name == "trailerMc")
{
setTweenCast(castXposLeft, castYposLeft);
setTweenTrailer(trailerXposMiddle, trailerYposMiddle);
setTweenDates(datesXposRight, datesYposRight);
}
else(event.currentTarget.name == "datesMc")
{
setTweenCast(castXposFarLeft, castYposFarLeft);
setTweenTrailer(trailerXposLeft, trailerYposLeft);
setTweenDates(datesXposMiddle, datesYposMiddle);
}

//trace(event.currentTarget.name);
}

function setTweenDates(tweenX:Number, tweenY:Number):void
{
xTween = new Tween(datesMc, "x", Strong.easeOut, datesMc.x, 0, 4, true);
yTween = new Tween(datesMc, "y", Strong.easeOut, datesMc.y, 145, 4, true);

xTween.begin = datesMc.x;
yTween.begin = datesMc.y;

xTween.finish = tweenX;
yTween.finish = tweenY;
xTween.start();
yTween.start();
}

function setTweenCast(tweenX:Number, tweenY:Number):void
{
xTween = new Tween(castMc, "x", Strong.easeOut, castMc.x, 0, 4, true);
yTween = new Tween(castMc, "y", Strong.easeOut, castMc.y, 145, 4, true);

xTween.begin = castMc.x;
yTween.begin = castMc.y;

xTween.finish = tweenX;
yTween.finish = tweenY;
xTween.start();
yTween.start();
}

function setTweenTrailer(tweenX:Number, tweenY:Number):void
{
xTween = new Tween(trailerMc, "x", Strong.easeOut, trailerMc.x, 0, 4, true);
yTween = new Tween(trailerMc, "y", Strong.easeOut, trailerMc.y, 145, 4, true);

xTween.begin = trailerMc.x;
yTween.begin = trailerMc.y;

xTween.finish = tweenX;
yTween.finish = tweenY;
xTween.start();
yTween.start();
}

USING FLASH MYSQL PHP TUTORIAL TROUBLE
I thought I might avail of your offer for some help on your tutorial "Use Flash with PHP and mySQL"http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm

I am not returning any text from my database into my textfield (with the variable name 'content') and wonder if you can locate anything obvious in the process I have done.

I am using phpmyadmin remotely

my mySQL database table is called 'files' and my database is called 'myweb318235_colum'
I have two files in the table

Host: lalalalala.com
Database : bababababa_baba
Generation Time: Jan 03, 2005 at 10:28 PM
Generated by: phpMyAdmin 2.5.4
SQL-query: SELECT * FROM `files` LIMIT 0, 30;

filename content testfile [BLOB - 36 Bytes] testfile2 [BLOB - 61 Bytes]




my flash files are called bigphpmysqltest.fla and bigphpmysqltest.swf
in bigphpmysqltest.swf I have the dynamic text field with variable = content which is saved amovieclip with this actionscript

onClipEvent (load) {
loadVariables("read.php?file=testfile", this, "GET");
}



the php file is called 'read.php'

<?php

if($file) {
$link = mysql_connect("hostname","username","password","da tabasename") or die ("didn't connect to mysql");

$query = "SELECT content FROM files WHERE filename='$file'";
$result = mysql_query($query)
or die("<b>error</b>: failed to execute query <i>$query</i>");

mysql_close($link);

$desiredContent = mysql_fetch_array($result, MYSQL_ASSOC);

mysql_free_result($result);

print "content=$desiredContent[content]";
?>



files is the table in the database


It just doesn't work unfortunately - I have been intouch to my server people to check if my register_globals was on but they couldn't help.
Unfortunately I am a very novice beginner in this and if nothing is obvious in the above, how would I use $HTTP_POST_VARS into the php file?

I would so appreciate your help!

Thanks in advance.

CollyK

Trouble With The Flash Login Tutorial
Hi!

I've tryed to make an adaptation of the Login tutorial, but I've a few problems with it. First, it works all right on my testing server (my PC) but when I uploaded it to the site it didn't work as it supposed to. As far as I could see, the login movie works fine until it's time to load the URL I wanted to load as a result. The browser looks like cycled into a forever connecting-to and stop without letting me do anything but closing it. But when I restart the browser the sesion is already started.

The code:
In a frame on the main time line:
user.restrict="a-zA-Z0-9";
pass.restrict="a-zA-Z0-9";
Selection.setFocus(userinput);
status="Introdusca los datos de usuario";
this.onEnterFrame = function ()
{
if(_root.checklog.substr(0,1) == '3'){
getURL("goodlogin.php", "mainFrame"); //<-- Here looks to be the problem
}
if(_root.checklog.substr(0,1) == '2'){
status = "Usuario o contraseña incorrectos. Vuelva a intentar nuevamente.";
}
}

ON THE BUTTON:
on (release, keyPress "<Enter>") {
if ((user != "") && (pass != "")) {
status = "Revisando acceso - Espere porfavor...";
loadVariablesNum("mewlogin.php", 0, "POST");
}
}

Now I'm getting tired of trying to figure out whats happening here: I've created the page with Dreamweaver, and it works all right when I use Mozilla, geko, Netscape, Konkeror, blablabla... but with explorer the same login movie is not displayed. The publish settings are the same as the other movies in the site, but it is the only one that doesn't work at all on explorer.

Trouble With The PHP/MySQL/Flash Tutorial
The one found here is giving me grief!

I've modified the code to work with Pear, since I had it installed. However, I can't get the code to work. The consolation is I can't get the original code to work, either.

You can find the original code's results here:

The PHP file

The Swf File

The HTML page

My modigied versions are here:

The PHP file (You can see it is connecting to the database and recovering the data)

The SWF file

The HTML page (obviously just as blank as the SWF)

Since neither one works, I'm going to assume (for the moment) that the problem lies in the implementation of my SWF somewhere. Anyone have any ideas whatsoever?

Thanks.
P.S Using Flash MX 2004

USING FLASH MYSQL PHP TUTORIAL TROUBLE
I thought I might avail of your offer for some help on your tutorial "Use Flash with PHP and mySQL"http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm

I am not returning any text from my database into my textfield (with the variable name 'content') and wonder if you can locate anything obvious in the process I have done.

I am using phpmyadmin remotely

my mySQL database table is called 'files' and my database is called 'myweb318235_colum'
I have two files in the table

Host: lalalalala.com
Database : bababababa_baba
Generation Time: Jan 03, 2005 at 10:28 PM
Generated by: phpMyAdmin 2.5.4
SQL-query: SELECT * FROM `files` LIMIT 0, 30;

filename content testfile [BLOB - 36 Bytes] testfile2 [BLOB - 61 Bytes]




my flash files are called bigphpmysqltest.fla and bigphpmysqltest.swf
in bigphpmysqltest.swf I have the dynamic text field with variable = content which is saved amovieclip with this actionscript

onClipEvent (load) {
loadVariables("read.php?file=testfile", this, "GET");
}



the php file is called 'read.php'

<?php

if($file) {
$link = mysql_connect("hostname","username","password","da tabasename") or die ("didn't connect to mysql");

$query = "SELECT content FROM files WHERE filename='$file'";
$result = mysql_query($query)
or die("<b>error</b>: failed to execute query <i>$query</i>");

mysql_close($link);

$desiredContent = mysql_fetch_array($result, MYSQL_ASSOC);

mysql_free_result($result);

print "content=$desiredContent[content]";
?>



files is the table in the database


It just doesn't work unfortunately - I have been intouch to my server people to check if my register_globals was on but they couldn't help.
Unfortunately I am a very novice beginner in this and if nothing is obvious in the above, how would I use $HTTP_POST_VARS into the php file?

I would so appreciate your help!

Thanks in advance.

CollyK

Trouble With The Flash Login Tutorial
Hi!

I've tryed to make an adaptation of the Login tutorial, but I've a few problems with it. First, it works all right on my testing server (my PC) but when I uploaded it to the site it didn't work as it supposed to. As far as I could see, the login movie works fine until it's time to load the URL I wanted to load as a result. The browser looks like cycled into a forever connecting-to and stop without letting me do anything but closing it. But when I restart the browser the sesion is already started.

The code:
In a frame on the main time line:
user.restrict="a-zA-Z0-9";
pass.restrict="a-zA-Z0-9";
Selection.setFocus(userinput);
status="Introdusca los datos de usuario";
this.onEnterFrame = function ()
{
if(_root.checklog.substr(0,1) == '3'){
getURL("goodlogin.php", "mainFrame"); //<-- Here looks to be the problem
}
if(_root.checklog.substr(0,1) == '2'){
status = "Usuario o contraseña incorrectos. Vuelva a intentar nuevamente.";
}
}

ON THE BUTTON:
on (release, keyPress "<Enter>") {
if ((user != "") && (pass != "")) {
status = "Revisando acceso - Espere porfavor...";
loadVariablesNum("mewlogin.php", 0, "POST");
}
}

Now I'm getting tired of trying to figure out whats happening here: I've created the page with Dreamweaver, and it works all right when I use Mozilla, geko, Netscape, Konkeror, blablabla... but with explorer the same login movie is not displayed. The publish settings are the same as the other movies in the site, but it is the only one that doesn't work at all on explorer.

Trouble With Kirupa Preloader Component
Hiya,

I've implemented the Kirupa preloader component found at this page:
http://www.kirupa.com/developer/mx/preloader_component.htm

Several folks at my company have complained that the file stops loading at 171kb or 311kb or somewhere inbetween. The file is a total of 388kb.

I've used this component before and never had trouble. Has anyone else? What can I do to try to figure out what the problem is?

Thanks for any insight you may have.

Flash Form+php(kirupa Tutorial)/messages Sent By Form Show Strange Characters
Flash form+php(kirupa tutorial)/messages sent by form show strange characters - uncorrect stressing for latin languages

I tested flash + php form (http://www.kirupa.com/developer/act...h_php_email.htm) , and noticed message field does not send messages correctly when words stressing is needed (á à , é , í , ó , ão ) ;
I received strange characters when typed stressed words :

á é i ó u ão à pão cão árvore ;

what has to be changed on the code to allow stressing ??

cheers

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.

Can Anyone Add To This Kirupa Tutorial?
The tutorial here is great but does anyone know how to make this work but only when you're mouse is within a certain distance of the that MC?

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

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