ActionScript 2.0 :: Script Work Offline (In Browser N .swf) But Not Online?
Oct 1, 2006I got this script
Code:
on (release) {
var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
if (success) {
[Code]...
I got this script
Code:
on (release) {
var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
if (success) {
[Code]...
In order to work offline I'm using XAMPP to develop a website which is working great except that I can't see any Flash content. External Flash players have no problem working offline but obviously won't load anything but SWFs and FLVs. Is there a way to get Flash to work in a browser while offline?
View 1 Repliesiv been having this problem with swf file iv created, it consist of images somewhat like a gallery. when played offline it works smoothly, navigating frame to frame / image by image. iv used AS3 to compose the animations in my flash file. now my problem is when its uploaded online, the swf is shown but once iv clicked on a link to proceed on showing the gallery it lags and continously loop when it should actualy stop on a frame and wait till the next button is clicked to procced to the next image. plus the animation iv added in doesn't seem to working at all.
View 1 RepliesI have imported an .FLV file to my flash movie and no matter what I try when I upload this it just won't show online. heres the info in my component properties:and im just loading the .swf in the normal old fashion way for testing:
HTML Code:
<embed height="400" width="540" pluginspage="http://www.macromedia.com/go/getflashplayer" src="intro.swf" play="true" loop="true" menu="true"></embed>
[code].....
It plays perfectly well in 'Publish Preview' and when you launch the HTML page offline. However it won't play online. First I published it in Flash 8, where I'd created it, uploaded the swf and the html. In Firefox it loaded a blank page which revealed on right click that there was a Flash movie there, but you couldn't see it or do anything. In IE it just stuck half way through loading. Then I resaved it in Flash CS3 and published it with AC_runactivecontent.js. Uploaded it to my site and the result was exactly the same. To check my syntax a friend uploaded it to his webspace, and put another swf on the same page using the same syntax. The new swf played, but mine didn't. The 'publish settings' for the two were the same. Again, if you look at the page offline both play. My friend made some changes to the FLA and published it successfully on his webspace. He suggested the file size may have been a problem: I had had some fairly large audio files in it and 'updated' them to smaller ones. The resulting swf was 6mb. We wondered if the old ones had been retaines somewhere, boosting the file size. The only other difference I can see between his version and mine is that there's a font I used which wasn't on his PC. His version has it as Arial (there is only one word in the whole thing). I took his version, deleted the sound files and reimported the smaller versions, which then published as a 3mb file. But now it doesn't play! Results in IE and FF exactly as above.
View 7 RepliesHi,
i am very new to actionscript,and i am trying to change language of text of label for online-offline button.actually for other label text i am able to change the language but for online and offline button it is getting difficult because it is depending upon network available.Also for the label for online-offline,we can't give separate property for online and offline.Only either online or only offline we can give.
Can you please find any solution for this?
My email id is subhajit.goswami@izmocars.com.........
Please post in this or you can contact me in this email id also.
Below i am giving the code i have written for online-offline.But that one is working only for online,not off line
<mx:Label text="{resourceManager.getString(GlobalConstants.R EADER_BUNDLE, 'online')}" styleName="tahomaPlain" fontSize="10"/>
I've used this website a lot over the past few weeks as a reference for my actionscript 2 questions. It's really been fantastic ï so first I would like to take a moment to appreciate the community and wealth of information on this site and forum.
I have a couple of methodology questions concerning an .fla file I'm working on. I made a flash gallery here. As you can see online the images fade in as they are loaded dynamically via the loadClip() method.I would prefer them to load more like this. Is it possible to load an image to a variable instead of a MovieClip that exists on stage?
In addition to this if you download the zip file with the flash file you'll notice that the position of the images and the text is more accurate than when viewed in a browser. I thought flash was a self-contained entity and that it would run identically on all platforms / browsers / online / offline / remotely / locally.
We're using the script to have an online brochure, and now want to be able to put it on a CD for offline browsing as well.When it is viewed offline, an error message pops up and wants me to add the page/folder in here:Since this is a plugin script that doesn't have an fla file for me to edit, what are my options here? I've tried to decompile the swf file in order to make the changes, but that doesn't work (the script is fairly complex, so I didn't think it would decompile fully).
View 6 RepliesI have an SWF file that works great when I publish it or view it in the Flash Player. However, when I use Simulate Download, all the buttons' functionality gets messed up - for some reason, clicking them results in the playhead going to other frames than it's supposed to. I've tried uploading the file to my website and the buttons don't work well there either.
View 3 RepliesI have an SWF file that works great when I publish it or view it in the Flash Player. However, when I use Simulate Download, all the buttons' functionality gets messed up - for some reason, clicking them results in the playhead going to other frames than it's supposed to. I've tried uploading the file to my website and the buttons don't work well there either. Is there any reason for this to happen?
View 2 RepliesI'm starting AS3 and I'm building a video project.
The objective is to have 2 different videos, which will intersect in a certain point.
When the 2nd video starts playing I want to show a subtitle for it. Here's the problem. When exporting the swf everything goes ok, but when I upload it the textField disappears.
I don't know what to do or think. It's just a textField (exported from library).
I used a UILoader to load slide images from a folder. It works off line but not online. Can you help me with this?
var imageNumber:Number = 1;
function checkNumber( ):void
{
next_btn.visible=true;
[code]....
I'm a new Flash user, trying to build a fairly intricate website by newbie standards. I have a basic understanding of Actionscript and OOP, enough to build a fairly nice looking full-featured website. Most of my goals for the website have been met, including dynamic XML content, a dynamic navigation menu, dynamic screenshot galleries.My current nemesis is a flash video gallery. I'm using xml lists of video locations (different types of video, including flv, wmv, and avi), and I've tried both the stock CS4 video player component (FLVPlayback) and the ubiquitous ToobPlayer 1.0.
Here's the problem. When I compile the video and view it offline, with either player component, it works beautifully! Loads each video from the XML gallery and performs as requested. When I upload it to an FTP and run the website (in an html file) as an http:// link, the video player component is no longer visible and nothing playsIt's driving me ape! Do I need to include some .as files when I upload or something?
First of all I am new in flash i have one problem that i have added one swf file in site and change increase its width for proper setting in my webpage now what happens is when i am running that page in offline firefox/chrome/IE then all displays good and asper my incresed dimensions but when i uploaded the page on server and then testing online then the in IE it displays perfect but....... in Firefox and in Chrome it displays in small size (in original size, before my edit)
View 1 RepliesI am loading 2 external text files into my SWF.. I believe that my action script is correct as it works pefect offline.. However as soon as I uploaded it to my webspace, both text boxes have the "undefined" text sitting there.. The problem doesn't exsist when I only have 1 external text file loaded..
//load 1st text file
myData1 = new LoadVars();
myData1.onLoad = function() {
[Code].....
Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
[code]....
The following site only works if you are offline.[URL].. So how do they do this. I have even seen YouTube do something similar. just open YouTube and disconnect net and refresh. You will see the page below.
View 4 RepliesI have a little problem. I need to create a search form that will work offline. I mean, ...when you type a file name, it will find it and open it for you.how to do it in flash, swish, or swift ?
View 2 Repliesis it possible to make an email form work offline? I had it working with PHP but now the whole thing is wanted to be used offline, so.. tried to Google, but no luck with that. It doesn't have to be an email form actually, sending data to a text/xml file works just as well.
View 4 RepliesI have decided to attempt making my sisters website. I have used an XML gallery in the website and all works well when viewing the website just in flash, .fla or the .swf file. My problem is, when i come to put it into dreamweaver ready to upload and I preview it in Firefox, or any other broswer, all the pages work but no the XML gallery? Im gettin very stressed out now as all my file routesetc are correct?I have googled the problem and all I have found out is that it could be something to do with security?Does anybody know how to resolve this problem
View 4 RepliesIm in my first year studying a web design course, over the summer I have decided to attempt making my sisters website. I have used an XML gallery in the website and all works well when viewing the website just in flash, .fla or the .swf file. My problem is, when i come to put it into dreamweaver ready to upload and I preview it in Firefox, or any other broswer, all the pages work but no the XML gallery? Im gettin very stressed out now as all my file routesetc are correct?I have googled the problem and all I have found out is that it could be something to do with security?
View 1 RepliesI am working on the offline cd runs projector.exe using actionscript 2.0.I need to use online search feature in my glossary.Is it possible to browse internet within flash projector.exe. I dont want to open any internet explorer or firefox window.
View 7 RepliesI am working on the offline cd runs projector.exe using actionscript 2.0....I need to use online search feature in my glossary.Is it possible to browse internet within flash projector.exe. I dont want to open any internet explorer or firefox window.
View 8 RepliesI am working on the offline cd runs projector.exe using actionscript 2.0....
I need to use online search feature in my glossary.
Is it possible to browse internet within flash projector.exe. I dont want to open any internet explorer or firefox window.
I've made a flash site and everything seems fine when I test it in flash and publish and run from my computer.However, when I upload it to my domain the external loader won't load my homepage initially. And I believe I've got a piece of script to tell it to do so.If you open up another page and return to the homepage it works fine.P.S I do have a preloader page prior to my homepageThe external loader script is:
ActionScript Code:
//------------Initialisation-----------\
var currentPage = ("home_btn")
[code].....
I recently had an error dialog popping up on a site of mine online. I just noticed one on a well known newspaper website. Are these new? Do they only pop up if you have flash on your machine or do all users see them? Jpeg of the error message from the newspaper site attached. with my site the movie ran perfectly when I did test movie. Online the error message popped up, clearing it caused the movie to display incorrectly. Running in Debug mode showed the error and I fixed it. So in some way the error message was useful. Thing is the site had run perfectly well before the error dialogs mysterious appearance, the error was probably there but had no effect.
View 4 RepliesI am aware of the new FlashBuilder 4.5 mobile application settings. I am aware that it uses an enhanced version of AIR to make apps that work well on mobile devices, which would normally mean that I can't have it run in the browser. I'm also aware that I should be able to get the enhanced performance if I create a swf with the correct compiler settings, and use the correct base components for my application. What are the correct base components? Spark or MX or something else? What are the correct compiler settings? I need the application to work for both desktop users, and mobile users who visit the website through their flash enabled browser.
There are three important features.
Being able to load a file from the mobile device/computer.
Being able to have the softkeyboard activated when needed.
Good mobile performance
When i test my movie the buttons work fine they get the URL that i want but then when i upload it to my page it does not get the URL. Am i uploading it wrong??? I Uploaded the SWF to the Server and posted it that way is there more involved or did i do something wrong in the actual movie. [URL]
View 5 RepliesI've got a simple text file with a variable in it: &tekst=This is a test&
I'm loading it with LoadVars and let the text of one dynamic textfield be replaced by the 'tekst' variable.
stop();
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
[Code]....
This works offline, but online the text isn't replaced? This should work right?
The code and the dynamic textfield are both on frame 1. The swf only has this one frame. The txt, swf and html file are at the same location.
I am trying to figure out why my flash files work correctly locally but don't after I upload them. I am using Mac Flash CS4 and AS2. (They were CS3 files originally)
When I use Safari to view the uploaded files and check the Activity window it shows the files load but they don't show up. I have a main swf and others are loaded into it using:
[Code]...