ActionScript 3.0 :: Constraining 4 .SWF's On Site
Jul 15, 2009
I've got a problem with containing properly the .swf on my (main menu) site. Because the external .SWF's got a parralax effect it overlaps the swf above also the .swf is not nicely stretched out. This is the effect on my site that I want www.seniorict.com but as you look at the zip/fla(menu test) you see the complete file and how the effects are not working well.
[code]...
View 1 Replies
Similar Posts:
Apr 8, 2011
I've got a problem with containing properly the .swf on my (main menu) site. Because the external .SWF's got a parralax effect it overlaps the swf above also the .swf is not nicely stretched out. This is the effect on my site that I want www.seniorict.com but as you look at the zip/fla(menu test) you see the complete file and how the effects are not working well.
code is
PHP Code:
stop();
var swfs:Array = new Array("home", "kandidaten", "opdrachtgevers", "contact");
var loaders:Array = new Array();
[code]....
View 2 Replies
Jan 18, 2009
I'm making a fluid full browser flash site, and things are coming together nicely, but at some point, if the stage size gets too small (such as if someone is using a 800x600 resolution), things just don't look right. Things get all smooshed together and cause for a cluttered mess. To solve this, I put constraints on my stageResize function so the stage would only shrink down to a desired size. This worked great for the flash file, but I can't get the browser to add scroll bars are this point. I figured I would need a JavaScript file that would size the browser (or the div that contains the swf) and then constrain it as needed, but after digging around a few sites that perform the way I would like mine to, I am not seeing any such JavaScript files.
Example: [URL]
View 14 Replies
Aug 16, 2010
I am using the following code on the main timeline
Mouse.hide();
target.onMouseMove = function() {
this._x = _xmouse;
[Code]....
And on the movie clip (target) that i am using for the custom pointer, i've put
onClipEvent (load) {
startDrag(true);
}
How can i constrain the pointer to an area of lets say 800x600 ?
View 2 Replies
Oct 12, 2011
I'm doing liquid layouts, and resizing my images while constraining proportions. Here is the code I'm using:
Code:
image.y = (stage.stageHeight/2) - (image.height/2)
resizeMe(image, stage.stageWidth, stage.stageHeight);
//The resizing function
[Code].....
I want it to resize and totally centre itself in the middle of the screen. HOWEVER. I also want to nudge it down 100px, and THEN resize it. I'm having no luck with this though I can move it down 100 px, but then it resizes and positions itself as though it was still in the centre.
View 6 Replies
May 5, 2006
I am interested in rotating an object around a central pivot point, on command from two buttons (a + button, and a - button).
This file would essencially be a clock hand, or dot representing the hand, being rotated either clockwise or counter clockwise manually by a plus and minus button.
Things I am unclear about:
1) what forms of syntax, variables, etc, would I need to accomplish this task? I am unclear about the proper protocol for setting up this movement.
2) I have a specific background graphic that all this will be happing on top of, how do I find the desired pivot point coordinates (i am assuming the pivot point is defined by an x and y) in relation to my background graphic?
View 1 Replies
Jun 12, 2009
I have a split screen view with a large image above and a smaller image underneath.There is a zoom window over the smaller image that when dragged around shows the larger image above it being moved at the same time (just that it's bigger uptop)
anyways I can't seem to constrain the movement of the smaller movie clip ... right now you can just click and drag it all over the place ... and I'll like for it to stay dragable only over top of the smaller image...and here is the code in the root.
// The base_mag_factor is the correlation of the small picture to the big picture...
_root.base_mag_factor = 5;
// The mag_factor will change as scaling occurs
_root.mag_factor = _root.base_mag_factor;
[code].....
View 1 Replies
Sep 27, 2010
I want to create a MovieClip symbol of a certain width and height, but with content that extends outside its boundaries, with the option to have the external content be clipped/hidden or visible.
In Flex, the solution would be to create a group with .clipAndEnableScrolling = true.
Is there a way to do this in Flash CS5, or will the symbol always resolve to the size of its contents?
View 2 Replies
Mar 7, 2012
I have the following code to create a ViewStack which is used as a dataprovider for a TabBar:
<s:TabBar id="objectTab" dataProvider="{vs_objects}"/>
<mx:ViewStack id="vs_objects" width="100%" />
I want to constrain the number of children the ViewStack to avvoid the tabs going out of the screen when the user opens many tabs without closing any. I attempt to do this by removing the oldest element in the ViewStack when the user opens a new tab and the size of the ViewStack is above 9.
private function openTab(object:Object): void {
//Create a new NavigatorContent(form) and add it to the ViewStack[code].........
The image below illustrates my problem, where the dark grey color illustrates the selected Tab. There should only be one selected tab, which works perfectly fine with both the child selection approaches above, when i don't remove a child before selecting a new. When i remove a child and then open a new Tab, the new Tab does not get selected properly, it only gets "painted" in the selected color. In This case Tab 40 is still shown when i open Tab 41 (exceeding 9 tabs). The result of this issue is that Tab 41 is not rendered completely.
UPDATE: The problem was my AS3 code inside the childrens NavigatorContent's that caused the application to behave this way. The solution was using the callLater method:Doric's
code example:
protected function openTab():void
{
var form:Container = new Container();[code]............
View 1 Replies
Apr 23, 2008
I'm working on a volume slider for a type of jukebox and what I'm using is an actual drawing that is on an angle, therefore the volume slider and handle aren't in a straight horizontal line.I've done the basic code to keep the handle within the distance of my slider "line" (left to right), but what I have obviously just constrains it to a rectangle.
on(press){
this.startDrag(false,0,0,32,9);
}
on(release){
this.stopDrag();
}
The slider and handle are both at actual size, that's why it's only 32 pixels wide that I need it to go across and 9 pixels down. I do realize that for what I want, it's much more involved than this simple startDrag code with 4 sets of numbers in it.I'm including the source file in Flash 8/Actionscript 2.0.
View 3 Replies
Jun 29, 2009
I need to know if there is any way to constrain the mouse movements on a startDrag to a line that is not going vertically or horizontally. I'm sure I'll need to use some trig functions, and that's fine, I just haven't been able to find this done anywhere else.
View 4 Replies
Dec 30, 2011
how can i constrain the dragging of my movieClip inside the shape of a trapezoid? here's the code..
Code:
pamato.onPress = function()
{
startDrag(this, false, 1000, 270, 130, 605);[code]....
when i test the movie.. its a rectangle..
View 9 Replies
Jun 21, 2011
Basically, I have a custom "scrub bar" graphic in which the user can drag a slider forward or backward in time to scrub/seek to a certain point in an external F4V.I have my slider constrained by a rectangle of 1 pixel in height. But when I click with mouse to scrub, my mouse cursor tends to move off of the slider graphic, causing problems with my MOUSE_UP event. (It can't trigger when my mouse is not over the target object).Is there a way like "new Rectangle(32,713,944.1)" to keep the mouse from moving in the Y-axis as the user drags the slider left and right to scrub video?
View 3 Replies
Feb 25, 2012
i have made a site in flash. stage size 955x600 i have exported it as fullscreen with no scale. the problem is that if i browse the site with a resolution of 800x600 (760x420 if i'm not wrong), the browser dont' add scrolls and its impossible to see the complete site. How can i fix this without resizing the site. i want the users to see with the proportions that i have now.. ijust want a scroll on the browser.
View 2 Replies
Nov 4, 2009
the flash4 published set of files, with a variety of skins tried, works well on the local drive, even when moved to a different folder structure. when index.html is opened on the remote web site, the browser (firefox3 and ie7) displays the player conrols and a rotating horizontal barber pole, green and black, but no flash video.some of the skins i've used are: SkinOverPlaySeekFullscreen.swf, nOverPlayStopSeekCaptionVol.swf and SkinUnderPlay.swf. all work locally but do not play the .flv file on the web site. no problem playing flv movies on the remote web site if the file set is created by dreamweaver.
View 8 Replies
Jul 28, 2011
Forgive if I am not explaining this very well- here goes. I have one major site with three other gallery sites that are related. From one of the gallery sites I need to create a button that takes you back to a specific page on the major site.
[Code]...
View 7 Replies
May 20, 2009
I was wondering if its still necessary to build a html site aswell as a Flash Site? Or is there a definitive and failsafe way to incorporate html into my flash site? SEO is a very important factor for me. I read this article: url...by Geoff Sterns in 2006, resulting in the following[code]
View 4 Replies
Dec 14, 2010
A client of mine has had 2 sites (both Flash sites) attacked over the last 12 months, so he's been asking: should he go for a static HTML site or stick with a Flash site? Is there ways to make a Flash site more secure?
View 1 Replies
Mar 3, 2012
I have some people making a site that uses PHP and mysql. You will be logging in first to the PHP site, but the Flash based component of it requires to use the same log in and password. Do they have to log in twice??????
View 1 Replies
Jan 13, 2008
I need a good html mailer that will post ...ive tried everything from php to dw formmailer, and it is crazy **** that i cant finish a simple mailer. I just want it to send name and email of someone from a site to that site holders email! I guess I am a moron
View 1 Replies
Jul 13, 2009
i built this site for a friend [URL]..now we are planning on an site make-over to the gallery.the problem is the gallery loads up each gallery in one go. we are trying to to make it load up per image with preloaders. [URL]..i need a tutorial that is similar to the gallery but has preloaders per image. saves the user from downloading the whole gallery in one go. Also i prefer it to be XML and AS3.
could anyone help? ive tried alot of tuts but they werent what i was looking for.
p.s i had to use tinyurl because i didnt want this thread to be up on google.
View 2 Replies
Jul 15, 2009
I've got a problem with containing properly the .swf on my (main menu) site. Because the external .SWF's got a parralax effect it overlaps the swf above also the .swf is not nicely stretched out. This is the effect on my site that I want www.seniorict.com but as you look at the zip/fla(menu test) you see the complete file and how the effects are not working well.
code is
[AS] stop();
var swfs:Array = new Array("home", "kandidaten", "opdrachtgevers", "contact");
var loaders:Array = new Array();[code].....
View 2 Replies
Apr 29, 2009
I have multiple .fla file (small online invitations etc) and I am trying to combine them as part of an online portfolio.
IS there a quick way of simply placing a .fla movie into another or do I have to use the swf.
And am I being silly - should this be done using Dreamweaver as the 'container"
View 2 Replies
Jul 3, 2009
[URL] However, if I were to go to a new url in that same tab and try to go back to the original site, all I will see is the loading screen which is stuck at 0%.
The above mentioned site works perfectly in Firefox, Chrome and Safari.FYI, I'm loading the content with swfobject. I tried both static and dynamic methods. It is currently set to load dynamically.
View 5 Replies
Jul 20, 2009
I know Flash well enough to make my site but know virtually nothing about HTML. I have published my HTML through Flash but the image is always aligned top left and not centred. I want to change the code to make it centre in the browser window but there's pages of the stuff and I'm not sure what's what or what to change.
View 4 Replies
Sep 9, 2009
I got a client that saw this site and NOW wants something like this. I am not certain if this is AS2 or AS3. My vote is for AS3.on how to render this?
View 4 Replies
Oct 14, 2009
A client has asked me about the image gallery on this site, I wonder is anyone can identify it? I have searched a few websites and resources, but no luck thus far.
View 2 Replies
Oct 22, 2009
I'm trying to SEO one of my sites, and while this is usually no problem, it is in this case. See, the website is in all flash, and while Google and Adobe have both announced that the new version of their web spiders CAN extract and index text and links from flash files, I can't rely here-on alone.
Slicing up the Flash can result in page transitions that don't provide the seamless effect that you want to create. To get the best of both worlds, pass a parameter into the Flash movie using FlashVars. The same movie can appear on each HTML page, but depending on the parameter value, the movie can start at an appropriate point to show the Flash content that corresponds to that page. To get rid of all the extra pages, but still be able to reference different parts of the Flash piece, add a # and a tag to the end of each URL, and pass that tag into the Flash. This approach can make the back and forward buttons work properly, and allow people to bookmark specific parts of the Flash site."Souce: Hochmanconsultants.
View 1 Replies
Nov 11, 2009
I am working on template that is as3, the menu buttons on the top will open random windows that are fixed sizes and one of those sizes is 700x500. The window content is listed in an xml file in text and code depending on what is being displayed, the window can sense the content size and the provide scroll bars as needed. The problem I am having is that I want to load an swf inside that is the same width just taller and I can't get the scroll bars like I did with the text or html code.I was thinking of tricking it with a transparent png file that would make it provide scroll bars and then the swf would be on top of it but I can't seem to figure out the code on how to get that done.Here is the code in the xml file that will get the window, but the denim swf is cut off at the bottom with no option to scroll:Here is some random code that will open the same style of window with scroll bars, I did embed the swf inside it for testing, as soon as I remove the text I am back to no vertical scroll bar.[code]WHy will it sense text and images and provide scroll bars as need but not swf?
View 1 Replies
Dec 1, 2009
Can I have a link in an xml doc that then links up to another portfolio(my site is essentially a portfolio of images).Or do I need to alter the script in Flash? This is the xml main doc and here is the link to the page also that I want to link from. navigate to the 'NEWS' section of the portfolio.I want to be able to link to another portfolio from one of the categories in the news section.
[URL]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<news
categorySpacing = "15"
>
[Code]....
View 3 Replies