ActionScript 2.0 :: Newly Published Swf Not Behaving Like Original Swf

Mar 18, 2011

I'm maintaining a Flash site for a client, and I received all the fla files from the original programmer. Now it's time for me to make some changes, and I'm finding that when I generate a new swf from one of the files, it doesn't behave the way the currently live file behaves.

The main file is titled flashindex.swf. On load, it loads home.swf. home.swf contains an image that slides out and a video player that fades up.

It works fine on the current live site - lisahaisha-dot-com (not enough posts to post links)

But if I use the fla file the developer provided and generate a new swf, the video player fades up, but the image doesn't slide out.[url]...

There are a few other external files that get pulled in (an .as file, and another .swf), and I've made sure that they're all in the right place. I get no compiler or output errors when I publish. I have combed the code, and can't figure out why her picture doesn't slide out. It seems there's something going on in the actionscript in flashindex.fla that is telling home.swf to behave differently. [code]...

View 9 Replies


Similar Posts:


Flash Not Behaving On Firefox?

Dec 12, 2009

I have a problem in presenting Flash objects in Firefox. The code below works fine in IE, but not in Firefox.

[Code].....
 
The page is loaded with Flash player 9 in Firefox 3.5.5 for Windows XP. note that we can't afford to have the wmode value other than 'window.'Actually the phenomenon occurs only with the 'window' wmode.You can change the 'movie' value to whatever you want.
 
When the page is first loaded in Firefox, it looks normal (or not).But when you move the mouse over the video clips or play them,they start stepping on each other's toes:
 
The images are overlapped,and the intersection of the screen keeps flickering.
 
We played with this and that attributes or parameters,put the clips in <iframe>s,but none of them succeeded.
 
PS: I'm not sure whether it is Firefox or Flash that's causing this.If this is not the right place for a question like this, I offer my apology.

View 1 Replies

ActionScript 2.0 :: Swf File Behaving Differently On Web?

Sep 22, 2007

this code for a thumbnail gallery, the data is loaded from an XML file, [URL].. All the thumbnails are loading on the stage correctly and in the correct order when playing movie locally, but as soon as I try Simulate Download or view the movie from the web page the thumbnails lose there order.

[Code]..

View 1 Replies

Flash :: WebBrowser Control Behaving Different In Two Application?

Oct 20, 2010

I have two applications. In one application the web browser control shows a flash movie that is embedded and in the other it does not, only shows place holder. I have identical code in both constructors to load a web control dynamically and then navigate to the requested web page.

I run both application in debug mode from within VS2010.

View 1 Replies

ActionScript 2.0 :: My Global Variables Are Not Behaving Globally

Feb 4, 2010

I have defined Variables at the start of my script, with _root, to make them valid globally.

Then, in several functions and IF loops, I change the values of these variables, again referencing them with _root.

Then at the end of my script, I want to collect these global variables and send them to a PHP file to late store them in a db.

The problem is that at the end of my script, the variables do not contain any data, I used trace() to test this.

They only seem to contain values inside the IF loops which would mean they are behaving as local variables only?

I also tried replacing _root with _global but got the same results.

I have over 1000 lines of code at the moment so I will only post a snippet here of the general method I used, perhaps some experienced users will spot what I am doing wrong[code]...

View 5 Replies

Professional :: HtmlText With Clickable Images Behaving Buggy When Fonts Are Embedded?

May 19, 2010

when the embedFonts is removed, it works perfectly as expect. Otherwise when an image is clicked, it selects the whole text around it.
 
testtext.htmlText="Curabitur dolor eros<a href='event:test'><img src='003.jpg'></a>eget odio.</p>";
testtext.embedFonts=true;

 did anyone come across this before? is there another way to make an image clickable inside a dynamically loaded xml text?Alternatively can anyone suggest a method to style dynamic textfields instead of using html?I've tried with many different fonts, and many different stylesheets, its still the same.

View 1 Replies

ActionScript 2.0 :: Accessing Newly Created MC?

Dec 30, 2003

I created a MC with a simple createMovieClip, in which I load a movie. This works.

[AS]
_root.createEmptyMovieClip("pmpPlay", 2);
loadmovie("play.jpg", pmpPlay);

[code].....

View 9 Replies

ActionScript 3.0 :: Can't Get Newly Loaded Clip To Tween In

May 22, 2010

One last thing to do to finish a project and it turns out to be difficult and I can't figure out why. I'm loading in a jpg and when it loads I want to fade it in with a tween effect using tweener. The problem is that it's showing up on the screen as soon as it loads.[code]...

View 1 Replies

ActionScript 3.0 :: How To Reference Newly Loaded Images

May 5, 2010

I am loading some external images, that bit is sorted. What I cant seem to figure out is how to reference the newly loaded image.

Here is the snippet of code I have
ActionScript Code:
public function loadImg(img:String):void {
loader.load(new URLRequest(img));
myHolder.addChild(loader);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
} private function loaded(event:Event):void {
//How do I reference the new image here so I can do stuff to it? }

I know how to do it in AS2 but cant seem to get at it here. Is it passed through the event?

View 5 Replies

ActionScript 2.0 :: [FMX] Color Of Newly Attached Movieclips?

Jun 9, 2004

I want to add a "progress meter" whenever the user goes to the next question (whether the question was answered correctly or not). I want to attach movieclips along the bottom line, and I want the user to be able to specify some color and shape preferences for these "progress meter" elements. I'm bilingual, so I included my original, french comments (pour tous ceux qui sont francophones).

English:

Code:
function ajouterBalle(couleur, etat) {
var posX = (quelleQuestion*(640/ballesTotales))-(640/(ballesTotales*2));
this.attachMovie("mc_balle", "balle"+quelleQuestion, quelleQuestion);
this["balle"+quelleQuestion]._x = posX;

[code]....

mc_balle is actually just a movie clip with 3 keyframes, with shapes made of a fill (and no border).

I call upon the ajouterBalle function this way, which is supposed to create a "balle" or "progress meter node" using the right shape and color:

Code:
ajouterBalle(0xFF0000, 2);

The balls position themselves in the exactly right fashion and shape...but the color doesn't apply! So I'm wondering where is the problem. Perhaps with the dynamically created color contructors? Or the line just after, when I set the color?I am able to change the color of a background movieclip (read: non-attached) with no problem, but the dynamically created ones don't work...

View 3 Replies

ActionScript 3.0 :: Accessing Newly Created Childs T

Jul 20, 2009

I have a script that randomly pops out circles all over the stage. However, I want them to disappear once I roll my mouse over them (and only the ones I roll over, not all the instances).So if I have code like this in a function:[code]And then I have a mouse_over function in the same class, how do I tell it to removeChild? Since the stars are instances of the object, they are giving instance names like instance67, which makes them hard to remove.

View 2 Replies

ActionScript 3.0 :: Referencing A Newly Created Class Instance

Jun 16, 2011

I am completely new to actionscript although I do come from a OOP background. I have been asked to trial Flash and Actionscript 3 in particular - so I do come with a few preconceptions on how I expect actionscript to behave. I have a problem I donot understand. I have created a new class and to test it I use a simple test harness in the form of a .fla file.

The issue I have is when I create a new instance of the class and assign it to a variable, subsequent background changes to that instance of the class are not 'picked-up' when referenced through the variable. I would expect that given instance of class could be assigned to many different variables and any updates using one variable would accessible using any of the other variables.

[code]...

View 1 Replies

Flex :: Get The Reference To A Newly Created Button With Actionscript?

Mar 11, 2010

I have a MXML button:

<mx:Button id="myButton1"/>

How do I create N number of Buttons with Actionscript: myButton2, myButton3, myButton4... myButtonN ?

And how to get the reference to the newly created buttons right after they are created? Like I should be able to do myButtonN.x = 100 right after it's created.

View 1 Replies

ActionScript 2.0 :: Attach Different Codes To Each Of The Newly Duplicated Movieclip?

Nov 15, 2009

I have a movie in witch i duplicate a MC several times.

Example:
MC1 (template mc)

Duplicated to:
Movieclip1
Movieclip2
Movieclip3

I want to attach different action script codes to each of the newly duplicated movieclips. Each Movieclip should have different on(release) scripts.

View 1 Replies

ActionScript 3.0 :: Assign An External Class To A Newly Added Child?

Nov 21, 2010

Does anyone know how to assign an external class to a newly added child to the stage.

What I'm doing is using a button to pull in a Movie Clip from the library.[code]...

View 5 Replies

ActionScript 2.0 :: Creating Variables To Handle Newly Created MovieClip?

Jul 14, 2003

How flash setup a variable to handle the newly created movieclip?
Example:
this.createEmptyMovieClip("mymovie",2);
this.clientscroller.setScrollContent(mymovie);

Where did I set it up as a variable? I tried this and didn't work either:
this.createEmptyMovieClip("mymovie",0);
mymovie.createTextField("mytext",1,100,100,300,100 );

View 5 Replies

ActionScript 2.0 :: With() Block - Isn't Registering As Part Of The Newly Created Object

Aug 24, 2004

In the code I'm writing, I use a with block to reference a newly created object thus:

[Code]...

I tried doing this.xot, xot, and other stuff, but it just keeps sliding under _root.xot instead of ArrowL##.xot.

View 2 Replies

ActionScript 2.0 :: BitmapData And Transformation Matrices - Shift The Newly Created Bitmap?

Jan 29, 2007

I've started getting to grips with using the BitmapData class and a Transformation Matrix in the hope that I can start making some interesting image effects. However, at the moment Im having trouble figuring out how to shift the newly created bitmap so that any scale transformations are applied from the center rather than the top left corner. See here for example: [URL] The flower on the left is the original, the flower on the right is the new image created using "bitmapData.draw()". It has been scaled up to twice the size, but I want this to happen from the center of the image.

[Code]...

View 5 Replies

Force The Web Browser To Reload A Newly Deployed Flash File Without Clearing The Cache?

Sep 16, 2010

When I deploy a new .swf file in an HTML file as shown below, I have to clear the browser cache before the new .swf file loads in the browser. Is there anyway to force the browser to load the .swf file when I replace it with a new one on the server.

<embed type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.adobe.com/go/getflashplayer" allowscriptaccess="sameDomain" name="Prototype" bgcolor="#869ca7" quality="high" id="Prototype" src="/flex/Prototype.swf">

View 3 Replies

AS3 :: Image - Add A Child Inside A Newly Created Instance, Inside Of A Loop?

Feb 2, 2005

I am trying to create a gallery where each thumb is housed inside of it's own movie clip that will have more data, but it keeps failing because it won't let me refer to the newly created instance of the movie clip. Below is what I am trying to do.

var xml:XML;
var xmlReq:URLRequest = new URLRequest("xml.xml");
var xmlLoader:URLLoader = new URLLoader();

[code]....

View 2 Replies

ActionScript 3.0 :: Access The Newly Created Bitmap Data To Access The Method CacheAsBitmap.bitmapdata.dispose() ?

Oct 22, 2010

So, you have a sprite, you draw some graphics, you set cacheasbitmap=true... I can't seem to access the newly created bitmap data, to access the dispose() method.

[Code]...

View 6 Replies

AS3 :: Add A Child Inside A Newly Created Instance, Inside Of A Loop?

Jun 6, 2010

I am trying to create a gallery where each thumb is housed inside of it's own movie clip that will have more data, but it keeps failing because it won't let me refer to the newly created instance of the movie clip. Below is what I am trying to do.

var xml:XML;
var xmlReq:URLRequest = new URLRequest("xml.xml");
var xmlLoader:URLLoader = new URLLoader();

[Code]....

It dies every time on that last line. How do I refer to that vidThumbn instance so I can add the imageLoader? I don't know what I'm missing. It feels like it should work.

View 2 Replies

Two CS4's Produce Different Published .swf From The Same Fileset?

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

Professional :: .gif Not Being Published Correctly?

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

ActionScript 1/2 :: Key.getCode() On PC And Published .exe - .swf And .app

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

ActionScript 2.0 :: Not Centered When Published?

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

IDE :: Png Loses Transparency When Published As Swf?

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

ActionScript 3.0 :: Changes To Code Not Being Published?

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

ActionScript 3.0 :: Tell When A SWF Was Published (date Modified) Via It?

Sep 24, 2009

Is it possible to tell when a SWF was published (date modified) via ActionScript?

View 3 Replies

ActionScript 3.0 :: RSS / XML Feeds Don't Display In Published Swf

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







Copyrights 2005-15 www.BigResource.com, All rights reserved