ActionScript 3.0 :: .target.content Works Offline, But Not On Server?
Aug 21, 2009
I've set up an event listener to check if an image has been loaded. If yes, then change the width and height of it. I achieved this by using .target.loader.content. It works fine on my machine, but things are different, when I upload the swf to the server. the images get loaded, but aren't resized as they were offline. What might be causing this? What changes should I do in the snippet to get it working.This is the function that is called using the eventListenerfunction setImage(evt:Event){ sig_txt.text =evt.currentTarget.content.toString(); var loader:Bitmap = evt.target.loader.content as Bitmap; gallery_mc.addChild(loader); var ratio:Number = loader.width / loader.height; loader.width = 100; loader.height = 100 / ratio; loader.y = total_height; total_height += loader.height + 20
View 11 Replies
Similar Posts:
Sep 1, 2009
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?Does anybody know how to resolve this problem
View 4 Replies
Sep 1, 2009
Im 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 Replies
Oct 19, 2009
I 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].....
View 3 Replies
Nov 24, 2009
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 Replies
Aug 7, 2008
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 Replies
Oct 12, 2009
this is my first flash test and I have been stuck for weeks to solve this issue. I am currently with Mediatemple, standard gs plan, and I have three files that I wish to upload:
index.html (html file)
ProgBar.swf (Preloader)
Main.swf (External Swf that is being loaded)
If you open the html file locally on a computer, it works fine, however the problem arises when these files are uploaded to the internet,. It doesn't seem to work at all... Please help me figure out why. Thank you for your consideration.
View 2 Replies
May 11, 2009
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]....
View 2 Replies
Apr 23, 2007
I 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].....
View 3 Replies
Mar 21, 2005
I'm working with FLash+XML, and I had a thought: I don't want to give my clients Flash+XML solutions, if they will have to edit the XML themselves. It's too complicated for them.So I thought of a Flash Application for offline use, that would be some sort of a XML Content Management System, built in flash, suitable for offline use (user should upload updated .XML files which is OK). In this app, creating / editing / removing nodes should be like managing folders and their content in Windows Explorer.I don't believe my mind is bright enough to be the first having this idea, perhaps such program already exists. Does it?
View 2 Replies
Mar 21, 2005
I'm working with FLash+XML, and I had a thought: I don't want to give my clients Flash+XML solutions, if they will have to edit the XML themselves. It's too complicated for them.So I thought of a Flash Application for offline use, that would be some sort of a XML Content Management System, built in flash, suitable for offline use (user should upload updated .XML files which is OK). In this app, creating / editing / removing nodes should be like managing folders and their content in Windows Explorer!
I don't believe my mind is bright enough to be the first having this idea, perhaps such program already exists. Does it? If not, please enlighten me: which kind of function allows me to "write to XML file, offline"?
View 2 Replies
Apr 15, 2009
Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
[code]....
View 3 Replies
Apr 12, 2011
I am new to using flash media server. I setup the server and using the default player for the live stream and when I am not broadcasting I want to display an image instead of the black box that comes up till I start the live broadcast. Is there away to have it pull an image when I am not streaming?
View 2 Replies
Jul 8, 2010
I have a simple event listener which calls a functions which first uses a switch case statement to determine what evt.target was pressed by name so I can assign info there--presently I just have trace statements--the problem is that it only works once and then I just get instance29 and the switch case evaluates to the default.
Code:
lifering1.addEventListener(MouseEvent.MOUSE_OVER, playSplash,false,0,true);
function playSplash(evt:MouseEvent):void
{
[Code].....
View 21 Replies
Apr 13, 2005
this.menu_buttons_mc.menu_01_mc.menu_01_btn.onRele ase = function ()
{
trace ("this.menu_buttons_mc.menu_01_mc.menu_01_btn.onRe lease CALLED");
[code].....
View 3 Replies
May 25, 2003
i have a main-movie with a movieclip called "area", into this movieclip is loaded an external movie.swf
a clip inside this movie.swf has the below script
onClipEvent (enterFrame) {
_level0.area.displayfield = "hello"
[code].....
View 3 Replies
Apr 13, 2005
I used as usual: this.menu_buttons_mc.menu_01_mc.menu_01_btn.onRele ase = function ()
{ trace ("this.menu_buttons_mc.menu_01_mc.menu_01_btn.onRe lease CALLED");}; But problem ist : it works only for one btn. Why? Try click the second flake from above and see AS layer please. I think it would be easy for you but diffic. for me.
View 3 Replies
Jul 27, 2009
I have the code that works for one button to find a cue point but how can I make this work for several buttons and their respective cue points?[code]
View 3 Replies
Mar 17, 2010
I have the code that works for one button to find a cue point but how can I make this work for several buttons and their respective cue points?
seek-btn2" to find cue 2(named "lou2")
import fl.video.*;
// Video component instance namevar flvControl:FLVPlayback = display;var flvSource:String =
[code].....
View 1 Replies
Jul 15, 2010
i have used the following code to upload file which works in php4 server but dont work inphp 5 server.The flash code is as follows:
import flash.net.FileReference;
import gs.TransformManager;
//Allow this domain[code]....
i am uploading the php file.
View 1 Replies
Mar 2, 2010
Quick question, what's the different between these:
[Code]...
I get the basic concept, you're targeting the object that you want to use from the listener in the function. But when do you use which?
View 2 Replies
Jun 16, 2009
I would like to add preloader with progress bar to my AS3 page. It's an image gallery. The preloader is on frame 1 and the content is on frame 2. It seems like that the loader works after all the content is loaded. And the progress bar doesn't appear on the screen. What am I doing wrong? For the quick view, the code is below. I also attach the code. To make it simple, I am testing the code with just one image.
frame 1
Code: Select allstop();
addEventListener(Event.ENTER_FRAME, loadF);
[code].....
View 6 Replies
Feb 26, 2012
i have this code and i want to remove baresClip but i cante removeit please helpme
[Code]...
View 9 Replies
Aug 22, 2009
I have loaded various external swf in my flash site,thew problem is that when i test my site with ctrl+alt+enter they all display properly, when i test the movie form its folder or online some of their functions or aspects bug.
View 1 Replies
Jun 12, 2009
I seem to recall reading somewhere (but for the life of me I can't find the article I was reading), that with Adobe FMS you could store content on one machine, and then run the actual server on a separate machine. Is this correct? If so, how would you go about doing it?
View 1 Replies
Jun 11, 2010
Some users are unable to access any of our video content, getting a Server Not Found error.We have our FMS configured to use ports 1935, 433, 80. Our firewall is allowing RTMP traffic to each of these ports. Is there something more I can do from my end to make sure users can access our FMS?
View 1 Replies
Dec 6, 2011
We purchased Flash Media Streaming Server Interactive edition in order to have the security featuers of not allowing unauthorized connections streaming live content to the server. Is there a document with procedures that details how to make this happen, the allowedHTMLdomains.txt does not work when you place in IP ranges that you do not want connecting. I need some help just to figure out a way to keep someoen from connecting to the server and not streaming live content. Has anyone configured this in Linux because the documentation is mainly for Windows. Any help/advice would be great since this seems to be a common problem for anyone who runs Linux.
View 10 Replies
Jul 1, 2010
I have an image gallery with a thumbnail class which needs information about the content being loaded to be able to resize it appropiatly. Using.content.height and .content.width I can acces this information, however the swf (online) stops working when this code is encountered. No errors are thrown.piece of code from where it stops working
Code:
if (targetThumb.content.width > targetThumb.content.height) {
//scale the width
[code]......
View 1 Replies
May 25, 2009
I will go to URL... but when the pages load the content will be read from ABC's server not XYZ's server.The users will use the data on XYZ's website not realizing that the content is actually coming from another site.
View 2 Replies
Feb 2, 2011
Do you know any collapsible flex container that can handle dynamic content that works when pre-collapsed? I tried the CollapsiblePanel component by Arc90 for Flex, but it did not work when pre-collapsed.If I have a VBox inside the panel, and I set the "collapsed" property of the CollapsiblePanel to true, the size of the CollapsiblePanel cannot be restored. It seems like this is what is happening:
The CollapsiblePanel's collapsed property is pre-set to true in the MXML markup.
The VBox auto-adjusts its height to 0 since the CollapsiblePanel is collapsed.
When the CollapsiblePanel's collapsed property changes to false (i.e., it is expanded by the user), the VBox does not expand itself because its parent's content area is 0. Therefore the CollapsiblePanel remains at the same height because its content's height is 0.
Note: This occurs only when the CollapsiblePanel is pre-collapsed, as seen in the markup below.I've already tried this (didn't work):
<containers:CollapsiblePanel minimize="pnl_minimize(event)"
restore="pnl_restore(event)" height="100%" width="100%" collapsed="true">
<mx:VBox width="100%" height="100%" verticalGap="0">[code]....
View 1 Replies