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




Not Working From Xml?



Hey all, I'm having a weird issue. I'm loading in text from an xml file and the text has newline characters "" in it. However, when the text is loaded into the textbox in my application, it doesn't insert a newline, instead it actually shows up as "". Anyone know how to get around this?

If I do something like:


Code:
var str:String = "hello World.";
tbox_txt.text = str;
It comes out fine with "hello" and "World" being on separate lines, but if loaded in from an xml file I get "hello World." in my textbox. That makes me a saaad panda.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 11-20-2007, 01:53 PM


View Complete Forum Thread with Replies

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

Flash MX TabIndex Only Working With Text Fields, Movies And Buttons Not Working :(
hey, has anyone heard of this, is it a known bug, or am i doing something wrong?

im using the following code to tab index a page, with text fields, buttons and movies that i would like to highlight to the visitor.

arrTabIndex = new Array("butAddress", "movEmail", "txtCC", "txtTelephoneNumber", "txtMobileNumber", "txtSubject", "txtSubject", "txtRealName", "txtBody");

for (var Count = 0; Count < arrTabIndex.length; Count++) {
eval(arrTabIndex[Count]).tabIndex = Count;
//eval(arrTabIndex[Count]).tabEnabled = 1;
//eval(arrTabIndex[Count])._focusrect = 1;
}

my problem is, that if i include movie clips or buttons, the first in the series does focus and show the colored square but the tab key does not move the focus to the next object.
if i only include text fields, the tab key works as normal
is this a bug, or am i doing something wrong?

many thanks, in advance
clive

LoadMovie - Working In Debug Mode, Not Working Otherwise
Hello,

I have a main swf, which must load other 2 swfs (PHP data involved).
I made it work in debug mode, but in normal mode, a movie is not loading at all. What should I check to find the problem?
(the paths are OK)

I would be really thankfull if someone could help soon.

Thanks

Site Working Perfectly In A Server, Not Working In Other
Hi
I have a strange problem with a site I've done recently. It works perfectly in one server, but the same files don't work properly in some other server(both servers are Linux). The site loads correctly and all, and it runs fine for a while, but after you have clicked the buttons of the menu for 5 o 6 times the buttons doesn't load anything anymore. The rest of the movie runs fine, it's only the buttons that are supposed to load the sections (external swfs) that just do nothing.
See it for yourself:

Here the site works as it should:
http://www.avanzasoluciones.es/celeste

Here the buttons stop working after a while:
http://www.limpiezasceleste.com

I'll be glad to answer any question you may have regarding the coding of the site or anything that may lead to a solution.
Thanks for your time

Contact Form Not Working In IE But Working In Mozilla
got a problem that I just can't figure out.
I have a feedback that was working fine. Key word "was".
I added a frame in the form MC to include a Thank You screen. But then it stopped sending in IE, but works in Mozilla.
I tried taking the extra frame out but still doesn't work in IE anymore.

any suggestions?
button

Code:
on (release) {
form.loadVariables("email.php", "POST");
}
script on the php page

Code:
<?php
$sendTo = "alvin@diggy.com.au";
$subject = "Gisler contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = "Phone:" . $_POST["phone"] ."
Country: " . $_POST["country"] ."
Message: ".$_POST["message"]." ";
mail($sendTo, $subject, $message, $headers);
?>

Fading Text Only Half-working (so It's Not Working At All)
Here's one for ya...I'm making some fading text. I made a movie clip of the text and did the alpha tweening and all that, and when I play the clip on-stage, it works perfectily. However, when I run a movie test, the text does not fade in but rather just suddenly appears. This is also the condition when the graphic is loaded onto a webpage. Has anyone else seen this happen before and can tell me why this is happening? Thanks.

Full Screen Tiling Working, But Not Working Right?
am using bitmapdata to make me a nice lil' background image, and it works great...until it's resized. Whats happening is it's creating a new bgHolder clip on the resize, NOT resizing the current empty clip "bgHolder"

Here's the code(taken from various posts)


import flash.display.BitmapData;
#include "mc_tween2.as"
Stage.align = "TL";
Stage.scaleMode = "noScale";
var myListener:Object = new Object();
myListener.onResize = function() {
createBG();
};
Stage.addListener(myListener);
var bgHolder:MovieClip = _root.createEmptyMovieClip("bgHolder", _root.getNextHighestDepth());
var BG_LINKAGE:String = "bg";
function createBG():Void {
var tile:BitmapData = BitmapData.loadBitmap(BG_LINKAGE);
with (bgHolder) {
beginBitmapFill(tile);
moveTo(0,0);
lineTo(Stage.width,0);
lineTo(Stage.width,Stage.height);
lineTo(0,Stage.height);
lineTo(0,0);
endFill();
}
}
createBG();

Working Locally - Not Working Online
Having a nightmare with this.

On my project I have made use of both named anchors and frame labels for the navigation - both of which work fine when testing locally, in all browsers.

Problem is, soon as I upload, the frame labels stop working in FireFox, and they only working on 2nd load in IE. Im publishing Player 6, using AS2. The named anchors work great, across the board.

Any ideas?

AS 2 Button Not Working Not Working Properly
I've got a problem with a button dynamically attached to an mc within an as 2 class script. This is the button code:


ActionScript Code:
this.mc.butt.onRelease = function(){          
            current=true;
            this._parent.checkFocus();
        }

this code is inside the class constructor while current is declared at the start of the class and set to false previously in the constructor. The mc is the movieclip attached to the class and butt is the button attached to that. checkFocus is called ok but i'm confused how cos the "this._parent" should reference the "mc" movieclip but this has not got a checkFocus method on it. If i use "this._parent._parent" however, which should be correct, it does not work. I don't know what's up there. Anyway, checkFocus is here:

ActionScript Code:
public function  checkFocus(){
       
        for(var mcname:String in _root){
           
            if(_root[mcname] instanceof Layer){
               
                if(_root[mcname].focus==true){
                    //_root[mcname].gainFocus(20);
                    _root[mcname].loseFocus(20);
                } else {
                   
                    if(_root[mcname].current==true){
                        trace("waaahhhhh");
                        _root[mcname].gainFocus(20);
                    }      
                }
            }   
        }
    }


the aim of this code is to unfocus the Layer object (this is the name of the class) currently in focus, denoted by its focus attribute being true, and focus the new Layer object that has been clicked on - denoted by its current attribute being true. The currently focused layer is unfocused ok, but the new layer is not focused because, it seems, the change in the current attribute has not happened - there is no waaaaaahhhh coming up! I think this is because i am not reference it properly from within the button event. How can i reference properly from within the button? I've tried using _target and targetPath() but i'm not getting anywhere. I'm pretty sure this is the problem cos things work fine when i declare button events from outside the class, inside the fla. But i'd much rather do things dynamically within the calss if possible. Anyone got any ideas? I've been staring tooooo long at this.

Rollover Working But Rollout Not Working?
i have attached my small fla...

basically i have 5 buttons, each with a rollover and a rollout statement.

when the buttons are rolled over, they tween in scale.

when the buttons are rolled out they are supposed to tween return to normal scale - but for some reason they do not tween, they just pop straigh back into normal size....

any ideas???

AttachMovie Working, CreateEmptyMovieClip Not Working
Anyone have an idea just by quickly looking at this? I know it's taken out of context but I just can't see why it shouldn't work!


ActionScript Code:
// this line aperantly does not create the clips I need within a for loopvar photo:MovieClip = container.photoContainer.slide.createEmptyMovieClip("photo"+i, i+200);// while this line does, any idea why?var photo:MovieClip = container.photoContainer.slide.attachMovie("placeholder", "photo"+i, i+200);

Why Is My Php Email Form Not Working Here, But Working Elsewhere?
Hey everyone,

I wonder if you might be able to answer what is potentially a stupid question..

On this site I created a php email contact form and it's working fine: http://japanese-acupuncture.110mb.com/main.html

The contact form is in the clinic info tab on the side bar.

I've just set up a new site, and I copied the movie clip I used for the above site straight into the new one before adjusting how it looks to fit the layout of the new site. I'm going to use it in two places, and I know that I'll need to duplicate the movie clip for that. The site it's up on doesn't support sendmail, but I'm not worried about that yet.

What I can't figure out is why my text fields no longer let me input text, even though the movieclip is exactly the same as on the above site. The new site address is here: http://www.users.on.net/~davidgardner/

The contact form on the new site is on the 'register for a course now' tab, and on the 'contact us' page.

The only thing I can think of, is that the problem is caused by the contact form being buried in a series of movieclips.

If anyone has any idea what the problem is I'd be very appreciative!

Thanks,
David

Sound Effect Working Fine In Stanalone Movie Not Working As Part Of Loaded Movie
I have loaded in a movie via a loadMovie method of a movie clip.

In the loaded movie there is a sound effect generated in script via a sound object that works great when played in a standalone version of the loaded movie, but when I load it into the main movie the sound effect will not play.

Anyone any ideas?

I Have Been Working On It For A Week But It Still Not Working
I have this code in the 1st frame::


function mover (velocity, stopper) {
leaderX = _root.spot._x;
leaderY = _root.spot._y;
if (user._x != leaderX || user._y != leaderY) {
deltaX = _root.user._x-leaderX;
deltaY = _root.user._y-leaderY;
dist = math.sqrt((deltaX*deltaX)+(deltaY*deltaY));

_root.user.speed = velocity - stopper;
moveX = _root.user.speed*(deltaX/dist);
moveY = _root.user.speed*(deltaY/dist);
if (_root.user.speed>=dist) {
_root.user.stop();
_root.user._x = leaderX;
_root.user._y = leaderY;
} else {
_root.user.play();
_root.user._x -= moveX;
_root.user._y -= moveY;
}
}
}

//code end

and a ball with these code::

onClipEvent (enterFrame) {
_root.mover(4, 0);
if (this.hitTest(_root.rightbound)) {
_root.rightbound.gotoAndStop(2);
} else {
_root.rightbound.gotoAndStop(1);
}
if (this.hitTest(_root.rightbound)) {
_root.mover(4, 4);
}
}

//code end

and an empty movie clip call spot with this code::

onClipEvent (mouseDown) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}

//code end

I just want the ball to move where ever I click but not to move over or hit the object. I have an square call "rightbound" with 2 frame different in color and test a script. When the ball hit the square , the color of a square does change(frame 2) but the ball still keep going. The question is how would I make it stop when its hit the square?

Strange- Working In V5 Not Working In V6
look in attached mx file
there is simple roll over menu
why working when export like v5 and not workin when like v6
i have one button and one mc subf
on (rollOver) {
_root.subf.gotoAndStop(2);
}

subf movie has 3 frames first and last are empty
midlle has my menu

SendAndLoad Working/Not Working
I have a sendAndLoad connecting to a separate server that works when in testing mode, but not when uploaded to the web. When I change it from a sendAndLoad to just a send, it works.

sendAndLoad in testing mode - WORKS
sendAndLoad online - DOES NOT WORK
send online - WORKS

This seems strange to me. If anything I would think it wouldn't work in the testing mode. Does anyone know what is going on?

Thanks.

Working In Firefox, Not Working In IE 7
Hi,

just basic code. I have an enter page, which includes a flash movie. In flash there's a button, which calls a Javascript, which is in enter page and it opens a new window. Basic stuff. But why does it work in Firefox, but not in IE 7?

Here's the code:

Flash:

function openPopUp()
{

getURL("javascript:Launch('full-screen.html')");
} // End of the function


enterWebsite.bt.onRelease = function ()
{
openPopUp();
};



HTML / Javascript:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function Launch(page) {
OpenWin = this.open(page, "", "toolbar=no,menubar=no,location=yes,scrollbars=no,resizable=yes,width=screen.width,height=screen.height");
}
// End -->
</SCRIPT>

THX for your help

LoadClip Working And Not Working
I have a ver simple loadClip that loads a picture. I noticed that if I execute the same SWF several times, sometimes the loadClip works, sometimes it doesn't without giving me any sort of error message. Here's the code.







Attach Code

var mcLoader:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mcLoader.addListener(mclListener);
mclListener.onLoadStart = function(mc:MovieClip)
{
// Show ProgressBar
};

mclListener.onLoadError = function(mc:MovieClip, errorCode:String)
{
mx.controls.Alert.show("Error!", "ERROR", Alert.OK, null, null, "Warning", Alert.OK);
}

mclListener.onLoadProgress = function(loadedBytes:Number, totalBytes:Number)
{
// Update ProgressBar
}

mclListener.onLoadComplete = function(mc:MovieClip)
{
// ProgressBar disappears
}

mclListener.onLoadInit = function(mc:MovieClip)
{
mc._x = 0;
mc._y = 0;
mc._width = Stage.width;
mc._height = Stage.height;
mc._alpha = 100;
}
mcLoader.loadClip("image.jpg", _root.myMC);

LoadClip Working And Not Working
I have a ver simple loadClip that loads a picture. I noticed that if I execute the same SWF several times, sometimes the loadClip works, sometimes it doesn't without giving me any sort of error message. Here's the code.







Attach Code

var mcLoader:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mcLoader.addListener(mclListener);
mclListener.onLoadStart = function(mc:MovieClip)
{
// Show ProgressBar
};

mclListener.onLoadError = function(mc:MovieClip, errorCode:String)
{
mx.controls.Alert.show("Error!", "ERROR", Alert.OK, null, null, "Warning", Alert.OK);
}

mclListener.onLoadProgress = function(loadedBytes:Number, totalBytes:Number)
{
// Update ProgressBar
}

mclListener.onLoadComplete = function(mc:MovieClip)
{
// ProgressBar disappears
}

mclListener.onLoadInit = function(mc:MovieClip)
{
mc._x = 0;
mc._y = 0;
mc._width = Stage.width;
mc._height = Stage.height;
mc._alpha = 100;
}
mcLoader.loadClip("image.jpg", _root.myMC);

Timer Working But Not Working
Hello all.

I have a timer in an include file called A5SecTimer.as

Code:
//A FIVE SECOND TIMER THAT GOES TO THE NEXT FRAME
function A5SecTimer(){
setTimeout(this, "gotoAndPlay", 5000, nextFrame());
}
A5SecTimer();

In my movie i reference the file in frame one of my movie as such
#include "A5SecTimer.as"
This works great, goes to the next frame but, when I include a new timer in the second frame
Code:
//A TWO SECOND TIMER THAT GOES TO THE NEXT FRAME
function A2SecTimer(){
setTimeout(this, "gotoAndStop", 2000, nextFrame());
}
A2SecTimer();
The movie skips the second frame and goes to the third.

This is what I'm trying to accomplish:
-Fade in movie clip while movie is paused for 5 seconds
-go to the next frame
-Fade the movie clip while movie is paused for 5 seconds
-go to next frame and stop.

I hope this isn't too confusing to understand.

BOOYAKASHA!

-Atris

Preload Is Working And Not Working
hey there,

i made the tutorial you can find here but when i published my website on the web, it takes some seconds before you see the preloader... Normally you shouldn't see a white screen (i'm talking about the popup-window here...) but immediately the preloader. So, the preloader is working, but not immediately. How can I fix this?
Thanks...

lampe
ps: the website is not finished yet, duuh...

Mp3 Player, Working And Not Working
hey guys, i have a question. My mp3 i built with lees tutorial works ok. But i have looked at various posts and modified it to have a volume bar, previous button and a playlist. The problem is that when i click on previously button, the next song plays and not the previous one. When i click on the song in the list, again the next song plays and not the one i click. But that problem occurs when i click on the song again or if i am currently on the first song and i click to listen to the third song. Third problem is the volume, It keeps reseting to its original max volume when a new song is played. If anyone can help it will be great, if not thats ok.

Code:

//Setup sound object
var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(100);

//Array of songs
var sa:Array = new Array();
var display:Array=new Array();

//Currently playing song
var cps:Number=-1;

//position of music
var pos:Number;

//Load the Songs XML
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
   var nodes:Array = this.firstChild.childNodes;
   for(var i=0;i<nodes.length;i++)
   {
      sa.push(nodes[i].attributes.url);
      display.push(nodes[i].attributes.display);
   }
   playSong();
}

xml.load("songs.xml");

//play mp3 file
function playSong():Void
{
   s= new Sound();
   s.onSoundComplete = playSong;
   preloadloadBar._xscale = 1;
   if(cps==sa.length-1)
   {
      cps=0;
      s.loadSound(sa[cps],true);
   }
   else
   {
      s.loadSound(sa[++cps],true);
   }
   pause.gotoAndStop("pause");
}
   
//pauses the music
function pauseIt():Void
{
   pos=s.position;
   s.stop();
}

function unPauseIt():Void
{
   s.start(pos/1000);
}

//Music Controls
//play pause toggle
pause.onRollOver = function()
{
   if(this._currentframe==1)this.gotoAndStop("pauseover");
   else this.gotoAndStop("playover");
}

pause.onRollOut = pause.onReleaseOutside = function()
{
   if(this._currentframe==10)this.gotoAndStop("pause");
   else this.gotoAndStop("play");
}

pause.onRelease = function()
{
   if(this._currentframe==10)
   {
      this.gotoAndStop("playover");
      this._parent.pauseIt();
   }
   else
   {
      this.gotoAndStop("pauseover");
      this._parent.unPauseIt();
   }
}



//next button
next.onRollOver = function()
{
   this.gotoAndStop("nextover");
}

next.onRollOut = next.onReleaseOutside=function()
{
   this.gotoAndStop("next");
}

next.onRelease = function()
{
   this._parent.playSong();
}


//Display Time.
function setTime() {
var totalSeconds:Number = s.duration/1000;
var s_seconds:Number = s.position/1000;

var minutes:Number = Math.floor(totalSeconds/60);
var seconds = Math.floor(totalSeconds)%60;
var e_minutes:Number = Math.floor(s_seconds/60);
var e_seconds = Math.floor(s_seconds%60);

//format time
if (seconds<10) {
seconds = "0"+seconds;
}
if (e_seconds<10) {
e_seconds = "0"+e_seconds;
}

timeDisplay.tt.text = minutes+":"+seconds;
timeDisplay.et.text = e_minutes+":"+e_seconds;
}
var timeRoutine = setInterval(setTime, 100);


   



//next
next.onRelease = function() {
s.stop();
s = new Sound();
this._parent.playSong();
setInterval(setTime, 100);
};

function playSong():Void {
s=new Sound();
s.onSoundComplete=playSong;

if (cps == sa.length-1) {
cps = 0;
s.loadSound(sa[cps], true);
displayTags();
} else {
s.loadSound(sa[++cps], true);
displayTags();
}
}

//display ID3 tags
function displayTags() {
s.onID3 = function() {
display_Artist.text = " "+s.id3.artist+"
";
display_Song.text = (cps+1)+". "+s.id3.songname+"
";
};
}

   // initial x position fo the dragger
dragger._x = line_mc._x+line_mc._width-2;

// volume slider release function
dragger.onRelease = dragger.onReleaseOutside =  function() {
   this.stopDrag();
   delete dragger.onEnterFrame;
}

// volume slider on press and drag function
dragger.onPress = function() {
   this.startDrag(false, line_mc._x, this._y, line_mc._width+line_mc._x-2, this._y);
   dragger.onEnterFrame = function() {
      var Volume:Number= dragger._x-line_mc._x;
      s.setVolume(Volume);
   }
}

   //-----------------------------------------------------------------------Preloadbar
preloadBar.onEnterFrame = function() {
   var t:Number = Math.round(theTime/1000);
   this._xscale = (s.getBytesLoaded()/s.getBytesTotal())*100;
   sTotal.text =s.duration/1000;
};
//----------------------------------------------------------- ---------Progress bar
function soundProgress() {
   progressBar._xscale = (s.position/s.duration)*100;
   sProgress.text = ((_root._xmouse - preloadBar._x)/preloadBar._width)*10;
};

//prev button
prev.onRollOver = function()
{
   this.gotoAndStop("prevOver");
}

prev.onRollOut = prev.onReleaseOutside=function()
{
   this.gotoAndStop("prev");
}

prev.onRelease = function()
{
   this._parent.playSong();
}

function prevSong():Void {
   s = new Sound();
   s.onSoundComplete = playSong;
   if (cps == 0) {
      cps = songArray.length - 1;
      s.loadSound(songArray[cps].earl, true);
   } else {
      s.loadSound(songArray[--cps].earl, true);
   }
   trackInfo.text = songArray[cps].artist + " - " + songArray[cps].track;
   playPause.gotoAndStop("pause");
}

formatTime = function (millisecs){
   var secs = Math.floor(millisecs/1000);
   var mins = Math.floor(secs/60);
   secs %= 60;
   if (secs < 10) secs = "0"+ secs;
   if (mins < 10) mins = "0"+ mins;
   return mins +":"+ secs;   
}








var alist:XML = new XML();
alist.ignoreWhite = true;

alist.onLoad = function(){
   var songs:Array = this.firstChild.childNodes;
   for(i=0;i<songs.length;i++){
      audiolist.addItem(songs[i].attributes.display,songs[i].attributes.url);
   }
   
   playSong.play(audiolist.getItem(0).data);
   audiolist.selectedIndex = 0;
}

var aulist:Object = new Object();

aulist.change = function(){
   playSong(audiolist.getItemAt(audiolist.selectedIndex).data);
}

audiolist.addEventListener("change",aulist);

alist.load("songs.xml");

If/else Statment Working But Not Working?
Hi,

I have tree component witch is populating the data grid component. I have 9 if/else statments to see if particular file is loaded to change datagrid heder but it changes only on last if/else statment.

Here is my code for tree listener

Code:

var myTreeL:Object = new Object();
var ukupni:String = ("poredakRally2.csv");
var ukupni1:String = ("poredakRally.csv");
var ukupni2:String = ("poredak2002.csv");
var ukupni3:String = ("poredak200.csv");
var ukupni4:String = ("poredakGT1.csv");
var ukupni5:String = ("poredakGT2.csv");
var ukupni6:String = ("poredakGT.csv");
var ukupni7:String = ("poredakC2.csv");
var ukupni8:String = ("poredakC.csv");
myTreeL.change = function(){
   var item = myTree.selectedItem;
   var earl = item.attributes.url;
   if(earl){
      raceResultsCSV.load(earl);
   }
   else{
      trace("kliknuto je na folder");
   }
   if(earl==ukupni){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
   if(earl==ukupni1){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
   if(earl==ukupni2){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
   if(earl==ukupni3){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
   if(earl==ukupni4){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
   if(earl==ukupni5){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
   if(earl==ukupni6){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
   if(earl==ukupni7){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
   if(earl==ukupni8){
      myDG.getColumnAt(5).headerText = "Vrijeme";
      myDG.getColumnAt(6).headerText = "Voznja";
      myDG.getColumnAt(7).headerText = "Najbolji krug";
      myDG.getColumnAt(8).headerText = "Najbolja V.";
   }else{
      myDG.getColumnAt(5).headerText = "Diff";
      myDG.getColumnAt(6).headerText = "Gap";
      myDG.getColumnAt(7).headerText = "Ukupno Vrijeme";
      myDG.getColumnAt(8).headerText = "Klub";
   }
}

myTree.addEventListener("change",myTreeL);

How could I get this thing working properly?

Or is there different aproach to solve my problem?

Thanks

Working Area? Not The Stage Size....but The Working Area Lol
You know how there is a little white square that represents the stage size? And then, if you zoom out all the way, you have only a certain amount of working area and stuff dissapears. Is there a way to make this area larger? I have huge movie clips I need to work with...thanks!

GetURL Working In Flash Player 8 / Not Working In Player 9
Here I have the portfolio system I'm working at:
http://www.vamapaull.dxwebs.com/portfolio.html

when you click on the big image it should open a URL in a new window
When I test it on my computer is working fine(Flash Player 8), but when I test it in Firefox or IE (Flash Player 9) is now opening any URL... I think is some thing about the Flash Player 8 and Flash Player 9 compatibility... or some thing...
I don't know how to correct this problem... I need my portfolio working on Flash Player 8 and Flash Player 9 because now alot of users have Flash Player 9 on computers. :roll:

Any idea how to fix this issue? :?

XML NOT WORKING
okay this should be simple it seems like i did this before
but damn
i can't get this working

here is the example

http://users.pandora.be/dreams/guest.swf
so this works fine

and this is the same damn thing but loaded into another
movie clip

http://users.pandora.be/dreams/loader.swf
as you see it doesn't display the text

the fla is here
http://users.pandora.be/dreams/guest.fla

i'm just loading the xml data into the guest.swf basicly
i even created a new object
wich also didn't work
you'll see in the fla


if someone could tell me what i'm forgetting here
would be great

Get URL And FS - NOT WORKING - HELP
have a full screen swf that uses get url to call on a html page....but the html page pops up behind the full screen swf file....ANYONE HAVE ANY IDEAS?????NEEED HELP!!!!

Else Not Working
Check out the "if statement" code on the "home" button.

Here's the link to download the file - http://www.dossier.ws/1.html


----What I need it to do----

When I click "home"

1. If the timeline is in "lblSectionHomePage" go to "lblBackHomeFromSectionHomePage"

2. If the timeline is in "lblPlayGallery" go to "lblBackHomeFromGallery"
----------------------------

Not Working :(
i dunno what i did wrong? i did what u said heres the site...go under staff and tell me what i did wrong??


http:\h4ttrickproductions.com

It's Working
Hi!

Thank you! Now it's working! GREAT!

Greetz bOOt

Still Not Working
ORIGINAL POST:
I have a .gif image that I have imported in to my animation. It fades in from 0 to 100% in the span of 20 frames. It has a straight edge that looks fine in the timeline. When previewing the movie, the straight edge developes a blip in in, like a jagged edge. I have no clue what is happening, I have tried several different image formats, sizes, etc, yet it always distorts when played.

Thanks for the suggestions, but the graphic still distorts. Just in one spot along a straight edge, it forms a distortion as it fades in. I created a poor mans copy of it in Flash, ran them side by side and the Flash-made copy does not distort. The original was taken thru photoshop and optimized. Any ideas?
Thanks again

Working With MC's
Hi very simple question. I have an MC the has a button in it that i want to link to a frame label on the maine timeline is this a possible thing to do ??
If so how ?? Im not to sure how to get this to work and have been trying for the last hour with no success.
Thanks in advance
Mental

Get URL Not Working
I published flash intro for a website. I have an invisible button that is supposed to bring the user to the index.html of the website (published in GoLive). Unfortunately, it doesn't. It does recognize that it is a button (the cursor changes) but it doesn't not get the url or even give me an error. This also happens just in flashplayer, not only when previewing from GoLive.
Any help is greatly appreciated.
Thanks!

If (x==0) { Not Working
Sorry to ask what may be obvious but I can't get this to work.

I have an if statement that works great if I place it on a button On press

However I want that same satement in the last frame of a movieclip to direct the next action.

It seems like if statements are ignored unless attached to an event - is that true?

What am I doing wrong?

Thank you.

Get Url Isn't Working
I have a flash5 file that I've inserted into the top border of my site. I'm using FP2000. I included a copy of the htm file in each directory as well - was recommended if I was using FP.
All the buttons "had" the get url correctly identified as http://www.xxxxx/xxxxx/xxx.htm.
But it all got screwed up and I had the following appear in the address bar: http://www.xxxxx/http://www.xxxxx/xxxxx/xxx.htm
In other words the directory structure got messed up. (repeated the first bit...)
Could you answer some individual questions?
1. The home page with the swf file works fine, but no other pages. Howcome????
2. I had to copy the swf file into each directory (not only the root directory) or it would not appear in the top menu. This doesn't sound right?
3. I tried leaving out the http://www.etc etc bit - but no luck.
4. Can you explain exacly how the Expression check button works?
5. I was also using send using GET?
6. How can I get the swf file loaded first in the page?

My site is http://www.alfiecox.co.za, and I've changed a few of the get url commands to try and get it working...still no luck.
Any help will be appreciated and will prevent my pc from being launched out the window!
Cheers!

Working With .swf
My movie loads a .swf into a "holder" mc. Is there a way once the .swf plays to move around inside the timeline of that .swf from the root level?

For example, I load a .swf that shows a picture. When someone clicks a button I want the current .swf to fade out and a new .swf to load and play. I assume i would put a stop() inside the .swf to keep it on stage and I need some command from the main menu to jump to the frame after the stop() to start the fade out.

What's the best way to do this?

Thanks for the help!

Working With Php
1)i dont understand how execlly i check that i have finisehd the call to php and have finisehd sending to the php the data!
2)how do i recive the answer that the php send me, and how do i check if any was reciver?

thanks in advance
pelegk@compedia-usa.com

My Cgi Isn't Working
Here is the code that I have on a submit button for a basic form.
I have a text box right next to the button that is supposed to display errors or progress, but it doesn't.
Anyone see a problem??

on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
}

else if (!FirstName.length) {
EmailStatus = "Please Enter your name before Sending";
}

else if (!ToComments.length) {
EmailStatus = "Please enter some text in you message";
}

else {
loadVariablesNum ("http://www.charleysarm.com/cgi-bin/snowMailPerl.cgi", "0", "Post");
EmailStatus = "Sending... Thank you";
}
}

Not Working
I tried to make my own text effect that is based on "redstix" the effect you find in flashtyper....i have included the actual text effect and my file in the zip file....
Please help
Thank you,
Shyam

It's Not Working
What I need, in simplest of terms, is a way to make text inside a textbox link to a frame in a movie clip. Apparently I have to make my text render as html so I can add the html markup to the textbox and surround it by anchor tags..however I don't know how to do this or where to put that code. Secondly I don't know how to tell selected text to change the frame in a movie clip..any answers here?

Please feel free to be descriptive as I'm an idiot

Why Not Working?
Hi,

Can someone tell me why this doesn't work.

Array1 = [10, 20, 30, 40];
Array2 = [10, 20, 30, 40];

ArrayN = [0,0,0,0,Array1, Array2];

Or when I try

ArrayN[4] = Array1;
ArrayN[5] = Array2;

Doesn't seem to work correctly either.

I want the 4 and 5th elements of ArrayN to contain pointers to Array1, Array2, or just a copy of the values in Array1, Array2 would be fine.

thanks for any help.

phil.

Why Not Working?
Hi,

Can someone tell me why this doesn't work.

Array1 = [10, 20, 30, 40];
Array2 = [10, 20, 30, 40];

ArrayN = [0,0,0,0,Array1, Array2];

Or when I try

ArrayN[4] = Array1;
ArrayN[5] = Array2;

Doesn't seem to work correctly either.

I want the 4 and 5th elements of ArrayN to contain pointers to Array1, Array2, or just a copy of the values in Array1, Array2 would be fine.

thanks for any help.

phil.

Way Of Working
Hello... I'm curious how other people design their Flash site.. Do you do all your design in Flash or do you set up your artwork in Photoshop or Illustrator?

I'm used to Photoshop and all this vector stuff is new to me....I'm so used to designing in pixels.. Its feelt like I have so little control over line widths and stuff..

Any help is greatly apriciated...

Bye!

It's Not Working :-(
here is the file that i'm working on ...
it doesn't even work with the code that u gave me

Why Isn't This Working?
I said "screw this" to reading some of these books and am just throwing myself into the flash interface.

I want to make 2 draggable movies, blue box and green box, and when blue gets dragged only the blue X and Y coords get updated, and when green gets dragged, the same for it.

So far, no matter what I do, only Blue can be dragged, and it updates both X and Y boxes....

Nevermind the collision script, so far the draggin is making no sense whatsoever; even after reviewing the references (hooray! reads like stereo instructions!)

Two MCs Not Working
How can I have two rollover rollout two movieclip? On the menu I have a button with one of the MC and in another place a MC that I want to play. Now I get the one MC two do what I want with this:

on(rollOver){
mc1.gotoAndPlay(2);
}
on(rollOut){
mc1.gotoAndStop(1);
}

But when I add this:

on(rollOver){
mcx.gotoAndPlay(2);
}
on(rollOut){
mcx.gotoAndStop(1);
}

The mcx will not work. Any advice, code examples or tutorial would sure be appreciated!

Why Isn't This Working? :(
was wondering what I did wrong, my problem is that the file isn't opening into a new window. The code is on a button within a mc.


Code:
on(press){
if( location.equals("A")){
getUrl("../blah/blah.pdf", "_blank");
}
else if( location.equals("B")){
getUrl("../blah/blah2.pdf", "_blank");
}
}

Get Url Not Working On Pc's
my site is http://ralphiedee.com please go to the Flyers page from the navigation buttons on the top. You will see buttons that should open using get url and it seems it works fine on a mac but I recently looked at the site using a pc and the new urls don't open. here is the actionscript I used

on (release) {
getURL("javascriptpenNewWindow('flyerspage1/chaostheory.html','thewin','width=369,height=550,s crollbars=yes,left=200,top=0')");

If someone could check this on a pc and if you know of a working script for both platforms

Why Is This Not Working...
Hi all -
I'm trying to use actionscript to do simple fade ins/outs for a sound. The sound is initialized (if thats the right word) as follows:

s1 = new Sound();
s1.attachSound("183");
s1.start(0, 10);
s1.setVolume(100);

Not Working
I have the same problem as Terranoid.
Pellepiano, Can you please post an example file on how you did it?Thanks.

Still Not Working
all i wanted to do was put a flash movie into my website and make the movies background be transparent. so i posted in the newbies forum for help and i was guided to a tutorial which explained everything that i have to do. it seemed like it would work, i followed each step carefully. I published my movie (with a white background if it matters) into swf and html formats, setting the wmode to transparent windowless. I opened up a new dreamweaver file. Set the background to black. Pressed the embed flash button, chose my file. Clicked on my file, went down to parameters, added parameter wmode=transparent. previewed in browser, and guess what. My background wasn't transparent. just my luck. i have tried for about three days now to figure out why it won't work. I have the newest flashplayer, internet explorer 6.0.26, flash mx and dreamweaver mx. It seems that i have read every tutorial possible but i still cant figure it out.

Any help would be good, catching any errors would be good, telling me whats wrong would be very good, making my movie transparent would also be good.
thanks,
Eclipse

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