URLLoader works great localhost but live does not work
I have been working on this for a few days on the localhost set up, retriving data as varaibles from a php string.
There is a output.php file located on the server
http://example.com/room/output.php
My Flash code for retriving the code(the swf in embedded into a menu.php file that is in this dir http://example.com/room/menu.php)
var theloader:URLLoader = new URLLoader();
theloader.dataFormat = URLLoaderDataFormat.VARIABLES;
theloader.load(new URLRequest("http://example.com/room/output.php"));
theloader.addEventListener(Event.COMPLETE, turnOn);
There is no error given by Flash, i just does not load
This is what i have tried(as far as the link is concered)
theloader.load(new URLRequest("http://example.com/room/output.php"));
theloader.load(new URLRequest("http://www.example.com/room/output.php"));
theloader.load(new URLRequest("/output.php"));
theloader.load(new URLRequest("output.php"));
Still is not loading the file, Any Suggestions would be helpful
Thanks
This is the file script, the php does not give any html, it simply outputs the requested string, no whitespaces nothing like that
Any help will be aprecaited, I just noticed that sometimes the animation freezes when it comes to loading the showImages function
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.events.TimerEvent;
var theloader:URLLoader = new URLLoader();
theloader.dataFormat = URLLoaderDataFormat.VARIABLES;
theloader.load(new URLRequest("output.php"));
theloader.addEventListener(Event.COMPLETE, turnOn);
//Set the Timer for the Images to Show up
var delayCall:Number = 3000;
var repeatCall:int = 1;
var imagesShow:Timer = new Timer(delayCall, repeatCall);
imagesShow.start();
//Add Event Listener for the imagesShow Timer
imagesShow.addEventListener(TimerEvent.TIMER_COMPLETE, showImages);
//Define Text Formats
//1st is Heading Text
var headingTxt:TextFormat = new TextFormat();
headingTxt.font = "Eurostile";
headingTxt.size = 18;
headingTxt.color = 0x40ABE3;
headingTxt.bold = true;
headingTxt.underline = true;
//2nd is Car Name Text
var carnameTxt:TextFormat = new TextFormat();
carnameTxt.font = "Eurostile";
carnameTxt.size = 14;
carnameTxt.color = 0x40ABE3;
carnameTxt.bold = true;
carnameTxt.underline = false;
//3rd is Car Description
var cardescTxt:TextFormat = new TextFormat();
cardescTxt.font = "Eurostile";
cardescTxt.size = 10;
cardescTxt.color = 0xF6F9FA;
cardescTxt.bold = true;
cardescTxt.underline = false;
//4th is for Car Price
var carpriceTxt:TextFormat = new TextFormat();
carpriceTxt.font = "Eurostile";
carpriceTxt.size = 15;
carpriceTxt.color = 0xF6F9FA;
carpriceTxt.bold = true;
carpriceTxt.underline = false;
function showImages(event:TimerEvent):void {
var bmw:MovieClip = new bmw_mc();
var ferrari:MovieClip = new ferrari_mc();
var lambo:MovieClip = new lambo_mc();
var mercedes:MovieClip = new mercedes_mc();
bmw.x = 260;
bmw.y = 340;
mercedes.x = 50;
mercedes.y = 18;
lambo.x = 530;
lambo.y = 20;
ferrari.x = 570;
ferrari.y = 370;
bmw.rotation = 20;
var bmw = new TransitionManager(bmw);
bmw.startTransition({type:Zoom, direction:Transition.IN, duration:4, easing:Elastic.easeOut});
addChildAt(bmw, 0);
var mercedes = new TransitionManager(mercedes);
mercedes.startTransition({type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
addChildAt(mercedes, 0);
var lambo = new TransitionManager(lambo);
lambo.startTransition({type:Blinds, direction:Transition.IN, duration:2, easing:None.easeNone, numStrips:10, dimension:0});
addChildAt(lambo, 0);
var ferrari = new TransitionManager(ferrari);
ferrari.startTransition({type:Fade, direction:Transition.IN, duration:8, easing:Strong.easeOut});
addChildAt(ferrari, 0);
function turnOn(event:Event):void {
//Looking After Spacing
var tft:Number = 325;
var twt:Number = 325;
var tct:Number = 50;
var tst:Number = 50;
//Looking after heading Text
var category:TextField = new TextField();
category.text = "CAR LIST";
category.x = 400;
category.y = 300;
category.setTextFormat(headingTxt);
var movieTween:Tween = new Tween(category, "x", Elastic.easeOut, 600, 400, 2, true);
addChild(category);
var categoryone:TextField = new TextField();
categoryone.text = "TRAILER LIST";
categoryone.x = 50;
categoryone.y = 300;
categoryone.setTextFormat(headingTxt);
var cargoTween:Tween = new Tween(categoryone, "x", Elastic.easeOut, 0, 50, 2, true);
addChild(categoryone);
var categorytwo:TextField = new TextField();
categorytwo.text = "CARGO";
categorytwo.x = 120;
categorytwo.y = 25;
categorytwo.setTextFormat(headingTxt);
var cocktailTween:Tween = new Tween(categorytwo, "x", Elastic.easeOut, 0, 120, 2, true);
addChild(categorytwo);
var categorythree:TextField = new TextField();
categorythree.text = "BIKES";
categorythree.x = 430;
categorythree.y = 25;
categorythree.setTextFormat(headingTxt);
var shotsTween:Tween = new Tween(categorythree, "x", Elastic.easeOut, 600, 430, 2, true);
addChild(categorythree);
//Iterating through the loop
for (var i:Number = 0; i < theloader.data.count; i++) {
if (theloader.data["carcat" + i] == "CarList") {
var carname:TextField = new TextField();
var cardesc:TextField = new TextField();
var carprice:TextField = new TextField();
carname.y = tft;
carname.x = 400;
cardesc.x = 400;
cardesc.y = tft+13;
carprice.y = tft+5;
carprice.x = 525;
carprice.text = "$" + theloader.data["carprice" + i];
carname.text = theloader.data["carname" + i];
cardesc.text = theloader.data["Bevdes" + i];
var myTween:Tween = new Tween(carname, "alpha", Regular.easeOut, 0, 1, 2, true);
var myPTween:Tween = new Tween(cardesc, "alpha", Strong.easeOut, 0, 1, 3, true);
var myDTween:Tween = new Tween(carprice, "alpha", Strong.easeOut, 0, 1, 3, true);
carname.setTextFormat(carnameTxt);
carname.autoSize = TextFieldAutoSize.LEFT;
cardesc.autoSize = TextFieldAutoSize.LEFT;
cardesc.setTextFormat(cardescTxt);
carprice.setTextFormat(carpriceTxt);
addChild(carname);
addChild(cardesc);
addChild(carprice);
tft += 30;
if (theloader.data["carcat" + i] == "Bikes") {
var carnameW:TextField = new TextField();
var cardescW:TextField = new TextField();
var carpriceW:TextField = new TextField();
carnameW.y = twt;
carnameW.x = 50;
cardescW.x = 50;
cardescW.y = twt+13;
carpriceW.y = twt+5;
carpriceW.x = 200;
carpriceW.text = "$" + theloader.data["carprice" + i];
carnameW.text = theloader.data["carname" + i];
cardescW.text = theloader.data["cardesc" + i];
var myTweenW:Tween = new Tween(carnameW, "alpha", Regular.easeOut, 0, 1, 2, true);
var myPTweenW:Tween = new Tween(cardescW, "alpha", Strong.easeOut, 0, 1, 3, true);
var myDTweenW:Tween = new Tween(carpriceW, "alpha", Strong.easeOut, 0, 1, 3, true);
carnameW.setTextFormat(carnameTxt);
carnameW.autoSize = TextFieldAutoSize.LEFT;
cardescW.autoSize = TextFieldAutoSize.LEFT;
cardescW.setTextFormat(cardescTxt);
carpriceW.setTextFormat(carpriceTxt);
addChild(carnameW);
addChild(cardescW);
addChild(carpriceW);
twt += 30;
if (theloader.data["carcat" + i] == "Cargo") {
var carnameC:TextField = new TextField();
var cardescC:TextField = new TextField();
var carpriceC:TextField = new TextField();
carnameC.y = tct;
carnameC.x = 120;
cardescC.x = 120;
cardescC.y = tct+13;
carpriceC.y = tct+5;
carpriceC.x = 270;
carpriceC.text = "$" + theloader.data["carprice" + i];
carnameC.text = theloader.data["carname" + i];
cardescC.text = theloader.data["cardesc" + i];
var myTweenC:Tween = new Tween(carnameC, "alpha", Regular.easeOut, 0, 1, 2, true);
var myPTweenC:Tween = new Tween(cardescC, "alpha", Strong.easeOut, 0, 1, 3, true);
var myDTweenC:Tween = new Tween(carpriceC, "alpha", Strong.easeOut, 0, 1, 3, true);
carnameC.setTextFormat(carnameTxt);
carnameC.autoSize = TextFieldAutoSize.LEFT;
cardescC.autoSize = TextFieldAutoSize.LEFT;
cardescC.setTextFormat(cardescTxt);
carpriceC.setTextFormat(carpriceTxt);
addChild(carnameC);
addChild(cardescC);
addChild(carpriceC);
tct += 30;
if (theloader.data["carcat" + i] == "Trailers") {
var carnameS:TextField = new TextField();
var cardescS:TextField = new TextField();
var carpriceS:TextField = new TextField();
carnameS.y = tst;
carnameS.x = 430;
cardescS.x = 430;
cardescS.y = tst+13;
carpriceS.y = tst+5;
carpriceS.x = 540;
carpriceS.text = "$" + theloader.data["carprice" + i];
carnameS.text = theloader.data["carname" + i];
cardescS.text = theloader.data["cardesc" + i];
var myTweenS:Tween = new Tween(carnameS, "alpha", Regular.easeOut, 0, 1, 2, true);
var myPTweenS:Tween = new Tween(cardescS, "alpha", Strong.easeOut, 0, 1, 3, true);
var myDTweenS:Tween = new Tween(carpriceS, "alpha", Strong.easeOut, 0, 1, 3, true);
carnameS.setTextFormat(carnameTxt);
carnameS.autoSize = TextFieldAutoSize.LEFT;
cardescS.autoSize = TextFieldAutoSize.LEFT;
cardescS.setTextFormat(cardescTxt);
carpriceS.setTextFormat(carpriceTxt);
addChild(carnameS);
addChild(cardescS);
addChild(carpriceS);
tst += 30;
Similar Messages
-
3 imacs 3 cities, A works to B, B works to C, but A does NOT work to C
Hello. I have a imac with 10.5.1. We have 2 sets of Grandparents each with 10.5.1 imacs, call them GPA and GPB, call us kids.
KIDS can ichat with GPA.
GPA can ichat with GPB.
KIDS can not however ichat with GPB.
To muddy the waters further, if GPA ichats with GPB, then adds KIDS, we can all 3 ichat together.
The problem is KIDS can not ichat with GPB.
Any ideas on what could be causing this?
All 3 sites have imacs with airport extremes.
KIDS are in Denver and have Qwest DSL.
GPA are in Chicago and have Comcast cable.
GPB are in Omaha and have a local phone company DSL.
Any help would be much appreciated!
Thanks. Paul.If one of the Extremes is in Bridge Mode then it is Not doing NAT.
The issue can be the way each device at each end is doing NAT and some jsut "Don't Play Nicely" together.
See this http://ralphjohns.co.uk/page15.html#CertainBuddy
As the Airports can not do UPnP then the Bridge Mode is one option although it does not help if you have multiple computers.
9:16 PM Sunday; January 20, 2008 -
I've tried several times to add my work exchange email account on macBook Pro but it cant connect to the server. It works fine on my iPhone. Is there any solution to this problem?
Are you connecting to Exchange 2003? If yes, Mail requires Exchange 2007 and higher. Your iPhone can connect but not Mail. You would have to setup as POP in Mail. Microsoft Entourage 2008 connects to Exchange 2003. It's old End of Life software so it will receive no further updates.
If you are using one of the newer versions of Exchange you might need to turn off AutoDiscover settings. This link has directions for Microsoft Outlook:
http://www.officeformachelp.com/outlook/exchange/autodiscover/
See this link for help with Mail:
**(Fair disclosure: OfficeforMacHelp is my site. I may receive some form of compensation, financial or otherwise, from my recommendation or link.) -
Intermittently iphone 6 and 6 plus is wifi connected but internet does not work.
Hi,
I have an issue where intermittently iphone 6 and 6 plus is wifi connected but internet does not work. iMessage works though. Toggling the wifi setting clears
the issue temporarily but it occurs again. Running iOS 8.3 now. This was the case on iOS 8.1 and 8.2 as well.
I have tried the typical troubleshooting steps (reboot/reset network settings/disabling location services for wifi/upgrade/etc)
My router is an EA9200 router with 2.4 Ghz and 5 Ghz. It is configured with all bands with the same name.
All other devices in my house works perfectly fine and has no disconnects (ipad/macbook air/tv's/receivers)
My thought is that iphone 6 cannot handle well the moving around between bands.
Any thoughts or suggestions would be greatly appreciated.
Thanks,
DavidHave you tried to reboot your router by turning off the power (you may have to unplug it from the power source), then waiting about 30 seconds, then turning it back on? This seems to solve a lot of problems.
-
I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie. -
Greetings, I am working in Final Cut Pro 7. In the timeline some clips show as offline. I tried going to sequence and reconnecting to media but it does not work. I can still see the video in the timeline and work with it. It just has the red box. Thanks! Olga
If the clips are not actually missing, you could try to refresh the timeline by using cmd-0 and then going to the timeline options tab. Then select name only where it says "thumbnail display". Press ok to accept the change, then repeat the process to add thumbnails back to your timeline.
-
" help me please" I have Windows 7 32 bit installed on my mac pro and Bought Mini DisplayPort to VGA Adapter to connect to lcd tv But it does not work? why? please help me
I have to boot with a Windows
When I use the Mac operating system not have a problem and DisplayPort to VGA Adapter Working properly
why does not work with windows ?
What should I do؟
I'm grateful to give advice
tanks
[email protected]Someone in another section answered this. Thanks.
-
Hi, I have a MAC (version 10.10.2) and installed Creative Suite one year ago. Now I want to open the Illustrator, but it does not work. It says I should install old Java SE 6-Runtime-Version to open „Adobe Illustrator CS6“. Where can I find it? Thanks for your answer! Jana
Prompted to install Java SE 6 Runtime | Mac OS 10.9
Mylenium -
I am attempting to upload multiple photos on a mac pro from a cd. I have tried holding the "command"button down to select multiple photos but it does not work. Please advise. Thanks,John
why not sort by (name, date, etc) and Click on 1st and Shift-Click on last.
Might work better to copy or import to a project folder.
https://discussions.apple.com/community/ilife/iphoto
http://www.apple.com/support/iphoto -
I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.
You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.
-
I want to disable or remove Game center from my iphone. It's always pop up during i play hay day game. So i can not solve this problem. Any way i try to log in game center my several Apple id account but it does' not work. I am still stuck in log in page
The Game Center app is pre installed and cannot be removed from the device.
Best thing to do is move it to the last available screen.
Hold down the Game Center app until all the apps jiggle then sliide the Game Center app to the right from one screen to the next. This requires a bit of finesse, but it's doable.
Press the Home button one time to stop the apps from jiggling.
For the Apple ID issue, try resetting.
Tap Settings > General > Reset > Reset All Settings
Then try your Apple ID and password for the Game Center app. -
Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort by kind but that does not work. It arranges all folders but not the files in the folder., Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort by kind but that does not work. It arranges all folders but not the files in the folder.
Bridge will do the job. View > Sort > ByType. Then you can choose a group of one type and put the files in a separate folder.
-
I just installed this update and now I cannot access "Mail" at all. I tried reinstalling the program, but that does not work, either. Help!
Paldeng, thanks for the suggestion. I've done all that. I can connect to the server, but apparently they are not recognizing my ID and password. I can use the server program if I don't go through Mail (using the same ID and password). My mother in another state with another provider has had the same email issue, as also my husband on his laptop who uses the same internet connection I do. His worked fine until we had it repaired at the Apple store and all the original programs reloaded (with the required updates, I assume). We can receive email in Mail, we just cannot send.
I contacted my service provider, and we went over my connections. They said it was not their problem and connected me with Apple, resulting in a charge to me because my warranty is long expired. Apple swears it is not their problem, it is the provider, so here I sit. My son was able to fix my Mom's Mail (she's 97) and got my husband's working also, until mine went out, by tweaking connection descriptions and ports remotely. The thing is, we had not messed with any of those settings, so what changed? I just did not want to bother my son again, as he has many other demands on his time.
Since this fiasco with the Mail v4.6 update, I'm wondering if something else was updated that works well with Lion and Mountain Lion, but does not work well with Snow Leopard and Leopard. I think the problem I had with the Mail update was that my Mail program had been renamed to Mail (original), and therefore was not being recognized by the update. Perhaps they had another tweak in there somewhere that is affecting outgoing mail connections? -
I use the Icalendar at home, at work, and on my Iphone. I don't want to have to "sign in" every time I need my calendar. How do I stay signed in? I have checked the "keep signed in" box, but it does not work.
Welcome to the Apple community.
Staying signed in at iCloud.com is not a problem for me. Try resetting your browser or emptying its cache. -
Since updating iPhoto it has ceased to open. I have tried to Hold down the Command and Option keys on the keyboard which is the suggested solution to then open a suggested solution to rebuild the library, but it does not work. iPhoto still does not open. can someone please help?
thank youTry the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
Home/Library/ Preferences folder.
2 - delete iPhoto's cache folder(s):
Home/Library/Containers/com.apple.iPhoto
and, if there is one, the
Home/Library/Caches/com.apple.iPhoto folder
3 - reboot, launch iPhoto and try again.
NOTE: For Mavericks, 10.9, go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
Happy Holidays
Maybe you are looking for
-
I recently upgraded to Mavericks, and now I cannot get Adobe Reader to install.
I have a MacBook Pro with 10.9.2. I was unable to open the version of Adobe Reader I had been using, so I used CleanMyMac to uninstall it. I then tried to install Adobe Reader multiple times to no avail. I am able to download and begin the installati
-
Help, Crashing iPad 3.
My iPad 3 keeps crashing. This started June 26, 2014 and has happened everyday when using any app, even apps that come on the iPad. I have done multiple hard resets, turned it on and off several times, restored to new iPad 4 times and it keeps hap
-
OSX 10.8.3, Firefox and Flash now incompatible?
Ever since installing the latest version of Firefox, I have effectively been unable to view anything requiring Flash Player; I get error messages telling me JavaScript is not turned on when it is, or that there are apparently no plugins available. Th
-
well,nokia downloads the software of N3250 online,then it tell me updating...then it show phone recovery...telling me to take out the battery n charger then to put the battery back again n charger then hit retry n then to press the power button... wa
-
While checking the plant in SPRO data is not displayed on the screen.
hi dear all frnds, i am facing the problem in SPRO customization, the screen is showing the blank and dataless when i click on Define, copy, delete, check plant field. pls. help me to come out from this prob. thnx in advance. bst rgds, rajesh