ActionScript 2.0 :: Randomization Script Not Working Once Published?
Feb 13, 2009
I have a rotating banner that is suppose to start on a certain point in the timeline randomly when the movie is loaded. It works fine when the test the movie in flash but not once it's published and opened in firefox. I have the script in the first frame, and after that the movie starts it never plays frame 1 again. It's an actionscript 2 file working in CS3.the code looks like this:
var array:Array=new Array(2,60,120);
var dummy:Number;
dummy=Math.floor(Math.random()*array.length)
[code]......
View 1 Replies
Similar Posts:
Nov 18, 2009
I have a preloader bar which I get no errors on but when i publish on the web it does not work and it does not appear to work when I use the "simulate download feature" of flash cs4.
Code:
stop();
addEventListener(Event.ENTER_FRAME, preload)
function preload(e:Event):void {
[Code] .....
View 2 Replies
Apr 30, 2009
I am loading external swf files into a single container( Instance: contents). when I test the movie inside flash it works fine but when I use the generated swf outside flash one of the swf files don't unload the way it is supposed to and therefor the other swfs can't load either. The swf file that dose not unload, contains videos using xml with a list component. Actually I used the tutorial from this website (Flash Video Basics). Here is the code I am using. It is probably kind of crude but I don't understand why it works only when I test the movie.
Code: Select allstop();
aboutArtist.onRelease = function() {
waveBar.gotoAndPlay(2);
[code]...
View 1 Replies
Jun 30, 2009
I have a project that when tested in Flash works perfect. But if I just run the .swf from my machine, or publish to an .exe various listeners do not seem to be working - specifically the MouseEvent.CLICK listeners - my rollovers work fine, using TweenLite, but I can't click some buttons... some buttons I can. I've not seen this before and it's quite frustrating at the moment.
View 6 Replies
Sep 19, 2011
First is that after showing question and answers and playing sounds i go to the next question and we the answers but the sound does not go with it, that is the sounds of question and answer dont change and are the same as in the first question and the same goes for answers the xml looks like this:
Code:
?xml version="1.0" encoding="UTF-8"?>
<Questions>
<Question>
[Code].....
View 1 Replies
Apr 28, 2011
Below is a link to an example web service that I'm hoping you guys can tell me what I'm doing wrong. I have this dictionary app that works great when I'm in flash and preview it, but when I publish it and view it on the web, it simply doesn't work. I'm not sure what I'm missing. The link below has links to the project in CS5 and CS4.
View 1 Replies
Jun 24, 2010
I have made an animation, when i veiwed it as a preveiw in flash CS4 it works fine.So I published it as both a HTML fie and SWF.The HTML file runs perfectly fine, but the SWF file is missing almost all of the illustrations and the play button at the begining, the sounds all work fine however.
View 1 Replies
Nov 20, 2009
I have 3 mc's that I have placed a tween on that fades them from 0% - 100% Alpha (simple fade-in effect). The animations are fine if I test the movie within Flash. However, after publishing, I lose all those tweens in my swf, and all I see are abrupt changes from 0% - 100% alpha. What could I be doing wrong?
View 2 Replies
Feb 14, 2011
I have a problem with the following code:[code]The problem is that the code is working when I test the scene (ctr+alt+enter in flash), but after I publish it it doesn't work... not sending any request nor redirect.What I want to do is to log in a file on the server what the users typed (related with Related with: Flash actionscript - save a text file on server).
View 1 Replies
Oct 12, 2009
everyone out there that is smarter than me. I have made this little prototype video player, and it isn't working. It'll eventually become a nice little player show videos from our summer camp for the last few years, but first I want to make it work in a basic stripped down version. There is a playback component with one of the skins right above the three buttons.
Here's the ActionScript: btn1.addEventListener(MouseEvent.CLICK, vid1);btn2.addEventListener(MouseEvent.CLICK, vid2);btn3.addEventListener(MouseEvent.CLICK, vid3);
function vid1(e:Event):void{vidPlayer.source = "Video1.flv"};function vid2(e:Event):void{vidPlayer.source = "Video2.flv"}; function vid3(e:Event):void{vidPlayer.source = "Video3.flv"};
It runs fine when I test in in flash and even the .swf file runs fine alone, but when I put it in a .html file via Dreamweaver and in the published .html it doesn't run. What up?
View 1 Replies
Dec 12, 2009
*Can two CS4's produce different published .swf from the same fileset?I have a flash suite written by a young man in China.When I test the .swf file in the suite it works fine.However I need to make some minor redesigns so I need to change the .fla file - but before I do I found that when I publish a new .swf from the .fla file (with all the necessary action scripts/xml etc in the right place) it doesn't produce the same outcome. Instead the navigation (next page, items per page etc) is missing.
When he does the same thing (I trust his integrity) he gets the new .swf with the navigation in tact.You can see the two outcomes at the web address below (mock data).There are no code changes, no library changes that I can find.So I thought maybe there is something about different settings or 'environments' that can affect the outcome?
View 3 Replies
Oct 30, 2011
I created an animation in Flash CS5 and tried to publish it as a .gif. For some reason,there's a dark box around the moving text, as you can see.
View 5 Replies
Nov 3, 2011
I have a kind of unusual problem... Im building a prototype for a UI wich you can navigate around in. And we use a mockup-prototype-model with a numeric keyboard built in and connected trough USB to fetch keypresses and use that as a joystick to navigate around and get a feeling how it would feel like to navigate around using a joystick in your hands. The problem is that it sends kind of unusual keypresses from the joystick. Everything works fine when I test the movie in Flash CS5 on a mac (cmd + enter). But not on a PC or in all of the published modes (.exe, .swf or .app). The codes I use in my if statements to navigate that doesnt work is:
[Code]...
View 5 Replies
Feb 23, 2007
I can't get my "dock" to center horizontally when i publish the movie for full browser flash(100%/no scale).It works fine when you test the movie. I don't get it. heres the code
Stage.scaleMode = 'noScale';
this.dockActions = function(label) {
switch(label) {
[code]....
View 1 Replies
Dec 22, 2008
I'm working on a project where I want to use a transparent png, and when authoring in Flash CS3 (using actionscript 2.0) the png image appears transparent just as it should. However when I test it the .swf file loses the transparency entirely. The png image was saved for web from photoshop as png-24.
View 1 Replies
Mar 8, 2011
I'm working on a project in Flash Builder 4 and I've run into an odd situation. The changes I make to the code do not seem to be published in the swf that pops up when I build and run. I can actually delete the entire main class and (even though I get lots of compile errors), the swf will still run just fine. This is actually a project I imported after it had been setup by a previous developer. We may be using different versions of Flash/Flex Builder.
View 2 Replies
Sep 24, 2009
Is it possible to tell when a SWF was published (date modified) via ActionScript?
View 3 Replies
Jun 24, 2010
For my class' final project, I created a little eBay search tool platform. It
1) performs a search (and the link generates affiliate coding so commissions would result if an eBay affiliate used this application on their website),
2) it shows a few eBay-related news feeds, and
3) it shows some beginner's videos showing how to buy on eBay.
Playing the swf as a movie on the desktop, within Flash, works fine.However, since I've published the swf into a webpage, the search function and one of the RSS feeds do not work. My application is at: [URL]I've read about crossdomain policy issues, but I'm stumped about that. Using FireBug, I see an error message:"NetworkError: 404 Not Found - [URL]This is the domain where I'm calling the RSS feed. Because this domain does NOT have a crossdomain.xml policy in place, does that mean that no matter what I do, I'll never be able to draw from it? I've set up a crossdomain.xml file in my website's root and it consists solely of:
Actionscript Code:
<cross-domain-policy><allow-access-from domain="www.dongarber.com"/><allow-access-from domain="dongarber.com"/></cross-domain-policy>
And, the URL I use to connect to eBay's api is:
"http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&dfsp=32&from=R6&nojs pr=y&output=RSS20&saaff=afepn&siteId=0&afepn=53358 27058&customid=flashfinalprojectRSSFeed&satitle="+searchTermBox.text+"&saprclo="+minAmt.text+"&saprchi="+maxAmt.text+"&fbfmt=1&sabfmts=0&sascs=0&fsop=33&fsoo=2";
This works when I cut and paste a sample URL into the browser, say, when I substitute a search term minAmt and maxAmt into that gobbledegook. The search never returns anything when this app lives on a published html page...
View 3 Replies
Aug 24, 2010
Using FLash CS5 and everything looks jagged when I view hte published version of my movie.Back in Flash 4 there was no jagged edges so what have I missed?Here's an image to show you what I mean.See the Black outline of the movieclip is flipping out. It's a normal vector based movieclip, no image or nothing.
View 1 Replies
Oct 7, 2010
I am creating a simple flash animation in Flash CS5 of a hip hop group, where when you mouseover their picture, their name pops up over their head.
I made each image a button and created the frames for up, over, down, and just a black rectangle for the hit area.
The problem I have is that in Flash when I have simple buttons enabled, it works fine and flawlessly, but when I publish it the hit area is sketchy and doesn't always react when moused over.
View 3 Replies
May 12, 2009
I just published a short movie from Flash CS4 and placed the entire set of files at this URL[URL] and when my web designer or me for that matter double clicks on the HTML file the movie doesn't play. We get a black screen and at the bottom of the frame in the progress bar there's a little green & white zebra like moving line. I'm pretty sure this is how I've delivered movies from CS3. I'm obviously missing something obvious here, but I haven't a clue. If I double click on the HTML file on my machine that has Flash installed it works great. The .FLV file plays correctly in media player also.
View 7 Replies
Jun 10, 2009
I am testing Flash CS4 at the moment, but something is wrong with it. What I did hundreds of times in CS3, here it just doesn't work.I used Adobe Media Encoder to make F4V from AVI. Then I imported that file to flash (load external video with playback component). Then I previewed it (ctrl+enter) and everything was fine, but once I saved (or published) it, the movie didn't play anymore. There was just background and no movie nor playback component.I tried encoding that file to FLV, even for older flash versions (I have the newest one installed), but that didn't help.
View 5 Replies
Jul 10, 2009
I have a project that consists of 11 invisible buttons laid over a map of a building; when the user mouses over a "room," the name of the room appears. The building map is on an angle so I rotated and skewed the button text to match the map. All the text looks fine within each button symbol, but when published 4 or 5 of them lose their skew...the rotation seems to still be intact.
View 1 Replies
Sep 7, 2009
The Flash file that I've attached plays very slow on my other, older computers. It plays fine on mine, but these older computers play other flash files (i.e adobe.com) fine. I want to know if I'm missing something here as to how making this play efficiently. I understand that I am using photographs - rasterized images - but, is it really supposed to take that much power to play it?
View 1 Replies
Sep 11, 2009
I have just switched to CS4. When I updated some text in a movie on the site (originally built in an older version of Flash from back in the Macromedia days) things went fine until I published the document. The movie file looks fine but random characters have disappeared and some portions that were Italics have become regular. Everything stays good in the movie file, but the published one loses characters. I tried publishing for flash 5 but that made no difference. What should I be trying?
View 3 Replies
Oct 2, 2009
I'm including a video with it's controls into a frame in flash.When I try it and publish it as SWF the control bar of the video shows but when I publish it as a .app for mac or a .exe for windows and run itthe video shows but not the controls
I'm using the FLVPlayBack component to show the video
View 1 Replies
Aug 25, 2010
My main project loads an external .swf ("room") depending on which button the user clicks. Once that external .swf ("room") is loaded, the viewer chooses a ("demo") .swf to view. For each button click, a loader is to appear showing the viewer that the desired room or demo is loading. All of this works fine for the web...please click the link below to view. The problem exists when I try to publish as an .EXE. We'd like to send these out to prospects on CD and thus I need an .EXE to autorun when insterted in a PC. I've publised the main .SWF (overhead map) as an .EXE and burned a cd containing all necessary files. Now when the user clicks a room and then a demo, the loader that shows up fine on the web does not appear.
View 2 Replies
Feb 1, 2011
i am facing problem with internet explorer and google chrome, viewing my flash document. When i test my flash document on IE, it simply does not show my flash work at all. Instead this show up:
and on google chrome i have just click on screen for it to show otherwise nothing happens.
View 3 Replies
May 23, 2011
I have imported all my images into flash using photoshop and the quality looks really good and crisp in Flash, but when it comes to exporting, testing or publishing the animation the images either appear pixeley or blurry. I have gone through all my file settings and everything
View 1 Replies
Feb 11, 2009
Dynamic Text in Flash ActionScript 2.0 not showing when published
When published all else shows up except the dynamic text. The properties have been set on "Bitmap Text (no anti-alias)" and fonts not seemingly embedded..
View 12 Replies