Vector graphics
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Vector graphics
Googling a lot and not finding (did find something some weeks ago...but not now) how to make vector graphics (just rectangles or similare) with effects. Let's say I would make a rectangle with metallic look, or lightning effects, how do I do that? Any tutorials for something like that? Did try a bit, but for now I was not able to do what I would like. The reason why I need this is becuse of resizing and quallity of graphics.
I would also like to know how to control my audio/video files (play,pause and stop are ok) position in time with a scrollbar. Is it possible?
I would also like to know how to control my audio/video files (play,pause and stop are ok) position in time with a scrollbar. Is it possible?
Re: Vector graphics
Hi Leff,
The following lesson should get you up and running with graphic effects in LiveCode-
http://lessons.runrev.com/m/4071/l/6868 ... -an-object
Playing about with these should give you the effect you are looking for.
In regards to controlling the position of audio/video within a player via a scrollbar, yes this is possible and can be achieved with a few lines of script. Please find attached a sample stack that should give you some leads with how to achieve this. The applicable scripts are present in the scrollbar and player object. (please note that you will need to set a video or audio file to the player)
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.runrev.com
--
The following lesson should get you up and running with graphic effects in LiveCode-
http://lessons.runrev.com/m/4071/l/6868 ... -an-object
Playing about with these should give you the effect you are looking for.
In regards to controlling the position of audio/video within a player via a scrollbar, yes this is possible and can be achieved with a few lines of script. Please find attached a sample stack that should give you some leads with how to achieve this. The applicable scripts are present in the scrollbar and player object. (please note that you will need to set a video or audio file to the player)
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.runrev.com
--
- Attachments
-
- video test.livecode.zip
- (1.09 KiB) Downloaded 220 times
Re: Vector graphics
Thank you! I will check this out as soon as possible
I also found out that, when building as standalone for windows, I have to give my test-app administrator privileges for running correctly. Otherwise it will crash. Is the player demanding admin privileges?

I also found out that, when building as standalone for windows, I have to give my test-app administrator privileges for running correctly. Otherwise it will crash. Is the player demanding admin privileges?
Re: Vector graphics
Hi again runrevneil,
Gratefull for the script! Now I know one more thing. Is it also possible to use this scrollbar as a replacement for the interactive scrollbar in player? With the scrip I can now use it as an easy position selector. I will have custom buttons placed another place than the actual player window when playing audio and video. It will be an player-menu for all videos and music positioned the same place the whole time in my app. The controller of the player must then be set to invisible. So when playing audio the actual player will be invisible and all info will be showed in my custom player-controlls. The scrollbar must also be interactive. What I mean is that the scroller must follow the music/video position realtime and also be able to function the same way as the native scrollbar in the player.
Is there some good ebooks that is updated with info when new versions of LC is published that I can buy?
Just installed Yosemite
(First noticed a popping noice when using the player (Livecode). But it was not LC. The same thing happend randomly when watching a video in Netflix.)
Gratefull for the script! Now I know one more thing. Is it also possible to use this scrollbar as a replacement for the interactive scrollbar in player? With the scrip I can now use it as an easy position selector. I will have custom buttons placed another place than the actual player window when playing audio and video. It will be an player-menu for all videos and music positioned the same place the whole time in my app. The controller of the player must then be set to invisible. So when playing audio the actual player will be invisible and all info will be showed in my custom player-controlls. The scrollbar must also be interactive. What I mean is that the scroller must follow the music/video position realtime and also be able to function the same way as the native scrollbar in the player.
Is there some good ebooks that is updated with info when new versions of LC is published that I can buy?
Just installed Yosemite

Re: Vector graphics
Hi Leff,
LiveCode apps shouldn't crash when attempting to playback media via the player object so this could indicate a bug. Please file a report with our Quality Control team and they will be able to investigate this further
http://quality.runrev.com
One thing to try is setting the UAC Execution Level from your stacks Standalone application settings to see if this resolves the issue.
In regards to the scrollbar, the example script allows your to "scrub" to any position of a media file and follows the position of a player so works in the same way to native scrollbar in the player. Is there anything else you need it to do?
The best place to find out about any new features of LiveCode is via the release note that come with each version. These can be accessed via the "Help" menu, under "Release Notes"
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.runrev.com
--
LiveCode apps shouldn't crash when attempting to playback media via the player object so this could indicate a bug. Please file a report with our Quality Control team and they will be able to investigate this further

http://quality.runrev.com
One thing to try is setting the UAC Execution Level from your stacks Standalone application settings to see if this resolves the issue.
In regards to the scrollbar, the example script allows your to "scrub" to any position of a media file and follows the position of a player so works in the same way to native scrollbar in the player. Is there anything else you need it to do?
The best place to find out about any new features of LiveCode is via the release note that come with each version. These can be accessed via the "Help" menu, under "Release Notes"
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.runrev.com
--
Re: Vector graphics
The scrollbar did not follow the movie position. It was static and functioned as a "scrub" without showing the realtime position of the player. Used the same script with the slider and that function the same way. I must learn how to set the length of the scrollbar/slider to the length of the movie/audio file. The slider-end-position is set to 100 by default.
I also figured out that when using custom buttons for stop/play and set the player controller to invisible the custom play/stop buttons would not work.
I think I should buy an ebook on programming with LiveCode
I also figured out that when using custom buttons for stop/play and set the player controller to invisible the custom play/stop buttons would not work.
I think I should buy an ebook on programming with LiveCode
