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








Script Fails In Flash 8


This script works when publishing in flash 6, AS 1.0, but when I try and publish in flash 8, AS 2.0 it fails. (this is where i wish there was a conversion tool)

Can someone tell me why?


Code:
onClipEvent (load) {
//accel = 0.6;
//rate = 0.2 ;
accel = 0.6;
rate = 0.03;
_root.pos = this._x; //start position
}
thanks




FlashKit > Flash Help > Flash ActionScript
Posted on: 11-22-2007, 01:59 AM


View Complete Forum Thread with Replies

Sponsored Links:

Flash/php Fails
I am using flash/php and are getting errors on php (free web hosting site) which i don't get on my localhost.

I don't get any error on my localhost but i get 3 error which I can't fix.

flash part
---
send_lv.alName=combo1.value
send_lv.sendAndLoad("

View Replies !    View Related
Flash CMS Loading With & Fails
Hi,

There seems to be a problem when it loads text1.html
When I try to use a & or when I use special characters like '
it stops reading (f.e. Photo's gets to be Photo&amps) because it thinks the & brings a new variable via the loaded text file.

Can an expert help me out????
I asked this on several programmers but got on help so far.
Please help me out.

I tried escaping and codepage but none helped me.

As gratitude I will set my CMS for download, and your credits included.

Thanks so much !

View Replies !    View Related
Flash Fails To Export
Hello, I press ctrl+enter and my movie fails to export.

The exporting window comes up, the loading bar goes about half way, and then it just disappears.

I've also tried exporting manually through the File>Export menu, and using different flash players, and changing the quality, and I've made sure there are no movie clips, only graphics. The only thing I have that are potentially problematic are Tweens in my library, which I'm apparantly not supposed to have (if they are in my library that means I've done it wrong or something) but the movie should still export. What's broken?!

View Replies !    View Related
DuplicateMovieClip Fails Under Flash 8
Has anyone else found problems with Flash 8 Player on duplicateMovieClip. I have used the attached script to make multiple versons of a falling rain drop in the past. This script is still functioning fully when published as Flash 6, from Flash 8 Pro.

In order to take advantage of alpha channel masks which are now available with Flash 8, I would have thought simply reusing this trusty script would have worked as it does under Flash 6. But instead the animation fails to duplicate.

Any suggestions greatly received.








Attach Code

duplicateMovieClip("q5", "q5"+n, n);
this["q5"+n]._x = -100+Math.random()*650;
this["q5"+n]._xscale = 32;
this["q5"+n]._y = 180+Math.random()*35;
this["q5"+n]._yscale = 18;
n++;
if (n>180) {
brake;
n=0;
}

View Replies !    View Related
Button Fails In Flash 8
I have created a booking form in Flash8.
The SUBMIT button has the following action script


on (release){

submitAttendees();

}


It calls a function "submitattendees" defined in an actionscript file booking.as which follows

The SUBMIT button fails to work however. Can anyone advise ?

My calendar doesn't work either but that's another story.

















Attach Code

var startDate : Date = new Date(2007, 6, 16);
var now_date:Date = new Date();
if (startDate < now_date) {
startDate = now_date;
}

var summaryArray:Array = [];
var dateArray: Array = [];
var allowAdd : Boolean = true;
var noSportMsg : String = "You haven't selected any sports or dates from the calenders! Please add at least one date for at least one sport and then try again.";
var noNameMsg : String = "You must enter all the details for the child before you can continue. Please add the information and try again."
this.allowAdd = true;
_global.attendeeCount = 0;

// define loaders
var bookingParamsR:LoadVars = new LoadVars();
var bookingParamsC:LoadVars = new LoadVars();
var bookingParamsF:LoadVars = new LoadVars();
var submitBooking:LoadVars = new LoadVars();
calCricket.onDateClick = function(mc,eobj,robj){
//trace(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getCricketersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"));
trace("day state=" + eobj.state);
if(eobj.state=="booked"){
theInfo="This date has been booked for another sport!"
return;
}
if(eobj.state=="full"){
theInfo="This date is fully booked!";
return;
}
if(eobj.value=="selected"){

if(getDayCount()>_global.mMaxNumberOfDays){

eobj.value="default";
eobj.setDayValue(mc.date, "");
theInfo = "You have booked the maximum number of days per child.";
return;
}
disableDate("football", mc.date);
disableDate("rugby", mc.date);
}
else{
enableDate("football", mc.date);
enableDate("rugby", mc.date);
}
bookingParamsC.load(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getCricketersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"), this);
}

//rugby calander

calRugby.onDateClick = function(mc,eobj,robj){
//trace(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getCricketersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"));
trace("day state=" + eobj.state);
if(eobj.state=="booked"){
theInfo="This date has been booked for another sport!"
return;
}
if(eobj.state=="full"){
theInfo="This date is fully booked!";
return;
}
if(eobj.value=="selected"){

if(getDayCount()>_global.mMaxNumberOfDays){

eobj.value="default";
eobj.setDayValue(mc.date, "");
theInfo = "You have booked the maximum number of days per child.";
return;
}
disableDate("cricket", mc.date);
disableDate("football", mc.date);
}
else{
enableDate("cricket", mc.date);
enableDate("football", mc.date);
}
trace(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getRugbyPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"));
bookingParamsR.load(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getRugbyPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"), this);
}
// football caladner
calFootball.onDateClick = function(mc,eobj,robj){
//trace(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getCricketersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"));
trace("football day state=" + eobj.state);
if(eobj.state=="booked"){
theInfo="This date has been booked for another sport!"
return;
}
if(eobj.state=="full"){
theInfo="This date is fully booked!";
return;
}
if(eobj.value=="selected"){

if(getDayCount()>_global.mMaxNumberOfDays){

eobj.value="default";
eobj.setDayValue(mc.date, "");
theInfo = "You have booked the maximum number of days per child.";
return;
}
disableDate("cricket", mc.date);
disableDate("rugby", mc.date);
}
else{
enableDate("cricket", mc.date);
enableDate("rugby", mc.date);
}
bookingParamsF.load(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getFootballersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"), this);
}


bookingParamsC.onLoad = function(success:Boolean) {
if (success) {

if (this.refresh) {
//calCricket.setXML("CBookingDates.xml");
}
if(this.totals<_global.mChildrenPerDay+1){
// not over subscribed so date ok

}
else{
disableDate("all", this.selectedDate);
}
trace((this.countCricket<_global.mCricketersPerDay+1));
if (this.countCricket<_global.mCricketersPerDay+1){
// ok add to attendee.
_global.currentAttendee.sportDetail = addSportSummary();
_global.currentAttendee.sportData = addSportData();
if(_global.currentAttendee.sportData){
allowAdd = true;
}
}
else{
disableDate("cricket", this.selectedDate);
}
}
else {
trace("Error loading/parsing LoadVars.");
}
};

bookingParamsF.onLoad = function(success:Boolean) {
if (success) {

if (this.refresh) {
//calFootball.setXML("FBookingDates.xml");
}
if(this.totals<_global.mChildrenPerDay+1){
// not over subscribed so date ok

}
else{
disableDate("all", this.selectedDate);
}
trace((this.countFootball<_global.mFootballersPerDay+1));
if (this.countFootball<_global.mFootballersPerDay+1){
// ok add to attendee.
_global.currentAttendee.sportDetail = addSportSummary();
_global.currentAttendee.sportData = addSportData();
if(_global.currentAttendee.sportData){
allowAdd = true;
}
}
else{
disableDate("football", this.selectedDate);
}
}
else {
trace("Error loading/parsing LoadVars.");
}
};

bookingParamsR.onLoad = function(success:Boolean) {
if (success) {
trace("rugby loaded " + success);
if (this.refresh) {
//calRugby.setXML("RBookingDates.xml");
}
if(this.totals<_global.mChildrenPerDay+1){
// not over subscribed so date ok

}
else{
disableDate("all", this.selectedDate);
}
trace((this.countRugby<_global.mRugbyPersPerDay+1));
if (this.countRugby<_global.mRugbyPerDay+1){
// ok add to attendee.
_global.currentAttendee.sportDetail = addSportSummary();
_global.currentAttendee.sportData = addSportData();
if(_global.currentAttendee.sportData){
allowAdd = true;
}
}
else{
disableDate("rugby", this.selectedDate);
}
}
else {
trace("Error loading/parsing LoadVars.");
}
};

// init calanders

bookingParamsC.load(_global.mServerURL + "?sysFlashAction=loadxml&ctype=C", this);
bookingParamsF.load(_global.mServerURL + "?sysFlashAction=loadxml&ctype=F", this);
bookingParamsR.load(_global.mServerURL + "?sysFlashAction=loadxml&ctype=R", this);
// functions



function getNiceDate(theDate:Date):String {
return theDate.getDate() + "-" + getMonthAsString(theDate.getMonth()) + "-" + theDate.getFullYear();
}

function getMonthAsString(month:Number):String {
var monthNames_array:Array = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
return monthNames_array[month];
}

disableDate = function(theType, theDate){
trace("disbableDate");
if(theType=="all"){
calCricket.setDayState(theDate, "booked");
calFootball.setDayState(theDate, "booked");
calRugby.setDayState(theDate, "booked");
}
if(theType=="cricket"){

trace(calCricket.setDayState(theDate, "booked"));

}
if(theType=="football"){

calFootball.setDayState(theDate, "booked");
}
if(theType=="rugby"){
calRugby.setDayState(theDate, "booked");
}
}
enableDate = function(theType, theDate){

var cricketEvents = calCricket.getEvent(theDate);
var rugbyEvents = calRugby.getEvent(theDate);
var footballEvents = calFootball.getEvent(theDate);
trace("football state=" + footballEvents.state);

if(theType=="all"){
calCricket.setDayState(theDate, "");
calFootball.setDayState(theDate, "");
calRugby.setDayState(theDate, "");
}
if(theType=="cricket"){
calCricket.setDayState(theDate, "");
}
if(theType=="football"){
calFootball.setDayState(theDate, "");
}
if(theType=="rugby"){
calRugby.setDayState(theDate, "");
}
}
addSportSummary = function(){
var s = "";

if (calCricket.getSelected().length>0){
s = "Cricket - " + calCricket.getSelected("dd/mm").join(", ") + "
";
}
if (calRugby.getSelected().length){
s = s + "Rugby - " + calRugby.getSelected("dd/mm").join(", ")+ "
";
}
if (calFootball.getSelected().length){
s = s + "Football - " + calFootball.getSelected("dd/mm").join(", ")+ "
";
}
return s;
}
getDayCount = function(){
trace("getDayCount");
trace(calCricket.getSelected().length + calRugby.getSelected().length + calFootball.getSelected().length);
return calCricket.getSelected().length + calRugby.getSelected().length + calFootball.getSelected().length;

}
addSportData = function(){
var s = "";

if (calCricket.getSelected().length>0){
s = "Cricket:" + calCricket.getSelected("YYYY-mm-dd").join(",") + ";" ;
}
if (calRugby.getSelected().length){
s = s + "Rugby:" + calRugby.getSelected("YYYY-mm-dd").join(",") + ";" ;
}
if (calFootball.getSelected().length){
s = s + "Football:" + calFootball.getSelected("YYYY-mm-dd").join(",") + ";" ;
}
return s;
}

addNewAttendee=function(){

// clear fields
//this.currentAttendee = eval("this.summaryPanel.attendee" + _global.attendeeCount );
//_global.attendeeCount++
//return
if(_global.attendee.length==_global.mMaxChildrenPerBooking){
theInfo = "You have reached the maximum number of children for this booking."
allowAdd = false;
btnAddChild._visible=false;
return;
}

tblAttendee_FirstName.text ="" ;
tblAttendee_Surname.text ="";
tblAttendee_Age.selectedIndex=0;
tblAttendee_Gender.selectedIndex=0;
calFootball.setXML("Fbookingdates.xml");
calCricket.setXML("Cbookingdates.xml");
calRugby.setXML("Rbookingdates.xml");

summary = this.summaryPanel.attachMovie("movAttendee", "summary" + _global.attendeeCount, this.summaryPanel.getNextHighestDepth(),{firstName:"", Surname:"", Age:"", Gender:"",editing:true,index:_global.attendeeCount})
summary.attendeeDetail = summary.firstName + " " + summary.Surname;
summary.click=function(){
trace(this);
this.editing=true;
this.borderColor=0xCC3333;
}
if(_global.attendeeCount ==0 ){
//summary.btnDelete._visible=false;
}
summary._x = this.summaryPanel._x;
summary._y = _global.attendee.length * summary._height ;
//summary.sportDetail = this.addSportSummary();
_global.attendee.push(summary);
trace("add new and now attendee is " + _global.attendee.length);
_global.currentAttendee=summary;

_global.attendeeCount++

allowAdd = true;
}
makeEditable=function(obj){
trace (obj);
}
setAttendeeDetail = function(){

return tblAttendee_FirstName.text + " " + tblAttendee_Surname.text;

}
reposSummary = function(){
trace("respositioning");
for(var i=0;i<_global.attendee.length;i++){
trace("move " + _global.attendee[i] + " to " + (i * _global.attendee[i]._height) );
_global.attendee[i]._y = i * _global.attendee[i]._height ;
}
}
isComplete = function(){
for(i=0;i<_global.attendee.length;i++){
trace(i + "firstname=" + _global.attendee[i].Age);
if((_global.attendee[i].firstName!="") && (_global.attendee[i].Surname!="") && (_global.attendee[i].Age!="") && (_global.attendee[i].Gender!="") && (_global.attendee[i].sportData) ){

}
else{
trace(i + " is not complete");
return false;
}
}
return true;
}
getBookingData = function(){
var s = '';
for(i=0;i<_global.attendee.length;i++){
if(_global.attendee[i].sportData){
s = s + "FirstName:" + _global.attendee[i].firstName + ";Surname:" + _global.attendee[i].Surname + ";Age:" + _global.attendee[i].Age + ";Gender:" + _global.attendee[i].Gender + ";" + _global.attendee[i].sportData + "|";
}
}
return s;
}
submitAttendees = function(){
if(chkTOC.selected){
if (isComplete()){
/// submit dates
trace(getBookingData() );
submitBooking.load(_global.mServerURL + "?sysFlashAction=commitbookings&sysID=" + _global.parentId + "&thedata=" + getBookingData(), this);
}
else{
theInfo = "Please make sure all the attendee details are correct."
}
}
else{
theInfo = "Please aggree to the Terms and Conditions by ticking the box."
chkTOC.setFocus();
}

}

submitBooking.onLoad = function(success:Boolean) {
if (success) {
trace("rstatus " + this.rstatus);
if(this.rstatus && this.cstatus && this.fstatus){
_parent.gotoAndPlay("book_stage4");
theInfo = "Order Complete Booking Ref = BSC" + _global.parentId
}
}
else {
trace("Error loading/parsing LoadVars.");
}
};

























Edited: 06/25/2007 at 06:50:23 AM by GOBIMONEY

View Replies !    View Related
Flash 7 GetURL Fails In IE7
I have an old Flash file that must remain published to Flash player 7. I'm experience a complete failure of communication to JavaScript in IE7 when using getURL(), and am unsure how to resolve this issue.



A call to a JavaScript function on the page fails. Even a simple call to make an alert happen fails:
btn.onRelease = function() {
getURL("javascript:alert('you clicked me')");
}

I'm using the AC_RunActiveContent.js to embed the *.swf (via the export to HTML).

This does work when viewed in Firefox 2. How many others have run into this? What are workarounds or alternatives?

View Replies !    View Related
Basic Flash, But I Can't Work Out Why It Fails
Heya all. This is quite urgent, so please pipe up if you can remdy my problem!!

I have a movie clip in the Main Timeline which loads a load of variables (119 of them) into the Main Timeline from an ASP page.

In this movie clip however, I am trying to get it to go to another frame once the variables have been loaded into the Main Timeline, in this case, when the variable named "loaded" equals "yes", which is loaded in at the end of the ASP page.

I am using:


Code:
If (_level0/:loaded = "yes")
Go to and Stop (6
End If
Go to and Play (1)
Which logically should work. I've used this a million times before, and it has worked, but I just don't know why it isn't working. The variable is loading in, but the IF statement just isn't targeting it properly.

Any ideas?

Cheers!

View Replies !    View Related
Dispatcher Fails With Flash 7 Plugin
Just recieved a call from a client, seems after installing 2004 player their site doesn't work - the MM dispatcher seems to fail. (fails on Windoze with IE 6.0 anyway)...

So I installed and tried it myself, and nothing... So I tried a few links from MM site of the day, same result - those using the dispatcher failed - no content or redirect.

After searching MM's site, and here as well - I found no mention of this issue. So I called MM, after waiting for 10 minutes to speak to a human - I was disconected (twice).

Can anyone here tell me what the solution is? I'm ready to ditch the dispatcher - but that's alot of work for all the past sites I've built.

*&^%$#@!!!!

Here's the site: http://www.3zero8.com

View Replies !    View Related
HELP Flash Fails To Open Files...
Hi!
Some studios gave me some .fla files to work with but half of those I can't open... I get a "failed to open" message. They're Flash MX files and I'm trying to open them through Flash MX on a MAC Intel G5. What can I do to make it work??

View Replies !    View Related
Macromedia Flash Player Fails
hi, there,
I created a MC and tested it woks fine.. but then I exported it and save as a*.swf file on my desktop.. I tested it there but it did not work...I click all the buttons on my MC but no way..

Is there something wrong with my Macromedia-flash player-6 ?

thanks

View Replies !    View Related
Just One Out Of Several Flash Files Fails In IE7 & Safari
I'm using several flash buttons for my navigation. I used modxcms to control the content, and then pass the link_text and link_url to the flash buttons using flash vars.

Modxcms has a navigation builder that I have templated to embed my flash navigation buttons using swfobject. I also have one custom button at the top that goes up one level depending on where you are in the site. This one is generated by my own function, but uses that same swfobject embed method.

Everything works perfectly in Firefox; but IE7 and safari fails to load the flash backButton (top of nav on left). Instead I'm left with the html content that is normally replaced by swfobject.

I'm losing my mind over this. I have rewritten everything several times and can't figure out why it won't show up in safari or ie7.

One of the pages in question is: http://mbdentistry.com/site/ourservices.htm

Any help, please?!

View Replies !    View Related
Flash Player 9 Installation Fails On Mac OS X
My flash player won't work on my Intel based Mac OS X Tiger anymore. I've tried to reinstall it several times, and nothing works. What's the roundabout way of doing it? I am about to reformat my computer to see if that works, but I'd rather not for the sake of all the trouble I would have to go through. Please help. Thanks.

View Replies !    View Related
Flash Player Periodically Fails
Every few days, the flash plugin no longer works on my Firefox browser. I am working on a Mac G4 OSX version 10.3.9, and Firefox 2.0.0.6.
And so I notice that advertisements only show the Quicktime question mark. I reinstall the Flash player update. Everything works again, but days later I find myself doing this again....and again....and again. So, something is going wrong! Ideas anyones???

View Replies !    View Related
Flash Fails To Access .php File?
I'll be straight... sendAndLoad appears to fail sending the variables to the .php file. I don't know why but both files have read and read&execute permissions. I've tried making a temporary form in html, and the php file responds correctly. Also, both files are in the same directory assigned to the same site on a Windows2k3 / IIS 6 system.
So i thought since html form worked there must be some problem between the communication of the swf file with the php one.
Any ideas?
Here's the code for sending the data into the php.








Attach Code

on (release) {
var loadVar = new LoadVars();
loadVar.onLoad = function(success:Boolean){
if (success) {
gotoAndStop(44);
} else {
gotoAndStop(45);
}
}

loadVar.foename = foename.text;
loadVar.surname = surname.text;
loadVar.email = email.text;
loadVar.subject = subject.text;
loadVar.texts = comments.text;
loadVar.sendAndLoad("http://www.freshways.gr/email.php", loadVar, "POST");
}

View Replies !    View Related
Flash Fails (X)HTML Validator
Since adding flash content to this web page: http://www.jeremyhodge.pwp.blueyonde...f%20index.html

it fails validation. Does this matter and should I worry about it or not?

Is there a way to get it to validate or does flash content not validate?

Thanks for your help.

View Replies !    View Related
Flash Menu Fails To Hide Submenu
Hello All -

I have Flash 5. I have built a file with 8 NAV buttons. Each NAV button will have the abaility to show a submenu, and each submenu will have 3-7 buttons used to launch a URL.

(** right now all of the submens are the same - I'll change these when I get the code right)

I can get the main NAVs to show the submenu ok, and I have found a way to make each submenu show up highlight too. BUT ----

The submenus fail to hide when you mouse off them. What am I missing?

In my submenu I have frame one called 'hide' and frame two called - show; this is where the buttons/submenu is.

I can email the FLA if needed.

Thanks

RB

View Replies !    View Related
Flash Player Fails To Load Variables Why The *$%#?
Hiya,

I'm building a Flash-based site that uses a lot of data read in from .txt files. The .swf's should draw performance graphs etc, and the data is updated on a a daily basis. The data itself comes from SQL, and comes in as a string that FlashPlayer converts into arrays for ease of plotting and scripting. The scripts are pretty complex, 200 lines or so.

The difficulty I'm having is that locally my .swf's run just dandy, lookin real good, but as soon as I upload them to the server, they stop running: when I click a link for a particular graph, the .swf doesn't read all the data in, and hence doesn't know how to draw the appropriate graph. It's also possible that the .swf doesn't even read in all of the script, but I can't tell. HOWEVER when I click the link a SECOND time, the graphs come up fine.

Now, I've tried to work around this by adding an 'allloaded' variable at the end of the .txt files, so that FlashPlayer should return to the first frame of the .swf unless 'allloaded' == true, and reload the .txt data. If 'allloaded'==true then Flash should go ahead and do its thing, but not otherwise...BUT This does not @&*£ing work either; the .swf tries to retrieve the .txt file a few times, then times out, and gives me a silly blank screen, standing around,shuffling its feet and looking embarrassed but not doing what I'm asking it to do!

So, any suggestions? I found a post from the year 2000 on Google, but the poster's email address had changed. This is turning into some kind of nightmare.

Then the next issue I'm gonna have to tackle is to prevent the .txt files from caching once FlashPlayer consents to read the files. I think I know how to do that though, using a random number at the end of the loadVariables command. But if I can't get Flash to read in the data in the first place, then this is all speculation!

Please help. I'm thinking of going into carpentry soon; technology is giving me allergy.

Thanks
Lassi

View Replies !    View Related
HTTPS Over Flash Remoting Fails To Connect
Hi all the flash freaks - flash masters!

My problem will probably be a piece of cake for you so here it goes:

My application (is attached) should connect over HTTPS to server. When it will be finished, people should download it first and then run on their computer. So here is the problem. As you can try to run this app you will notice that there is a login window. You should then connect with username: markeb10 and password:keber . If everything goes smooth you will se the red light turn to green. But if it fails nothing actually happens.

I tried to run this application localy on my home computer and it works fine in firefox but it fails to connect in explorer or in Flash authoring environment. In firefox I use the latest flash player 7.19 and also explorer i believe is updated so it should be 7 and above. I read something about macromedia security policy. Well I don't think that is here the case becouse if you change : NetServices.setDefaultGatewayUrl("https://kevik.msplet.com/flashservices/gateway");

to NetServices.setDefaultGatewayUrl("http://kevik.msplet.com/flashservices/gateway")

the connection SHOULD WORK everwhere.

So what am I missing? I'm running my server on Linux Gentoo - Apache 2.0. - Flah Communication server - Coldfusion MX SERVER - SSL -php.
Have I forgot to configure something?

Link to my litle source fla file:

kevik.msplet.com/FCS_SecureTix_new.fla

I would reall appreciate if any of you guys could help!

Thanx!!

FASTER LINK

http://us.f1f.yahoofs.com/bc/3f97cdb...ShISBB16hXS8PJ

View Replies !    View Related
Testing Flash: Works Locally, Fails On The Web
My current project is displaying some very odd behavior I have never come across before. I am up against the wall with a deadline and no troubleshooting has lead to a solution yet. I am desperate for help.

I have a very simple SWF, plays some basic animation, and calls in external MP3 voiceover. Nothing complex. When the animation is complete, it lands on a static frame with 3 buttons. The buttons are actually instances of the same MC with a nested btn in, the text on the btn passed by a variable. Mouse over the btn and the MC plays a little animation. Click on the btn and a MovieClipLoader class calls in a SWF, which itself calls in another SWF of just formatted text.

For some reason this all tests well on my computer, and (very strangely) on our dev server for staging. When the files get deployed to to live site the animation plays through to the static frame with the btns, but when clicked the btns do not work. The external SWF does not load.

Now we've tested and tried every scenario checking the correct paths to the SWFs and everything is where it should be. I'm staring at the code waiting for something to jump out at me but it is very basic, and nothing looks astray.

We had a similar issue last night when the animation would not even play. It turned out the SWF was getting hung up on a frame that had an animated mask on it. I broke the mask into a shape and the SWF played properly after that. It took us 2 hours to figure that out. I was infuriated. Why would something so basic cause a movie to fail? Has anyone ever experienced this before? Is it a known bug? Could this be related to the issue of the btns now not working? I am at a loss where to try next, especially when something as random and obscure as a mask caused an earlier failure.

If you have any advice, please I would deeply appreciate it.

mm66


Code:
// this is the frame action on the final static frame of the presentation
stop();
voCar04.start(0, 0);
voCar04.setVolume(200);
voCar04.onSoundComplete = function(){
music.volumeTo(50, 2, "linear"); // using mc_tween imported class
}
// set text labels of the 3 buttons
headset_mc.label_mc.label_txt.text = "HEADSET";
cellPhone_mc.label_mc.label_txt.text = "MOBILE PHONE";
visorKit_mc.label_mc.label_txt.text = "CAR KIT";

var prodLoader:MovieClipLoader = new MovieClipLoader();

// sets the btn interactivity, plays a little animation when rolled over
headset_mc.hotSpot_btn.onRollOver = function(){
headset_mc.gotoAndPlay(2);
}
headset_mc.hotSpot_btn.onRollOut = function(){
headset_mc.gotoAndPlay(12);
}
cellPhone_mc.hotSpot_btn.onRollOver = function(){
cellPhone_mc.gotoAndPlay(2);
}
cellPhone_mc.hotSpot_btn.onRollOut = function(){
cellPhone_mc.gotoAndPlay(12);
}
visorKit_mc.hotSpot_btn.onRollOver = function(){
visorKit_mc.gotoAndPlay(2);
}
visorKit_mc.hotSpot_btn.onRollOut = function(){
visorKit_mc.gotoAndPlay(12);
}

// sets the call to the external SWFs, tried 2 methods of doing this, neither worked
headset_mc.hotSpot_btn.onRelease = function(){
_root.products_mc.loadMovie("product2.swf", 1);
//_root.prodLoader.loadClip("product2.swf", _root.products_mc);
}
cellPhone_mc.hotSpot_btn.onRelease = function(){
_root.prodLoader.loadClip("product3.swf", _root.products_mc);
}
visorKit_mc.hotSpot_btn.onRelease = function(){
_root.prodLoader.loadClip("product1.swf", _root.products_mc);
}

View Replies !    View Related
HTTPS Over Flash Remoting Fails To Connect
Hi !

I connect to COLDFUSION over flash remoting. This code works fine:


NetServices.setDefaultGatewayUrl("http://123.123.123.123/flashservices/gateway");

But when i want to get this baby go secure, over https, it fails:

NetServices.setDefaultGatewayUrl("https://123.123.123.123/flashservices/gateway");

i get Error opening URL: "https://XXX.XXX.XXX/flashservices/gateway" . It also doesn't work when the swf is on the server.

I'm running a server on linux Gentoo with Apache 2.0 Coldfusion, flashcom PHP,SSL.

Is there something I'm missing here? Do I have to configure my server anyhow?

Thank you for your kind answers!!!

Marko

P.S.: I can browse https sites served from my server. So I guess my SSL is ok.

View Replies !    View Related
Flash VIdeo Fails On Destination Server
http://www.bennettgrouponline.com/flash_video.html

http://www.tallpinedesign.com/bg/gdf.html

Hi,

I'm a designer. I've created a Flash video that works locally and on the web on two different servers, but the video fails on the destination server (top URL).

Any ideas why this might be? --If it's server configuration, do you have any suggestions as to what needs to be addressed?

Thank you for your time.

Max

View Replies !    View Related
Testing Flash: Works Locally, Fails On The Web
My current project is displaying some very odd behavior I have never come across before. I am up against the wall with a deadline and no troubleshooting has lead to a solution yet. I am desperate for help.

I have a very simple SWF, plays some basic animation, and calls in external MP3 voiceover. Nothing complex. When the animation is complete, it lands on a static frame with 3 buttons. The buttons are actually instances of the same MC with a nested btn in, the text on the btn passed by a variable. Mouse over the btn and the MC plays a little animation. Click on the btn and a MovieClipLoader class calls in a SWF, which itself calls in another SWF of just formatted text.

For some reason this all tests well on my computer, and (very strangely) on our dev server for staging. When the files get deployed to to live site the animation plays through to the static frame with the btns, but when clicked the btns do not work. The external SWF does not load.

Now we've tested and tried every scenario checking the correct paths to the SWFs and everything is where it should be. I'm staring at the code waiting for something to jump out at me but it is very basic, and nothing looks astray.

We had a similar issue last night when the animation would not even play. It turned out the SWF was getting hung up on a frame that had an animated mask on it. I broke the mask into a shape and the SWF played properly after that. It took us 2 hours to figure that out. I was infuriated. Why would something so basic cause a movie to fail? Has anyone ever experienced this before? Is it a known bug? Could this be related to the issue of the btns now not working? I am at a loss where to try next, especially when something as random and obscure as a mask caused an earlier failure.

If you have any advice, please I would deeply appreciate it.

mm66



Code:
// this is the frame action on the final static frame of the presentation
stop();
voCar04.start(0, 0);
voCar04.setVolume(200);
voCar04.onSoundComplete = function(){
music.volumeTo(50, 2, "linear"); // using mc_tween imported class
}
// set text labels of the 3 buttons
headset_mc.label_mc.label_txt.text = "HEADSET";
cellPhone_mc.label_mc.label_txt.text = "MOBILE PHONE";
visorKit_mc.label_mc.label_txt.text = "CAR KIT";

var prodLoader:MovieClipLoader = new MovieClipLoader();

// sets the btn interactivity, plays a little animation when rolled over
headset_mc.hotSpot_btn.onRollOver = function(){
headset_mc.gotoAndPlay(2);
}
headset_mc.hotSpot_btn.onRollOut = function(){
headset_mc.gotoAndPlay(12);
}
cellPhone_mc.hotSpot_btn.onRollOver = function(){
cellPhone_mc.gotoAndPlay(2);
}
cellPhone_mc.hotSpot_btn.onRollOut = function(){
cellPhone_mc.gotoAndPlay(12);
}
visorKit_mc.hotSpot_btn.onRollOver = function(){
visorKit_mc.gotoAndPlay(2);
}
visorKit_mc.hotSpot_btn.onRollOut = function(){
visorKit_mc.gotoAndPlay(12);
}

// sets the call to the external SWFs, tried 2 methods of doing this, neither worked
headset_mc.hotSpot_btn.onRelease = function(){
_root.products_mc.loadMovie("product2.swf", 1);
//_root.prodLoader.loadClip("product2.swf", _root.products_mc);
}
cellPhone_mc.hotSpot_btn.onRelease = function(){
_root.prodLoader.loadClip("product3.swf", _root.products_mc);
}
visorKit_mc.hotSpot_btn.onRelease = function(){
_root.prodLoader.loadClip("product1.swf", _root.products_mc);
}

View Replies !    View Related
#include Fails When Running Movie Outside Of Flash
hi guys,

#include "script.as" seems to fail when i launch the movie outside of Flash environment. The AS file resides in the very same directory and Security Settings have been adjusted.

Any ideas as to why the include may not be working?

Cheers!

View Replies !    View Related
Flash Works One Time In IE, Fails On Reload.
A flash slide show we made works fine in FireFox, and works the first time you load the page in IE7 (From a fresh application open). Once you view it in IE, and go to another page, then go back to that url, or just refresh the page, IE (I Tested this on 3 computers). Just shows a while blank box where the slide images are located. The flash is still loaded because the controllers are showing, its just now showing/loading the images.

I would post a Url for your viewing, but this is my first post.

Any ideas?

View Replies !    View Related
Flash 8 Site, Old Players-detection Fails Help Plz
hi there.

i just uploaded a site, implemented the detection/autoupdate code from deconcept.com but the site still wont update to flash player 8, therefore not properly showing the content to surfers with older player versions - i cant seem to find a good way to do this and i cant weem to work out a way using the detection that comes with flash 8 (the one you can activate on exporting the swf) because i've used another script to make the site a full screen flash page... any help would be greatly appreciated.

thanks in advance.

View Replies !    View Related
Page With Multiple Flash Objects Fails
Hello,

I have a simple HTML page with 60 embedded Flash objects. It always appears to load correctly, and sometimes everything works properly, but often, the Flash objects just stop responding.

Same symptoms with current FF & IE browsers. I run a WAMP server which is right up to date on OS, Apache 2.0.x, MySQL 5.0.x and PHP 5.2.x. I suspect my server set-up is at fault, or perhaps there is good reason to limit the number of Flash objects on a page?

I'd really appreciate any suggestions. I'm not a real coder, more of a hacker, so question anything you see!

You can see the page here:
http://www.withcourage.com/alleys/index.html

The Flash objects are all Wimpy media player buttons; simple, and small, and I've used them successfully in the past. This is how they're coded:


Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="50" height="50">
<param name="movie" value="http://www.withcourage.com/wimpy_button.swf?theFile=http://www.withcourage.com/alleys/audio/loop01.mp3&autoplay=no&loopMe=yes" />
<param name="quality" value="high" />
<param name="BGCOLOR" value="#000000" />
<param name="wmode" value="transparent" />
<embed src="http://www.withcourage.com/wimpy_button.swf?theFile=http://www.withcourage.com/alleys/audio/loop01.mp3&autoplay=no&loopMe=yes" width="50" height="50" quality="high" bgcolor="#000000" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" /></object>


Thanks!

P.S.: Side note; if you do view the page, and try the buttons, could you please report back whether the audio is looping 100% seamlessly or not? I went to a lot of trouble using the Blade MP3 encoder to try and make the playback truly gap-less, but the results seem to vary. Thanks again.

View Replies !    View Related
PHP/Mysql Fails In Flash 2004 Professional
Good Morning,

I've been working on a complex flash application that has a great deal of interaction w/ a php/mysql backend. I've been developing it on MX for 3 months now and then my company is testing Flash MX 2004 Professional.

When I save and export the player in flash 7.01/ actionscript 2.0, none of the php/mysql interactions work and the player locks up. I have dropdown list's that are populated by db data now they infinitely display "undefined".

Now, obviously, I know there are quite a bit of changes regarding scripting support in MX 2004 but, I can't seem to find anything that directly can pinpoint the problem.

Any help would be a godsend.

Thanks a whole lot,

Clem C.

View Replies !    View Related
BUG OR A FEATURE? Flash 2004 Fails To Connect Over HTTPS?
Ok.

My problem is that I would like to conncet from Flash MX 2004 Authoring evironment trough https to ColdFusion (database). But everything seems to be ok when I connect trough http.

I have also attached a file so you can try and see. It is very small and everthing you need to change is in this line :

It is set to https .NetServices.setDefaultGatewayUrl("https://kevik.msplet.com/flashservices/gateway");

if you change it to http like NetServices.setDefaultGatewayUrl("http://kevik.msplet.com/flashservices/gateway");
Flash Mx 2004 can connect to database. I think there is some missunderstanding with certificates as Flash MX probably can not manage with them... I don't know. Only thing that I know that when i generate swf (which has this line inside NetServices.setDefaultGatewayUrl("https://kevik.msplet.com/flashservices/gateway");
the conncetion work only in mozzila. This swf is nothing than a login (if you log in successfuly you will see a green light) otherwise it stays red. Username: markeb10 , password : keber. Try it for yourself .

I also created crossdomain.xml and it didn't worked. WHY CAN'T I CONNECT TROUGH HTTPS in explorer and FLASH MX 2004 ? Am I missing someting? Why only mozilla let me to connect?

I have a swf file online: (it works fine - except it doesn't work from Flash MX or Explorer when is not on the server)

link on the server:

https://kevik.msplet.com/FCS_SecureTix_new.swf

(server is a litle slow so please be patient)

Here is also a link to my flash source code: (fla)

[L=FCS_SecureTix_new.fla]
http://us.f1f.yahoofs.com/bc/3f97cdb...QSZSBB1UXDS8PJ[/L]


Thank you for helping me!

Marko

View Replies !    View Related
BUG OR A FEATURE? Flash 2004 Fails To Connect Over HTTPS?
Ok.

My problem is that I would like to conncet from Flash MX 2004 Authoring evironment trough https to ColdFusion (database). But everything seems to be ok when I connect trough http.

I have also attached a file so you can try and see. It is very small and everthing you need to change is in this line :

It is set to https .NetServices.setDefaultGatewayUrl("https://kevik.msplet.com/flashservices/gateway");

if you change it to http like NetServices.setDefaultGatewayUrl("http://kevik.msplet.com/flashservices/gateway");
Flash Mx 2004 can connect to database. I think there is some missunderstanding with certificates as Flash MX probably can not manage with them... I don't know. Only thing that I know that when i generate swf (which has this line inside NetServices.setDefaultGatewayUrl("https://kevik.msplet.com/flashservices/gateway");
the conncetion work only in mozzila. This swf is nothing than a login (if you log in successfuly you will see a green light) otherwise it stays red. Username: markeb10 , password : keber. Try it for yourself .

I also created crossdomain.xml and it didn't worked. WHY CAN'T I CONNECT TROUGH HTTPS in explorer and FLASH MX 2004 ? Am I missing someting? Why only mozilla let me to connect?

I have a swf file online: (it works fine - except it doesn't work from Flash MX or Explorer when is not on the server)

link on the server:

https://kevik.msplet.com/FCS_SecureTix_new.swf

(server is a litle slow so please be patient)

Here is also a link to my flash source code: (fla)

[L=FCS_SecureTix_new.fla]
http://us.f1f.yahoofs.com/bc/3f97cdb...QSZSBB1UXDS8PJ[/L]


Thank you for helping me!

Marko

View Replies !    View Related
Bug: Multiple Flash Objects On A Page, Animation Fails
I'm using flash 9, with actionscript 3.0. I have two flash objects on a page and randomly the animations of one or both of the flash objects fails. Has anybody else had this problem? Also, I think it might only be in firefox, as I cannot reproduce the issue in IE7

View Replies !    View Related
Flash ActiveX's CallFunction Method Always Fails (E_FAIL)
Hi,

I likely have collected all information in the web, but still facing the problem.

I am trying to host the Flash ActiveX in a C# program and establish two-way communication between the host application and the ActionScript contained in my SWF file.

On the ActionScript side, I use the ExternalInterface class.

On the ActiveX side, for callbacks, I use the IShockwaveFlash::FlashCall event, which works perfectly in all host applications I have experimented with. For direct calls, I use IShockwaveFlash::CallFunction() method, which doesn't work on some host applications (unfortunately those I need). It fails with COM error (HRESULT E_FAIL, "Unspecified error").

Here is what I have done so far:

1) Installed the latest Flash Player 9, registered Flash9c.ocx ActiveX.
2) Granted Flash security permission to the folder where my SWF is located by prescribing it in
"C:Documents and SettingsmynameApplication DataMacromediaFlash Player#SecurityFlashPlayerTrustmyapp.cfg"
Before I did this, the FlashCall event caused a SecurityError reported from the Flash player. So it makes me think that my problem is not a security issue any more.
3) Tested the SWF file hosted in a browser (both IE and Firefox). The two-way communication with JavaScript works perfectly in both ways, so it means there's no mistake in my ActionScript code, and the way I call ExternalInterface methods is correct.
4) From JavaScript, I tried the following two ways of calling the ActionScript function (called "Handshake") in the SWF movie object:

// JavaScript code
// call directly
swfMovieObject.Handshake( "hello world" );
// call via CallFunction
swfMovieObject.CallFunction( "<invoke name="Handshake" returntype="xml"><arguments><string>hello world</string></arguments></invoke>" );

the both methods also worked perfectly, which means the <invoke> xml string I am passing is correct.
5) When hosted in VB6 and on MS Access 2003 Form, the CallFunction method works perfectly.
6) Finally, the CallFunction method fails to work when hosted in Word 2003 document, Excel 2003 worksheet, VBA form in Word 2003 or Excel 2003, and also in a C# program written in Visual Studio 2005.


I've seen others reporting this problem, but seen no resolution so far. It may be that this problem occurs only on some machines? For example, the sample .NET program here http://www.codeproject.com/cs/media/flashexternalapi.asp?df=100&forumid=226349&exp=0&select=1518421 doesn't work on my machine, although it should have worked on the author's machine.

Please help!

View Replies !    View Related
Flash Player ActiveX Installation Fails On Win2k3
when i install flashplayer activex online via adobe website, it always says 'failed installation or install has been cancle' (my os language is chinese, so the text is translation by my POOR english)

i have tried uninstall flashplayer on my computer, remove regedit info about flashplayer, delete all files in folder 'C:WINDOWSsystem32MacromedFlash', but the problem still exist.

if i install with installation program, it always says 'this is not current version, please visit adobe.....(translation)'.

how do i fix this problem? thanks advance! and excuse me for my bad english.

View Replies !    View Related
Flash Site Fails To Display Properly In Firefox & Ie.
Greetings all,

site below fails to display properly. When i visit the link below using firefox or ie6, i see it fine. but when anyone else visits it they see it with defects.

defects include product text overlapping the fg&m logo, ferrioni home designs, inc header is cut off and only part of it displays, featured products headers is also cut off and only part of it displays.

http://www.websitemedia.net/playground/ferrioni/sandbox/index.html.

have tried the following.

**made sure latest flash player is installed where customer fails to see the site display properly.
**made sure latest ie and firefox browsers are installed where customer fails to see the site display properly.

One important note, we are export flash movie using flash vesion 6.

Need some insight on how to make sure everyone sees the site displayed properly.

Thanks in advance

BL

View Replies !    View Related
Flash Movie Fails To Display In Some Ffox Browsers
Hi

I made this movie for someone: http://www.designity.nl/player3/test3.htm
I tested it in ie and mozilla firefox 0.8-1.0 and it worked fine. Then I was asking the person whom I made it for to check it out and he said he got a blank page :S.
I suspect this person has like a wrong version of flash installed, but how to check? I dont know what is the minimum required version for my movie can I look it up in flash?
Another possibility is that he has activeX disabled wich might cause the problem but I doubt this.

Peach

View Replies !    View Related
SendAndLoad With PHP Bug? Flash 6 Works, Flash 7 Fails
I’m using sendAndLoad to send information from a Flash “form” to PHP where an email is sent out. This should be simple, but I’ve reached some odd conclusions.

1) I can’t get it to fail on my machine. By fail I mean, the email does not go through and returns a failed response from PHP back to Flash.
2) It fails randomly for different people, but works most of the time.
3) Testing with HTML, the php script works, so I think it is in the Flash.
4) I have a friend who has tested on Win 2k sp4 w/ IE 6.0.2800 and Win XP sp2 w/IE 6.0.2900 and the script works when I export to Flash 6, fails consistently when I export to Flash 7.
5) One note - I’m using Progressive Video in the same site as this form, so it needs to work when exported to Flash 7.


So- My question is, Does anyone have any idea why this would work on some machines, and then not on others? Also- why would it work on ALL machines when exported to Flash 6, but fail when exported to Flash 7? I'm hoping that someone with fresh eyes has an idea of what I'm missing here or that someone has encountered this problem before and found a solution.


Here’s AS code basics (I’m taking out some of the details to shorten the code)


ActionScript Code:
//mailURL is set above as a string
_global.mailURL = "http://www.server.com/folder/mail.php;"

sendBtn.onRelease = function(){ 


    // there are some tests before this checking for valid input

   
var myVars = new LoadVars();
    myVars.email = email;
    myVars.list = list;
    myVars.message = message;
               
myVars.onLoad = function(success) {
        if (success) {
       
//ty is just a dynamic text field
        ty.text = "thank you, your message has been sent";
        ty.alphaTo(99,1);      
       
//Clear everything in a separate function
        tyReset = setNewTimeout(thankyouReset, 4000);      
                       
        //PHP returns with &response=
        //output is another dynamic text field for testing
output.text += myVars.response;
                                                           
        } else{
       
//tell user there was an error
        ty.text = "your message failed to send";
                       
        output.text += myVars.response;
       
}
    };
               
    //mailURL set above
myVars.sendAndLoad(mailURL, myVars, "POST");
    ty.text = "sending message...";
    ty.alphaTo(99,1);
                               
   
};

The PHP is fairly simple, and I’ve tested it alone successfully, but just in case here is the basics of the PHP that matter:


ActionScript Code:
if(mail($sendTo, "subjectLine", $message, $header)){


    $response = "SUCCESS";

    echo '&response='.urlencode($response);

}else{

    $response= "FAILURE";

    echo '&response='.urlencode($response);
}

View Replies !    View Related
Flash Fails To Parse PHP Vars When Retrieved By MySQL Query.
FACTS
1. I'm using PHP to query a mySQL database.
2. I'm using the LoadVars class to retrieve those variables from PHP into Flash.
3. I'm using Flash 8, PHP 5, and MySQL 5.



PROBLEM:
Flash will not parse the PHP page if I include a MySQL
query on that page. The variables are passed, but Flash
doesn't read them.


For example, this code below works fine on its own:


Code:

$tagline = " some word";

echo ("&tagline=$tagline");

But when I add the mySQL query, Flash fails to
pickup the variables even though they show up as URL
encoded in the source of the output html page.


Code:

db_connect();

$sql = 'SELECT
tagline
FROM
some_table
ORDER BY RAND() LIMIT 1';
if( ($result = mysql_query($sql)) === FALSE )
{
echo mysql_error();
} else
while ($row = mysql_fetch_assoc($result))
extract($row);

echo ("&tagline=$tagline");
This is the actionscript I'm using:


Code:

tagData = new LoadVars();

tagData.onLoad = function(write){
text = this.tagline;
}
tagData.load("variables.php");

Can anyone think of a workaround for this?

View Replies !    View Related
Http Interface Loaded Into XML Class Fails On Web (but Works In Flash IDE)
Hello All,

I am trying to pull in some random numbers from www.random.org's http interface as shown here:

code:

var my_lv:XML = new XML();
var randomNumbers:Array = null;

my_lv.onLoad = function(success:Boolean) {
if (success) {
trace(unescape(this.toString())); // this prints out the 10 random numbers
_root.randomNumbers = this.toString().split("
");
} else {
trace("Error loading/parsing LoadVars.");
}
};
// load the 10 random numbers as specified here
my_lv.load("http://www.random.org/integers/?num=10&min=1&max=6&col=1&base=10&format=plain&rnd =new");


The problem is that, while this succeeds when "testing movie" from the flash IDE, it fails when the flash movie is accessed by users on the server. I thought this might be a sandbox security issue, so I whitelisted the www.random.org domain in my crossdomain.xml file, but it still doesn't work.

The relevant live doc is here: http://livedocs.adobe.com/flash/9.0/...=00002333.html

it says things like:
--------
Parameters
url:String - A string that represents the URL where the XML document to be loaded is located. If the SWF file that issues this call is running in a web browser, url must be in the same domain as the SWF file.
------------

I also came across the following paragraph on the net:
----
TIP: IMPORTANT!!! You can only load XML files if they reside on the same network as the Flash Movie. This means you can not link to an external XML feed such as a RSS Newsfeed (you may have heard of them being called blogs). There is a way around this. Either through Flash Remoting or through a Server Side Scripting Technology such as Microsoft's ASP/.NET, Java Server Pages, ColdFusion or PHP. These tools can be used to connect to external XML feeds which can then pass the content onto your Flash movie.
-----

I also tried System.security.allowDomain("www.random.org") which didn't work.

In the flash IDE the load.success evaluates as "true" and load.status evaluates as "0"

On the web load.success evaluates as "false" but the load.status strangely evaluates as "0" also

Anyone have any ideas? Thank you.

View Replies !    View Related
Flash Site Fails To Display Properly In Internet Explorer.
I am having trouble finding out why http://websitemedia.net/playground/ferrioni/sandbox/ fails to display properly in internet explorer ! The same site, http://websitemedia.net/playground/ferrioni/sandbox/, displays properly in firefox.

I have checked & rechecked everything.

What am i missing?

BL

View Replies !    View Related
Progressive Video Works When Tested From Flash But Fails Once Deployed On Server
Heres the code that I'm using
Code:
var videoURL:URLRequest = new URLRequest("");
var connection:NetConnection;
var stream:NetStream;

function sec(e:IOErrorEvent){
trace(e);
}
var videoX:int = 0;
var videoY:int = 0;
var request:URLRequest = new URLRequest("main.xml");
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, done);
var xml:XML = new XML();
loader.load(request);
var duration:Number =0;
var streamArray:Array = [];
var video:Video = new Video(150, 200);
function done(e:Event){
xml = new XML(loader.data);
for(var i:int = 0; i< xml.video.length(); i++){
videoURL = new URLRequest(xml.video[i].@url.toString());
videoX = xml.video[i].@x;
videoY = xml.video[i].@y;
connection = new NetConnection();
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
connection.addEventListener(AsyncErrorEvent.ASYNC_ERROR, async);
connection.addEventListener(IOErrorEvent.IO_ERROR, sec);
video= new Video(150, 200);
connection.connect(null);
}
addEventListener(Event.ENTER_FRAME, loop);
}
var netClient:Object = new Object();
netClient.onCuePoint = onCuePoint;
netClient.onMetaData = onMetaData;
function loop(e:Event){
for(var k:int = 0; k < xml.video.length(); k++){
if(streamArray[k].time >= duration){
streamArray[k].seek(10);
}
}
}
function onCuePoint(info:Object):void
{
trace("cuePoint: time=" + info.time + " name=" + info.name + " type=" + info.type);
}
function onMetaData(info:Object):void
{duration = (info.duration - 3);
trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate);
}

function async(event:AsyncErrorEvent){
trace ("there was an AsyncErrorEvent " +event);
}
function netStatusHandler(event:NetStatusEvent):void {
switch (event.info.code) {
case "NetConnection.Connect.Success":
connectStream();
break;
case "NetStream.Play.StreamNotFound":
trace("Stream not found: " + videoURL);
break;
}
}

function securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
}

function connectStream():void {
stream = new NetStream(connection);
streamArray.push(stream);
stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
stream.client = netClient;
video.attachNetStream(stream);
video.x = videoX;
video.y = videoY;
stream.play(videoURL.url);
addChild(video);
}
Just to reiterate, the file works fine when I test it in Flash and as a projector. The video doesn't load when I download the files from my server. I have checked to ensure that all the file paths are correct. Does anybody have any advice or suggestions? I appreciate any help that can be offered.

View Replies !    View Related
Flash 9 Install Fails With Free Up 5MB Space Error When 31.9GB Is Free
Hey all,

What gives? Flash 9 install fails with free up 5MB space error when 31.9GB is free on Windows 2003 Enterprise Server E: when running in admin mode. Firefox 2 updated and runs OK.

View Replies !    View Related
LocalConnection Fails In IE When I Use The "Flash Object Fix"
Hello,

I have two swf's on my website communicating through localconnection (menu on top, and a main movie under it). After I include this code:
Code:
<script type="text/javascript" src="js/fixFlash.js"></script>
in the <head> of the HTML file, the localConnection fails in IE. It's working fine with Firefox. I'm using this "flash object fix" for IE. However, I'm not sure if the problem is the script itself, or the code I insert to the HTML-file, that causes the localConnection fail.

Have anyone here experienced this before, and if so - any ideas about how to solve it?

Thanks,

Amund

View Replies !    View Related
IF All ELSE Fails
Hello
I want to make this code work with if , if else and else statements. _level6.choice is my variable. can someone please show me the right way to script it. THANX for your help.

if (_level6.choice == "illu") {
}
tellTarget ("_level3.illu") {
gotoAndPlay (2);
}
if (_level6.choice == "pac") {
tellTarget ("_level4.pac") {
gotoAndPlay (2);
}
if (_level6.choice == "design") {
tellTarget ("_level5.design") {
gotoAndPlay (2);
}
}
}

View Replies !    View Related
When All Else Fails....ask Someone Smarter Than You
Hi, I'm wondering if you can help me...
You see I have a movie clip with 10 frames and a keyframe on frames 1, 5, and 10. Frame 1 is labeled "roll" frame "5" is labled "middle" and frame 10 is labled "click". Within each keyframe is a stop action. When the movie reaches frame 10 there is a stop action and a tell target action which tells another movie to play. This is for an interface I am creating. The movie is set up so that there is an invisible button over the movie clip which controls it. I have been attempting to find out how to make it when I roll over the button, the movie will play from frame 1 to frame 5 and stop, and then when I roll off of it, it goes back to frame 1. Easy enough, but here's where I get hung up: I want to make it so that when its clicked, it plays from frame 5 to frame 10 and stops and STAYS there weather the user rolls over it, clicks it again, whatever. I have been trying to use the "if / else if" and "_currentframe" commands, but it is bearing no fruit. I hope somebody can give me a hand.
Thanks

View Replies !    View Related
Actionscript Fails On Mac
I've created 2 Flash5 games that work on PCs and fail on Macs. Anyone know what might cause this?

In this game the character that is supposed to be controlled by the arrow keys just flips back and forth on his own:

http://www.jlf.com/eg/games.htm

In this coloring game, the palette squares are black on Macs:

http://www.jlf.com/eg/coloring.htm

Thanks for any advice...

View Replies !    View Related
Windows Xp Fails
Thanks for the help...
I am testing my site on Windows XP (locally). I can see executables but the .swf's are hanging up when I try to view them in Windows Internet Explorer.

Does anyone have a clue?HELP!!!!!!!!!!!!!!!!!!

J

View Replies !    View Related
Preloader Fails
Hello,

I,ve made a movie but when I publish this movie and look at the Bandwith profiler, there's a bar in frame 1 which reaches 512 kb..
I think that's why my preloader failes...

Who's got a solution???

tnx...DEQ

View Replies !    View Related
Do Something When LoadMovie Fails
im loading JPGs using loadMovie, and i want to load an external SWF in case the especified JPG doesnt exist...
i got


Code:
if(presion.ventana_mc.target_mc.loadMovie(contenido[Number(numero)][1]) == undefined){

presion.ventana_mc.target_mc.loadMovie("nodisponible.swf")

};
but that just loads the "unavailable" SWF even if the JPG exists. what does LoadMovie return when it fails? thoght it was undefined.

View Replies !    View Related
Pre-loader Fails.
My preloader script uses getBytesLoaded() and getBytesTotal() but still takes way too long before the getBytesLoaded changes from 0 to anything more.

Basically, the movies (when using the loadmovie() command won't load, or very very very slowly).

getBytesTotal also gives a suspicious -1 reading.

Anyways, if you need the .fla just ask.
My website can be viewed at:

http://www.art-team.ca/f4f/index.html

View Replies !    View Related
Substr Fails
Hi everybody,
I am attempting to extract a substring from a string as the heading would suggest unfortunately I am getting an error substr method does not exist, every time ?? What is this ? I am coding is as 2, so there may be something I am missing. HAve tried everything. But she no worky.
Cheers everbody.

View Replies !    View Related
Actionscript Fails - Why?
can you spot what is wrong with my code
I have 3 checkboxes on scene 1 of the movie. When one is clicked the other 2 should be cleared. The initial value of the first checkbox (instance name is biking) is set to true and the other 2 (walking and running) are set to false.
At the moment all 3 can be checked - this should not be allowed by my code - the code below is in an action layer frame 1 and the checkboxes have a change handler set (called checkChanged, checkChanged2 and checkChanged3).
Points of interest I have noticed are:
1. The trace bit fails to execute if its put inside the if conditional.
2. I can get the trace to work inside the if conditional if I change the double equals to a single equals




code:

function checkChanged(){
trace("check box 1 changed");
if(this.selected == true){
_root.running.selected = false;
_root.walking.selected = false;
}
}

function checkChanged2(){
trace("check box 2 changed");
if(this.selected == true){
_root.biking.selected = false;
_root.walking.selected = false;
}
}

function checkChanged3(){
trace("check box 3 changed");
if(this.selected == true){
_root.biking.selected = false;
_root.running.selected = false;
}
}



I really would like some light shed on this if you can please. Just a novice though so please spell out in idiot proof language whats going on and how do I get it to work. I know radio buttons is a better choice but this is a learning exercise and a challenge I have set myself. I use Flash MX

View Replies !    View Related
[F8] Exporting Fails
I've used Flash for years and years, and all of a sudden, a flash file that I have won't compile!

When I hit CTRL-ENTER, the small progress window labeled ("Exporting Flash Movie") shows, but then the .swf never launches! No .swf file is being compiled either.

What is wrong here? I've tried nearly all publish settings there are!

Help deeply appreciated!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved