Flash :: Setting Initial Position Using SharedObject?

Aug 8, 2011

I have created a simple audio player to play continuously even if the page is refresh it will play continuously.This is my code to store audio position in flash Temp memory

MySharedObject.data.audioPos = mySndChannel.position;
MySharedObject.flush();

MyProblem,When the player starts the sndPosition is null, so it was not playing. If I set some value, when I am refreshing it will not continue from the last position. How can I set the initial position to play from the start?

View 1 Replies


Similar Posts:


Professional :: SharedObject Class - Movie Start At A Particular Frame After The Initial Visit To It?

Jul 27, 2010

I don't have quite a good enough grasp on AS3 just yet, but I'm getting there.I have a movie that has an intro to it. It also has buttons that takethem to subsequent pages.Once they go back, I'd like the intro portionof the movie to not play. In other words, I'd like it to start at a particular frame after the initial visit to it.I think this can be done with Local Shared Objects,

View 2 Replies

ActionScript 3.0 :: Move The Vertical ScrollBar Position Of The ScrollPane To Top/initial Position

Jun 30, 2009

I am using a ScrollPane in my application(viz., instance name is: myScrollPane). When I view the contents of the ScrollPane, it shows them perfectly. My issue is: When I try to view data present inside the ScrollPane, if I move the Vertical-ScrollBar of the ScrollPane to middle(or somewhere from top to down) and then click on Submit button(viz., instance name is: submit_btn), then its Vertical ScrollPosition must be reset from middle(or any position where we leave it before) to top(or initial position). Hence, I need to move the Vertical ScrollPosition of ScrollPane to top (or) initial position. Everytime, I need to refresh the VerticalScrollBar Position when I click on the submit button. How to do it?

View 1 Replies

ActionScript 3 :: Setting Windows Initial Width And Height?

Jan 18, 2012

I am working on a Flex mobile application and I want to set initial windows width and height in as3. When my app runs on Desktop, I want to detect screen resolution and set it to windows bounds, something like that
this.width = Capabilities.screenresolutionX
this.height = Capabilities.screenresolutionY

View 1 Replies

ActionScript 2.0 :: Moving Menu - Setting The Mc On The Initial X And Y Coordinates?

Mar 21, 2004

I m having some problems with my menu I m working on.Its weird cus I d already have done the same menu once and worked fine..The selector mark is suposed to "mark" the selection on the menu after a selection is pressed. But I m having problems with the X and y coordinates and scales of the MC and when I click on the option,the MC gets smaller and then bigger to the size I want.Its suposed change scale and position but its not working like it is suposed to work.I m not sure either if I m setting the Mc on the initial x and y coordinates.

View 4 Replies

ActionScript 2.0 :: Storing Initial Position Of MC?

Apr 17, 2004

Okay maybe its because I've been working on this all day and can't think straight any longer but this seems like it should be really obvious and I'm getting frustrated that I can't think of how to do it.I have a movie clip sitting just off stage. When the file is first launched I want to record the x position of this movie clip in a variables, say startX. When a button is pressed (and there are several of these) I am using Voetsoejba's easing code (brilliant) twice, once to move an MC just in the x direction (easeX):(on the main timeline, whre movetxt and content are the two MCs)

Code:
//record initial positions
menux = movetxt._x;

[code].....

View 14 Replies

ActionScript 2.0 :: Slider Button Reflecting Initial Value Position

Oct 8, 2009

I have a slider in my movie (depositAmount) and in the component inspecter it has Initial value for the slider. In my first frame I have an input field for depositAmount and i want the position of the slider button to reflect that. So if the min and max deposit amount are 0 and $10,000 respectively and the user inputs deposit Amount as $2000, I'd like to position the slider button 1/5th of the way across the slider. Is that possible? At the moment the slider button will just reflect the initial value position.

View 0 Replies

ActionScript 2.0 :: Buttons Doesn't Come Back On Initial Position?

Oct 9, 2003

i've a little problem with my buttons wich are movieclips if you rol over and out to fast they stay "on" (they do not come back to initial position) i've used actions: rolover >goto and play frame 2there is a stop on frame 1 and 5rolout > goto and play frame 6 (so it plays to frame 9 and come back and stop on frame 1 :initial position)

View 4 Replies

ActionScript 2.0 :: Buttons Doesn't Come Back On Initial Position

Oct 9, 2003

i've a little problem with my buttons wich are movieclips if you rol over and out to fast they stay "on" (they do not come back to initial position) i've used actions: rolover >goto and play frame 2 there is a stop on frame 1 and 5 rolout > goto and play frame 6 (so it plays to frame 9 and come back and stop on frame 1 :initial position) url...

View 4 Replies

ActionScript 2.0 :: Store The Initial X Position Of Five MovieClips In An Array By Looping Through It

Jan 9, 2005

I'm trying to store the initial X position of five movieClips in an Array by looping through it. Should be no worries, but I only end up with "Undefined" when I trace the array afterwards...

[Code]...

View 2 Replies

ActionScript 2.0 :: Fullscreen Mode - Make Some MovieClip To Re-appear At Their Initial Position?

Sep 18, 2008

I have a small problem with my fullscreen mode.It enters fullscreen mode nicely when the user click on a button and exit as well when you press the"esc" key (which is the standard). is there a way to track when i exit the full screen because i want to make some MovieClip to re appear at their initial position.

View 1 Replies

ActionScript 3.0 :: Make A Generated Object Return To Its Initial Position

Dec 12, 2011

The issue i'm having is that i want to have dispersed code-generated stars, and then they form a form (reindeer, santa, etc).

The idea is how i make the stars disperse and then return to their previous positions, knowing that the initial positions were randomly generated as well.

View 2 Replies

ActionScript 3.0 :: Movieclip Slider Effect - Change The Initial Position Of The Movieclips ?

May 2, 2011

I have two movieclips in the centre of my stage. One is on top of the other and fade's between them using left/right buttons.I want to change this so that they slide in like a jQuery slider does. I don't want to change the initial position of the movieclips (on top of each other) just change the fade effect to a slide in.

View 1 Replies

ActionScript 3.0 :: Setting A Position Of Movieclip Called Red X And Y Position?

Jul 3, 2009

setting a position of movieclip called red x and y position within a movieclip called background

Code:
background.redsquare.x = 300;
background.redsquare.y = 300;

comes up with TypeError: Error #1010: A term is undefined and has no properties.

setting a position of movieclip called red x and y position withen a movieclip called background

Code:
redsquare.x = 300;
redsquare.y = 300;

This works fine but how can that be when surely you must access the red withen the background rather then just accessing red?

View 3 Replies

ActionScript 2.0 :: Store Playing Sound Position In A SharedObject?

Mar 16, 2010

I`ve run in a bit of a problem. I`m trying to make a web player in AS2. It stores some data from player for later usage in a shared object. One of the things i`d like to store is my current playing position, so player can start of where it was playing after page reloads, but i can`t think of how it should be done..

[Code]...

View 0 Replies

ActionScript 3.0 :: Make Buttons That On Rollover Move To Left - On Rollout Move Back To Their Initial Position

Dec 15, 2009

well i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.

[Code]...

View 2 Replies

Media Server :: SharedObject.NoAccess Error When Trying To SharedObject.getRemote?

Feb 18, 2012

I've installed developer version of Flash Media Server 4.5 and trying to get remote object, but no matter how I call my object all i get is this error .I've rad configuration guide and it told me that I should set StorageDir for shared objects, enable RPC (<RPC enabled="true">) and allow shared object (<Allow>users</Allow> in <RPC> - <SharedObject> tags)

View 1 Replies

AS3 :: Setting Scroll Position For ScrollPane Component?

May 19, 2009

I ve got a series of frames, each with its own instance of a scrollPane called actionText. When navigating from frame to frame I want the vertical scroll position of actionText to reset to 0.For some reason these separate instances of the component are inheriting scroll positions from one another,for example,if I scroll to 50% in one frame, jump to a new frame with a new instance of actionText, that new instance starts at 50%, not 0.

I should be able to set the scroll position by actionText.vPostion = 0 but I get Position is an undefined property of the object actionText .Roll over either the star one or star twotabs and select any action item, scroll the text down (actually a pdf converted to swf), then navigate to another action item and the new scrollPane does not default to 0. Only stars one and two are coded.[url]......

View 3 Replies

ActionScript 3.0 :: Setting Cursor Position Programmatically?

Oct 22, 2009

In my app, the user clicks on an object, which centers the object on the screen. The user's cursor stays where he/she clicked. I find that it is kind of disorienting to have the object move without the cursor. For the user's convenience, I would like to move the cursor to the center of the stage as well.

View 14 Replies

ActionScript 2.0 :: MP3 Player - Song Position Not Setting To Zero

Apr 2, 2010

I am create a flash mp3 player. In that I am displaying the song.position(time completed played). The song.position is not setting to zero, when a new song is played. It is continuing with the previous song. For example, if the previous song time is 30 seconds. the song.position is started from zero and comes to 30 seconds. After that song is completed and a again a new song is started, the song.position is starting as 30 seconds and gets increasing. It is not setting to zero at the start of the second song. I even set the song.position=0, when the previous song is completed.

View 1 Replies

ActionScript 2.0 :: Setting Random X Position From Array

Mar 8, 2009

I've creating a drag and drop card game in AS 2.0 and need to set the cards randomly in set positions every time the game is played. no two cards can be in the same space, so the taken position needs to be taken out of the array.I am not concerned about the Y value just X . I think this needs to be an array containing the positions. then using slice to remove the value from the array. I'm not sure how to assigned the array position to the movie clip.

View 6 Replies

ActionScript 2.0 :: Logging And Setting Scrollpane Scroll Position?

Sep 20, 2010

I have a scrollpane with a very long list of images stacked vertically. The user can scroll around, click on an image, and it will take them to another part of the application. There, there is a back button so they can return to the list of images. Instead of jumping back to the top, I want the back button to return them to where they were in the list of images beforehand. how do I log the value of the scroll position, and then set it to that value when the page is loaded again?

View 3 Replies

Actionscript 3 :: Setting Caret Position In Text Layout Framework?

Jul 3, 2010

i'm attempting to simply set the caret position at the start of the text flow when it is first displayed, without having to click and activate the text to see the blinking caret.

googling returns that the solution is to do this:

textFlow.interactionManager = new EditManager(new UndoManager());
textFlow.interactionManager.setSelection(0, 0);

however, setSelection() is not a valid function of the selection or edit managers.

1061: Call to a possibly undefined method setSelection through a reference with static type flashx.textLayout.edit:ISelectionManager.

View 1 Replies

ActionScript 2.0 :: Setting Final Mc Position Depending On Text Height?

Jun 1, 2003

I have an empty mc called "attachmcextra".Into this empty mc is attached another mc called "mcnote" that contains a texto box named "loadnote". So it`s path would be:_root.attachextra.mcnote.loadnoteThe following code is set to the mc "attachextra":

onClipEvent (load) {
//set inicial position
this.posY = 20;

[code]....

View 1 Replies

Flash :: Get More Than The Initial Set Of 4 Stage 3Ds?

Mar 1, 2012

I can't seem to find a way to get more than the initial set of 4 stage3Ds provided by flash. I have tried instantiating a new one using it's constructor and then adding it to the stage by simply pushing it to the list stage.stage3Ds.push(new Stage3D());

but this doesn't seem to be working as my eventListener for the Event.CONTEXT3D_CREATE is never called (it is if I use one of the default Stage3Ds. workaround or a way to accomplish this?

View 1 Replies

ActionScript 3.0 :: SharedObject Error: Error #2134: Cannot Create SharedObject?

May 9, 2011

Gives me this error:

Error: Error #2134: Cannot create SharedObject.
at flash.net::SharedObject$/getLocal()
at as3_shared_objects/showVar()

[code]....

View 2 Replies

Actionscript 3.0 :: Setting "Z" Or Layer Position When Loading External Swf?

Oct 31, 2008

I've been using the loader class to import external swf files when I need them. I can position them on the screen where I need them using the:

loader_var.x
and
loader_var.y properties

However something that seems to stump me is how to position the loaded content below other content in the movie. I tried making the layer where I was actually calling my external file below the other layers and yet when I export the Flash movie the clip that I'm importing at run time always ends up on top of every thing. Is there a way to specify which objects imported media comes in above or below?

View 5 Replies

ActionScript 2.0 :: Setting The "dragger" In A Scrollbar To A Position?

Feb 8, 2007

i've donwloaded a scrollbar from the forums and i need help on how to make the scrollbar go to the top when you push a button.

View 1 Replies

Flash :: JWPlayer Black Screen On Initial Playback?

May 21, 2010

The client complains that sometimes on initial load, the jwplayer will autostart playback as intended but with a black screen. Sound is alright, and the progress indicator in the transport is moving.No matter what I do, I can't recreate the error on my machine.I'm using version 5 of JWPlayer.

Here is the code i use to embed:
<script type="text/javascript" src="/Frontend/Javascript/swfobject.js"></script>
<div id="mediaspace"><embed type="application/x-shockwave-flash"

[code]........

View 1 Replies

Flash :: Calculate Time To Decelerate Using Initial Speed And Decay?

Sep 29, 2011

I'm trying to calculate the time it will take a movieclip in Flash to decelerate to zero. The starting speed will vary, but for purpose of example lets say[code]...

View 1 Replies







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