Flash :: XML Banner Path?
Nov 30, 2009I have a banner I made which has an xml file that needs to be uploaded with the rest of the files. here is the code
[Code]...
I have a banner I made which has an xml file that needs to be uploaded with the rest of the files. here is the code
[Code]...
the same class is passed to the mxmlc compiler in SWF library as a symbol linkage class and again in a source-path. But the compiler uses the definition from the source-path so creating new instance of that class won't create new instance of the library symbol. How do I tell the compiler to prefer the definition linked to the symbol (the one dfrom SWC)?
I have my design assets in an FLA file and they are linked to classes (e.g. [URL]. Then I export those assets to a SWC library and pass it to the compiler. Now when I create an instance of the class (new MyAsset();) it will be a new instance of the library object.
But there are other classes too in the source folder (e.g. "com.myproject.model.*" so I need to pass the source folder to the compiler too. And that is the problem, now the compiler will use the MyAsset.as definition from the source path, not from the SWC where it is assigned to the library object so if I create new instance of MyAsset now it won't duplicate the library object.
Is it possible to draw out a path in the flash editor, set its visibility to hidden, and use this path data to animate objects in AS3?
View 1 RepliesSo I've created a script where a mc is clicked on and the player can draw a path using the mouse. I'm trying to figure out how I can get the mc to follow the path drawn out by the player's mouse and when the player clicks again, it erases all of the path.my code is below
Code:
import flash.display.Sprite;
import flash.events.MouseEvent;[code].....
I am building a banner ad and I am using Flash CS4. I need it so when someone clicks the banner it takes them to the page in a new window. Its just a a simple URL and I keep getting syntax errors now and I dont know how to do this properly. I have tried these methods.
[Code]...
I am new to Flash and ActionScript 3.0 environment. I don't have any knowledge in depth with Flash and ActionScript 3.0. I am using the flash(.swf file) in my Java application. Now, this .swf file is to be placed in the server system. While I am working with these, I faced an error. Here, my issue/problem(s) starts....
1.)With the help of URLRequest & URLLoader classes, I am loading a jpg file dynamically onto the stage using the following code:
[Code]...
Here's what i'm trying to do: Hide a MC depending on the path variable as:
[Code]...
Well that doesn't work, for some reason, i can't use a string as a multiple level path..
I was wondering if it possible to write up some AS that will take line paths that you have drawn and convert them into a Path object? For example say you drew a jagged line from left to write, would there be a way to have AS convert that into a Path object.
View 11 Repliesi have a quick question what is the syntax if u want to use parametrs to define a path inside a path? i mean:
[CODE]...
does anyone know.... it's very important!
This is a head scratcher. Why would a root relative path cause a Security Sandbox error.. but an absolute path to the exact same path work fine..
[Code]...
I am displaying some flash content on a fairly standard page. This works really well when the flash, xml file and html page are sitting together in the same directory.url...However, I want to display that same content in another page which is deeper inside the site but outside of the directory that houses the .swf and .xml files as well as the assets.[code]The js files are loading properly but the flash content is not, so I could use a little help getting that sorted out.
View 1 RepliesWhat does _level0,_parent and _root mean in flash?What's the difference between absolute path and relative path?
View 1 RepliesI am coming from flash to flashbuilder I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled.So today I did that in flashbuilder, included AS3_classes_dir via Flex Build Path/Source Path ... but now the compile time are a couple of minutes, even though I am not even importing ANY of the classes from within.
View 2 RepliesI am trying to create a flash banner ad that loads when a page loads and gives the user the option to minimize it. When the ad is minimized, I wanted to leave a box (that could also function as a mini version of the larger ad)that could be clicked and reload the ad if desired.
I have been struggling with how to do this. I tried creating two movies, one for the main ad and one for the smaller box that remains after the ad is minimized. I inserted the object code for the larger ad into my html and it loads and will load the smaller ad then the button (for minimizing the ad) is clicked but the smaller ad loads in the area defined by the object code for the larger ad. I am not sure how to work around this.
Right I have created a flash banner ad and taken it into dreamweaver, I thought I could just link it to its website easily in DW but I can't.
Do I have to set the url in the flash doc, if so what do I do
i spend ages getting to know how to use flash, and make a banner and the bits that are animated have black boxes over them when i publish.
[URL]
We are moving to a new platform and will have a flash banner on the home page that will be changing frequently with new promos, etc. You can find the flash banner at http:[url].....I need to be able to update the swf file and have it immediately reflect on this new home page, but it only seems to be updating on the non-secure URL in Firefox and not at all in IE.
View 3 RepliesI'm trying to loop a Flash Banner ad. I added the code to the first and last frames on a separate action layer on the main timeline, but it's not working.
I'm using actionscript 2.0/CS4.
I have a stop action on the last frame of the last text movieclip that plays. And it seems to get hung up here. When I remove the stop action it just loops that movieclip and not the whole animation.
This is the code I'm using in the first frame of the main timeline.
> var counter:Number = 0
And this is the code I'm using in the last frame of the main timeline:
> // if its being used on the last frame use a stop(); action on the top line
> if (counter < 3) {
>counter++
> gotoAndPlay(1)
> }
I have flash as part of the adobe suite but am yet to have a real go at it. If I was to buy a third party flash banner say with a size of 100x250 and wanted to add text to it so it would then be 100x350, is this an easy process?
View 1 Repliesi want to use xml and flash to make a banner like the one that tv.com is using so when i want to change the image or the content of the banner, i can do that by changing the url of the image and some text in the xml file. what do i have to do with flash, actionscript, and xml? is there any open source that i can use?
View 1 Repliesid like to know the action script code i need to add a url to my flash banner,ive found this and it works,but i need it to open as a self window and not as a blank
digilink_btn.addEventListener(MouseEvent.CLICK, myButtonFunction1);function myButtonFunction1(event: MouseEvent) { var request:URLRequest = new URLRequest("http://www.digilink.gr/fullmoon/index.php?option=com_mtree&task=advsea rch"); navigateToURL(request);}
where abouts can i add the _self so it opens within the web page?
I am creating a banner for a website, and I need to load an external swf of scrolling images that sits behind the layers in my flash banner. A similar example would be the website: [URL]..I have created managed to create everything in this banner except the scrolling images, so I have an external swf file that needs to load into my flash banner project.
[Code]...
i have a banner generate by my php code as below:[code] why i can not click to this flash to follow the adv link.
View 1 RepliesAll I want for this banner to do is loop and start back from the beginning after it finishes. What should be the proper code? What is wrong with this?
View 1 RepliesI need to add a banner on top of one Flash movie i made. For this i need to change the document size of my movie but, when i'm doing this, Flash add space starting from the bottom of my document, but i want it to add space from the top.
View 3 RepliesI have been trying to create a gif web banner using flash. Everything look great in flash, flash player and quicktime but when I export or publish as a gif my background image is grainy and pixelated. My document is saved as 500X90. My background image was saved out of photoshop as 72 dpi. 500X90. I tried saving the image as .tif, .png, .jpg, all with the same result.
I'm not sure if this is the problem or not as I'm a freshman user but I have the background image running on its own timeline that runs the length of the movie. Also the animated text/symbols created in flash look perfect when I save it as a gif the only thing effected is the background image. I'm stuck, I have looked all over the web for the answer. On a side note I'm using a Mac running os x 10.4.11
I have a pretty simple flash banner(using flash cs4) that I want ot make clickable.I am assuming I have everything correct, because when I "test movie", everything works as expected.Now comes the odd part. When I export movie, the clickable portion no longer works. Along the same lines as soon as I save the .fla file, the "test movie" no longer works.I have recreated this about 10 times now and everytime the same result. now I have it open on my computer, because as soon as I save it will no longer work.
My actionscript(3.0) code is as follows:
link_btn1.addEventListener(MouseEvent.CLICK, sgurl);
function sgurl(Event:MouseEvent):void;
{[code].....
and yes I have a button with an instance name of link_btn1
I am doing an overlay flash banner which sits on top of a flash site. Within the overlay banner I have a moveclip called 'imageHolder' which needs to call the same image thats in the flash site.
I have this code which allows me to directly control the movieclip in the flash site from within the flash banner. var img:MovieClip = takeoverContainer.getImage();
img._scaleX = 0.25; (for example) The problem here is I only want to copy the movieclip so I can see the same image in my banner as I do the Flash site, I do not want to manipulate the main flash site in anyway.
COuld anybody write me a piece of code that will duplicate/mirror the moveclip in the main flash site inside a movieclip within my flash banner so I can see the same image?
(From a creative perspective 'imageholder' is a smaller version of the image which is animated over the top of the main flash site) I am happy to pay for an hours work if somebody could help (via paypal if you like). I am in desperate need
I am looking for a non XML driven Flash banner rotator, something where I can load my images into the FLA and publish. The only rotators I can seem to find have external XML/image files, etc. All I want to do is create simple SWF's that I can use to display rotating images preferably is a smooth and stylish manner. Does anyone know of any, or could point me in the right direction?
View 1 Repliesi have created some flash banners with a url embedded in them, so when they are placed on a web page the banner links through to my website when clicked. Fairly simple.But, i tested them on a website on my server to link to another website on the server and they worked fine. When i gave them to a client to embed on their own website (the flash files are hosted on my server still), the links no longer work.
Is this a security issue to stop the links working? i also checked it in linux and the banners worked, but in windows they do not. I dont want the client to have their own local copy of the flash file, as i may update it in the future and dont want to chase up lots of different copies everywhere.